;; 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!
: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
(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?
: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
result)))
(export 'utime :sb-posix)
(defun utime (filename &optional access-time modification-time)
- (let ((fun (extern-alien "utime" (function int (c-string :not-null t)
- (* alien-utimbuf))))
+ (let ((fun (extern-alien #-netbsd "utime" #+netbsd "_utime"
+ (function int (c-string :not-null t)
+ (* alien-utimbuf))))
(name (filename filename)))
(if (not (and access-time modification-time))
(alien-funcall fun name nil)