1.0.6.15: add SB-POSIX:LOCKF
authorNikodemus Siivola <nikodemus@random-state.net>
Sat, 2 Jun 2007 12:33:42 +0000 (12:33 +0000)
committerNikodemus Siivola <nikodemus@random-state.net>
Sat, 2 Jun 2007 12:33:42 +0000 (12:33 +0000)
 * Patch by Zach Beane, also add a CREDITS entry for him.

CREDITS
NEWS
contrib/sb-posix/constants.lisp
contrib/sb-posix/interface.lisp
version.lisp-expr

diff --git a/CREDITS b/CREDITS
index 5f5407a..e74f55d 100644 (file)
--- a/CREDITS
+++ b/CREDITS
@@ -519,6 +519,10 @@ Daniel Barlow:
   asdf-install, sb-bsd-sockets, sb-executable, sb-grovel and sb-posix
   contrib packages.
 
+Zach Beane:
+  He provided a number of additions to SB-POSIX and implemented the
+  original timer facility on which SBCL's timers are based.
+
 James Bielman:
   He assisted in work on the port to the Windows operating system.
 
diff --git a/NEWS b/NEWS
index 3a152a4..259c9ed 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -12,6 +12,7 @@ changes in sbcl-1.0.7 relative to sbcl-1.0.6:
     has the owning thread as its value.
   * enhancement: name of a socket-stream is now "a socket" instead of
     "a constant string".
+  * enhancement: SB-POSIX now supports lockf(). (Thanks to Zach Beane.)  
   * bug fix: the cache used by the CLOS to store precomputed effective
     methods, slot offsets, and constant return values is now thread and
     interrupt safe.
index 3e24e0e..c65dc5c 100644 (file)
  (:integer f-getown "F_GETOWN" nil t)
  (:integer f-setown "F_SETOWN" nil t)
 
+ ;; lockf()
+ (:integer f-lock "F_LOCK" nil t)
+ (:integer f-tlock "F_TLOCK" nil t)
+ (:integer f-ulock "F_ULOCK" nil t)
+ (:integer f-test "F_TEST" nil t)
+
  ;; tcgetattr(), tcsetattr()
  #-win32
  (:type cc-t "cc_t")
index 07ac6f5..67c9035 100644 (file)
   (define-call "lchown" int minusp (pathname filename)
                (owner uid-t)  (group gid-t))
   (define-call "link" int minusp (oldpath filename) (newpath filename))
+  (define-call "lockf" int minusp (fd file-descriptor) (cmd int) (len off-t))
   (define-call "mkfifo" int minusp (pathname filename) (mode mode-t))
   (define-call "symlink" int minusp (oldpath filename) (newpath filename))
   (define-call "sync" void never-fails)
index 10790f8..715b643 100644 (file)
@@ -17,4 +17,4 @@
 ;;; checkins which aren't released. (And occasionally for internal
 ;;; versions, especially for internal versions off the main CVS
 ;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".)
-"1.0.6.14"
+"1.0.6.15"