projects/iolib/iolib.git
2 years agomultiplex/backend-iocp added hlavaty-win
Tomas Hlavaty [Thu, 19 May 2011 14:04:45 +0000] 
multiplex/backend-iocp added

2 years agowinapi added
Tomas Hlavaty [Thu, 19 May 2011 13:54:47 +0000] 
winapi added

2 years agofix iolib.syscalls.asd
Tomas Hlavaty [Thu, 19 May 2011 13:54:07 +0000] 
fix iolib.syscalls.asd

2 years agoMark SIGPOLL as optional because it's not present on OSX
Stelian Ionescu [Mon, 9 May 2011 17:05:01 +0000] 
Mark SIGPOLL as optional because it's not present on OSX

2 years agoFix typo
Stelian Ionescu [Mon, 9 May 2011 17:04:13 +0000] 
Fix typo

2 years agoRe-export GET-MONOTONIC-TIME from IOLIB.OS
Stelian Ionescu [Tue, 3 May 2011 16:16:46 +0000] 
Re-export GET-MONOTONIC-TIME from IOLIB.OS

2 years agoCosmetic fix
Stelian Ionescu [Tue, 3 May 2011 13:44:47 +0000] 
Cosmetic fix

2 years agoFix test LOOKUP-SERVICE.2: SunOS doesn't have ssh/udp, use domain instead
Stelian Ionescu [Tue, 15 Mar 2011 17:05:57 +0000] 
Fix test LOOKUP-SERVICE.2: SunOS doesn't have ssh/udp, use domain instead

2 years agoGrammatical fix
Stelian Ionescu [Sun, 13 Mar 2011 19:28:25 +0000] 
Grammatical fix

2 years agoRemove unused variables
Stelian Ionescu [Sat, 12 Mar 2011 01:19:36 +0000] 
Remove unused variables

2 years agoCosmetic changes
Stelian Ionescu [Sat, 12 Mar 2011 01:15:16 +0000] 
Cosmetic changes

2 years agoFix printing of closed streams
Stelian Ionescu [Tue, 22 Feb 2011 14:28:06 +0000] 
Fix printing of closed streams

2 years agoSOCKET-CONNECTED-P: ignore EINVAL as well
Stelian Ionescu [Tue, 15 Feb 2011 23:51:38 +0000] 
SOCKET-CONNECTED-P: ignore EINVAL as well

On OSX, getpeername(2) returns EINVAL on disconnected sockets, so
ignore EINVAL too
Thanks to Greg Pfeil for reporting this problem

2 years agoFix typo: lfp_stopsig -> lfp_wstopsig
Stelian Ionescu [Thu, 3 Feb 2011 20:29:21 +0000] 
Fix typo: lfp_stopsig -> lfp_wstopsig

2 years agoWITH-C-ENVIRONMENT: initialize pointer array to NULLs
Stelian Ionescu [Tue, 1 Feb 2011 21:02:24 +0000] 
WITH-C-ENVIRONMENT: initialize pointer array to NULLs

2 years agoALLOCATE-ENV: the number of elements is HASH-TABLE-COUNT not HASH-TABLE-SIZE
Stelian Ionescu [Tue, 1 Feb 2011 15:48:20 +0000] 
ALLOCATE-ENV: the number of elements is HASH-TABLE-COUNT not HASH-TABLE-SIZE

2 years agoWITH-ARGV: initialized pointer array to NULLs
Stelian Ionescu [Tue, 1 Feb 2011 15:46:35 +0000] 
WITH-ARGV: initialized pointer array to NULLs

2 years agoPROCESS-STATUS: return translated status also when the process has finished
Stelian Ionescu [Sat, 29 Jan 2011 11:06:40 +0000] 
PROCESS-STATUS: return translated status also when the process has finished

2 years agoMerge PROCESS-WAIT into PROCESS-STATUS, add PROCESS-ACTIVEP
Stelian Ionescu [Fri, 28 Jan 2011 16:16:27 +0000] 
Merge PROCESS-WAIT into PROCESS-STATUS, add PROCESS-ACTIVEP

Also use a dedicated stream type for processes, which handles EIO as end-of-file

2 years agoFix printing of DUAL-CHANNEL-GRAY-STREAM instances
Stelian Ionescu [Fri, 28 Jan 2011 16:13:00 +0000] 
Fix printing of DUAL-CHANNEL-GRAY-STREAM instances

Print the actual type not "DUAL-CHANNEL-GRAY-STREAM", as the class may
be a subclass of DUAL-CHANNEL-GRAY-STREAM

