1 ;;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; indent-tabs-mode: nil -*-
3 ;;; --- Package definition.
6 (in-package :common-lisp-user
)
8 (defpackage :iolib.syscalls
10 (:use
:iolib.base
:cffi
)
13 #:condition-info-mixin
20 ;; Condition accessors
34 #:pointer-or-nil-designator
39 #:repeat-decreasing-timeout
40 #:repeat-upon-condition-decreasing-timeout
50 #:signal-posix-error
/restart
58 ;;;--------------------------------------------------------------------------
60 ;;;--------------------------------------------------------------------------
66 ;; Errno-related functions
70 ;; Memory manipulation functions
130 ;; Process creation and info
160 #:%sys-get-monotonic-time
179 ;;;--------------------------------------------------------------------------
180 ;;; Foreign types and constants
181 ;;;--------------------------------------------------------------------------
183 ;; Primitive type sizes
192 #:size-t
#:size-of-size-t
193 #:ssize-t
#:size-of-ssize-t
194 #:pid-t
#:size-of-pid-t
195 #:gid-t
#:size-of-gid-t
196 #:uid-t
#:size-of-uid-t
197 #:off-t
#:size-of-off-t
198 #:mode-t
#:size-of-mode-t
199 #:time-t
#:size-of-time-t
200 #:useconds-t
#:size-of-useconds-t
201 #:suseconds-t
#:size-of-suseconds-t
202 #:dev-t
#:size-of-dev-t
203 #:ino-t
#:size-of-ino-t
204 #:nlink-t
#:size-of-nlink-t
205 #:blksize-t
#:size-of-blksize-t
206 #:blkcnt-t
#:size-of-blkcnt-t
207 #:nfds-t
#:size-of-nfds-t
295 #:timespec
#:size-of-timespec
300 #:timeval
#:size-of-timeval
305 #:stat
#:size-of-stat
314 #:blksize
#:stat-blksize
315 #:blocks
#:stat-blocks
321 #:pollfd
#:size-of-pollfd
326 ;; Syscall error codes
328 #:eperm
#:enoent
#:esrch
#:eintr
#:eio
#:enxio
#:e2big
#:enoexec
329 #:ebadf
#:echild
#:eagain
#:enomem
#:eacces
#:efault
#:ebusy
#:eexist
330 #:exdev
#:enodev
#:enotdir
#:eisdir
#:einval
#:enfile
#:emfile
331 #:enotty
#:efbig
#:enospc
#:espipe
#:erofs
#:emlink
#:epipe
#:edom
332 #:erange
#:edeadlk
#:enametoolong
#:enolck
#:enosys
#:enotempty
333 #:echrng
#:el2nsync
#:el3hlt
#:el3rst
#:elnrng
#:eunatch
#:enocsi
334 #:el2hlt
#:ebade
#:ebadr
#:exfull
#:enoano
#:ebadrqc
#:ebadslt
335 #:edeadlock
#:ebfont
#:enostr
#:enodata
#:etime
#:enosr
#:enopkg
336 #:eadv
#:esrmnt
#:ecomm
#:edotdot
#:enotuniq
#:ebadfd
#:elibscn
337 #:elibmax
#:elibexec
#:eilseq
#:erestart
#:estrpipe
#:euclean
338 #:enotnam
#:enavail
#:eremoteio
#:enomedium
#:emediumtype
#:estale
339 #:enotblk
#:etxtbsy
#:eusers
#:eloop
#:ewouldblock
#:enomsg
#:eidrm
340 #:eproto
#:emultihop
#:ebadmsg
#:eoverflow
#:edquot
#:einprogress
341 #:ealready
#:eprotonosupport
#:esocktnosupport
#:enotsock
342 #:edestaddrreq
#:emsgsize
#:eprototype
#:enoprotoopt
#:eremote
343 #:enolink
#:epfnosupport
#:eafnosupport
#:eaddrinuse
#:eaddrnotavail
344 #:enetdown
#:enetunreach
#:enetreset
#:econnaborted
#:econnreset
345 #:eisconn
#:enotconn
#:eshutdown
#:etoomanyrefs
#:etimedout
346 #:econnrefused
#:ehostdown
#:ehostunreach
#:enonet
#:enobufs