X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=contrib%2Fsb-posix%2Fconstants.lisp;h=3e24e0e6d78ad8e10bfecb7519117b3b465ad9b0;hb=bef0d9c1274819ee3fb886401209662bace136ce;hp=f1d25ba5d1ad142f57a547338b3830d96c0f63f1;hpb=0d1056d441a1fa50b1fb9dfa2b8ea660bf179a3a;p=sbcl.git diff --git a/contrib/sb-posix/constants.lisp b/contrib/sb-posix/constants.lisp index f1d25ba..3e24e0e 100644 --- a/contrib/sb-posix/constants.lisp +++ b/contrib/sb-posix/constants.lisp @@ -281,7 +281,6 @@ #+nil (:integer fields "int" "pw_fields"))) - #-darwin (:structure alien-stat ("struct stat" (mode-t mode "mode_t" "st_mode") @@ -304,28 +303,6 @@ ("struct timespec" (time-t tv-sec "time_t" "tv_sec") (long tv-nsec "long" "tv_nsec"))) - #+darwin - (:structure alien-stat - ("struct stat" - (mode-t mode "mode_t" "st_mode") - (ino-t ino "ino_t" "st_ino") - ;; Linux/MIPS uses unsigned long instead of dev_t here. - #-mips - (dev-t dev "dev_t" "st_dev") - #+mips - ((unsigned 32) dev "dev_t" "st_dev") - (nlink-t nlink "nlink_t" "st_nlink") - (uid-t uid "uid_t" "st_uid") - (gid-t gid "gid_t" "st_gid") - (off-t size "off_t" "st_size") - - (time-t atime "time_t" "st_atime") - (time-t mtime "time_t" "st_mtime") - (time-t ctime "time_t" "st_ctime") - - #+foo (alien-timespec atime "struct timespec" "st_atime") - #+foo (alien-timespec mtime "struct timespec" "st_mtime") - #+foo (alien-timespec ctime "struct timespec" "st_ctime"))) ;; open() (:integer o-rdonly "O_RDONLY" nil t) @@ -383,7 +360,9 @@ ;; utime(), utimes() #-win32 - (:type suseconds-t "suseconds_t") + (:type suseconds-t ; OAOOM warning: similar kludge in tools-for-build + #-(and darwin ppc) "suseconds_t" + #+(and darwin ppc) "int") #-win32 (:structure alien-utimbuf