2 years agoKeep standard streams unbound in a PROCESS instance if not connected
Stelian Ionescu [Thu, 27 Jan 2011 16:07:58 +0000] 
Keep standard streams unbound in a PROCESS instance if not connected

Using NIL instead causes undesired effects with READ-LINE:
(read-line (process-stdout p)) would use *standard-input*

2 years agoAdd keyword arg EXTERNAL-FORMAT to CREATE-PROCESS and RUN-PROGRAM
Stelian Ionescu [Wed, 26 Jan 2011 19:48:30 +0000] 
Add keyword arg EXTERNAL-FORMAT to CREATE-PROCESS and RUN-PROGRAM

2 years agoCREATE-PROCESS: update doc
Stelian Ionescu [Tue, 25 Jan 2011 22:23:43 +0000] 
CREATE-PROCESS: update doc

2 years agoAdd type BOOLEAN and its constructor to IOLIB.CL
Stelian Ionescu [Tue, 25 Jan 2011 22:21:32 +0000] 
Add type BOOLEAN and its constructor to IOLIB.CL

2 years agoMove use of WITH-PTY inside WITH-REDIRECTIONS
Stelian Ionescu [Tue, 25 Jan 2011 22:16:12 +0000] 
Move use of WITH-PTY inside WITH-REDIRECTIONS

2 years agoCREATE-PROCESS: add support for PTYs
David Lichteblau [Tue, 25 Jan 2011 19:19:07 +0000] 
CREATE-PROCESS: add support for PTYs

Add a new keyword argument NEW-SESSION to CREATE-PROCESS and allows
:PTY as value of :STDIN, :STDOUT or :STDERR in which case a new PTY is
allocated for the process and used as its controlling TTY

2 years agoWrap lfp_openpt() instead of posix_openpt() and lfp_ptsname() instead of ptsname()
Stelian Ionescu [Tue, 25 Jan 2011 19:17:29 +0000] 
Wrap lfp_openpt() instead of posix_openpt() and lfp_ptsname() instead of ptsname()

2 years agoBetter WITH-LFP-SPAWN-ARGUMENTS
Stelian Ionescu [Sat, 22 Jan 2011 23:02:11 +0000] 
Better WITH-LFP-SPAWN-ARGUMENTS

2 years agoRemove fork of SPLIT-SEQUENCE and add a dependency on the external one
Stelian Ionescu [Wed, 19 Jan 2011 16:31:53 +0000] 
Remove fork of SPLIT-SEQUENCE and add a dependency on the external one

2 years agoStyle fix
Stelian Ionescu [Fri, 14 Jan 2011 17:35:10 +0000] 
Style fix

2 years agoRUN-PROGRAM: redirect STDERR to a pipe by default
Stelian Ionescu [Fri, 14 Jan 2011 00:25:43 +0000] 
RUN-PROGRAM: redirect STDERR to a pipe by default

2 years agoRUN-PROGRAM: close the standard input
Stelian Ionescu [Fri, 14 Jan 2011 00:18:34 +0000] 
RUN-PROGRAM: close the standard input

2 years agoCREATE-PROCESS: redirect standard descriptors to pipes by default
Stelian Ionescu [Fri, 14 Jan 2011 00:18:26 +0000] 
CREATE-PROCESS: redirect standard descriptors to pipes by default

2 years agoCREATE-PROCESS: remove the possibility of using :STDOUT as value of keyarg STDERR
Stelian Ionescu [Fri, 14 Jan 2011 00:14:17 +0000] 
CREATE-PROCESS: remove the possibility of using :STDOUT as value of keyarg STDERR

It's better to use the constant +STDOUT+ and not have :STDOUT as
special case

2 years agoReturn processed exit status from PROCESS-WAIT instead of the raw status
Stelian Ionescu [Thu, 13 Jan 2011 16:19:42 +0000] 
Return processed exit status from PROCESS-WAIT instead of the raw status

PROCESS-WAIT now returns the exit code if the program exited normally,
otherwise two values when the program was terminated by a signal:
the signal as keyword and a boolean indicating whether there was a coredump

2 years agoAdd and export ISYS:WTERMSIG*
Stelian Ionescu [Thu, 13 Jan 2011 16:15:34 +0000] 
Add and export ISYS:WTERMSIG*

ISYS:WTERMSIG* returns the signal as keyword

2 years agoFix WITH-C-ENVIRONMENT: erroneous use of HASH-TABLE-SIZE instead of HASH-TABLE-COUNT
Stelian Ionescu [Thu, 13 Jan 2011 12:13:11 +0000] 
Fix WITH-C-ENVIRONMENT: erroneous use of HASH-TABLE-SIZE instead of HASH-TABLE-COUNT

