From marsijanin at gmail.com Wed Dec 1 11:38:32 2010 From: marsijanin at gmail.com (marsijanin) Date: Wed, 1 Dec 2010 14:38:32 +0300 Subject: [iolib-devel] IOLib merge requests Message-ID: Hi Stelian! On gitorious IOLib repo there are two merge requests: one add logging facility, and the other (which is mine) termios api support. The first one is four month old. I assumed, that it is because of nobody use gitorious web interface, so that merge requests are still unknown to you. Could you, please, tell us about you plans on that merge requests. wbr, Nikolay V. Razbegaev From zena.treep at gmail.com Thu Dec 16 22:30:15 2010 From: zena.treep at gmail.com (Heka Treep) Date: Fri, 17 Dec 2010 01:30:15 +0300 Subject: [iolib-devel] IOLib merge requests In-Reply-To: References: Message-ID: I think my request (about logging facility) is not clear. So, I attached two patches to this post. First adds a FFI for `sendfile' system call on Linux, and second adds support for `openlog', `syslog', `closelog' and `setlogmask' syscalls (also it include a simple `with-log' macro in the IOLIB.OS package). 2010/12/1, marsijanin : > Hi Stelian! > > On gitorious IOLib repo there are two merge requests: one add logging > facility, and the other (which is mine) termios api support. The first > one is four month old. I assumed, that it is because of nobody use > gitorious web interface, so that merge requests are still unknown to you. > > Could you, please, tell us about you plans on that merge requests. > > wbr, > > Nikolay V. Razbegaev > > _______________________________________________ > IOLib-devel mailing list > IOLib-devel at common-lisp.net > http://common-lisp.net/cgi-bin/mailman/listinfo/iolib-devel > -------------- next part -------------- A non-text attachment was scrubbed... Name: sendfile.patch Type: text/x-patch Size: 1294 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: syslog.patch Type: text/x-patch Size: 8500 bytes Desc: not available URL: From sionescu at common-lisp.net Fri Dec 24 10:00:07 2010 From: sionescu at common-lisp.net (Stelian Ionescu) Date: Fri, 24 Dec 2010 05:00:07 -0500 Subject: [iolib-devel] New patches: 23-Dec-2010 Message-ID: commit 5ee0a9158ac33d07c7f95b015bb391909606105e Author: Stelian Ionescu Date: Wed Dec 22 12:55:00 2010 +0100 Fix IOLIB.OS:CREATE-PROCESS to use lfp_spawn() and lfp_spawnp() src/os/create-process-unix.lisp | 182 ++++++++++++++++++++++++++++----------- src/os/ffi-functions-unix.lisp | 123 ++++++++++++++++++--------- src/os/ffi-types-unix.lisp | 22 +++-- src/os/os-unix.lisp | 30 ++++--- src/os/pkgdcl.lisp | 2 +- 5 files changed, 244 insertions(+), 115 deletions(-) commit 71fe656f1fca25eeee0def0c36b1e3c85a1cb3f6 Author: Stelian Ionescu Date: Tue Dec 21 02:21:33 2010 +0100 Remove use of "size-of-*" constants src/iolib.syscalls.asd | 1 - src/multiplex/backend-epoll.lisp | 6 +- src/multiplex/backend-kqueue.lisp | 4 +- src/multiplex/backend-poll.lisp | 8 ++-- src/multiplex/fd-wait.lisp | 2 +- src/os/pkgdcl.lisp | 2 +- src/sockets/address.lisp | 6 +- src/sockets/bsd.lisp | 2 +- src/sockets/common.lisp | 14 +++--- src/sockets/make-socket.lisp | 7 ++- src/sockets/pkgdcl.lisp | 4 +- src/sockets/socket-methods.lisp | 12 +++--- src/sockets/socket-options.lisp | 20 ++++---- src/syscalls/constants.lisp | 17 ------- src/syscalls/ffi-functions-unix.lisp | 6 +- src/syscalls/pkgdcl.lisp | 82 +++++++++++++++------------------ 16 files changed, 84 insertions(+), 109 deletions(-) commit 95129575bedd7dcbe46e17ad66575ea39f04db49 Author: Stelian Ionescu Date: Tue Dec 21 02:04:39 2010 +0100 Move SIZEOF to early.lisp, since the compile-time side-effects of DEFFOLDABLE are not guaranteed when used in the same file src/syscalls/early.lisp | 8 ++++++++ src/syscalls/ffi-functions-unix.lisp | 8 -------- 2 files changed, 8 insertions(+), 8 deletions(-) commit ca4478de2051db51b9a21f90452341211565e331 Author: Stelian Ionescu Date: Tue Dec 21 02:03:36 2010 +0100 Evaluate %DEFFOLDABLE at all times src/base/deffoldable.lisp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit da25372bd422fe08859acd7eb971ff3a8d5df693 Author: Stelian Ionescu Date: Tue Dec 21 01:50:37 2010 +0100 Compile ffi-functions-unix.lisp with SPEED src/syscalls/ffi-functions-unix.lisp | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) commit e4303335cbfed3b7da03aa86fe598c2687b92e64 Author: Stelian Ionescu Date: Tue Dec 21 01:49:48 2010 +0100 Inline BZERO src/syscalls/ffi-functions-unix.lisp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit a48130e3bddd178429f3d588e5c93c6dc09f83e6 Author: Stelian Ionescu Date: Tue Dec 21 01:49:34 2010 +0100 SBCL's SB-C:DEFKNOWN seems to be insufficient, use compiler-macro too in DEFFOLDABLE src/base/deffoldable.lisp | 19 +++++++++++++++---- src/syscalls/ffi-functions-unix.lisp | 2 +- 2 files changed, 16 insertions(+), 5 deletions(-) commit 3b7002d9cb7d10360cf9f9a885f98ce21275f6f1 Author: Stelian Ionescu Date: Tue Dec 21 01:27:55 2010 +0100 Improve DEFALIAS We need to manually specify the arglist of the aliased function for the moment src/base/defalias.lisp | 26 ++++++++++++++------------ src/base/pkgdcl.lisp | 5 +++++ src/syscalls/ffi-functions-unix.lisp | 2 +- 3 files changed, 20 insertions(+), 13 deletions(-) commit 0851cd98c005f7d5d34fdbc13d56cf7b01135919 Author: Stelian Ionescu Date: Tue Dec 21 00:23:43 2010 +0100 Add SIZEOF to IOLIB.SYSCALLS Make it an alias of CFFI:FOREIGN-TYPE-SIZE and declare it foldable src/syscalls/ffi-functions-unix.lisp | 9 +++++++++ src/syscalls/pkgdcl.lisp | 3 +++ 2 files changed, 12 insertions(+), 0 deletions(-) commit dda4af22b3adbf3843fdcf6a872611d4572ff4cd Author: Stelian Ionescu Date: Tue Dec 21 00:22:58 2010 +0100 Add CONSTANTP to IOLIB.BASE src/base/deffoldable.lisp | 6 ++++++ src/base/pkgdcl.lisp | 3 ++- 2 files changed, 8 insertions(+), 1 deletions(-) commit 48648abe57bf1930e46a9e3a9f715cc755a048c8 Author: Stelian Ionescu Date: Tue Dec 21 00:22:31 2010 +0100 More namespaces src/base/defalias.lisp | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) commit 6e34f8aa88c11a78689703a6cd31015ff567d18e Author: Stelian Ionescu Date: Mon Dec 20 05:02:33 2010 +0100 Add DEFALIAS and DEFFOLDABLE do IOLIB.BASE src/base/defalias.lisp | 43 +++++++++++++++++++++++++++++++++++++++++++ src/base/deffoldable.lisp | 27 +++++++++++++++++++++++++++ src/base/pkgdcl.lisp | 6 ++++++ src/iolib.base.asd | 2 ++ 4 files changed, 78 insertions(+), 0 deletions(-) commit 2786c67e616bf5b5f648da8c6f2bb4dc29325b83 Author: Stelian Ionescu Date: Mon Dec 20 04:36:56 2010 +0100 Another round of refactoring, remove system libfixposix and use LFP in IOLIB.SYSCALLS src/iolib.syscalls.asd | 4 +- src/libfixposix.asd | 19 - src/libfixposix/constants.lisp | 17 - src/libfixposix/ffi-functions.lisp | 109 ----- src/libfixposix/ffi-types.lisp | 138 ------- src/libfixposix/pkgdcl.lisp | 118 ------ src/os/ffi-types-unix.lisp | 2 - src/streams/gray/fd-mixin.lisp | 2 +- src/syscalls/constants.lisp | 17 + src/syscalls/ffi-functions-unix.lisp | 375 +++++++++--------- src/syscalls/ffi-types-unix.lisp | 628 ++++++++++++++++------------- src/syscalls/pkgdcl.lisp | 734 ++++++++++++++-------------------- tests/streams.lisp | 2 +- 13 files changed, 858 insertions(+), 1307 deletions(-) An updated tarball of IOLib's source can be downloaded here: http://common-lisp.net/project/iolib/files/snapshots/iolib-20101223.tar.gz Main repository: http://gitorious.org/iolib/iolib Backup 1: http://common-lisp.net/gitweb?p=projects/iolib/iolib.git Backup 2: http://repo.or.cz/w/iolib.git From dochang at gmail.com Sat Dec 25 19:28:57 2010 From: dochang at gmail.com (Desmond O. Chang) Date: Sun, 26 Dec 2010 03:28:57 +0800 Subject: [iolib-devel] FORK & EXECV in IOLib Message-ID: Hi all, I try to load cl-popen which depends on IOLib, but it's failed. CCL says FORK & EXECV are not exported from IOLIB.SYSCALLS, and they don't have function definitions. I've found that they have been removed. Is it a "bug" or "feature"? Should cl-popen define them by itself? Thanks, Des From sionescu at common-lisp.net Sun Dec 26 10:00:14 2010 From: sionescu at common-lisp.net (Stelian Ionescu) Date: Sun, 26 Dec 2010 05:00:14 -0500 Subject: [iolib-devel] New patches: 25-Dec-2010 Message-ID: commit 60b3d895b03d4980b165a95a7d9f75262fa695ac Author: Stelian Ionescu Date: Sat Dec 25 23:42:18 2010 +0100 RUN-PROGRAM: add keyword argument "stderr" Allow redirecting stderr onto stdout src/os/create-process-unix.lisp | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) commit b6919b97217b65f353eec430b71b06a1961bb356 Author: Stelian Ionescu Date: Sat Dec 25 23:30:44 2010 +0100 Style fixes src/os/create-process-unix.lisp | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 12ff73293891fa3da100fd3e2b8d4618071cc050 Author: Stelian Ionescu Date: Sat Dec 25 23:28:52 2010 +0100 Turn PROCESS-WAIT and PROCESS-KILL into methods src/os/create-process-unix.lisp | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 096e7ca03e42f7b5386187178eb5711f2e87153d Author: Stelian Ionescu Date: Sat Dec 25 23:28:20 2010 +0100 Make sure we don't call waitpid() twice for the same process src/os/create-process-unix.lisp | 18 ++++++++++++------ 1 files changed, 12 insertions(+), 6 deletions(-) commit f535e70c31b506ee4f9a6600e3b41209e83b521c Author: Stelian Ionescu Date: Sat Dec 25 23:07:38 2010 +0100 Fix RUN-PROGRAM: stdout and stderr need to be redirected to pipes src/os/create-process-unix.lisp | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) commit 13a9c6d6fa38b9dcaad973d60cba96be5cc7e30e Author: Stelian Ionescu Date: Sat Dec 25 23:07:15 2010 +0100 Fix REDIRECT-TO-PIPES: the wrong end of the pipe was being duplicated src/os/create-process-unix.lisp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 86f85dfdbd13fbf50afb70ffbe7020bd1f18969b Author: Stelian Ionescu Date: Sat Dec 25 22:29:28 2010 +0100 Add back FORK and EXECV to IOLIB.SYSCALLS src/syscalls/ffi-functions-unix.lisp | 6 ++++++ src/syscalls/pkgdcl.lisp | 2 ++ 2 files changed, 8 insertions(+), 0 deletions(-) commit 85e55deadf71fba947791cb2874a847a5ea61fbd Author: Stelian Ionescu Date: Sat Dec 25 22:24:42 2010 +0100 Remove debug declarations src/os/create-process-unix.lisp | 5 ----- 1 files changed, 0 insertions(+), 5 deletions(-) commit 78805a80d824e60da3c164bfd87a91c044b27da0 Author: Stelian Ionescu Date: Sat Dec 25 22:22:22 2010 +0100 PROCESS-KILL: make the signal optional(default SIGTERM) and allow keywords too src/os/create-process-unix.lisp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 268957a06d18b86e2a7888f43169788e17c63321 Author: Stelian Ionescu Date: Sat Dec 25 22:21:26 2010 +0100 PROCESS-WAIT: return only the return status src/os/create-process-unix.lisp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 45dbc66fe787e10ecf692284422cfb250a43c9f5 Author: Stelian Ionescu Date: Sat Dec 25 22:20:05 2010 +0100 Put signal names into CFFI enum SIGNAL src/syscalls/ffi-functions-unix.lisp | 2 +- src/syscalls/ffi-types-unix.lisp | 77 +++++++++++++++++----------------- src/syscalls/pkgdcl.lisp | 1 + 3 files changed, 40 insertions(+), 40 deletions(-) commit 3a6ac90a478f22a9f545c4b69cbc43db4ea17ce8 Author: Stelian Ionescu Date: Sat Dec 25 22:19:41 2010 +0100 Fix the groveler to allow the use of CL symbols On recent SBCLs the names of symbols in the CL package are BASE-STRINGs which cannot be printed readably, so we convert those into extended strings before printing src/grovel/grovel.lisp | 24 ++++++++++++++---------- 1 files changed, 14 insertions(+), 10 deletions(-) commit 562be28b58e9bc3e997b2bde7c8a1cf935798055 Author: Stelian Ionescu Date: Sat Dec 25 20:26:40 2010 +0100 Fix list of exported signals src/syscalls/ffi-types-unix.lisp | 65 ++++++++++++++++++++++--------------- src/syscalls/pkgdcl.lisp | 39 ++++++++++++++-------- 2 files changed, 64 insertions(+), 40 deletions(-) commit 82f87bc952c485eb7ce8773f036b6781cc924aa9 Author: Stelian Ionescu Date: Sat Dec 25 18:43:30 2010 +0100 Fix comment src/os/create-process-unix.lisp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 879e9b0cb749184e6b4fbe2ee6104c8791a7621f Author: Stelian Ionescu Date: Sat Dec 25 18:43:22 2010 +0100 CREATE-PROCESS: always use /bin/sh when receiving :shell as exec name src/os/create-process-unix.lisp | 7 ++----- 1 files changed, 2 insertions(+), 5 deletions(-) commit 3741d13b02e9c49a18520721b0ccf6e021b14575 Author: Stelian Ionescu Date: Sat Dec 25 18:11:19 2010 +0100 Implement WIFEXITED & all other macros for disecting a process's output status src/syscalls/ffi-functions-unix.lisp | 24 ++++++++++++++++++++++++ 1 files changed, 24 insertions(+), 0 deletions(-) commit ad875a5fd16892ff8e92e7ddba5cd87b125eb740 Author: Stelian Ionescu Date: Sat Dec 25 17:59:30 2010 +0100 Refactor CREATE-PROCESS internals src/os/create-process-unix.lisp | 25 +++++++++++++++---------- 1 files changed, 15 insertions(+), 10 deletions(-) commit b1befc4caf5ea4c1fc44596080b1529c40081736 Author: Stelian Ionescu Date: Sat Dec 25 11:12:58 2010 +0100 Add dependency on idna to iolib.sockets.asd src/iolib.sockets.asd | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit 6638b7a524501f82e4b8068cb553d5729389ce68 Author: Stelian Ionescu Date: Sat Dec 25 11:09:53 2010 +0100 Add support for IDN For IDN encoding, we use https://github.com/antifuchs/idna CHANGES | 1 + src/sockets/dns/lookup.lisp | 2 +- 2 files changed, 2 insertions(+), 1 deletions(-) An updated tarball of IOLib's source can be downloaded here: http://common-lisp.net/project/iolib/files/snapshots/iolib-20101225.tar.gz Main repository: http://gitorious.org/iolib/iolib Backup 1: http://common-lisp.net/gitweb?p=projects/iolib/iolib.git Backup 2: http://repo.or.cz/w/iolib.git From sionescu at common-lisp.net Mon Dec 27 10:00:09 2010 From: sionescu at common-lisp.net (Stelian Ionescu) Date: Mon, 27 Dec 2010 05:00:09 -0500 Subject: [iolib-devel] New patches: 26-Dec-2010 Message-ID: commit 756e94e1a5c307eea8ecd81840be39acdf0aa293 Author: Stelian Ionescu Date: Sun Dec 26 21:39:21 2010 +0100 Update timer-related code from SBCL src/multiplex/queue.lisp | 41 ++++++++++++++++++++++------------------- src/multiplex/scheduler.lisp | 4 ++-- 2 files changed, 24 insertions(+), 21 deletions(-) commit 218d5e35daca8f818810bd0ca9908c89b2de59f2 Author: Stelian Ionescu Date: Sun Dec 26 18:58:48 2010 +0100 Add IOLIB.SYSCALLS:SENDFILE src/syscalls/ffi-functions-unix.lisp | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) An updated tarball of IOLib's source can be downloaded here: http://common-lisp.net/project/iolib/files/snapshots/iolib-20101226.tar.gz Main repository: http://gitorious.org/iolib/iolib Backup 1: http://common-lisp.net/gitweb?p=projects/iolib/iolib.git Backup 2: http://repo.or.cz/w/iolib.git