X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=contrib%2Fsb-posix%2Fconstants.lisp;h=0e2e2834ce52127e843e2edf50d1d26b89db1e7c;hb=ae09f8fd7765f6cab6ad317a13e27ff22ab0c11e;hp=0243a850fb447963e2ff27ce2e51592a9d63591d;hpb=3db2b1ac1449decbce23353d210033c740dfd888;p=sbcl.git diff --git a/contrib/sb-posix/constants.lisp b/contrib/sb-posix/constants.lisp index 0243a85..0e2e283 100644 --- a/contrib/sb-posix/constants.lisp +++ b/contrib/sb-posix/constants.lisp @@ -262,6 +262,10 @@ (:integer ms-invalidate "MS_INVALIDATE" #+sb-doc "msync: invalidate all cached data" t) + ;; mlockall() + (:integer mcl-current "MCL_CURRENT" #+sb-doc "mlockall: lock all pages which are currently mapped into the address space of the process." t) + (:integer mcl-future "MCL_FUTURE" #+sb-doc "mlockall: lock all pages which will become mapped into the address space of the process in the future." t) + ;; opendir() (:structure dirent (#+(and linux largefile) "struct dirent64" @@ -358,6 +362,18 @@ (:integer f-setlkw "F_SETLKW" nil t) (:integer f-getown "F_GETOWN" nil t) (:integer f-setown "F_SETOWN" nil t) + (:integer f-rdlck "F_RDLCK" nil t) + (:integer f-wrlck "F_WRLCK" nil t) + (:integer f-unlck "F_UNLCK" nil t) + + #-win32 + (:structure alien-flock + ("struct flock" + (short type "short" "l_type") + (short whence "short" "l_whence") + (off-t start "off_t" "l_start") + (off-t len "off_t" "l_len") + (pid-t pid "pid_t" "l_pid"))) ;; lockf() (:integer f-lock "F_LOCK" nil t)