projects/xcvb/iolib.git
8 months agoAdd SRV record support master
Pixie [Sat, 25 Aug 2012 03:47:53 +0000] 
Add SRV record support

9 months agoMAKE-SOCKET-PAIR: don't duplicate newly-created descriptors
Stelian Ionescu [Sat, 18 Aug 2012 16:38:26 +0000] 
MAKE-SOCKET-PAIR: don't duplicate newly-created descriptors

9 months agoAdd keyarg DUP to MAKE-SOCKET-FROM-FD
Stelian Ionescu [Sat, 18 Aug 2012 16:37:15 +0000] 
Add keyarg DUP to MAKE-SOCKET-FROM-FD

9 months agoStream tests: create the test directory at runtime, not at fasl load-time
Stelian Ionescu [Sun, 29 Jul 2012 15:31:51 +0000] 
Stream tests: create the test directory at runtime, not at fasl load-time

9 months agoRemove event-loop exit timer after timeout
Eric Sessoms [Wed, 25 Jul 2012 12:50:10 +0000] 
Remove event-loop exit timer after timeout

10 months agoFix implementation of OPEN-STREAM-P and CLOSE for TRIVIAL-GRAY-STREAM-MIXIN
Stelian Ionescu [Wed, 4 Jul 2012 16:20:05 +0000] 
Fix implementation of OPEN-STREAM-P and CLOSE for TRIVIAL-GRAY-STREAM-MIXIN

11 months agoEPOLL-MULTIPLEXER: allocate an array large enough to hold events for all FDs
Stelian Ionescu [Wed, 13 Jun 2012 16:28:39 +0000] 
EPOLL-MULTIPLEXER: allocate an array large enough to hold events for all FDs

11 months agoFix GET-FD-LIMIT to return a reasonable(64K) FD limit
Stelian Ionescu [Wed, 13 Jun 2012 16:26:49 +0000] 
Fix GET-FD-LIMIT to return a reasonable(64K) FD limit

11 months agoIOLIB.MULTIPLEX: Add write handler throttling
Stelian Ionescu [Tue, 5 Jun 2012 14:28:00 +0000] 
IOLIB.MULTIPLEX: Add write handler throttling

11 months agoAdd keyword arg PTY to CREATE-PROCESS
Stelian Ionescu [Wed, 13 Jun 2012 15:47:46 +0000] 
Add keyword arg PTY to CREATE-PROCESS

It allows specifying that the sub-process must have a different
control TTY even if stdin/stdout/stderr are pipes.
Add slot PTY to class PROCESS to allow I/O in the latter case.

11 months agoFix lfp-spawnattr-setctty: the second argument is a string
Stelian Ionescu [Wed, 13 Jun 2012 15:42:37 +0000] 
Fix lfp-spawnattr-setctty: the second argument is a string

11 months agoFix dependency of dynamic-buffer.lisp
Stelian Ionescu [Fri, 8 Jun 2012 13:39:53 +0000] 
Fix dependency of dynamic-buffer.lisp

11 months agoRUN-PROGRAM: allow full range of options for STDOUT redirection
Stelian Ionescu [Wed, 30 May 2012 22:31:46 +0000] 
RUN-PROGRAM: allow full range of options for STDOUT redirection

11 months agoRUN-PROGRAM: a null EXTERNAL-FORMAT will make it return STDOUT and STDERR as octet...
Stelian Ionescu [Wed, 30 May 2012 22:31:04 +0000] 
RUN-PROGRAM: a null EXTERNAL-FORMAT will make it return STDOUT and STDERR as octet arrays

11 months agoAdd vector bounds to WRITE-VECTOR, rename GROWTH-THRESHOLD to GROWTH-SIZE
Stelian Ionescu [Wed, 30 May 2012 22:27:38 +0000] 
Add vector bounds to WRITE-VECTOR, rename GROWTH-THRESHOLD to GROWTH-SIZE

11 months agoAdd initarg for GROWTH-THRESHOLD slot of DYNAMIC-BUFFER
Stelian Ionescu [Wed, 30 May 2012 21:51:41 +0000] 
Add initarg for GROWTH-THRESHOLD slot of DYNAMIC-BUFFER

11 months agoMove DYNAMIC-BUFFER to IOLIB.BASE
Stelian Ionescu [Wed, 30 May 2012 21:43:02 +0000] 
Move DYNAMIC-BUFFER to IOLIB.BASE

