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
138 ;; Process creation and info
168 #:%sys-get-monotonic-time
188 ;;;--------------------------------------------------------------------------
189 ;;; Foreign types and constants
190 ;;;--------------------------------------------------------------------------
192 ;; Primitive type sizes
201 #:size-t
#:size-of-size-t
202 #:ssize-t
#:size-of-ssize-t
203 #:pid-t
#:size-of-pid-t
204 #:gid-t
#:size-of-gid-t
205 #:uid-t
#:size-of-uid-t
206 #:off-t
#:size-of-off-t
207 #:mode-t
#:size-of-mode-t
208 #:time-t
#:size-of-time-t
209 #:useconds-t
#:size-of-useconds-t
210 #:suseconds-t
#:size-of-suseconds-t
211 #:dev-t
#:size-of-dev-t
212 #:ino-t
#:size-of-ino-t
213 #:nlink-t
#:size-of-nlink-t
214 #:blksize-t
#:size-of-blksize-t
215 #:blkcnt-t
#:size-of-blkcnt-t
216 #:nfds-t
#:size-of-nfds-t
304 #:timespec
#:size-of-timespec
309 #:timeval
#:size-of-timeval
314 #:stat
#:size-of-stat
323 #:blksize
#:stat-blksize
324 #:blocks
#:stat-blocks
330 #:pollfd
#:size-of-pollfd
335 ;; Syscall error codes
337 #:eperm
#:enoent
#:esrch
#:eintr
#:eio
#:enxio
#:e2big
#:enoexec
338 #:ebadf
#:echild
#:eagain
#:enomem
#:eacces
#:efault
#:ebusy
#:eexist
339 #:exdev
#:enodev
#:enotdir
#:eisdir
#:einval
#:enfile
#:emfile
340 #:enotty
#:efbig
#:enospc
#:espipe
#:erofs
#:emlink
#:epipe
#:edom
341 #:erange
#:edeadlk
#:enametoolong
#:enolck
#:enosys
#:enotempty
342 #:echrng
#:el2nsync
#:el3hlt
#:el3rst
#:elnrng
#:eunatch
#:enocsi
343 #:el2hlt
#:ebade
#:ebadr
#:exfull
#:enoano
#:ebadrqc
#:ebadslt
344 #:edeadlock
#:ebfont
#:enostr
#:enodata
#:etime
#:enosr
#:enopkg
345 #:eadv
#:esrmnt
#:ecomm
#:edotdot
#:enotuniq
#:ebadfd
#:elibscn
346 #:elibmax
#:elibexec
#:eilseq
#:erestart
#:estrpipe
#:euclean
347 #:enotnam
#:enavail
#:eremoteio
#:enomedium
#:emediumtype
#:estale
348 #:enotblk
#:etxtbsy
#:eusers
#:eloop
#:ewouldblock
#:enomsg
#:eidrm
349 #:eproto
#:emultihop
#:ebadmsg
#:eoverflow
#:edquot
#:einprogress
350 #:ealready
#:eprotonosupport
#:esocktnosupport
#:enotsock
351 #:edestaddrreq
#:emsgsize
#:eprototype
#:enoprotoopt
#:eremote
352 #:enolink
#:epfnosupport
#:eafnosupport
#:eaddrinuse
#:eaddrnotavail
353 #:enetdown
#:enetunreach
#:enetreset
#:econnaborted
#:econnreset
354 #:eisconn
#:enotconn
#:eshutdown
#:etoomanyrefs
#:etimedout
355 #:econnrefused
#:ehostdown
#:ehostunreach
#:enonet
#:enobufs