Nicolas Martyanoff [Wed, 22 Feb 2012 06:56:48 +0000]
fix mapdir tests
Reading the files in a directory yields filenames in an undefined order. The
returned list needs to be sorted to make sure we always get the same order.
Nicolas Martyanoff [Wed, 22 Feb 2012 06:44:26 +0000]
fix isatty test name, there's already a test name isatty.1
Nikodemus Siivola [Fri, 30 Mar 2012 14:17:13 +0000]
OpenBSD support
Thanks to Timo Myyrä. He says:
"OpenBSD doesn't define blksize_t and blkcnt_t so define them as 'long'. Not
sure if this is correct but seems to work. Neither does OpenBSD have the
timer functions so omit them on OpenBSD. The tests need to be tweaked for
OpenBSD too, its similar to darwin in this. Testing with other BSD's would
be welcome to see if it its needed there as well.
The funcall-getpw function seems to handle return values incorrectly.
As result it would cause exception on OpenBSD with incorrect entries
and not nil value as expected. The fix below works on OpenBSD but
could use some testing on other platforms as well."
...we'll see if something breaks.
Nikodemus Siivola [Fri, 30 Mar 2012 14:12:06 +0000]
tests: Clisp has POSIX:UID, not POSIX:GETUID
Thanks to Timo Myyrä.
Robert Brown [Tue, 31 May 2011 21:17:03 +0000]
Add support for the Linux system call gettid(), which is only accessible via syscall(2).
Nikodemus Siivola [Sat, 28 May 2011 09:12:33 +0000]
osicat-posix: isatty test
(really testing pushing after rearranging the repository setup a bit)
Nikodemus Siivola [Sat, 28 May 2011 08:25:27 +0000]
more comprehensive .gitignore
Nikodemus Siivola [Sat, 28 May 2011 08:21:38 +0000]
missing exports for a bunch of terminal stuff
Nikodemus Siivola [Sat, 28 May 2011 08:20:45 +0000]
add cflag-vstatus and posix-vdisable
Robert Brown [Fri, 27 May 2011 20:33:34 +0000]
Add support for Posix interval timers
Nikodemus Siivola [Fri, 29 Apr 2011 07:10:02 +0000]
osicat-posix: export WINSIZE and its slots
Luís Oliveira [Mon, 5 Apr 2010 21:39:18 +0000]
Add syscall info to posix errors.
Nikodemus Siivola [Mon, 5 Apr 2010 09:59:15 +0000]
use CL:CASE instead of ALEXANDRIA:SWITCH
* Not only is the standard construct good enough here, SWITCH
interface may change at some point, or even go away totally.
(What, insider information? Ridiculous!)
Nikodemus Siivola [Sun, 14 Mar 2010 15:59:22 +0000]
typo: s/TCSAFNOW/TCSANOW/
Kudos to 'Hawkeye' Ionescu.
Nikodemus Siivola [Tue, 22 Dec 2009 16:49:19 +0000]
add VDSUSP to termios constants
Nikodemus Siivola [Mon, 21 Dec 2009 17:07:35 +0000]
TIOCNOTTY is there on BSD as well
Nikodemus Siivola [Sat, 19 Dec 2009 14:27:13 +0000]
TIOCGWINSZ and TIOCSWINSZ exist on BSD too
David Lichteblau [Sun, 11 Oct 2009 13:26:52 +0000]
added struct termios and related definitions
David Lichteblau [Sun, 11 Oct 2009 12:35:33 +0000]
added struct winsize
Stelian Ionescu [Wed, 11 Nov 2009 12:49:36 +0000]
Fix wrapping of mmap() and mremap(): the correct type for treating a pointer as integer is :long not :int.
Thanks to John Fremlin.
Stelian Ionescu [Mon, 10 Aug 2009 18:14:13 +0000]
Change soname of wrapper library to "libosicat".
Stelian Ionescu [Thu, 6 Aug 2009 09:20:37 +0000]
Correctly check return value for error with mmap() and mremap().
Reported by John Fremlin.
John Fremlin [Wed, 5 Aug 2009 14:09:13 +0000]
Add mremap() on Linux.
Signed-off-by: Stelian Ionescu <sionescu@cddr.org>
Luís Oliveira [Fri, 10 Jul 2009 16:36:04 +0000]
Define ASDF:TEST-OP operations for osicat and osicat-tests.
Luís Oliveira [Fri, 10 Jul 2009 16:29:11 +0000]
Add EXIT, WAIT and WAITPID.
Patch courtesy of Jeff Palmucci <jpalmucci@csail.mit.edu>.
Luís Oliveira [Sat, 4 Jul 2009 14:48:53 +0000]
Trying to make the librt definition more general.
Stelian Ionescu [Fri, 3 Jul 2009 22:33:12 +0000]
Fix loading of librt.so
Luís Oliveira [Thu, 25 Jun 2009 23:11:25 +0000]
Add a release.sh script, README file in preparation for release 0.6.0.
Stelian Ionescu [Mon, 19 Jan 2009 13:52:13 +0000]
MAKE-FD-STREAM: fix for openmcl/clozurecl.
Stelian Ionescu [Mon, 19 Jan 2009 13:46:01 +0000]
Ignore unused variable in LOOP of (SETF ENVIRONMENT).
Stelian Ionescu [Fri, 5 Dec 2008 18:42:03 +0000]
Modify POSIX-ERROR condition and ERRNO-WRAPPER foreign type so that the object that caused the error(usually a file descriptor) be kept around.
Stelian Ionescu [Wed, 29 Oct 2008 14:11:34 +0000]
Add definition of kill(2) to OSICAT-POSIX.
Stelian Ionescu [Mon, 20 Oct 2008 08:20:25 +0000]
Fix loading of librt on Linux.
Stelian Ionescu [Sat, 18 Oct 2008 01:13:06 +0000]
SCL compatibility fixes.
Stelian Ionescu [Sun, 5 Oct 2008 01:26:38 +0000]
Add keyword argument BARE-PATHNAMES to LIST-DIRECTORY.
Stelian Ionescu [Thu, 31 Jul 2008 01:06:01 +0000]
Move environment access functions to the top of src/osicat.lisp .
Signed-off-by: Stelian Ionescu <sionescu@common-lisp.net>
Stelian Ionescu [Thu, 31 Jul 2008 00:27:39 +0000]
Take $TMPDIR into account when defining *TEMPORARY-DIRECTORY*.
Signed-off-by: Stelian Ionescu <sionescu@common-lisp.net>
Stelian Ionescu [Sun, 6 Jul 2008 02:30:28 +0000]
Signal a full warning instead of a style-warning in REPEAT-DECREASING-TIMEOUT.
Signed-off-by: Stelian Ionescu <sionescu@common-lisp.net>
Attila Lendvai [Sun, 6 Jul 2008 02:13:58 +0000]
Small improvement to REPEAT-DECREASING-TIMEOUT.
Signed-off-by: Stelian Ionescu <sionescu@common-lisp.net>
Stelian Ionescu [Fri, 4 Jul 2008 20:28:00 +0000]
Simplify repetition macros.
Signed-off-by: Stelian Ionescu <sionescu@common-lisp.net>
Stelian Ionescu [Fri, 4 Jul 2008 19:29:57 +0000]
Export OSICAT-POSIX:REPEAT-DECREASING-TIMEOUT.
Signed-off-by: Stelian Ionescu <sionescu@common-lisp.net>
Stelian Ionescu [Fri, 9 May 2008 16:51:28 +0000]
Load librt.so instead of librt.so.1
Signed-off-by: Stelian Ionescu <sionescu@common-lisp.net>
Stelian Ionescu [Mon, 28 Apr 2008 22:38:20 +0000]
Eliminate deprecated constants.
Signed-off-by: Stelian Ionescu <sionescu@common-lisp.net>
Kilian Sprotte [Mon, 28 Apr 2008 09:23:49 +0000]
Replace DELETE-FILE with OSICAT-POSIX:UNLINK in tests.
Signed-off-by: Stelian Ionescu <sionescu@common-lisp.net>
Stelian Ionescu [Wed, 16 Apr 2008 12:12:22 +0000]
Fix for OSX.
Signed-off-by: Stelian Ionescu <sionescu@common-lisp.net>
Stelian Ionescu [Sun, 6 Apr 2008 04:21:17 +0000]
Add and export *DEFAULT-OPEN-MODE*, use it in OSICAT-POSIX:OPEN.
Signed-off-by: Stelian Ionescu <sionescu@common-lisp.net>
Stelian Ionescu [Wed, 26 Mar 2008 00:41:00 +0000]
Minor change in use of IF-LET.
Signed-off-by: Stelian Ionescu <sionescu@common-lisp.net>
Stelian Ionescu [Wed, 27 Feb 2008 16:00:58 +0000]
Test fixes for CLISP and CMUCL.
Signed-off-by: Stelian Ionescu <sionescu@common-lisp.net>
Stelian Ionescu [Wed, 27 Feb 2008 15:47:12 +0000]
Remove stray file
Signed-off-by: Stelian Ionescu <sionescu@common-lisp.net>
Stelian Ionescu [Wed, 6 Feb 2008 13:23:06 +0000]
Add GOOD-SYMLINK-EXISTS-P.
Signed-off-by: Stelian Ionescu <sionescu@common-lisp.net>
Stelian Ionescu [Tue, 5 Feb 2008 00:02:38 +0000]
Fix WITH-TEMPORARY-FILE.
Signed-off-by: Stelian Ionescu <sionescu@common-lisp.net>
Stelian Ionescu [Mon, 4 Feb 2008 23:43:19 +0000]
OPEN-TEMPORARY-FILE now works even without MAKE-FD-STREAM.
Signed-off-by: Stelian Ionescu <sionescu@common-lisp.net>
Stelian Ionescu [Mon, 4 Feb 2008 23:40:47 +0000]
Fix typo in MKTEMP.
Signed-off-by: Stelian Ionescu <sionescu@common-lisp.net>
Stelian Ionescu [Mon, 4 Feb 2008 23:14:13 +0000]
Remove TMPNAM in favour of MKTEMP.
Signed-off-by: Stelian Ionescu <sionescu@common-lisp.net>
Stelian Ionescu [Mon, 4 Feb 2008 22:49:38 +0000]
Make OPEN-TEMPORARY-FILE a little safer to FD leaks in case of errors.
Signed-off-by: Stelian Ionescu <sionescu@common-lisp.net>
Stelian Ionescu [Mon, 4 Feb 2008 22:46:42 +0000]
Rewrite WITH-TEMPORARY-FILE to use WITH-OPEN-STREAM, also align its arglist to that of OPEN-TEMPORARY-FILE.
Signed-off-by: Stelian Ionescu <sionescu@common-lisp.net>
Stelian Ionescu [Mon, 4 Feb 2008 22:22:43 +0000]
Rewrite OPEN-TEMPORARY-FILE to use mkstemp(3).
Also add keyword argument PATHSPEC which defaults to
*TEMPORARY-DIRECTORY* - which is #p"/tmp/" by default.
Export *TEMPORARY-DIRECTORY*.
Signed-off-by: Stelian Ionescu <sionescu@common-lisp.net>
Stelian Ionescu [Mon, 4 Feb 2008 22:17:29 +0000]
Enable src/fd-streams.lisp in osicat.asd .
Signed-off-by: Stelian Ionescu <sionescu@common-lisp.net>
Stelian Ionescu [Mon, 4 Feb 2008 22:16:26 +0000]
More DWIM in MKSTEMP: it will concatenate XXXXXX to the template, instead of requiring the user to do so.
Signed-off-by: Stelian Ionescu <sionescu@common-lisp.net>
Stelian Ionescu [Mon, 4 Feb 2008 21:05:47 +0000]
Make GET-FILE-KIND a little smarter: it now recognizes broken symlinks.
Signed-off-by: Stelian Ionescu <sionescu@common-lisp.net>
Stelian Ionescu [Wed, 30 Jan 2008 19:48:54 +0000]
Remove posix/bsd.lisp
Signed-off-by: Stelian Ionescu <sionescu@common-lisp.net>
Stelian Ionescu [Wed, 30 Jan 2008 15:05:56 +0000]
Move select(), poll(), epoll() and kqueue() to IOLIB.
Signed-off-by: Stelian Ionescu <sionescu@common-lisp.net>
Stelian Ionescu [Wed, 2 Jan 2008 04:11:28 +0000]
Add utility GET-POSIX-ERROR-CONDITION.
Signed-off-by: Stelian Ionescu <sionescu@common-lisp.net>
Stelian Ionescu [Wed, 2 Jan 2008 04:07:32 +0000]
Fix typo in MAKE-POSIX-ERROR.
Signed-off-by: Stelian Ionescu <sionescu@common-lisp.net>
Stelian Ionescu [Wed, 2 Jan 2008 04:00:25 +0000]
The argument of STRERROR can now be a keyword of type ERRNO-VALUES.
Signed-off-by: Stelian Ionescu <sionescu@common-lisp.net>
Stelian Ionescu [Wed, 2 Jan 2008 03:52:30 +0000]
Remove GAI-STRERROR from the export list of NIX, since it is no longer wrapped.
Signed-off-by: Stelian Ionescu <sionescu@common-lisp.net>
Stelian Ionescu [Wed, 2 Jan 2008 03:34:53 +0000]
Clean up posix error creation.
Renamed *ERROR-SYMBOLS* to *POSIX-ERROR-MAP* and made it a hash table.
Signed-off-by: Stelian Ionescu <sionescu@common-lisp.net>
Stelian Ionescu [Mon, 31 Dec 2007 00:30:35 +0000]
Fix export list of OSICAT-POSIX.
Signed-off-by: Stelian Ionescu <sionescu@common-lisp.net>
Stelian Ionescu [Fri, 7 Dec 2007 00:40:56 +0000]
Add a FIXME to GET-FILE-KIND.
Signed-off-by: Stelian Ionescu <sionescu@common-lisp.net>
Stelian Ionescu [Fri, 7 Dec 2007 00:32:15 +0000]
FILE-EXISTS-P now optionally checks the file kind too, add and export function REGULAR-FILE-EXISTS-P and rewrite DIRECTORY-EXISTS-P in function of FILE-EXISTS-P.
Signed-off-by: Stelian Ionescu <sionescu@common-lisp.net>
Stelian Ionescu [Thu, 6 Dec 2007 23:57:06 +0000]
DIRECTORY-EXISTS-P always follows symlinks, so FOLLOW-SYMLINKS keyword arg is removed.
Signed-off-by: Stelian Ionescu <sionescu@common-lisp.net>
Stelian Ionescu [Thu, 6 Dec 2007 23:55:28 +0000]
FILE-EXISTS-P now returns two values: truename and kind.
Signed-off-by: Stelian Ionescu <sionescu@common-lisp.net>
Stelian Ionescu [Thu, 6 Dec 2007 23:43:20 +0000]
Use SWITCH instead of CASE.
Signed-off-by: Stelian Ionescu <sionescu@common-lisp.net>
Stelian Ionescu [Mon, 3 Dec 2007 01:41:02 +0000]
Fix tests.
Signed-off-by: Stelian Ionescu <sionescu@common-lisp.net>
Stelian Ionescu [Mon, 3 Dec 2007 01:40:42 +0000]
Add definition of getuid() for Clisp and Allegro.
Signed-off-by: Stelian Ionescu <sionescu@common-lisp.net>
Stelian Ionescu [Mon, 3 Dec 2007 01:36:42 +0000]
Take back one #define .
Signed-off-by: Stelian Ionescu <sionescu@common-lisp.net>
Stelian Ionescu [Mon, 3 Dec 2007 01:26:36 +0000]
Kludge: coerce to SIMPLE-STRING strings passed to foreign functions until babel gets fixed.
Signed-off-by: Stelian Ionescu <sionescu@common-lisp.net>
Stelian Ionescu [Mon, 3 Dec 2007 01:25:13 +0000]
Fix #defines on Linux.
Signed-off-by: Stelian Ionescu <sionescu@common-lisp.net>
Stelian Ionescu [Mon, 6 Aug 2007 18:16:09 +0000]
Use FUNCALL-STATVFS instead of FUNCALL in (F)STATVFS.
Signed-off-by: Stelian Ionescu <sionescu@common-lisp.net>
Stelian Ionescu [Mon, 6 Aug 2007 18:07:04 +0000]
Export MEMSET, MEMCPY and MEMMOVE from OSICAT-POSIX.
Signed-off-by: Stelian Ionescu <sionescu@common-lisp.net>
Luis Oliveira [Mon, 6 Aug 2007 07:02:30 +0000]
Preliminary texinfo manual.
Luis Oliveira [Mon, 6 Aug 2007 07:02:03 +0000]
Test suite for OSICAT and OSICAT-POSIX.
Luis Oliveira [Mon, 6 Aug 2007 07:00:49 +0000]
Add .gitignore
Luis Oliveira [Mon, 6 Aug 2007 07:00:34 +0000]
Port to CFFI, integrate CL-POSIX as OSICAT-POSIX, and more.
- Three new modules: POSIX (code imported from CL-POSIX aka IOLIB-POSIX
aka CFFI-UNIX), MACH, and WINDOWS. Those last two don't have much
though.
- Port high-level interface to CFFI and using the low-level interface
defined in OSICAT-POSIX.
- Added new file/pathname utilities adapted from CL-FAD: WALK-DIRECTORY,
DELETE-DIRECTORY-AND-FILES, DIRECTORY-EXISTS-P, LIST-DIRECTORY,
FILE-EXISTS-P, DIRECTORY-PATHNAME-P, PATHNAME-AS-DIRECTORY,
PATHNAME-AS-FILE.
- New: PATHNAME-DIRECTORY-PATHNAME and GET-MONOTONIC-TIME.
Luis Oliveira [Sun, 5 Aug 2007 02:05:46 +0000]
Let the mindless moving around begin.
Julian E. C. Squires [Thu, 6 Oct 2005 22:15:00 +0000]
CMUCL lacks :external-format for make-fd-stream.
Julian E. C. Squires [Mon, 26 Sep 2005 10:58:02 +0000]
Fixed environment under openmcl (and lispworks?).
Enabled make-fd-streams for openmcl (although investigation of the test
failure is still required).
Improved temporary-files tests.
Julian E. C. Squires [Sun, 25 Sep 2005 18:24:35 +0000]
Cleaned up OPEN-TEMPORARY-FILE and separated out MAKE-FD-STREAMS to make
way for further fun in that direction.
Fixed some tests.
Prepared things for upcoming 0.5.0 release.
Julian E. C. Squires [Sat, 17 Sep 2005 11:10:48 +0000]
Some documentation updates.
Julian E. C. Squires [Sat, 17 Sep 2005 11:03:15 +0000]
Applied patch from Luis Oliveira on comp.lang.lisp, just tweaking some
quoting of FFI types.
Julian E. C. Squires [Fri, 8 Jul 2005 14:18:19 +0000]
Updated MAKE-TEMPORARY-FILE to unlink temporary file when not using
tmpfile(3).
Julian E. C. Squires [Tue, 5 Jul 2005 17:48:12 +0000]
Some OpenMCL fixes for ...-TEMPORARY-FILES and USER-INFO.
Julian E. C. Squires [Tue, 5 Jul 2005 16:55:46 +0000]
Experimental addition of MAKE-TEMPORARY-FILE, WITH-TEMPORARY-FILE.
Some minor cleanups.
Nikodemus Siivola [Mon, 26 Jul 2004 13:25:30 +0000]
Patch from Stonewall Ballard for OS X/Lispworks
Julian E. C. Squires [Sun, 25 Apr 2004 15:10:58 +0000]
Updated copyright on files I've done much with.
Nikodemus Siivola [Sun, 25 Apr 2004 14:59:06 +0000]
* Documentation update.
Julian E. C. Squires [Sun, 25 Apr 2004 14:57:57 +0000]
* Fixed a bug in READ-LINK for long links.
* Updated tests with respect to dead NORMPATH.
* Added WITH-DIRECTORY-ITERATOR tests.
Nikodemus Siivola [Sun, 25 Apr 2004 14:44:34 +0000]
* Use a list as the internal version number, so that user code
depending on version X doesn't have to do any parsing.
Nikodemus Siivola [Sun, 25 Apr 2004 13:50:58 +0000]
* New function ABSOLUTE-PATHNAME-P.
* Export pathname utilities.
Nikodemus Siivola [Sun, 25 Apr 2004 13:14:18 +0000]
* Die NORMPATH, die!