11 months agoAllow specifying a growth threshold when creating a dynamic buffer
Stelian Ionescu [Wed, 30 May 2012 21:19:43 +0000] 
Allow specifying a growth threshold when creating a dynamic buffer

11 months agoFix dependency in iolib.sockets.asd
Stelian Ionescu [Wed, 30 May 2012 21:19:00 +0000] 
Fix dependency in iolib.sockets.asd

12 months agoEliminate finalizers.
Stelian Ionescu [Fri, 11 May 2012 22:16:46 +0000] 
Eliminate finalizers.

12 months agoConditionalize -m<arch> flag on ISA features
David Lichteblau [Fri, 27 Apr 2012 12:34:45 +0000] 
Conditionalize -m<arch> flag on ISA features

13 months agoUse DEFGENERIC for PROCESS-STATUS, PROCESS-STATUS and PROCESS-STATUS
Stelian Ionescu [Mon, 16 Apr 2012 12:00:04 +0000] 
Use DEFGENERIC for PROCESS-STATUS, PROCESS-STATUS and PROCESS-STATUS

13 months agoFix LOOKUP-INTERFACE
Stelian Ionescu [Mon, 16 Apr 2012 11:59:30 +0000] 
Fix LOOKUP-INTERFACE

13 months agoFix docstring of LOOKUP-INTERFACE
Stelian Ionescu [Mon, 16 Apr 2012 11:58:50 +0000] 
Fix docstring of LOOKUP-INTERFACE

13 months agoSpecify syscall name in interface lookup functions
Stelian Ionescu [Mon, 16 Apr 2012 11:58:13 +0000] 
Specify syscall name in interface lookup functions

13 months agoFix LIST-NETWORK-INTERFACES
Stelian Ionescu [Mon, 16 Apr 2012 11:57:40 +0000] 
Fix LIST-NETWORK-INTERFACES

13 months agoFix indentation
Stelian Ionescu [Mon, 16 Apr 2012 11:56:54 +0000] 
Fix indentation

13 months agoAdd missing dependency to base-sockets.lisp
Stelian Ionescu [Thu, 12 Apr 2012 13:29:41 +0000] 
Add missing dependency to base-sockets.lisp

13 months agoFix splicing of declarations in generated function
Stelian Ionescu [Thu, 12 Apr 2012 13:29:26 +0000] 
Fix splicing of declarations in generated function

13 months agoGroveler: typedef structs and unions
Stelian Ionescu [Thu, 12 Apr 2012 12:46:53 +0000] 
Groveler: typedef structs and unions

13 months agoFix conduits: CL:FIND-PACKAGE takes a package designator
Stelian Ionescu [Thu, 12 Apr 2012 12:46:31 +0000] 
Fix conduits: CL:FIND-PACKAGE takes a package designator

13 months agoFix literal readers
Stelian Ionescu [Thu, 12 Apr 2012 12:20:33 +0000] 
Fix literal readers

13 months agoFix compilation when *PRINT-CASE* is :DOWNCASE
Stelian Ionescu [Wed, 21 Mar 2012 17:05:09 +0000] 
Fix compilation when *PRINT-CASE* is :DOWNCASE

Thanks to Pascal Bourguignon for this bug report

14 months agoFix accept-connection to return the remote port as third value
Stelian Ionescu [Mon, 12 Mar 2012 18:06:31 +0000] 
Fix accept-connection to return the remote port as third value

14 months agoFix IOLIB.SYSCALLS:SYSLOG: apply CL:FORMAT to the &rest args
Stelian Ionescu [Sat, 25 Feb 2012 19:17:02 +0000] 
Fix IOLIB.SYSCALLS:SYSLOG: apply CL:FORMAT to the &rest args

Thanks to Andrea Chiumenti for the bug report

15 months agoFix development version
Stelian Ionescu [Sun, 29 Jan 2012 18:43:26 +0000] 
Fix development version

15 months agoCleaner code in CREATE-PROCESS
Stelian Ionescu [Thu, 26 Jan 2012 14:08:36 +0000] 
Cleaner code in CREATE-PROCESS

17 months agoFix address of echo server
Stelian Ionescu [Mon, 12 Dec 2011 08:33:38 +0000] 
Fix address of echo server

