a8ac3b04034fe191b4d5c60e1bde4693ac2a9f0d
[sbcl.git] / contrib / sb-posix / constants.lisp
1 ;;; -*- Lisp -*-
2
3 ;;; This isn't really lisp, but it's definitely a source file.
4
5 ;;; first, the headers necessary to find definitions of everything
6 (#||#
7  "sys/types.h"
8  "sys/stat.h"
9  #-win32 "utime.h"
10  #-win32 "sys/socket.h"
11  #-win32 "sys/un.h"
12  #-win32 "netinet/in.h"
13  #-win32 "netinet/in_systm.h"
14  #-win32 "netinet/ip.h"
15  #-win32 "net/if.h"
16  #-win32 "netinet/tcp.h"
17  #-win32 "sys/mman.h"
18  #-win32 "sys/wait.h"
19  "fcntl.h"
20  #-win32 "netdb.h"
21  "errno.h"
22  "dirent.h" "signal.h"
23  #-win32 "pwd.h"
24  "unistd.h"
25  #-win32 "termios.h"
26  #-win32 "syslog.h")
27
28 ;;; then the stuff we're looking for
29 ((:integer af-inet "AF_INET" "IP Protocol family" t)
30
31  ;; KLUDGE: These types simply do not seem to exist on Windows,
32  ;; but we'll provide these anyways -- at least in a way that should
33  ;; match with stat.
34  (:type uid-t   #-win32 "uid_t"   #+win32 "short")
35  (:type gid-t   #-win32 "gid_t"   #+win32 "short")
36  (:type nlink-t #-win32 "nlink_t" #+win32 "short")
37
38  (:type pid-t "pid_t")
39  (:type ino-t "ino_t")
40
41  (:type time-t "time_t")
42  (:type dev-t "dev_t")
43
44  ;; signals
45  (:integer SIGHUP "SIGHUP" #+sb-doc "terminal line hangup." t)
46  (:integer SIGINT "SIGINT" #+sb-doc "interrupt program." t)
47  (:integer SIGQUIT "SIGQUIT" #+sb-doc "quit program." t)
48  (:integer SIGILL "SIGILL" #+sb-doc "illegal instruction." t)
49  (:integer SIGTRAP "SIGTRAP" #+sb-doc "trace trap." t)
50  (:integer SIGABRT "SIGABRT" #+sb-doc "abort program (formerly SIGIOT)." t)
51  (:integer SIGEMT "SIGEMT" #+sb-doc "emulate instruction executed." t)
52  (:integer SIGFPE "SIGFPE" #+sb-doc "floating-point exception." t)
53  (:integer SIGKILL "SIGKILL" #+sb-doc "kill program." t)
54  (:integer SIGBUS "SIGBUS" #+sb-doc "bus error." t)
55  (:integer SIGSEGV "SIGSEGV" #+sb-doc "segmentation violation." t)
56  (:integer SIGSYS "SIGSYS" #+sb-doc "non-existent system call invoked." t)
57  (:integer SIGPIPE "SIGPIPE" #+sb-doc "write on a pipe with no reader." t)
58  (:integer SIGALRM "SIGALRM" #+sb-doc "real-time timer expired." t)
59  (:integer SIGTERM "SIGTERM" #+sb-doc "software termination signal." t)
60  (:integer SIGURG "SIGURG" #+sb-doc "urgent condition present on socket." t)
61  (:integer SIGSTOP "SIGSTOP" #+sb-doc "stop (cannot be caught or ignored)." t)
62  (:integer SIGTSTP "SIGTSTP" #+sb-doc "stop signal generated from keyboard." t)
63  (:integer SIGCONT "SIGCONT" #+sb-doc "continue after stop." t)
64  (:integer SIGCHLD "SIGCHLD" #+sb-doc "child status has changed." t)
65  (:integer SIGTTIN "SIGTTIN"
66            #+sb-doc "background read attempted from control terminal." t)
67  (:integer SIGTTOU "SIGTTOU"
68            #+sb-doc "background write attempted to control terminal." t)
69  (:integer SIGIO "SIGIO"
70            #+sb-doc "I/O is possible on a descriptor (see fcntl(2))." t)
71  (:integer SIGXCPU "SIGXCPU"
72            #+sb-doc "cpu time limit exceeded (see setrlimit(2))." t)
73  (:integer SIGXFSZ "SIGXFSZ"
74            #+sb-doc "file size limit exceeded (see setrlimit(2))." t)
75  (:integer SIGVTALRM "SIGVTALRM"
76            #+sb-doc "virtual time alarm (see setitimer(2))." t)
77  (:integer SIGPROF "SIGPROF"
78            #+sb-doc "profiling timer alarm (see setitimer(2))." t)
79  (:integer SIGWINCH "SIGWINCH" #+sb-doc "Window size change." t)
80  (:integer SIGINFO "SIGINFO" #+sb-doc "status request from keyboard." t)
81  (:integer SIGUSR1 "SIGUSR1" #+sb-doc "User defined signal 1." t)
82  (:integer SIGUSR2 "SIGUSR2" #+sb-doc "User defined signal 2." t)
83  (:integer SIGRTMIN "SIGRTMIN" #+sb-doc "Smallest real-time signal number." t)
84  (:integer SIGRTMAX "SIGRTMAX" #+sb-doc "Largest real-time signal number." t)
85
86  ;; error numbers
87  (:integer eperm "EPERM" nil t)
88  (:integer enoent "ENOENT" nil t)
89  (:integer esrch "ESRCH" nil t)
90  (:integer eintr "EINTR" nil t)
91  (:integer eio "EIO" nil t)
92  (:integer enxio "ENXIO" nil t)
93  (:integer e2big "E2BIG" nil t)
94  (:integer enoexec "ENOEXEC" nil t)
95  (:integer ebadf "EBADF" nil t)
96  (:integer echild "ECHILD" nil t)
97  (:integer eagain "EAGAIN" nil t)
98  (:integer enomem "ENOMEM" nil t)
99  (:integer eacces "EACCES" nil t)
100  (:integer efault "EFAULT" nil t)
101  (:integer enotblk "ENOTBLK" nil t)
102  (:integer ebusy "EBUSY" nil t)
103  (:integer eexist "EEXIST" nil t)
104  (:integer exdev "EXDEV" nil t)
105  (:integer enodev "ENODEV" nil t)
106  (:integer enotdir "ENOTDIR" nil t)
107  (:integer eisdir "EISDIR" nil t)
108  (:integer einval "EINVAL" nil t)
109  (:integer enfile "ENFILE" nil t)
110  (:integer emfile "EMFILE" nil t)
111  (:integer enotty "ENOTTY" nil t)
112  (:integer etxtbsy "ETXTBSY" nil t)
113  (:integer efbig "EFBIG" nil t)
114  (:integer enospc "ENOSPC" nil t)
115  (:integer espipe "ESPIPE" nil t)
116  (:integer erofs "EROFS" nil t)
117  (:integer emlink "EMLINK" nil t)
118  (:integer epipe "EPIPE" nil t)
119  (:integer edom "EDOM" nil t)
120  (:integer erange "ERANGE" nil t)
121  (:integer edeadlk "EDEADLK" nil t)
122  (:integer enametoolong "ENAMETOOLONG" nil t)
123  (:integer enolck "ENOLCK" nil t)
124  (:integer enosys "ENOSYS" nil t)
125  (:integer enotempty "ENOTEMPTY" nil t)
126  (:integer eloop "ELOOP" nil t)
127  (:integer ewouldblock "EWOULDBLOCK" nil t)
128  (:integer enomsg "ENOMSG" nil t)
129  (:integer eidrm "EIDRM" nil t)
130  (:integer echrng "ECHRNG" nil t)
131  (:integer el2nsync "EL2NSYNC" nil t)
132  (:integer el3hlt "EL3HLT" nil t)
133  (:integer el3rst "EL3RST" nil t)
134  (:integer elnrng "ELNRNG" nil t)
135  (:integer eunatch "EUNATCH" nil t)
136  (:integer enocsi "ENOCSI" nil t)
137  (:integer el2hlt "EL2HLT" nil t)
138  (:integer ebade "EBADE" nil t)
139  (:integer ebadr "EBADR" nil t)
140  (:integer exfull "EXFULL" nil t)
141  (:integer enoano "ENOANO" nil t)
142  (:integer ebadrqc "EBADRQC" nil t)
143  (:integer ebadslt "EBADSLT" nil t)
144  (:integer edeadlock "EDEADLOCK" nil t)
145  (:integer ebfont "EBFONT" nil t)
146  (:integer enostr "ENOSTR" nil t)
147  (:integer enodata "ENODATA" nil t)
148  (:integer etime "ETIME" nil t)
149  (:integer enosr "ENOSR" nil t)
150  (:integer enonet "ENONET" nil t)
151  (:integer enopkg "ENOPKG" nil t)
152  (:integer eremote "EREMOTE" nil t)
153  (:integer enolink "ENOLINK" nil t)
154  (:integer eadv "EADV" nil t)
155  (:integer esrmnt "ESRMNT" nil t)
156  (:integer ecomm "ECOMM" nil t)
157  (:integer eproto "EPROTO" nil t)
158  (:integer emultihop "EMULTIHOP" nil t)
159  (:integer edotdot "EDOTDOT" nil t)
160  (:integer ebadmsg "EBADMSG" nil t)
161  (:integer eoverflow "EOVERFLOW" nil t)
162  (:integer enotuniq "ENOTUNIQ" nil t)
163  (:integer ebadfd "EBADFD" nil t)
164  (:integer eremchg "EREMCHG" nil t)
165  (:integer elibacc "ELIBACC" nil t)
166  (:integer elibbad "ELIBBAD" nil t)
167  (:integer elibscn "ELIBSCN" nil t)
168  (:integer elibmax "ELIBMAX" nil t)
169  (:integer elibexec "ELIBEXEC" nil t)
170  (:integer eilseq "EILSEQ" nil t)
171  (:integer erestart "ERESTART" nil t)
172  (:integer estrpipe "ESTRPIPE" nil t)
173  (:integer eusers "EUSERS" nil t)
174  (:integer enotsock "ENOTSOCK" nil t)
175  (:integer edestaddrreq "EDESTADDRREQ" nil t)
176  (:integer emsgsize "EMSGSIZE" nil t)
177  (:integer eprototype "EPROTOTYPE" nil t)
178  (:integer enoprotoopt "ENOPROTOOPT" nil t)
179  (:integer eprotonosupport "EPROTONOSUPPORT" nil t)
180  (:integer esocktnosupport "ESOCKTNOSUPPORT" nil t)
181  (:integer eopnotsupp "EOPNOTSUPP" nil t)
182  (:integer epfnosupport "EPFNOSUPPORT" nil t)
183  (:integer eafnosupport "EAFNOSUPPORT" nil t)
184  (:integer eaddrinuse "EADDRINUSE" nil t)
185  (:integer eaddrnotavail "EADDRNOTAVAIL" nil t)
186  (:integer enetdown "ENETDOWN" nil t)
187  (:integer enetunreach "ENETUNREACH" nil t)
188  (:integer enetreset "ENETRESET" nil t)
189  (:integer econnaborted "ECONNABORTED" nil t)
190  (:integer econnreset "ECONNRESET" nil t)
191  (:integer enobufs "ENOBUFS" nil t)
192  (:integer eisconn "EISCONN" nil t)
193  (:integer enotconn "ENOTCONN" nil t)
194  (:integer eshutdown "ESHUTDOWN" nil t)
195  (:integer etoomanyrefs "ETOOMANYREFS" nil t)
196  (:integer etimedout "ETIMEDOUT" nil t)
197  (:integer econnrefused "ECONNREFUSED" nil t)
198  (:integer ehostdown "EHOSTDOWN" nil t)
199  (:integer ehostunreach "EHOSTUNREACH" nil t)
200  (:integer ealready "EALREADY" nil t)
201  (:integer einprogress "EINPROGRESS" nil t)
202  (:integer estale "ESTALE" nil t)
203  (:integer euclean "EUCLEAN" nil t)
204  (:integer enotnam "ENOTNAM" nil t)
205  (:integer enavail "ENAVAIL" nil t)
206  (:integer eremoteio "EREMOTEIO" nil t)
207  (:integer edquot "EDQUOT" nil t)
208  (:integer enomedium "ENOMEDIUM" nil t)
209  (:integer emediumtype "EMEDIUMTYPE" nil t)
210
211  ;; wait
212  (:integer wnohang "WNOHANG")
213  (:integer wuntraced "WUNTRACED")
214
215  ;; mode_t
216  (:type mode-t "mode_t")
217  (:integer s-isuid "S_ISUID" nil t)
218  (:integer s-isgid "S_ISGID" nil t)
219  (:integer s-isvtx "S_ISVTX" nil t)
220  (:integer s-irusr "S_IRUSR" nil t)
221  (:integer s-iwusr "S_IWUSR" nil t)
222  (:integer s-ixusr "S_IXUSR" nil t)
223  (:integer s-iread "S_IRUSR" nil t)
224  (:integer s-iwrite "S_IWUSR" nil t)
225  (:integer s-iexec "S_IXUSR" nil t)
226  (:integer s-irgrp "S_IRGRP" nil t)
227  (:integer s-iwgrp "S_IWGRP" nil t)
228  (:integer s-ixgrp "S_IXGRP" nil t)
229  (:integer s-iroth "S_IROTH" nil t)
230  (:integer s-iwoth "S_IWOTH" nil t)
231  (:integer s-ixoth "S_IXOTH" nil t)
232
233  ;; access()
234  (:integer r-ok "R_OK" nil t)
235  (:integer w-ok "W_OK" nil t)
236  (:integer x-ok "X_OK" nil t)
237  (:integer f-ok "F_OK" nil t)
238
239  ;; mmap()
240  (:type off-t "off_t")
241  (:integer prot-none "PROT_NONE" #+sb-doc "mmap: no protection" t)
242  (:integer prot-read "PROT_READ" #+sb-doc "mmap: read protection" t)
243  (:integer prot-write "PROT_WRITE" #+sb-doc "mmap: write protection" t)
244  (:integer prot-exec "PROT_EXEC" #+sb-doc "mmap: execute protection" t)
245  (:integer map-shared "MAP_SHARED" #+sb-doc "mmap: shared memory" t)
246  (:integer map-private "MAP_PRIVATE" #+sb-doc "mmap: private mapping" t)
247  (:integer map-fixed "MAP_FIXED" #+sb-doc "mmap: map at given location" t)
248
249  ;; msync()
250  (:integer ms-async "MS_ASYNC" #+sb-doc "msync: return immediately" t)
251  (:integer ms-sync "MS_SYNC" #+sb-doc "msync: perform synchronous writes" t)
252  (:integer ms-invalidate "MS_INVALIDATE"
253            #+sb-doc "msync: invalidate all cached data" t)
254
255  ;; opendir()
256  (:structure dirent
257              (#+(and linux largefile) "struct dirent64"
258               #-(and linux largefile) "struct dirent"
259               (:c-string name "char *" "d_name"
260                          :distrust-length #+sunos t #-sunos nil)) t)
261
262  ;; password database
263  #-win32
264  (:structure alien-passwd
265              ("struct passwd"
266               (c-string-pointer name "char *" "pw_name")
267               (c-string-pointer passwd "char *" "pw_passwd")
268               (uid-t uid "uid_t" "pw_uid")
269               (gid-t gid "gid_t" "pw_gid")
270               ;; 'change', 'class', and 'expire' are not supported on Linux
271               #+nil
272               (time-t change "time_t" "pw_change")
273               #+nil
274               (c-string-pointer class "char *" "pw_class")
275               (c-string-pointer gecos "char *" "pw_gecos")
276               (c-string-pointer dir "char *" "pw_dir")
277               (c-string-pointer shell "char *" "pw_shell")
278               #+nil
279               (time-t expire "time_t" "pw_expire")
280               ;; OS X manpages say this exists.  they lie!
281               #+nil
282               (:integer fields "int" "pw_fields")))
283
284  #-darwin
285  (:structure alien-stat
286              ("struct stat"
287               (mode-t mode "mode_t" "st_mode")
288               (ino-t ino "ino_t" "st_ino")
289               ;; Linux/MIPS uses unsigned long instead of dev_t here.
290               #-mips
291               (dev-t dev "dev_t" "st_dev")
292               #+mips
293               ((unsigned 32) dev "dev_t" "st_dev")
294               (nlink-t nlink "nlink_t" "st_nlink")
295               (uid-t uid "uid_t" "st_uid")
296               (gid-t gid "gid_t" "st_gid")
297               (off-t size "off_t" "st_size")
298               (time-t atime "time_t" "st_atime")
299               (time-t mtime "time_t" "st_mtime")
300               (time-t ctime "time_t" "st_ctime")))
301
302  #+darwin
303  (:structure alien-timespec
304              ("struct timespec"
305               (time-t tv-sec "time_t" "tv_sec")
306               (long tv-nsec "long" "tv_nsec")))
307  #+darwin
308  (:structure alien-stat
309              ("struct stat"
310               (mode-t mode "mode_t" "st_mode")
311               (ino-t ino "ino_t" "st_ino")
312               ;; Linux/MIPS uses unsigned long instead of dev_t here.
313               #-mips
314               (dev-t dev "dev_t" "st_dev")
315               #+mips
316               ((unsigned 32) dev "dev_t" "st_dev")
317               (nlink-t nlink "nlink_t" "st_nlink")
318               (uid-t uid "uid_t" "st_uid")
319               (gid-t gid "gid_t" "st_gid")
320               (off-t size "off_t" "st_size")
321               (alien-timespec atime "struct timespec" "st_atime")
322               (alien-timespec mtime "struct timespec" "st_mtime")
323               (alien-timespec ctime "struct timespec" "st_ctime")))
324
325  ;; open()
326  (:integer o-rdonly "O_RDONLY" nil t)
327  (:integer o-wronly "O_WRONLY" nil t)
328  (:integer o-rdwr "O_RDWR" nil t)
329  (:integer o-creat "O_CREAT" nil t)
330  (:integer o-excl "O_EXCL" nil t)
331  (:integer o-noctty "O_NOCTTY" nil t)
332  (:integer o-trunc "O_TRUNC" nil t)
333  (:integer o-append "O_APPEND" nil t)
334  (:integer o-nonblock "O_NONBLOCK" nil t)
335  (:integer o-ndelay "O_NDELAY" nil t)
336  (:integer o-sync "O_SYNC" nil t)
337  (:integer o-nofollow "O_NOFOLLOW" nil t)
338  (:integer o-directory "O_DIRECTORY" nil t)
339  (:integer o-direct "O_DIRECT" nil t)
340  (:integer o-async "O_ASYNC" nil t)
341  (:integer o-largefile "O_LARGEFILE" nil t)     ; hmm...
342  (:integer o-dsync "O_DSYNC" nil t)
343  (:integer o-rsync "O_RSYNC" nil t)
344
345  ;; lseek()
346  (:integer seek-set "SEEK_SET" nil t)
347  (:integer seek-cur "SEEK_CUR" nil t)
348  (:integer seek-end "SEEK_END" nil t)
349
350  ;; fcntl()
351  (:integer f-dupfd "F_DUPFD" nil t)
352  (:integer f-getfd "F_GETFD" nil t)
353  (:integer f-setfd "F_SETFD" nil t)
354  (:integer f-getfl "F_GETFL" nil t)
355  (:integer f-setfl "F_SETFL" nil t)
356  (:integer f-getlk "F_GETLK" nil t)
357  (:integer f-setlk "F_SETLK" nil t)
358  (:integer f-setlkw "F_SETLKW" nil t)
359  (:integer f-getown "F_GETOWN" nil t)
360  (:integer f-setown "F_SETOWN" nil t)
361
362  ;; tcgetattr(), tcsetattr()
363  #-win32
364  (:type cc-t "cc_t")
365  #-win32
366  (:type speed-t "speed_t" nil t)
367  #-win32
368  (:type tcflag-t "tcflag_t" nil t)
369  (:integer nccs "NCCS" nil t)
370  #-win32
371  (:structure alien-termios
372              ("struct termios"
373               (tcflag-t iflag "tcflag_t" "c_iflag")
374               (tcflag-t oflag "tcflag_t" "c_oflag")
375               (tcflag-t cflag "tcflag_t" "c_cflag")
376               (tcflag-t lflag "tcflag_t" "c_lflag")
377               ((array cc-t) cc "cc_t" "c_cc")))
378
379  ;; utime(), utimes()
380  #-win32
381  (:type suseconds-t "suseconds_t")
382
383  #-win32
384  (:structure alien-utimbuf
385              ("struct utimbuf"
386               (time-t actime "time_t" "actime")
387               (time-t modtime "time_t" "modtime")))
388  #-win32
389  (:structure alien-timeval
390              ("struct timeval"
391               (time-t sec "time_t" "tv_sec")
392               (suseconds-t usec "suseconds_t" "tv_usec")))
393
394  #+win32
395  (:structure alien-timeval
396              ("struct timeval"
397               (time-t sec "time_t" "tv_sec")
398               (long usec "long" "tv_usec")))
399
400  (:integer veof "VEOF" nil t)
401  (:integer veol "VEOL" nil t)
402  (:integer verase "VERASE" nil t)
403  (:integer vintr "VINTR" nil t)
404  (:integer vkill "VKILL" nil t)
405  (:integer vmin "VMIN" nil t)
406  (:integer vquit "VQUIT" nil t)
407  (:integer vstart "VSTART" nil t)
408  (:integer vstop "VSTOP" nil t)
409  (:integer vsusp "VSUSP" nil t)
410  (:integer vtime "VTIME" nil t)
411
412  (:integer brkint "BRKINT" nil t)
413  (:integer icrnl "ICRNL" nil t)
414  (:integer ignbrk "IGNBRK" nil t)
415  (:integer igncr "IGNCR" nil t)
416  (:integer ignpar "IGNPAR" nil t)
417  (:integer inlcr "INLCR" nil t)
418  (:integer inpck "INPCK" nil t)
419  (:integer istrip "ISTRIP" nil t)
420  #+xsi                               ; FIXME: an extension, apparently
421  (:integer ixany "IXANY" nil t)
422  (:integer ixoff "IXOFF" nil t)
423  (:integer ixon "IXON" nil t)
424  (:integer parmrk "PARMRK" nil t)
425
426  (:integer opost "OPOST" nil t)
427  #+xsi
428  (:integer onlcr "ONLCR" nil t)
429  (:integer ocrnl "OCRNL" nil t)
430  (:integer onlret "ONLRET" nil t)
431  (:integer ofill "OFILL" nil t)
432  (:integer nldly "NLDLY" nil t)
433  (:integer nl0 "NL0" nil t)
434  (:integer nl1 "NL1" nil t)
435  (:integer crdly "CRDLY" nil t)
436  (:integer cr0 "CR0" nil t)
437  (:integer cr1 "CR1" nil t)
438  (:integer cr2 "CR2" nil t)
439  (:integer cr3 "CR3" nil t)
440  (:integer tabdly "TABDLY" nil t)
441  (:integer tab0 "TAB0" nil t)
442  (:integer tab1 "TAB1" nil t)
443  (:integer tab2 "TAB2" nil t)
444  (:integer tab3 "TAB3" nil t)
445  (:integer bsdly "BSDLY" nil t)
446  (:integer bs0 "BS0" nil t)
447  (:integer bs1 "BS1" nil t)
448  (:integer vtdly "VTDLY" nil t)
449  (:integer vt0 "VT0" nil t)
450  (:integer vt1 "VT1" nil t)
451  (:integer ffdly "FFDLY" nil t)
452  (:integer ff0 "FF0" nil t)
453  (:integer ff1 "FF1" nil t)
454
455  (:integer b0 "B0" nil t)
456  (:integer b50 "B50" nil t)
457  (:integer b75 "B75" nil t)
458  (:integer b110 "B110" nil t)
459  (:integer b134 "B134" nil t)
460  (:integer b150 "B150" nil t)
461  (:integer b200 "B200" nil t)
462  (:integer b300 "B300" nil t)
463  (:integer b600 "B600" nil t)
464  (:integer b1200 "B1200" nil t)
465  (:integer b1800 "B1800" nil t)
466  (:integer b2400 "B2400" nil t)
467  (:integer b4800 "B4800" nil t)
468  (:integer b9600 "B9600" nil t)
469  (:integer b19200 "B19200" nil t)
470  (:integer b38400 "B38400" nil t)
471  (:integer b57600 "B57600" nil t)
472  (:integer b115200 "B115200" nil t)
473  (:integer b230400 "B230400" nil t)
474
475  (:integer csize "CSIZE" nil t)
476  (:integer cs5 "CS5" nil t)
477  (:integer cs6 "CS6" nil t)
478  (:integer cs7 "CS7" nil t)
479  (:integer cs8 "CS8" nil t)
480  (:integer cstopb "CSTOPB" nil t)
481  (:integer cread "CREAD" nil t)
482  (:integer parenb "PARENB" nil t)
483  (:integer parodd "PARODD" nil t)
484  (:integer hupcl "HUPCL" nil t)
485  (:integer clocal "CLOCAL" nil t)
486
487  (:integer echo "ECHO" nil t)
488  (:integer echoe "ECHOE" nil t)
489  (:integer echok "ECHOK" nil t)
490  (:integer echonl "ECHONL" nil t)
491  (:integer icanon "ICANON" nil t)
492  (:integer iexten "IEXTEN" nil t)
493  (:integer isig "ISIG" nil t)
494  (:integer noflsh "NOFLSH" nil t)
495  (:integer tostop "TOSTOP" nil t)
496
497  (:integer tcsanow "TCSANOW" nil t)
498  (:integer tcsadrain "TCSADRAIN" nil t)
499  (:integer tcsaflush "TCSAFLUSH" nil t)
500
501  (:integer tciflush "TCIFLUSH" nil t)
502  (:integer tcioflush "TCIOFLUSH" nil t)
503  (:integer tcoflush "TCOFLUSH" nil t)
504  (:integer tcioff "TCIOFF" nil t)
505  (:integer tcion "TCION" nil t)
506  (:integer tcooff "TCOOFF" nil t)
507  (:integer tcoon "TCOON" nil t)
508
509  ;; syslog -- does this exist at all on Windows?
510
511  ;; SUSv3-standard openlog() facilities
512  #-win32
513  (:integer log-user "LOG_USER" "Default openlog() faclity." t)
514  #-win32
515  (:integer log-local0 "LOG_LOCAL0" "Locally-defined openlog() facility" t)
516  #-win32
517  (:integer log-local1 "LOG_LOCAL1" "Locally-defined openlog() facility" t)
518  #-win32
519  (:integer log-local2 "LOG_LOCAL2" "Locally-defined openlog() facility" t)
520  #-win32
521  (:integer log-local3 "LOG_LOCAL3" "Locally-defined openlog() facility" t)
522  #-win32
523  (:integer log-local4 "LOG_LOCAL4" "Locally-defined openlog() facility" t)
524  #-win32
525  (:integer log-local5 "LOG_LOCAL5" "Locally-defined openlog() facility" t)
526  #-win32
527  (:integer log-local6 "LOG_LOCAL6" "Locally-defined openlog() facility" t)
528  #-win32
529  (:integer log-local7 "LOG_LOCAL7" "Locally-defined openlog() facility" t)
530
531  ;; Additional, non-standard openlog() facilities (most of which
532  ;; probably won't be needed by Lisp programs, but here for
533  ;; completeness).
534  #-win32
535  (:integer
536   log-authpriv "LOG_AUTHPRIV" "openlog() facility for authorization messages" t)
537  #-win32
538  (:integer
539   log-cron "LOG_CRON" "openlog() facility for cron and at daemons" t)
540  #-win32
541  (:integer
542   log-daemon "LOG_DAEMON" "openlog() facility for arbitrary daemons" t)
543  #-win32
544  (:integer
545   log-ftp "LOG_FTP" "openlog() facility for FTP daemons" t)
546  #-win32
547  (:integer
548   log-kern "LOG_KERN" "openlog() facility for kernel messages" t)
549  #-win32
550  (:integer
551   log-lpr "LOG_LPR" "openlog() facility for the printer subsystem" t)
552  #-win32
553  (:integer
554   log-mail "LOG_MAIL" "openlog() facility for the mail subsystem" t)
555  #-win32
556  (:integer
557   log-news "LOG_NEWS" "openlog() facility for the usenet subsystem" t)
558  #-win32
559  (:integer
560   log-syslog "LOG_SYSLOG" "openlog() facility for the syslog subsystem" t)
561  #-win32
562  (:integer
563   log-uucp "LOG_UUCP" "openlog() facility for the UUCP subsystem" t)
564
565  ;; openlog() options
566  #-win32
567  (:integer
568   log-pid "LOG_PID"
569   "If supplied to openlog(), log the process ID with each message"
570   t)
571  #-win32
572  (:integer
573   log-cons "LOG_CONS"
574   "If supplied to openlog(), log to the system console as well as logfiles"
575   t)
576  #-win32
577  (:integer
578   log-ndelay "LOG_NDELAY"
579   "If supplied to openlog(), immediately open the syslog connection."
580   t)
581  #-win32
582  (:integer
583   log-odelay "LOG_ODELAY"
584   "If supplied to openlog(), delay opening the syslog connection to the first syslog() call."
585   t)
586  #-win32
587  (:integer
588   log-nowait "LOG_NOWAIT"
589   "If supplied to openlog(), do not wait for child processes created by calls to syslog()."
590   t)
591  ;; Not in SUSv3, but at least Glibc and BSD libc have this
592  #-win32
593  (:integer
594   log-perror "LOG_PERROR"
595   "If supplied to openlog(), write log messages to the process's standard error descriptor in addition to the logging facility."
596   t)
597
598  ;; syslog() severity levels
599  #-win32
600  (:integer
601   log-emerg "LOG_EMERG" "Log severity level denoting a panic." t)
602  #-win32
603  (:integer
604   log-alert "LOG_ALERT" "Log severity level denoting a condition that should be corrected immediately." t)
605  #-win32
606  (:integer
607   log-crit "LOG_CRIT" "Log severity level denoting critical conditions." t)
608  #-win32
609  (:integer
610   log-err "LOG_ERR" "Log severity level denoting an error." t)
611  #-win32
612  (:integer
613   log-warning "LOG_WARNING" "Log severity level denoting a warning." t)
614  #-win32
615  (:integer
616   log-notice "LOG_NOTICE" "Log severity level denoting non-errors that may require special handling." t)
617  #-win32
618  (:integer
619   log-info "LOG_INFO" "Log severity level denoting informational messages." t)
620  #-win32
621  (:integer
622   log-debug "LOG_DEBUG" "Log severity level denoting debugging information ." t)
623
624 )