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
42 ;; Syscall return wrapper
52 #:signal-posix-error
/restart
59 ;;;--------------------------------------------------------------------------
61 ;;;--------------------------------------------------------------------------
67 ;; Errno-related functions
71 ;; Memory manipulation functions
132 #+linux
#:%sys-epoll-create
133 #+linux
#:%sys-epoll-ctl
134 #+linux
#:%sys-epoll-wait
151 ;; Process creation and info
181 #:%sys-get-monotonic-time
207 ;;;--------------------------------------------------------------------------
208 ;;; Foreign types and constants
209 ;;;--------------------------------------------------------------------------
211 ;; Primitive type sizes
220 #:size-t
#:size-of-size-t
221 #:ssize-t
#:size-of-ssize-t
222 #:pid-t
#:size-of-pid-t
223 #:gid-t
#:size-of-gid-t
224 #:uid-t
#:size-of-uid-t
225 #:off-t
#:size-of-off-t
226 #:mode-t
#:size-of-mode-t
227 #:time-t
#:size-of-time-t
228 #:useconds-t
#:size-of-useconds-t
229 #:suseconds-t
#:size-of-suseconds-t
230 #:dev-t
#:size-of-dev-t
231 #:ino-t
#:size-of-ino-t
232 #:nlink-t
#:size-of-nlink-t
233 #:blksize-t
#:size-of-blksize-t
234 #:blkcnt-t
#:size-of-blkcnt-t
235 #:nfds-t
#:size-of-nfds-t
320 #+linux
#:epoll-ctl-add
321 #+linux
#:epoll-ctl-del
322 #+linux
#:epoll-ctl-mod
324 #+linux
#:epollrdnorm
325 #+linux
#:epollrdband
328 #+linux
#:epollwrnorm
329 #+linux
#:epollwrband
333 #+linux
#:epolloneshot
350 #+bsd
#:evfilt-signal
352 #+(and bsd
(not darwin
)) #:evfilt-netdev
364 #+bsd
#:note-trackerr
365 #+(and bsd
(not darwin
)) #:note-linkup
366 #+(and bsd
(not darwin
)) #:note-linkdown
367 #+(and bsd
(not darwin
)) #:note-linkinv
390 #+linux
#:rlim-saved-max
391 #+linux
#:rlim-saved-cur
392 #+linux
#:rlimit-locks
393 #+linux
#:rlimit-msgqueue
394 #+linux
#:rlimit-nlimits
395 #+linux
#:rlimit-nice
396 #+linux
#:rlimit-rtprio
397 #+linux
#:rlimit-sigpending
398 #+bsd
#:rlimit-sbsize
403 #:timespec
#:size-of-timespec
408 #:timeval
#:size-of-timeval
413 #:stat
#:size-of-stat
422 #:blksize
#:stat-blksize
423 #:blocks
#:stat-blocks
429 #:fd-set
#:size-of-fd-set
432 #:pollfd
#:size-of-pollfd
438 #+linux
#:epoll-data
#+linux
#:size-of-epoll-data
445 #+linux
#:epoll-event
#+linux
#:size-of-epoll-event
450 #+bsd
#:kevent
#+bsd
#:size-of-kevent
458 ;; Syscall error codes
460 #:eperm
#:enoent
#:esrch
#:eintr
#:eio
#:enxio
#:e2big
#:enoexec
461 #:ebadf
#:echild
#:eagain
#:enomem
#:eacces
#:efault
#:ebusy
#:eexist
462 #:exdev
#:enodev
#:enotdir
#:eisdir
#:einval
#:enfile
#:emfile
463 #:enotty
#:efbig
#:enospc
#:espipe
#:erofs
#:emlink
#:epipe
#:edom
464 #:erange
#:edeadlk
#:enametoolong
#:enolck
#:enosys
#:enotempty
465 #:echrng
#:el2nsync
#:el3hlt
#:el3rst
#:elnrng
#:eunatch
#:enocsi
466 #:el2hlt
#:ebade
#:ebadr
#:exfull
#:enoano
#:ebadrqc
#:ebadslt
467 #:edeadlock
#:ebfont
#:enostr
#:enodata
#:etime
#:enosr
#:enopkg
468 #:eadv
#:esrmnt
#:ecomm
#:edotdot
#:enotuniq
#:ebadfd
#:elibscn
469 #:elibmax
#:elibexec
#:eilseq
#:erestart
#:estrpipe
#:euclean
470 #:enotnam
#:enavail
#:eremoteio
#:enomedium
#:emediumtype
#:estale
471 #:enotblk
#:etxtbsy
#:eusers
#:eloop
#:ewouldblock
#:enomsg
#:eidrm
472 #:eproto
#:emultihop
#:ebadmsg
#:eoverflow
#:edquot
#:einprogress
473 #:ealready
#:eprotonosupport
#:esocktnosupport
#:enotsock
474 #:edestaddrreq
#:emsgsize
#:eprototype
#:enoprotoopt
#:eremote
475 #:enolink
#:epfnosupport
#:eafnosupport
#:eaddrinuse
#:eaddrnotavail
476 #:enetdown
#:enetunreach
#:enetreset
#:econnaborted
#:econnreset
477 #:eisconn
#:enotconn
#:eshutdown
#:etoomanyrefs
#:etimedout
478 #:econnrefused
#:ehostdown
#:ehostunreach
#:enonet
#:enobufs