17 months agoFix running a shell expression
Stelian Ionescu [Mon, 5 Dec 2011 12:44:21 +0000] 
Fix running a shell expression

17 months agoRemove stray file wrappers.lisp
Stelian Ionescu [Sun, 27 Nov 2011 00:09:42 +0000] 
Remove stray file wrappers.lisp

18 months agoCosmetic change
Stelian Ionescu [Wed, 16 Nov 2011 23:39:19 +0000] 
Cosmetic change

18 months agoAllow passing :stdin to RUN-PROGRAM
Stelian Ionescu [Wed, 16 Nov 2011 23:29:30 +0000] 
Allow passing :stdin to RUN-PROGRAM

18 months agoDon't print identity for process instances
Stelian Ionescu [Wed, 16 Nov 2011 23:18:34 +0000] 
Don't print identity for process instances

18 months ago%stream-read-sequence and %stream-write-sequence: fix case where (= start end)
Jason Miller [Tue, 15 Nov 2011 20:30:53 +0000] 
%stream-read-sequence and %stream-write-sequence: fix case where (= start end)

19 months agoShadow IOLIB.SOCKETS:ACCEPT-CONNECTION in package IOLIB.TRIVIAL-SOCKETS otherwise...
Stelian Ionescu [Fri, 30 Sep 2011 00:23:35 +0000] 
Shadow IOLIB.SOCKETS:ACCEPT-CONNECTION in package IOLIB.TRIVIAL-SOCKETS otherwise it will get redefined

Bug reported by occonore on #lisp

20 months agoRUN-PROGRAM: slurp output streams before reaping the process exit status, thus avoidi...
Stelian Ionescu [Wed, 7 Sep 2011 11:44:59 +0000] 
RUN-PROGRAM: slurp output streams before reaping the process exit status, thus avoiding deadlocks

20 months agoUse clockid_t instead of lfp_clockid_t
Stelian Ionescu [Mon, 5 Sep 2011 23:30:45 +0000] 
Use clockid_t instead of lfp_clockid_t

20 months agoRemove direct use of environ, use function lfp_get_environ
Stelian Ionescu [Mon, 5 Sep 2011 17:45:12 +0000] 
Remove direct use of environ, use function lfp_get_environ

Deprecate ISYS:*ENVIRON* too, better use ISYS:OS-ENVIRON

21 months agoFix CONSTANT-FORM-VALUE on CCL
Stelian Ionescu [Mon, 15 Aug 2011 21:02:19 +0000] 
Fix CONSTANT-FORM-VALUE on CCL

21 months agoSpecify complete signature of ISYS:SIZEOF in DEFFOLDABLE
Stelian Ionescu [Mon, 15 Aug 2011 21:01:25 +0000] 
Specify complete signature of ISYS:SIZEOF in DEFFOLDABLE

21 months agoImprove %DEFFOLDABLE and CONSTANTP
Stelian Ionescu [Mon, 15 Aug 2011 20:59:57 +0000] 
Improve %DEFFOLDABLE and CONSTANTP

21 months agoAdd CONSTANT-FORM-VALUE to IOLIB.BASE
Stelian Ionescu [Mon, 15 Aug 2011 20:59:06 +0000] 
Add CONSTANT-FORM-VALUE to IOLIB.BASE

21 months agoDefine JOIN and JOIN* in null lexenv
Stelian Ionescu [Mon, 15 Aug 2011 19:49:47 +0000] 
Define JOIN and JOIN* in null lexenv

21 months agoFix export of ICMP types
Stelian Ionescu [Thu, 28 Jul 2011 17:29:38 +0000] 
Fix export of ICMP types

21 months agoAllow passing a FOREIGN-POINTER to SEND-TO
Stelian Ionescu [Thu, 28 Jul 2011 15:18:07 +0000] 
Allow passing a FOREIGN-POINTER to SEND-TO

21 months agoMake CLOSE of DUAL-CHANNEL-FD-MIXIN a primary method
Stelian Ionescu [Thu, 28 Jul 2011 15:16:17 +0000] 
Make CLOSE of DUAL-CHANNEL-FD-MIXIN a primary method

21 months agoWhitespace
Stelian Ionescu [Wed, 27 Jul 2011 21:57:48 +0000] 
Whitespace

21 months agoExport IP protocol constants
Stelian Ionescu [Wed, 27 Jul 2011 21:57:40 +0000] 
Export IP protocol constants

