Commit Graph

29 Commits (ff4c3d8517b71f9ad62f445c89aa2bdac96601c6)

Author SHA1 Message Date
Doug Coleman e364f1ebf1 unix.ffi: Add SHUT_* flags for shutdown() call. 2016-05-25 17:49:59 -07:00
John Benediktsson 5b3987a26f unix.ffi: adding getsockopt and some socket options. 2016-03-13 13:08:07 -07:00
Björn Lindqvist 77f0d0042e unix.ffi,windows.winsock: add the rest of the AI_* flags
Currently unused, but they are useful if you are calling the getaddrinfo
function directly
2015-10-08 15:29:14 +02:00
Doug Coleman 0176591527 factor: actual patch to remove ; from all c/fortran functions 2015-07-19 16:25:30 -07:00
Doug Coleman 431ddcaf9f unix.ffi: Fix syntax for FUNCTION: 2015-07-02 17:27:18 -07:00
John Benediktsson d6b6f3893d basis/extra: switch to "vocab." os name>> append require. 2014-11-13 13:00:44 -08:00
Björn Lindqvist 57a933e330 libc.*, unix.*: move constants and functions from the unix namespace to libc
The E* errno and SIG* constants are defined on Windows too, so they
should be in the libc vocab which is available there. They will be
used for SSL error handling.
2014-04-02 12:12:25 -05:00
Björn Lindqvist 7c179f876c unix.ffi, windows.winsock: wraps for servent functions 2013-09-16 17:31:37 -07:00
Doug Coleman f12633e73b io.launcher.unix, unix.ffi: Reset ignored signal in process launcher. Fix SIG_DFL etc. 2013-03-24 12:38:02 -07:00
Doug Coleman 4eb9126971 unix.ffi: Add the man 2 signal() function call. 2013-02-01 11:36:18 -08:00
John Benediktsson 7b50fd3601 unix: adding truncate-file. 2012-10-25 21:51:08 -07:00
John Benediktsson be4db5312f unix: adding mkfifo. 2012-10-24 20:08:32 -07:00
John Benediktsson e32eab2ca7 unix.ffi: adding readv/writev. 2012-10-24 19:53:24 -07:00
John Benediktsson 98b52e624c unix.ffi: adding "access". 2012-10-24 16:37:05 -07:00
John Benediktsson 083950b4d2 unix.ffi: adding fileno. 2012-10-24 09:00:08 -07:00
John Benediktsson c730bf62bd unix.groups: 64 ought to be enough, right? 2012-02-02 19:41:39 -08:00
Joe Groff 8b9c9a5c63 unix.process: take raise from unix.ffi
And fix introduced ambiguity between unix.ffi:kill and unix.process:kill
2011-11-08 10:42:51 -08:00
Joe Groff fc7c175c9f new module unix.signals: app-level signal handlers
example:

IN: scratchpad USING: unix.ffi unix.signals ;
Loading resource:basis/unix/signals/signals.factor
IN: scratchpad [ V{ "Me not that kind of orc!" "Me busy, leave me alone!" "Work work" "Zug zug" } pop print flush ] SIGINFO add-signal-handler
IN: scratchpad load: 0.60  cmd: factor 41541 running 0.28u 0.16s
Zug zug
load: 0.71  cmd: factor 41541 running 0.28u 0.16s
Work work
load: 0.71  cmd: factor 41541 running 0.28u 0.16s
Me busy, leave me alone!
load: 0.73  cmd: factor 41541 running 0.28u 0.16s
Me not that kind of orc!
2011-11-08 10:21:49 -08:00
Joe Groff 8cf18d1a82 remove BSD,solaris,etc. misc platform support code 2011-11-02 17:13:51 -07:00
Doug Coleman eb7fd4a69b Add options to set the child process group id or session for Unix. This fixes part of #307. 2011-10-29 02:47:10 -07:00
Doug Coleman 7b0a50e7d2 Squashed commit of the following:
commit 90deaafa9db083ecdb9e0e30ad3694317e616399
Merge: f392dfd 32cf7bb
Author: Doug Coleman <doug.coleman@gmail.com>
Date:   Tue Sep 21 00:33:37 2010 -0500

    Merge branch 'icmp-ping' of git://github.com/mrjbq7/factor into icmp-ping2

commit 32cf7bb0e0b876309bce248944dfeca243f02594
Author: John Benediktsson <mrjbq7@gmail.com>
Date:   Fri Sep 10 14:01:47 2010 -0700

    ping: Adding a simple IPv4 ping implementation.

commit da0c5ce7acf1407256c3ac2b98ac5b68858878c1
Author: John Benediktsson <mrjbq7@gmail.com>
Date:   Fri Sep 10 14:01:15 2010 -0700

    io.sockets.icmp: Adding ICMP support.

commit 60fdf7e7d995d63c11be87e8e1398f7bdd593833
Author: John Benediktsson <mrjbq7@gmail.com>
Date:   Fri Sep 10 14:00:48 2010 -0700

    io.sockets: Adding protocol support for sockets.

commit 2f130f1f9e0e2ea44d798beaad244a9c33b0d86a
Author: John Benediktsson <mrjbq7@gmail.com>
Date:   Fri Sep 10 14:00:28 2010 -0700

    Adding getprotobyname().
2010-09-21 11:15:33 -05:00
Joe Groff 3f13fc7099 unix.ffi: third argument of ioctl should be void*, not c-string (reported by ceninan) 2010-06-30 09:09:16 -07:00
Doug Coleman 317e793ef4 Fix all-users word by calling setpwent to rewind file 2010-06-23 10:25:08 -05:00
Doug Coleman 58de929a42 Fix a bug when calling all-groups twice. Add some users/groups utility words, unit tests, and docs. 2010-06-21 12:07:56 -05:00
Slava Pestov 78dcc5bc33 Move system word from unix.ffi to libc since its not Unix-specific 2010-06-02 02:59:56 -04:00
Joe Groff 65c3259761 "cdecl" -> cdecl 2010-03-31 19:20:35 -07:00
Joe Groff 4cfa1a6c77 rename current string-mangling "char*" to "c-string". char* is now just a boring old pointer to char 2010-02-23 11:42:02 -08:00
Doug Coleman 957f2d9ff6 Check if we're using ttys before starting curses, since initscr exits on error for some dumb reason 2010-02-21 23:38:18 -06:00
Doug Coleman 8d952277a2 Handle EINTR in a lot of cases where it wasn't handled before. Split off unix into unix.ffi and unix. 2010-01-22 12:59:24 -06:00