2 years agoReturn process object from PROCESS-KILL
Stelian Ionescu [Wed, 12 Jan 2011 01:24:45 +0000] 
Return process object from PROCESS-KILL

2 years agoMinor change in CREATE-PROCESS
Stelian Ionescu [Wed, 12 Jan 2011 01:12:33 +0000] 
Minor change in CREATE-PROCESS

2 years agoRemove keyarg SEARCH of CREATE-PROCESS and always use lfp_spawnp()
Stelian Ionescu [Wed, 12 Jan 2011 01:03:21 +0000] 
Remove keyarg SEARCH of CREATE-PROCESS and always use lfp_spawnp()

2 years agoRUN-PROGRAM's "environment" keyarg now defaults to T, just like CREATE-PROCESS
Stelian Ionescu [Wed, 12 Jan 2011 00:56:20 +0000] 
RUN-PROGRAM's "environment" keyarg now defaults to T, just like CREATE-PROCESS

2 years agoCoalesce parameters "program" and "arguments" of CREATE-PROCESS and RUN-PROGRAM
Stelian Ionescu [Tue, 11 Jan 2011 19:28:42 +0000] 
Coalesce parameters "program" and "arguments" of CREATE-PROCESS and RUN-PROGRAM

2 years agoMove a few functions
Stelian Ionescu [Tue, 11 Jan 2011 13:37:57 +0000] 
Move a few functions

2 years agoAdd comment
Stelian Ionescu [Mon, 3 Jan 2011 20:26:27 +0000] 
Add comment

2 years agoRemove last argument of isys:select, following LFP
Stelian Ionescu [Mon, 3 Jan 2011 14:21:37 +0000] 
Remove last argument of isys:select, following LFP

2 years agoCREATE-PROCESS: allow setting the current directory of the new process
Stelian Ionescu [Sun, 2 Jan 2011 00:04:13 +0000] 
CREATE-PROCESS: allow setting the current directory of the new process

2 years agoRemove unused lfp_spawnattr_* functions
Stelian Ionescu [Sun, 2 Jan 2011 00:00:20 +0000] 
Remove unused lfp_spawnattr_* functions

2 years agoImplement lfp_spawn() attributes setuid, setgid and resetids in create-process
Stelian Ionescu [Sat, 1 Jan 2011 23:40:31 +0000] 
Implement lfp_spawn() attributes setuid, setgid and resetids in create-process

2 years agoAdd support for syslog(3)
Heka Treep [Sat, 1 Jan 2011 22:41:55 +0000] 
Add support for syslog(3)

2 years agoFix comments
Stelian Ionescu [Sat, 1 Jan 2011 22:30:41 +0000] 
Fix comments

2 years agoFix another include
Stelian Ionescu [Sat, 1 Jan 2011 18:36:58 +0000] 
Fix another include

2 years agoFix includes
Stelian Ionescu [Sat, 1 Jan 2011 17:49:54 +0000] 
Fix includes

2 years agoUpdate timer-related code from SBCL
Stelian Ionescu [Sun, 26 Dec 2010 20:39:21 +0000] 
Update timer-related code from SBCL

2 years agoAdd IOLIB.SYSCALLS:SENDFILE
Stelian Ionescu [Sun, 26 Dec 2010 17:58:48 +0000] 
Add IOLIB.SYSCALLS:SENDFILE

2 years agoRUN-PROGRAM: add keyword argument "stderr"
Stelian Ionescu [Sat, 25 Dec 2010 22:42:18 +0000] 
RUN-PROGRAM: add keyword argument "stderr"

Allow redirecting stderr onto stdout

2 years agoStyle fixes
Stelian Ionescu [Sat, 25 Dec 2010 22:30:44 +0000] 
Style fixes

2 years agoTurn PROCESS-WAIT and PROCESS-KILL into methods
Stelian Ionescu [Sat, 25 Dec 2010 22:28:52 +0000] 
Turn PROCESS-WAIT and PROCESS-KILL into methods

2 years agoMake sure we don't call waitpid() twice for the same process
Stelian Ionescu [Sat, 25 Dec 2010 22:28:20 +0000] 
Make sure we don't call waitpid() twice for the same process

2 years agoFix RUN-PROGRAM: stdout and stderr need to be redirected to pipes
Stelian Ionescu [Sat, 25 Dec 2010 22:07:38 +0000] 
Fix RUN-PROGRAM: stdout and stderr need to be redirected to pipes

