Commit Graph

307 Commits (2c67a5cd78e5dcffd7146e6fd0eb95f810a497e1)

Author SHA1 Message Date
John Benediktsson b27056c623 unix: use byte-vectors here. 2013-03-29 11:40:59 -07:00
Doug Coleman 8bca8573c5 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 cf2164e8e7 unix.stat.linux: stat-func 2013-03-23 22:48:57 -07:00
Doug Coleman 6e8a2e0a9c unix.stat: Rename stat. 2013-03-23 22:38:38 -07:00
Doug Coleman 0095775178 unix.statfs etc: Naming conflicts. 2013-03-23 22:38:38 -07:00
Doug Coleman 892f8bc38c unix: rename C function kevent. 2013-03-23 17:44:00 -07:00
Doug Coleman 1d34523bd6 unix.linux.proc: Older kernels don't have enough fields in /proc/pid/stat. Pad it. 2013-02-25 10:07:05 -08:00
Doug Coleman 9cbe4fec24 unix.linux.proc: Add some more /proc parsing. 2013-02-24 18:30:18 -08:00
Doug Coleman 7269664c85 unix.linux.proc: Refactor /proc parsing. Add generic to make pid/string and pid-string/string pairs into /proc/pid/pathname. 2013-02-24 18:30:18 -08:00
Doug Coleman 5e882b9422 unix.ffi: Add the man 2 signal() function call. 2013-02-01 11:36:18 -08:00
Doug Coleman fb0e7456ef unix.linux.proc: Add a parser for some of the /proc and /proc/[PID]/ files. 2013-02-01 11:36:18 -08:00
John Benediktsson 05312ef838 unix: adding truncate-file. 2012-10-25 21:51:08 -07:00
John Benediktsson 2b1aec75b4 unix: adding mkfifo. 2012-10-24 20:08:32 -07:00
John Benediktsson 68d591b4ec unix.ffi.macosx: can't use iovec here... 2012-10-24 20:08:20 -07:00
John Benediktsson 31c46e6f98 unix.ffi: adding sendfile. 2012-10-24 19:53:39 -07:00
John Benediktsson 6ccf60c9df unix.ffi: adding readv/writev. 2012-10-24 19:53:24 -07:00
John Benediktsson a85f718aa1 unix.ffi: adding "access". 2012-10-24 16:37:05 -07:00
John Benediktsson af341c686c unix.ffi: adding fileno. 2012-10-24 09:00:08 -07:00
John Benediktsson 2773f41724 unix.time: faster "0 make-timeval". 2012-08-01 14:31:18 -07:00
John Benediktsson e722324bac unix.ffi: adding some socket constants. 2012-05-29 10:45:41 -07:00
Doug Coleman 1280f4dfa2 unix.groups: Return an empty sequence if the user in 'user user-groups' doesn't exist. 2012-02-02 19:58:24 -08:00
Doug Coleman c282383adc unix.groups: Get the second parameter to getgrouplist from /etc/passwd. 2012-02-02 19:53:42 -08:00
John Benediktsson f221b7b396 unix.groups: 64 ought to be enough, right? 2012-02-02 19:41:39 -08:00
Joe Groff eee483654a use radix literals 2011-11-23 19:03:40 -08:00
Joe Groff cf1f0c2d27 unix.signals: documentation and metadata 2011-11-08 23:12:10 -08:00
Joe Groff afa0ed1f6e 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 37494b301b 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
Doug Coleman a3ceb95060 Fix bootstrap. Add missing using on io.serial.linux. Fixes #351. 2011-11-04 06:08:02 -07:00
Joe Groff 88dbe09c4c unix.ffi: add signal constants 2011-11-04 00:24:18 -07:00
Joe Groff 75cba3106a remove BSD,solaris,etc. misc platform support code 2011-11-02 17:13:51 -07:00
Doug Coleman be12f2b27d Make "foo.private" require load foo instead.
Move require from vocabs.loader to vocabs. Update everything.
Fixes #201.
2011-11-02 11:50:03 -07:00
Doug Coleman 1260d00739 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
Joe Groff d54de50dd6 unix.stat: bind to fstat 2011-10-17 21:23:07 -07:00
Slava Pestov 2d03de1f34 unix.*, io.directories.unix: remove unnecessary dependency on io.backend.unix 2011-09-01 22:31:45 -07:00
Slava Pestov f8c3e4de03 unix.linux.epoll: epoll_event is a packed struct! Damn... 2011-08-25 21:37:52 -07:00
Erik Charlebois 98b4a861ac epoll working on linux 2011-05-23 23:36:13 -04:00
Keita Haga e16aec05e5 unix.users: minor fixes in 'passwd' description 2011-01-04 21:51:51 +09:00
Slava Pestov 55fd15c45a Move <ref>, deref and little-endian? from alien.c-types to alien.data, remove <c-object> 2010-12-25 16:55:36 -08:00
Slava Pestov 65de3dd062 Clean up alien.c-types changes a little 2010-10-25 21:09:08 -07:00
Doug Coleman 657b490f69 Remove <uint> *uint and friends. Hopefully remove the last usages of these words 2010-10-25 15:54:42 -05:00
Doug Coleman 6510bdb1eb Remove usages of <void*> and *void* 2010-10-25 13:22:50 -05:00
Doug Coleman 40bdadcac4 Remove many uses of <int> and *int etc 2010-10-25 12:49:12 -05:00
Doug Coleman ace41a6d61 Fix bootstrap on mac by adding back the PF_INET constant 2010-10-09 16:53:54 -07:00
Slava Pestov 76dc59e563 unix.ffi.bsd: fix load errors 2010-10-09 15:16:14 -07:00
Slava Pestov c557a1c5ab unix.ffi.bsd: fix AF_INET6 constants on FreeBSD and OpenBSD 2010-10-09 15:04:49 -07:00
Doug Coleman e1a34c1caf Implement a raw port. Make ping only run on Windows and Mac because the other platforms require root privs. 2010-09-21 22:00:18 -05:00
Doug Coleman a58278d0a3 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 d294c9a513 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 d45926bda0 Fix using list 2010-06-23 10:27:17 -05:00
Doug Coleman ea8689efcf Fix all-users word by calling setpwent to rewind file 2010-06-23 10:25:08 -05:00