21 months agoCosmetic change
Stelian Ionescu [Mon, 25 Jul 2011 00:36:06 +0000] 
Cosmetic change

21 months agoAdd enum ICMP-TIME-EXCEEDED, export constants of all ICMP enums
Stelian Ionescu [Mon, 25 Jul 2011 00:35:06 +0000] 
Add enum ICMP-TIME-EXCEEDED, export constants of all ICMP enums

21 months agoBetter names for some of the ICMP types
Stelian Ionescu [Mon, 25 Jul 2011 00:27:00 +0000] 
Better names for some of the ICMP types

21 months agoAdd socket option ICMP_FILTER and relative FFI enums
Stelian Ionescu [Mon, 25 Jul 2011 00:23:38 +0000] 
Add socket option ICMP_FILTER and relative FFI enums

21 months agoAdd socket option IP_RECVERR and associated struct sock_extended_err
Stelian Ionescu [Sun, 24 Jul 2011 23:46:54 +0000] 
Add socket option IP_RECVERR and associated struct sock_extended_err

21 months agoRequire IP_HDRINCL
Stelian Ionescu [Sun, 24 Jul 2011 23:46:10 +0000] 
Require IP_HDRINCL

21 months agoAdd raw sockets
Stelian Ionescu [Sun, 24 Jul 2011 23:35:58 +0000] 
Add raw sockets

21 months agoRefactor socket initialization
Stelian Ionescu [Sun, 24 Jul 2011 20:27:25 +0000] 
Refactor socket initialization

21 months agoACCEPT-CONNECTION only makes sense on passive sockets
Stelian Ionescu [Sun, 24 Jul 2011 18:37:34 +0000] 
ACCEPT-CONNECTION only makes sense on passive sockets

21 months agoRefactor CLOSE on sockets
Stelian Ionescu [Sun, 24 Jul 2011 17:42:12 +0000] 
Refactor CLOSE on sockets

21 months agoRemove most methods specialized on ACTIVE-SOCKET and PASSIVE-SOCKET
Stelian Ionescu [Sun, 24 Jul 2011 17:23:11 +0000] 
Remove most methods specialized on ACTIVE-SOCKET and PASSIVE-SOCKET

We should let the OS signal errors in case of invalid operations like
listening on a connected sockets

21 months agoOne more optional constant
Stelian Ionescu [Sun, 24 Jul 2011 14:16:16 +0000] 
One more optional constant

21 months agoRemove duplicate definitions of socket option constants
Stelian Ionescu [Sat, 23 Jul 2011 23:17:52 +0000] 
Remove duplicate definitions of socket option constants

21 months agoAdd IP_HDRINCL socket option
Stelian Ionescu [Sat, 23 Jul 2011 23:15:22 +0000] 
Add IP_HDRINCL socket option

21 months agoMake a few constants optional instead of using reader conditionals
Stelian Ionescu [Sat, 23 Jul 2011 23:01:09 +0000] 
Make a few constants optional instead of using reader conditionals

21 months agoWhitespace
Stelian Ionescu [Sat, 23 Jul 2011 23:00:34 +0000] 
Whitespace

22 months agoMake sure that OPEN-STREAM-P works on stream sockets.
Stelian Ionescu [Wed, 6 Jul 2011 22:44:28 +0000] 
Make sure that OPEN-STREAM-P works on stream sockets.

Primary methods on SOCKET and DUAL-CHANNEL-GRAY-STREAM were preventing
the one on FUNDAMENTAL-STREAM from being executed, so I removed them
and reworked the other :AROUND methods a little bit.

Thanks to Daniel Rebelo de Oliveira for reporting this bug.

22 months agoFix docstring of IOLIB.MULTIPLEX:WAIT-UNTIL-FD-READY
Stelian Ionescu [Mon, 27 Jun 2011 13:13:59 +0000] 
Fix docstring of IOLIB.MULTIPLEX:WAIT-UNTIL-FD-READY

TIMEOUT is a REAL, not an INTEGER

23 months agoAdd IOLIB.CONF as compile-time dependency to all other systems except IOLIB.ASDF
Stelian Ionescu [Tue, 14 Jun 2011 14:46:06 +0000] 
Add IOLIB.CONF as compile-time dependency to all other systems except IOLIB.ASDF

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