2 years agoFix REDIRECT-TO-PIPES: the wrong end of the pipe was being duplicated
Stelian Ionescu [Sat, 25 Dec 2010 22:07:15 +0000] 
Fix REDIRECT-TO-PIPES: the wrong end of the pipe was being duplicated

2 years agoAdd back FORK and EXECV to IOLIB.SYSCALLS
Stelian Ionescu [Sat, 25 Dec 2010 21:29:28 +0000] 
Add back FORK and EXECV to IOLIB.SYSCALLS

2 years agoRemove debug declarations
Stelian Ionescu [Sat, 25 Dec 2010 21:24:42 +0000] 
Remove debug declarations

2 years agoPROCESS-KILL: make the signal optional(default SIGTERM) and allow keywords too
Stelian Ionescu [Sat, 25 Dec 2010 21:22:22 +0000] 
PROCESS-KILL: make the signal optional(default SIGTERM) and allow keywords too

2 years agoPROCESS-WAIT: return only the return status
Stelian Ionescu [Sat, 25 Dec 2010 21:21:26 +0000] 
PROCESS-WAIT: return only the return status

2 years agoPut signal names into CFFI enum SIGNAL
Stelian Ionescu [Sat, 25 Dec 2010 21:20:05 +0000] 
Put signal names into CFFI enum SIGNAL

2 years agoFix the groveler to allow the use of CL symbols
Stelian Ionescu [Sat, 25 Dec 2010 21:19:41 +0000] 
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

2 years agoFix list of exported signals
Stelian Ionescu [Sat, 25 Dec 2010 19:26:40 +0000] 
Fix list of exported signals

2 years agoFix comment
Stelian Ionescu [Sat, 25 Dec 2010 17:43:30 +0000] 
Fix comment

2 years agoCREATE-PROCESS: always use /bin/sh when receiving :shell as exec name
Stelian Ionescu [Sat, 25 Dec 2010 17:43:22 +0000] 
CREATE-PROCESS: always use /bin/sh when receiving :shell as exec name

2 years agoImplement WIFEXITED & all other macros for disecting a process's output status
Stelian Ionescu [Sat, 25 Dec 2010 17:11:19 +0000] 
Implement WIFEXITED & all other macros for disecting a process's output status

2 years agoRefactor CREATE-PROCESS internals
Stelian Ionescu [Sat, 25 Dec 2010 16:59:30 +0000] 
Refactor CREATE-PROCESS internals

2 years agoAdd dependency on idna to iolib.sockets.asd
Stelian Ionescu [Sat, 25 Dec 2010 10:12:58 +0000] 
Add dependency on idna to iolib.sockets.asd

2 years agoAdd support for IDN
Stelian Ionescu [Sat, 25 Dec 2010 10:09:53 +0000] 
Add support for IDN

For IDN encoding, we use https://github.com/antifuchs/idna

2 years agoFix IOLIB.OS:CREATE-PROCESS to use lfp_spawn() and lfp_spawnp()
Stelian Ionescu [Wed, 22 Dec 2010 11:55:00 +0000] 
Fix IOLIB.OS:CREATE-PROCESS to use lfp_spawn() and lfp_spawnp()

2 years agoRemove use of "size-of-*" constants
Stelian Ionescu [Tue, 21 Dec 2010 01:21:33 +0000] 
Remove use of "size-of-*" constants

2 years agoMove SIZEOF to early.lisp, since the compile-time side-effects of DEFFOLDABLE are...
Stelian Ionescu [Tue, 21 Dec 2010 01:04:39 +0000] 
Move SIZEOF to early.lisp, since the compile-time side-effects of DEFFOLDABLE are not guaranteed when used in the same file

2 years agoEvaluate %DEFFOLDABLE at all times
Stelian Ionescu [Tue, 21 Dec 2010 01:03:36 +0000] 
Evaluate %DEFFOLDABLE at all times

2 years agoCompile ffi-functions-unix.lisp with SPEED
Stelian Ionescu [Tue, 21 Dec 2010 00:50:37 +0000] 
Compile ffi-functions-unix.lisp with SPEED

2 years agoInline BZERO
Stelian Ionescu [Tue, 21 Dec 2010 00:49:48 +0000] 
Inline BZERO

2 years agoSBCL's SB-C:DEFKNOWN seems to be insufficient, use compiler-macro too in DEFFOLDABLE
Stelian Ionescu [Tue, 21 Dec 2010 00:49:34 +0000] 
SBCL's SB-C:DEFKNOWN seems to be insufficient, use compiler-macro too in DEFFOLDABLE

