X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=contrib%2Fsb-posix%2Finterface.lisp;h=8e6be50596e84c18051d6a7c88fb7edca47c921a;hb=4ba392170e98744f0ef0b8e08a5d42b988f1d0c9;hp=bf408a05924bb0413b21d435fb17cac12de62061;hpb=6548750bc1ca4d832afed1744cdc7133b232c6f2;p=sbcl.git diff --git a/contrib/sb-posix/interface.lisp b/contrib/sb-posix/interface.lisp index bf408a0..8e6be50 100644 --- a/contrib/sb-posix/interface.lisp +++ b/contrib/sb-posix/interface.lisp @@ -281,26 +281,35 @@ ;; uid, gid (define-call "geteuid" uid-t never-fails) ; "always successful", it says -#-sunos (define-call "getresuid" uid-t never-fails) + #-sunos + (define-call "getresuid" uid-t never-fails) (define-call "getuid" uid-t never-fails) (define-call "seteuid" int minusp (uid uid-t)) -#-sunos (define-call "setfsuid" int minusp (uid uid-t)) + #-sunos + (define-call "setfsuid" int minusp (uid uid-t)) (define-call "setreuid" int minusp (ruid uid-t) (euid uid-t)) -#-sunos (define-call "setresuid" int minusp (ruid uid-t) (euid uid-t) (suid uid-t)) + #-sunos + (define-call "setresuid" int minusp (ruid uid-t) (euid uid-t) (suid uid-t)) (define-call "setuid" int minusp (uid uid-t)) (define-call "getegid" gid-t never-fails) (define-call "getgid" gid-t never-fails) -#-sunos (define-call "getresgid" gid-t never-fails) + #-sunos + (define-call "getresgid" gid-t never-fails) (define-call "setegid" int minusp (gid gid-t)) -#-sunos (define-call "setfsgid" int minusp (gid gid-t)) + #-sunos + (define-call "setfsgid" int minusp (gid gid-t)) (define-call "setgid" int minusp (gid gid-t)) (define-call "setregid" int minusp (rgid gid-t) (egid gid-t)) -#-sunos (define-call "setresgid" int minusp (rgid gid-t) (egid gid-t) (sgid gid-t)) + #-sunos + (define-call "setresgid" int minusp (rgid gid-t) (egid gid-t) (sgid gid-t)) ;; processes, signals (define-call "alarm" int never-fails (seconds unsigned)) - + ;; exit and abort, not much point inlining these + (define-simple-call abort void) + (define-simple-call exit void (status int)) + (define-simple-call _exit void (status int)) ;; FIXME this is a lie, of course this can fail, but there's no ;; error handling here yet! @@ -497,8 +506,8 @@ not supported." :documentation "Initial working directory.") (shell :initarg :shell :accessor passwd-shell :documentation "Program to use as shell.")) - (:documentation "Instances of this class represent entries in - the system's user database.")) + (:documentation + "Instances of this class represent entries in the system's user database.")) ;;; group database #-win32 @@ -563,9 +572,8 @@ not supported." (mtime :initarg :mtime :reader stat-mtime :documentation "Time of last data modification.") (ctime :initarg :ctime :reader stat-ctime - :documentation "Time of last status change")) - (:documentation "Instances of this class represent Posix file - metadata.")) + :documentation "Time of last status change.")) + (:documentation "Instances of this class represent POSIX file metadata.")) (defmacro define-stat-call (name arg designator-fun type) ;; FIXME: this isn't the documented way of doing this, surely? @@ -644,8 +652,8 @@ not supported." :documentation "Local modes.") (cc :initarg :cc :accessor sb-posix:termios-cc :array-length nccs :documentation "Control characters.")) - (:documentation "Instances of this class represent I/O - characteristics of the terminal.")) + (:documentation + "Instances of this class represent I/O characteristics of the terminal.")) #-win32 (progn