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
134 #:%sys-get-monotonic-time
145 ;;;--------------------------------------------------------------------------
146 ;;; Foreign types and constants
147 ;;;--------------------------------------------------------------------------
149 ;; Primitive type sizes
158 #:size-t
#:size-of-size-t
159 #:ssize-t
#:size-of-ssize-t
160 #:pid-t
#:size-of-pid-t
161 #:gid-t
#:size-of-gid-t
162 #:uid-t
#:size-of-uid-t
163 #:off-t
#:size-of-off-t
164 #:mode-t
#:size-of-mode-t
165 #:time-t
#:size-of-time-t
166 #:useconds-t
#:size-of-useconds-t
167 #:suseconds-t
#:size-of-suseconds-t
168 #:dev-t
#:size-of-dev-t
169 #:ino-t
#:size-of-ino-t
170 #:nlink-t
#:size-of-nlink-t
171 #:blksize-t
#:size-of-blksize-t
172 #:blkcnt-t
#:size-of-blkcnt-t
173 #:nfds-t
#:size-of-nfds-t
261 #:timespec
#:size-of-timespec
266 #:timeval
#:size-of-timeval
271 #:stat
#:size-of-stat
280 #:blksize
#:stat-blksize
281 #:blocks
#:stat-blocks
287 #:pollfd
#:size-of-pollfd
292 ;; Syscall error codes
294 #:eperm
#:enoent
#:esrch
#:eintr
#:eio
#:enxio
#:e2big
#:enoexec
295 #:ebadf
#:echild
#:eagain
#:enomem
#:eacces
#:efault
#:ebusy
#:eexist
296 #:exdev
#:enodev
#:enotdir
#:eisdir
#:einval
#:enfile
#:emfile
297 #:enotty
#:efbig
#:enospc
#:espipe
#:erofs
#:emlink
#:epipe
#:edom
298 #:erange
#:edeadlk
#:enametoolong
#:enolck
#:enosys
#:enotempty
299 #:echrng
#:el2nsync
#:el3hlt
#:el3rst
#:elnrng
#:eunatch
#:enocsi
300 #:el2hlt
#:ebade
#:ebadr
#:exfull
#:enoano
#:ebadrqc
#:ebadslt
301 #:edeadlock
#:ebfont
#:enostr
#:enodata
#:etime
#:enosr
#:enopkg
302 #:eadv
#:esrmnt
#:ecomm
#:edotdot
#:enotuniq
#:ebadfd
#:elibscn
303 #:elibmax
#:elibexec
#:eilseq
#:erestart
#:estrpipe
#:euclean
304 #:enotnam
#:enavail
#:eremoteio
#:enomedium
#:emediumtype
#:estale
305 #:enotblk
#:etxtbsy
#:eusers
#:eloop
#:ewouldblock
#:enomsg
#:eidrm
306 #:eproto
#:emultihop
#:ebadmsg
#:eoverflow
#:edquot
#:einprogress
307 #:ealready
#:eprotonosupport
#:esocktnosupport
#:enotsock
308 #:edestaddrreq
#:emsgsize
#:eprototype
#:enoprotoopt
#:eremote
309 #:enolink
#:epfnosupport
#:eafnosupport
#:eaddrinuse
#:eaddrnotavail
310 #:enetdown
#:enetunreach
#:enetreset
#:econnaborted
#:econnreset
311 #:eisconn
#:enotconn
#:eshutdown
#:etoomanyrefs
#:etimedout
312 #:econnrefused
#:ehostdown
#:ehostunreach
#:enonet
#:enobufs