2 years agoImprove DEFALIAS
Stelian Ionescu [Tue, 21 Dec 2010 00:27:55 +0000] 
Improve DEFALIAS

We need to manually specify the arglist of the aliased function for
the moment

2 years agoAdd SIZEOF to IOLIB.SYSCALLS
Stelian Ionescu [Mon, 20 Dec 2010 23:23:43 +0000] 
Add SIZEOF to IOLIB.SYSCALLS

Make it an alias of CFFI:FOREIGN-TYPE-SIZE and declare it foldable

2 years agoAdd CONSTANTP to IOLIB.BASE
Stelian Ionescu [Mon, 20 Dec 2010 23:22:58 +0000] 
Add CONSTANTP to IOLIB.BASE

2 years agoMore namespaces
Stelian Ionescu [Mon, 20 Dec 2010 23:22:31 +0000] 
More namespaces

2 years agoAdd DEFALIAS and DEFFOLDABLE do IOLIB.BASE
Stelian Ionescu [Mon, 20 Dec 2010 04:02:33 +0000] 
Add DEFALIAS and DEFFOLDABLE do IOLIB.BASE

2 years agoAnother round of refactoring, remove system libfixposix and use LFP in IOLIB.SYSCALLS
Stelian Ionescu [Mon, 20 Dec 2010 03:36:56 +0000] 
Another round of refactoring, remove system libfixposix and use LFP in IOLIB.SYSCALLS

2 years agoEnsure that REQUIREs are loaded before ASDF:LOAD-SOURCE-OP too
Stelian Ionescu [Tue, 16 Nov 2010 22:48:55 +0000] 
Ensure that REQUIREs are loaded before ASDF:LOAD-SOURCE-OP too

2 years agoStyle fixes
Stelian Ionescu [Tue, 16 Nov 2010 14:09:07 +0000] 
Style fixes

2 years agoRemove obsolete code
Stelian Ionescu [Tue, 16 Nov 2010 00:58:39 +0000] 
Remove obsolete code

2 years agoAdd TFB's conduits, IOLIB.CL and IOLIB.CONF, shuffle some symbols
Stelian Ionescu [Tue, 16 Nov 2010 00:56:58 +0000] 
Add TFB's conduits, IOLIB.CL and IOLIB.CONF, shuffle some symbols

2 years agoDon't bind {LOAD,COMPILE}-{PRINT,VERBOSE} to NIL inconditionally.
Stelian Ionescu [Mon, 15 Nov 2010 22:11:35 +0000] 
Don't bind {LOAD,COMPILE}-{PRINT,VERBOSE} to NIL inconditionally.

Deciding upon the compilation verbosity should be up to the
compilation environment, no the code.

2 years agoMuffle SB-INT:PACKAGE-AT-VARIANCE too, also during ASDF:LOAD-OP
Stelian Ionescu [Mon, 15 Nov 2010 22:02:15 +0000] 
Muffle SB-INT:PACKAGE-AT-VARIANCE too, also during ASDF:LOAD-OP

2 years agoFix loading libfixposix, now it works on Darwin too
Stelian Ionescu [Tue, 9 Nov 2010 22:47:43 +0000] 
Fix loading libfixposix, now it works on Darwin too

2 years agoFix last commit
Stelian Ionescu [Mon, 8 Nov 2010 08:12:28 +0000] 
Fix last commit

2 years agoAdd fix for Scieneer
Stelian Ionescu [Sun, 7 Nov 2010 07:50:35 +0000] 
Add fix for Scieneer

2 years agoFix groveler for Clisp
Stelian Ionescu [Sat, 6 Nov 2010 18:40:06 +0000] 
Fix groveler for Clisp

2 years agoMuffle groveler files too
Stelian Ionescu [Fri, 5 Nov 2010 20:40:41 +0000] 
Muffle groveler files too

2 years agoAdd system IOLIB.ASDF
Stelian Ionescu [Fri, 5 Nov 2010 20:19:52 +0000] 
Add system IOLIB.ASDF

2 years agoSet {COMPILE,LOAD}-VERBOSE to T when compiling IOLIB-SOURCE-FILEs
Stelian Ionescu [Fri, 5 Nov 2010 20:13:44 +0000] 
Set {COMPILE,LOAD}-VERBOSE to T when compiling IOLIB-SOURCE-FILEs

2 years agolfp_cmsg_align() no longer exists
Stelian Ionescu [Fri, 5 Nov 2010 19:41:47 +0000] 
lfp_cmsg_align() no longer exists