1 ;;;; -*- Mode: Lisp; indent-tabs-mode: nil -*-
3 ;;; --- Package definition.
6 (in-package :common-lisp-user
)
8 (defpackage :libfixposix
10 (:use
:common-lisp
:alexandria
:cffi
)
11 (:shadow
#:open
#:close
#:read
#:write
#:listen
12 #:truncate
#:ftruncate
#:time
)
15 ;;;----------------------------------------------------------------------
17 ;;;----------------------------------------------------------------------
19 ;; Primitive type sizes
29 #:size-t
#:size-of-size-t
30 #:ssize-t
#:size-of-ssize-t
31 #:off-t
#:size-of-off-t
32 #:time-t
#:size-of-time-t
33 #:suseconds-t
#:size-of-suseconds-t
37 ;;;----------------------------------------------------------------------
38 ;;; Struct definitions, slots and accessors
39 ;;;----------------------------------------------------------------------
42 #:timeval
#:size-of-timeval
46 #:fd-set
#:size-of-fd-set
49 ;;;----------------------------------------------------------------------
51 ;;;----------------------------------------------------------------------
55 #:e2big
#:eacces
#:eaddrinuse
#:eaddrnotavail
56 #:eafnosupport
#:ealready
#:ebadf
#:ebadmsg
#:ebusy
#:ecanceled
57 #:echild
#:econnaborted
#:econnrefused
#:econnreset
#:edeadlk
58 #:edestaddrreq
#:edom
#:edquot
#:eexist
#:efault
#:efbig
#:ehostdown
59 #:ehostunreach
#:eidrm
#:eilseq
#:einprogress
#:eintr
#:einval
#:eio
60 #:eisconn
#:eisdir
#:eloop
#:emfile
#:emlink
#:emsgsize
#:emultihop
61 #:enametoolong
#:enetdown
#:enetreset
#:enetunreach
#:enfile
62 #:enobufs
#:enodata
#:enodev
#:enoent
#:enoexec
#:enolck
#:enolink
63 #:enomem
#:enomsg
#:enonet
#:enoprotoopt
#:enospc
#:enosr
#:enostr
64 #:enosys
#:enotconn
#:enotdir
#:enotempty
#:enotsock
#:enotsup
#:enotty
65 #:enxio
#:eopnotsupp
#:eoverflow
#:eperm
#:epipe
#:eproto
66 #:eprotonosupport
#:eprototype
#:erange
#:erofs
#:eshutdown
#:espipe
67 #:esrch
#:estale
#:etime
#:etimedout
#:etxtbsy
#:ewouldblock
#:exdev
79 ;;;----------------------------------------------------------------------
81 ;;;----------------------------------------------------------------------
83 ;; Errno-related functions
87 ;; Memory manipulation functions