2020-06-15 14:18:57 +00:00
/*bin/echo ' -*- mode:sh; indent-tabs-mode:nil; tab-width:8; coding:utf-8 -*-│
│vi: set net ft = sh ts = 2 sts = 2 sw = 2 fenc = utf-8 :vi│
╞══════════════════════════════════════════════════════════════════════════════╡
│ Copyright 2020 Justine Alexandra Roberts Tunney │
│ │
│ This program is free software; you can redistribute it and/or modify │
│ it under the terms of the GNU General Public License as published by │
│ the Free Software Foundation; version 2 of the License. │
│ │
│ This program is distributed in the hope that it will be useful, but │
│ WITHOUT ANY WARRANTY; without even the implied warranty of │
│ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU │
│ General Public License for more details. │
│ │
│ You should have received a copy of the GNU General Public License │
│ along with this program; if not, write to the Free Software │
│ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA │
│ 02110-1301 USA │
╚────────────────────────────────────────────────────────────────' >/dev/null #*/
dir = libc/sysv/consts
. libc/sysv/gen.sh
# The Fifth Bell System, Community Edition
# » catalogue of carnage
#
# group name GNU/Systemd XNU's Not UNIX FreeBSD OpenBSD XENIX Commentary
syscon errno ENOSYS 38 78 78 78 1 # bsd consensus & kNtErrorInvalidFunction
syscon errno EPERM 1 1 1 1 12 # unix consensus & kNtErrorInvalidAccess (should be kNtErrorNotOwner but is that mutex only??)
syscon errno ENOENT 2 2 2 2 2 # unix consensus & kNtErrorFileNot_FOUND
syscon errno ESRCH 3 3 3 3 566 # "no such process" & kNtErrorThreadNotInProcess (cf. kNtErrorInvalidHandle)
syscon errno EINTR 4 4 4 4 10004 # unix consensus & WSAEINTR
syscon errno EIO 5 5 5 5 1117 # unix consensus & kNtErrorIoDevice
syscon errno ENXIO 6 6 6 6 1112 # unix consensus & kNtErrorNoMediaInDrive
syscon errno E2BIG 7 7 7 7 1639 # unix consensus & kNtErrorInvalidCommandLine
syscon errno ENOEXEC 8 8 8 8 193 # unix consensus & kNtErrorBadExeFormat
syscon errno EBADF 9 9 9 9 6 # bad file descriptor; cf. EBADFD; unix consensus & kNtErrorInvalidHandle
syscon errno ECHILD 10 10 10 10 128 # unix consensus & kNtErrorWaitNoChildren
syscon errno EAGAIN 11 35 35 35 0x2733 # bsd consensus
syscon errno EWOULDBLOCK 11 35 35 35 0x2733 # bsd consensus
syscon errno ENOMEM 12 12 12 12 14 # unix consensus & kNtErrorOutofmemory
syscon errno EACCES 13 13 13 13 5 # unix consensus & kNtErrorAccessDenied
syscon errno EFAULT 14 14 14 14 487 # unix consensus & kNtErrorInvalidAddress
syscon errno ENOTBLK 15 15 15 15 26 # unix consensus & kNtErrorNotDosDisk
syscon errno EBUSY 16 16 16 16 170 # unix consensus & kNtErrorBusy
syscon errno EEXIST 17 17 17 17 183 # unix consensus & kNtErrorAlreadyExists (should be kNtErrorFileExists too)
syscon errno EXDEV 18 18 18 18 -1 # unix consensus
syscon errno ENODEV 19 19 19 19 1200 # unix consensus & kNtErrorBadDevice
syscon errno ENOTDIR 20 20 20 20 3 # unix consensus & kNtErrorPathNotFound
syscon errno EISDIR 21 21 21 21 267 # unix consensus & kNtErrorDirectoryNotSupported
syscon errno EINVAL 22 22 22 22 87 # unix consensus & kNtErrorInvalidParameter
syscon errno ENFILE 23 23 23 23 331 # unix consensus & kNtErrorTooManyDescriptors
syscon errno EMFILE 24 24 24 24 336 # unix consensus & kNtErrorTooManyOpenFiles
syscon errno ENOTTY 25 25 25 25 1118 # unix consensus & kNtErrorSerialNoDevice
syscon errno ETXTBSY 26 26 26 26 148 # unix consensus & kNtErrorPathBusy
syscon errno EFBIG 27 27 27 27 223 # unix consensus & kNtErrorFileTooLarge
syscon errno ENOSPC 28 28 28 28 39 # unix consensus & kNtErrorDiskFull
syscon errno EDQUOT 122 69 69 69 0x2755 # bsd consensus
syscon errno ESPIPE 29 29 29 29 25 # unix consensus & kNtErrorSeek
syscon errno EROFS 30 30 30 30 6009 # unix consensus & kNtErrorFileReadOnly
syscon errno EMLINK 31 31 31 31 4 # unix consensus & kNtErrorTooManyLinks
syscon errno EPIPE 32 32 32 32 109 # unix consensus & kNtErrorBrokenPipe
syscon errno EDOM 33 33 33 33 -1 # bsd consensus
syscon errno ERANGE 34 34 34 34 -1 # bsd consensus
syscon errno EDEADLK 35 11 11 11 1131 # bsd consensus & kNtErrorPossibleDeadlock
syscon errno ENAMETOOLONG 36 63 63 63 0x274f # bsd consensus
syscon errno ENOLCK 37 77 77 77 -1 # bsd consensus
syscon errno ENOTEMPTY 39 66 66 66 0x2752 # bsd consensus
syscon errno ELOOP 40 62 62 62 0x274e # bsd consensus
syscon errno ENOMSG 42 91 83 90 -1
syscon errno EIDRM 43 90 82 89 -1
syscon errno EUSERS 87 68 68 68 0x2754 # bsd consensus
syscon errno ENOTSOCK 88 38 38 38 0x2736 # bsd consensus
syscon errno EDESTADDRREQ 89 39 39 39 0x2737 # bsd consensus
syscon errno EMSGSIZE 90 40 40 40 0x2738 # bsd consensus & WSAEMSGSIZE
syscon errno EPROTOTYPE 91 41 41 41 0x2739 # bsd consensus
syscon errno ENOPROTOOPT 92 42 42 42 0x273a # bsd consensus
syscon errno EPROTONOSUPPORT 93 43 43 43 0x273b # bsd consensus
syscon errno ESOCKTNOSUPPORT 94 44 44 44 0x273c # bsd consensus
syscon errno ENOTSUP 95 45 45 91 0x273d
syscon errno EOPNOTSUPP 95 102 45 45 0x273d
syscon errno EPFNOSUPPORT 96 46 46 46 0x273e # bsd consensus
syscon errno EAFNOSUPPORT 97 47 47 47 0x273f # bsd consensus
syscon errno EADDRINUSE 98 48 48 48 0x2740 # bsd consensus
syscon errno EADDRNOTAVAIL 99 49 49 49 0x2741 # bsd consensus
syscon errno ENETDOWN 100 50 50 50 0x2742 # bsd consensus
syscon errno ENETUNREACH 101 51 51 51 0x2743 # bsd consensus
syscon errno ENETRESET 102 52 52 52 0x2744 # bsd consensus
syscon errno ECONNABORTED 103 53 53 53 0x2745 # bsd consensus
syscon errno ECONNRESET 104 54 54 54 0x2746 # bsd consensus & WSAECONNRESET
syscon errno ENOBUFS 105 55 55 55 0x2747 # bsd consensus
syscon errno EISCONN 106 56 56 56 0x2748 # bsd consensus
syscon errno ENOTCONN 107 57 57 57 0x2749 # bsd consensus
syscon errno ESHUTDOWN 108 58 58 58 0x274a # bsd consensus
syscon errno ETOOMANYREFS 109 59 59 59 0x274b # bsd consensus
syscon errno ETIMEDOUT 110 60 60 60 0x274c # bsd consensus
syscon errno ECONNREFUSED 111 61 61 61 0x274d # bsd consensus
syscon errno EHOSTDOWN 112 64 64 64 0x2750 # bsd consensus
syscon errno EHOSTUNREACH 113 65 65 65 0x2751 # bsd consensus
syscon errno EALREADY 114 37 37 37 0x2735 # bsd consensus
syscon errno EINPROGRESS 115 36 36 36 0x2734 # bsd consensus
syscon errno ESTALE 116 70 70 70 0x2756 # bsd consensus
syscon errno ECHRNG 44 -1 -1 -1 -1 # bsd consensus
syscon errno EL2NSYNC 45 -1 -1 -1 -1 # bsd consensus
syscon errno EL3HLT 46 -1 -1 -1 -1 # bsd consensus
syscon errno EL3RST 47 -1 -1 -1 -1 # bsd consensus
syscon errno ELNRNG 48 -1 -1 -1 -1 # bsd consensus
syscon errno EUNATCH 49 -1 -1 -1 -1 # bsd consensus
syscon errno ENOCSI 50 -1 -1 -1 -1 # bsd consensus
syscon errno EL2HLT 51 -1 -1 -1 -1 # bsd consensus
syscon errno EBADE 52 -1 -1 -1 -1 # bsd consensus
syscon errno EBADR 53 -1 -1 -1 -1 # bsd consensus
syscon errno EXFULL 54 -1 -1 -1 -1 # bsd consensus
syscon errno ENOANO 55 -1 -1 -1 -1 # bsd consensus
syscon errno EBADRQC 56 -1 -1 -1 -1 # bsd consensus
syscon errno EBADSLT 57 -1 -1 -1 -1 # bsd consensus
syscon errno EBFONT 59 -1 -1 -1 -1 # bsd consensus
syscon errno ENOSTR 60 99 -1 -1 -1
syscon errno ENODATA 61 96 -1 -1 -1
syscon errno ETIME 62 101 -1 -1 -1
syscon errno ENOSR 63 98 -1 -1 -1
syscon errno ENONET 64 -1 -1 -1 -1 # bsd consensus
syscon errno ENOPKG 65 -1 -1 -1 -1 # bsd consensus
syscon errno EREMOTE 66 71 71 71 0x2757 # bsd consensus
syscon errno ENOLINK 67 97 91 -1 -1
syscon errno EADV 68 -1 -1 -1 -1 # bsd consensus
syscon errno ESRMNT 69 -1 -1 -1 -1 # bsd consensus
syscon errno ECOMM 70 -1 -1 -1 -1 # bsd consensus
syscon errno EPROTO 71 100 92 95 -1
syscon errno EMULTIHOP 72 95 90 -1 -1
syscon errno EDOTDOT 73 -1 -1 -1 -1 # bsd consensus
syscon errno EBADMSG 74 94 89 92 -1
syscon errno EOVERFLOW 75 84 84 87 -1
syscon errno ENOTUNIQ 76 -1 -1 -1 -1 # bsd consensus
syscon errno EBADFD 77 9 9 9 6 # file descriptor in bad state; cf. EBADF; fudged on non-Linux
syscon errno EREMCHG 78 -1 -1 -1 -1 # bsd consensus
syscon errno ELIBACC 79 -1 -1 -1 -1 # bsd consensus
syscon errno ELIBBAD 80 -1 -1 -1 -1 # bsd consensus
syscon errno ELIBSCN 81 -1 -1 -1 -1 # bsd consensus
syscon errno ELIBMAX 82 -1 -1 -1 -1 # bsd consensus
syscon errno ELIBEXEC 83 -1 -1 -1 -1 # bsd consensus
syscon errno EILSEQ 84 92 86 84 -1
syscon errno ERESTART 85 -1 -1 -1 -1 # bsd consensus
syscon errno ESTRPIPE 86 -1 -1 -1 -1 # bsd consensus
syscon errno EUCLEAN 117 -1 -1 -1 -1 # bsd consensus
syscon errno ENOTNAM 118 -1 -1 -1 -1 # bsd consensus
syscon errno ENAVAIL 119 -1 -1 -1 -1 # bsd consensus
syscon errno EISNAM 120 -1 -1 -1 -1 # bsd consensus
syscon errno EREMOTEIO 121 -1 -1 -1 -1 # bsd consensus
syscon errno ENOMEDIUM 123 -1 -1 85 -1
syscon errno EMEDIUMTYPE 124 -1 -1 86 -1
syscon errno ECANCELED 125 89 85 88 -1
syscon errno ENOKEY 126 -1 -1 -1 -1 # bsd consensus
syscon errno EKEYEXPIRED 127 -1 -1 -1 -1 # bsd consensus
syscon errno EKEYREVOKED 128 -1 -1 -1 -1 # bsd consensus
syscon errno EKEYREJECTED 129 -1 -1 -1 -1 # bsd consensus
syscon errno EOWNERDEAD 130 105 96 94 -1
syscon errno ENOTRECOVERABLE 131 104 95 93 -1
syscon errno ERFKILL 132 -1 -1 -1 -1 # bsd consensus
syscon errno EHWPOISON 133 -1 -1 -1 -1 # bsd consensus
# signals
#
# group name GNU/Systemd XNU's Not UNIX FreeBSD OpenBSD XENIX Commentary
syscon sig SIGHUP 1 1 1 1 1 # unix consensus & faked on nt
syscon sig SIGINT 2 2 2 2 2 # unix consensus & faked on nt
syscon sig SIGQUIT 3 3 3 3 3 # unix consensus & faked on nt
syscon sig SIGILL 4 4 4 4 4 # unix consensus & faked on nt
syscon sig SIGTRAP 5 5 5 5 5 # unix consensus & faked on nt
syscon sig SIGABRT 6 6 6 6 6 # unix consensus & faked on nt
syscon sig SIGIOT 6 6 6 6 6 # unix consensus & faked on nt
syscon sig SIGFPE 8 8 8 8 8 # unix consensus & faked on nt
syscon sig SIGKILL 9 9 9 9 9 # unix consensus & faked on nt
syscon sig SIGSEGV 11 11 11 11 11 # unix consensus & faked on nt
syscon sig SIGPIPE 13 13 13 13 13 # unix consensus & faked on nt
syscon sig SIGALRM 14 14 14 14 14 # unix consensus & faked on nt
syscon sig SIGTERM 15 15 15 15 15 # unix consensus & faked on nt
syscon sig SIGTTIN 21 21 21 21 21 # unix consensus & faked on nt
syscon sig SIGTTOU 22 22 22 22 22 # unix consensus & faked on nt
syscon sig SIGXCPU 24 24 24 24 24 # unix consensus & faked on nt
syscon sig SIGXFSZ 25 25 25 25 25 # unix consensus & faked on nt
syscon sig SIGVTALRM 26 26 26 26 26 # unix consensus & faked on nt
syscon sig SIGPROF 27 27 27 27 27 # unix consensus & faked on nt
syscon sig SIGWINCH 28 28 28 28 28 # unix consensus & faked on nt
syscon sig SIGBUS 7 10 10 10 0 # bsd consensus
syscon sig SIGUSR1 10 30 30 30 0 # bsd consensus
syscon sig SIGCHLD 17 20 20 20 0 # bsd consensus
syscon sig SIGCONT 18 19 19 19 0 # bsd consensus
syscon sig SIGIO 29 23 23 23 0 # bsd consensus
syscon sig SIGSTOP 19 17 17 17 0 # bsd consensus
syscon sig SIGSYS 31 12 12 12 0 # bsd consensus
syscon sig SIGTSTP 20 18 18 18 0 # bsd consensus
syscon sig SIGURG 23 0x10 0x10 0x10 0 # bsd consensus
syscon sig SIGUSR2 12 31 31 31 0 # bsd consensus
syscon sig SIGSTKSZ 0x2000 0x020000 0x8800 0x7000 0
syscon sig SIGPOLL 29 0 0 0 0
syscon sig SIGPWR 30 0 0 0 0
syscon sig SIGSTKFLT 0x10 0 0 0 0
syscon sig SIGUNUSED 31 0 0 0 0
syscon sig SIGRTMAX 0 0 126 0 0
syscon sig SIGRTMIN 0 0 65 0 0
# open() flags ┌──────hoo boy
# ┌──────┐
# │┌─<<8─┴───dwFlagsAndAttributes
# ┌││─────┐
# │││ │ ┌┴───dwDesiredAccess
# N │││ │ │
# group name GNU/Systemd XNU's Not UNIX FreeBSD OpenBSD T │││┌─┴┐│ Commentary
syscon open O_RDONLY 0 0 0 0 0x80000000 # unix consensus & kNtGenericRead
syscon open O_WRONLY 1 1 1 1 0x40000000 # unix consensus & kNtGenericWrite
syscon open O_RDWR 2 2 2 2 0xc0000000 # unix consensus & kNtGenericRead|kNtGenericWrite
syscon open O_ACCMODE 3 3 3 3 0xc0000000 # O_RDONLY|O_WRONLY|O_RDWR
syscon open O_APPEND 0x0400 8 8 8 0x00000004 # bsd consensus & kNtFileAppendData; won't pose issues w/ mknod(S_IFIFO)
syscon open O_CREAT 0x40 0x0200 0x0200 0x0200 0x00000040 # bsd consensus & NT faked as Linux
syscon open O_EXCL 0x80 0x0800 0x0800 0x0800 0x00000080 # bsd consensus & NT faked as Linux
syscon open O_TRUNC 0x0200 0x0400 0x0400 0x0400 0x00000200 # bsd consensus & NT faked as Linux
2020-10-11 04:18:53 +00:00
syscon open O_DIRECTORY 0x010000 0x100000 0x020000 0x020000 0x02000000 # kNtFileFlagBackupSemantics
2020-06-15 14:18:57 +00:00
syscon open O_DIRECT 0x4000 0 0x010000 0 0x00200000 # kNtFileFlagNoBuffering>>8
syscon open O_CLOEXEC 0x080000 0x01000000 0x100000 0x010000 0x00080000 # NT faked as Linux
syscon open O_TMPFILE 0x410000 0 0 0 0x04000100 # Linux 3.11+ (c. 2013) & kNtFileAttributeTemporary|kNtFileFlagDeleteOnClose
2020-10-11 04:18:53 +00:00
syscon open O_SPARSE 0 0 0 0 0x00040000 # we invented it
syscon open O_NDELAY 0x0800 4 4 4 0 # bsd consensus & kNtFileFlagWriteThrough>>8 → 0x00800000 (???)
syscon open O_NONBLOCK 0x0800 4 4 4 0 # bsd consensus
2020-06-15 14:18:57 +00:00
syscon open O_ASYNC 0x2000 0x40 0x40 0x40 0 # bsd consensus
syscon open O_NOFOLLOW 0x020000 0x0100 0x0100 0x0100 0 # bsd consensus
syscon open O_SYNC 0x101000 0x80 0x80 0x80 0 # bsd consensus
syscon open O_NOCTTY 0x0100 0x020000 0x8000 0x8000 0 # used for remote viewing (default behavior on freebsd)
syscon open O_DSYNC 0x1000 0x400000 0 0x80 0
syscon open O_RSYNC 0x101000 0 0 0x80 0
syscon open O_NOATIME 0x040000 0 0 0 0
syscon open O_PATH 0x200000 0 0 0 0
syscon open O_EXEC 0 0 0x040000 0 0
syscon open O_TTY_INIT 0 0 0x080000 0 0
syscon compat O_LARGEFILE 0 0 0 0 0
syscon compat MAP_FILE 0 0 0 0 0 # consensus
syscon mmap MAP_SHARED 1 1 1 1 1 # forced consensus & faked nt
syscon mmap MAP_PRIVATE 2 2 2 2 2 # forced consensus & faked nt
2020-10-11 04:18:53 +00:00
syscon mmap MAP_FIXED 0x10 0x10 0x10 0x10 0x10 # unix consensus; openbsd appears to forbid; faked nt
2020-06-15 14:18:57 +00:00
syscon mmap MAP_ANONYMOUS 0x20 0x1000 0x1000 0x1000 0x20 # bsd consensus; faked nt
syscon mmap MAP_NORESERVE 0x4000 0x40 0 0 0 # Linux calls it "reserve"; NT calls it "commit"? which is default?
syscon mmap MAP_GROWSDOWN 0x0100 0 0x0400 0x0400 0x100000 # MAP_STACK on BSD; MEM_TOP_DOWN on NT
syscon mmap MAP_HUGETLB 0x040000 0 0 0 0x80000000 # kNtSecLargePages
syscon mmap MAP_HUGE_MASK 63 0 0 0 0
syscon mmap MAP_HUGE_SHIFT 26 0 0 0 0
syscon mmap MAP_LOCKED 0x2000 0 0 0 0
2020-10-11 04:18:53 +00:00
syscon mmap MAP_NONBLOCK 0x10000 0 0 0 0
2020-09-28 08:13:56 +00:00
syscon mmap MAP_POPULATE 0x8000 0 0 0 0 # can avoid madvise(MADV_WILLNEED) on private file mapping
2020-06-15 14:18:57 +00:00
syscon mmap MAP_TYPE 15 0 0 0 0 # what is it
2020-10-11 04:18:53 +00:00
syscon compat MAP_ANON 0x20 0x1000 0x1000 0x1000 0x20 # bsd consensus; faked nt
syscon compat MAP_STACK 0x020000 0 0x0400 0x4000 0x100000
2020-06-15 14:18:57 +00:00
syscon compat MAP_EXECUTABLE 0x1000 0 0 0 0 # ignored
syscon compat MAP_DENYWRITE 0x0800 0 0 0 0
syscon compat MAP_32BIT 0x40 0 0x080000 0 0 # iffy
syscon madv MADV_NORMAL 0 0 0 0 0x00000080 # consensus & kNtFileAttributeNormal
syscon compat POSIX_FADV_NORMAL 0 0 0 0 0x00000080 # consensus & kNtFileAttributeNormal
syscon compat POSIX_MADV_NORMAL 0 0 0 0 0x00000080 # consensus & kNtFileAttributeNormal
syscon madv MADV_DONTNEED 4 4 4 4 0 # TODO(jart): weird nt decommit thing?
syscon compat POSIX_MADV_DONTNEED 4 4 4 4 0 # unix consensus
syscon compat POSIX_FADV_DONTNEED 4 0 4 4 0 # unix consensus
syscon madv MADV_RANDOM 1 1 1 1 0x10000000 # unix consensus & kNtFileFlagRandomAccess
syscon compat POSIX_MADV_RANDOM 1 1 1 1 0x10000000 # unix consensus & kNtFileFlagRandomAccess
syscon compat POSIX_FADV_RANDOM 1 0 1 1 0x10000000 # unix consensus & kNtFileFlagRandomAccess
syscon madv MADV_SEQUENTIAL 2 2 2 2 0x8000000 # unix consensus & kNtFileFlagSequentialScan
syscon compat POSIX_MADV_SEQUENTIAL 2 2 2 2 0x8000000 # unix consensus
syscon compat POSIX_FADV_SEQUENTIAL 2 0 2 2 0x8000000 # TODO(jart): double check xnu
syscon madv MADV_WILLNEED 3 3 3 3 3 # unix consensus (faked on NT)
syscon compat POSIX_MADV_WILLNEED 3 3 3 3 3 # unix consensus
syscon compat POSIX_FADV_WILLNEED 3 0 3 3 3 # TODO(jart): double check xnu
syscon madv MADV_MERGEABLE 12 0 0 0 0 # turns on (private anon range) page scanning and merging service (linux only)
syscon madv MADV_UNMERGEABLE 13 0 0 0 0 # turns off mergeable (linux only)
syscon madv MADV_FREE 8 5 5 6 8 # Linux 4.5+ (c. 2016) / NT Faked → VMOfferPriorityNormal (Win8+)
syscon madv MADV_HUGEPAGE 14 0 0 0 0 # TODO(jart): why would we need it?
syscon madv MADV_NOHUGEPAGE 15 0 0 0 0 # TODO(jart): why would we need it?
syscon madv MADV_DODUMP 17 0 0 0 0 # TODO(jart): what is it?
syscon madv MADV_DOFORK 11 0 0 0 0 # TODO(jart): what is it?
syscon madv MADV_DONTDUMP 0x10 0 0 0 0 # TODO(jart): what is it?
syscon madv MADV_DONTFORK 10 0 0 0 0 # TODO(jart): what is it?
syscon madv MADV_HWPOISON 100 0 0 0 0 # TODO(jart): what is it?
syscon madv MADV_REMOVE 9 0 0 0 0 # TODO(jart): what is it?
syscon fadv POSIX_FADV_NOREUSE 5 0 5 0 0 # wut
# posix_spawn()
# only native on xnu
#
# group name GNU/Systemd XNU's Not UNIX FreeBSD OpenBSD XENIX Commentary
syscon spawn POSIX_SPAWN_RESETIDS 1 1 1 1 0 # unix consensus
syscon spawn POSIX_SPAWN_SETPGROUP 2 2 2 2 0 # unix consensus
syscon spawn POSIX_SPAWN_SETSIGDEF 4 4 0x10 0x10 0
syscon spawn POSIX_SPAWN_SETSIGMASK 8 8 0x20 0x20 0
syscon spawn POSIX_SPAWN_SETSCHEDPARAM 0x10 0 4 4 0
syscon spawn POSIX_SPAWN_SETSCHEDULER 0x20 0 8 8 0
syscon spawn POSIX_SPAWN_USEVFORK 0x40 0 0 0 0
# mprotect(), etc.
# digital restrictions management for the people
#
# group name GNU/Systemd XNU's Not UNIX FreeBSD OpenBSD XENIX Commentary
syscon mprot PROT_NONE 0 0 0 0 0 # unix consensus (nt needs special business logic here)
syscon mprot PROT_READ 1 1 1 1 1 # unix consensus
syscon mprot PROT_WRITE 2 2 2 2 2 # unix consensus
syscon mprot PROT_EXEC 4 4 4 4 4 # unix consensus
2020-09-28 08:13:56 +00:00
syscon mprot PROT_GROWSDOWN 0x01000000 0 0 0 0 # intended for mprotect; see MAP_GROWSDOWN for mmap() (todo: what was 0x01000000 on nt)
syscon mprot PROT_GROWSUP 0x02000000 0 0 0 0 # intended for mprotect; see MAP_GROWSDOWN for mmap()
2020-06-15 14:18:57 +00:00
syscon mremap MREMAP_MAYMOVE 1 1 1 1 1 # faked non-linux (b/c linux only)
syscon mremap MREMAP_FIXED 2 2 2 2 2 # faked non-linux (b/c linux only)
syscon splice SPLICE_F_MOVE 1 0 0 0 0 # can be safely ignored by polyfill; it's a hint
syscon splice SPLICE_F_NONBLOCK 2 0 0 0 0 # can be safely ignored by polyfill, since linux says it doesn't apply to underlying FDs
syscon splice SPLICE_F_MORE 4 0 0 0 0 # can be safely ignored by polyfill; it's a hint
syscon splice SPLICE_F_GIFT 8 0 0 0 0 # can probably be ignored by polyfill
# access() flags
#
# group name GNU/Systemd XNU's Not UNIX FreeBSD OpenBSD XENIX Commentary
syscon access F_OK 0 0 0 0 0 # consensus
syscon access X_OK 1 1 1 1 0xa0000000 # unix consensus and kNtGenericExecute | kNtGenericRead
syscon access W_OK 2 2 2 2 0x40000000 # unix consensus and kNtGenericWrite
syscon access R_OK 4 4 4 4 0x80000000 # unix consensus and kNtGenericRead
2020-09-28 08:13:56 +00:00
# flock() flags
#
# group name GNU/Systemd XNU's Not UNIX FreeBSD OpenBSD XENIX Commentary
syscon lock LOCK_SH 1 1 1 1 0 # shared [unix consensus]
syscon lock LOCK_EX 2 2 2 2 2 # exclusive [consensus!]
syscon lock LOCK_NB 4 4 4 4 1 # non-blocking [unix consensus]
syscon lock LOCK_UN 8 8 8 8 8 # unlock [unix consensus & faked NT]
# waitpid() / wait4() options
#
# group name GNU/Systemd XNU's Not UNIX FreeBSD OpenBSD XENIX Commentary
syscon waitpid WNOHANG 1 1 1 1 0 # unix consensus
syscon waitpid WUNTRACED 2 2 2 2 0 # unix consensus
syscon waitpid WCONTINUED 8 0x10 4 8 0
# waitid() options
#
# group name GNU/Systemd XNU's Not UNIX FreeBSD OpenBSD XENIX Commentary
syscon waitid WEXITED 4 4 0x10 0 0
syscon waitid WSTOPPED 2 8 2 0 0
syscon waitid WNOWAIT 0x01000000 0x20 8 0 0
2020-06-15 14:18:57 +00:00
# stat::st_mode constants
#
# group name GNU/Systemd XNU's Not UNIX FreeBSD OpenBSD XENIX Commentary
syscon stat S_IFREG 0100000 0100000 0100000 0100000 0100000
syscon stat S_IFBLK 0060000 0060000 0060000 0060000 0060000
syscon stat S_IFCHR 0020000 0020000 0020000 0020000 0020000
syscon stat S_IFDIR 0040000 0040000 0040000 0040000 0040000
syscon stat S_IFIFO 0010000 0010000 0010000 0010000 0010000
syscon stat S_IFMT 0170000 0170000 0170000 0170000 0170000
syscon stat S_IFLNK 0120000 0120000 0120000 0120000 0120000
syscon stat S_IFSOCK 0140000 0140000 0140000 0140000 0140000
# chmod() permission flag constants
# consider just typing the octal codes
#
# group name GNU/Systemd XNU's Not UNIX FreeBSD OpenBSD XENIX Commentary
syscon stat S_ISVTX 01000 01000 01000 01000 01000 # unix consensus STICKY BIT
syscon stat S_ISGID 02000 02000 02000 02000 02000 # unix consensus a.k.a. setgid bit
syscon stat S_ISUID 04000 04000 04000 04000 04000 # unix consensus a.k.a. setuid bit
syscon stat S_IEXEC 00100 00100 00100 00100 00100 # unix consensus
syscon stat S_IWRITE 00200 00200 00200 00200 00200 # unix consensus
syscon stat S_IREAD 00400 00400 00400 00400 00400 # unix consensus
syscon stat S_IXUSR 00100 00100 00100 00100 00100 # unix consensus
syscon stat S_IWUSR 00200 00200 00200 00200 00200 # unix consensus
syscon stat S_IRUSR 00400 00400 00400 00400 00400 # unix consensus
syscon stat S_IRWXU 00700 00700 00700 00700 00700 # unix consensus
syscon stat S_IXGRP 00010 00010 00010 00010 00010 # unix consensus
syscon stat S_IWGRP 00020 00020 00020 00020 00020 # unix consensus
syscon stat S_IRGRP 00040 00040 00040 00040 00040 # unix consensus
syscon stat S_IRWXG 00070 00070 00070 00070 00070 # unix consensus
syscon stat S_IXOTH 00001 00001 00001 00001 00001 # unix consensus
syscon stat S_IWOTH 00002 00002 00002 00002 00002 # unix consensus
syscon stat S_IROTH 00004 00004 00004 00004 00004 # unix consensus
syscon stat S_IRWXO 00007 00007 00007 00007 00007 # unix consensus
# fcntl()
#
# group name GNU/Systemd XNU's Not UNIX FreeBSD OpenBSD XENIX Commentary
syscon fcntl2 F_DUPFD 0 0 0 0 0 # consensus
syscon fcntl2 F_GETFD 1 1 1 1 1 # unix consensus & faked nt
syscon fcntl2 F_SETFD 2 2 2 2 2 # unix consensus & faked nt
syscon fcntl3 FD_CLOEXEC 1 1 1 1 1 # unix consensus & inverse nt (kNtHandleFlagInherit)
syscon fcntl2 F_GETFL 3 3 3 3 3 # unix consensus & faked nt
syscon fcntl2 F_SETFL 4 4 4 4 4 # (unix consensus & faked nt)
# fcntl3 O_NONBLOCK
# fcntl3 O_APPEND
# fcntl3 O_ASYNC
# fcntl3 O_DIRECT
# fcntl3 O_NOATIME
syscon fcntl2 F_SETOWN 8 6 6 6 0 # bsd consensus
syscon fcntl2 F_GETOWN 9 5 5 5 0 # bsd consensus
syscon fcntl F_ULOCK 0 0 0 0 0 # consensus
syscon fcntl F_RDLCK 0 1 1 1 0 # bsd consensus
syscon fcntl F_LOCK 1 1 1 1 0 # unix consensus
syscon fcntl F_WRLCK 1 3 3 3 0 # bsd consensus
syscon fcntl F_TLOCK 2 2 2 2 0 # unix consensus
syscon fcntl F_UNLCK 2 2 2 2 0 # unix consensus
syscon fcntl F_TEST 3 3 3 3 0 # unix consensus
syscon fcntl F_GETLK 5 7 11 7 0
syscon fcntl F_GETLK64 5 0 0 0 0
syscon fcntl F_SETLK 6 8 12 8 0
syscon fcntl F_SETLK64 6 0 0 0 0
syscon fcntl F_SETLKW 7 9 13 9 0
syscon fcntl F_SETLKW64 7 0 0 0 0
syscon fcntl F_SETSIG 10 0 0 0 0
syscon fcntl F_GETSIG 11 0 0 0 0
syscon fcntl F_SETOWN_EX 15 0 0 0 0
syscon fcntl F_GETOWN_EX 0x10 0 0 0 0
syscon fcntl F_OFD_GETLK 36 0 0 0 0
syscon fcntl F_OFD_SETLK 37 0 0 0 0
syscon fcntl F_OFD_SETLKW 38 0 0 0 0
syscon fcntl F_SETLEASE 0x0400 0 0 0 0
syscon fcntl F_GETLEASE 0x0401 0 0 0 0
syscon fcntl F_NOTIFY 0x0402 0 0 0 0
syscon fcntl F_DUPFD_CLOEXEC 0x0406 67 17 10 0
syscon fcntl F_SETPIPE_SZ 0x0407 0 0 0 0
syscon fcntl F_GETPIPE_SZ 0x0408 0 0 0 0
# openat(), fstatat(), linkat(), etc. magnums
#
# group name GNU/Systemd XNU's Not UNIX FreeBSD OpenBSD XENIX Commentary
syscon at AT_FDCWD -100 -2 -100 -100 -100 # faked nt
syscon at AT_SYMLINK_NOFOLLOW 0x0100 0x20 0x0200 2 0 # TODO(jart): What should NT do?
syscon at AT_REMOVEDIR 0x0200 0x80 0x0800 8 0x0200 # faked nt
syscon at AT_EACCESS 0x0200 0x10 0x0100 1 0
2020-08-25 11:23:25 +00:00
syscon at AT_SYMLINK_FOLLOW 0x0400 0x40 0x0400 4 0
2020-06-15 14:18:57 +00:00
syscon at AT_EMPTY_PATH 0x1000 0 0 0 0 # linux 2.6.39+; see unlink, O_TMPFILE, etc.
syscon memfd MFD_CLOEXEC 1 0 0 0 0
syscon memfd MFD_ALLOW_SEALING 2 0 0 0 0
2020-08-25 11:23:25 +00:00
# utimensat()
#
# group name GNU/Systemd XNU's Not UNIX FreeBSD OpenBSD XENIX Commentary
syscon utime UTIME_NOW 0x3fffffff 0x3fffffff -1 -2 0x3fffffff # polyfilled xnu/nt
syscon utime UTIME_OMIT 0x3ffffffe 0x3ffffffe -2 -1 0x3ffffffe # polyfilled xnu/nt
2020-06-15 14:18:57 +00:00
# getauxval() keys
#
# group name GNU/Systemd XNU's Not UNIX FreeBSD OpenBSD XENIX Commentary
syscon auxv AT_EXECFD 2 0 2 0 0
syscon auxv AT_PHDR 3 0 3 0 0
syscon auxv AT_PHENT 4 0 4 0 0
syscon auxv AT_PHNUM 5 0 5 0 0
syscon auxv AT_PAGESZ 6 0 6 0 0
syscon auxv AT_BASE 7 0 7 0 0
syscon auxv AT_ENTRY 9 0 9 0 0
syscon auxv AT_NOTELF 10 0 10 0 0
syscon auxv AT_OSRELDATE 0 0 18 0 0
syscon auxv AT_UID 11 0 0 0 0
syscon auxv AT_EUID 12 0 0 0 0
syscon auxv AT_GID 13 0 0 0 0
syscon auxv AT_EGID 14 0 0 0 0
syscon auxv AT_PLATFORM 15 0 0 0 0 # RHEL5.0 limit
syscon auxv AT_CLKTCK 17 0 0 0 0
syscon auxv AT_DCACHEBSIZE 19 0 0 0 0
syscon auxv AT_ICACHEBSIZE 20 0 0 0 0
syscon auxv AT_UCACHEBSIZE 21 0 0 0 0
syscon auxv AT_SECURE 23 0 0 0 0
syscon auxv AT_BASE_PLATFORM 24 0 0 0 0
syscon auxv AT_RANDOM 25 0 0 0 0
syscon auxv AT_EXECFN 31 999 999 999 999 # faked on non-linux
syscon auxv AT_SYSINFO_EHDR 33 0 0 0 0
syscon auxv AT_NO_AUTOMOUNT 0x0800 0 0 0 0
syscon sigact SA_RESTORER 0x04000000 0 0 0 0
syscon sigact SA_ONSTACK 0x08000000 1 1 1 0 # bsd consensus
syscon sigact SA_RESTART 0x10000000 2 2 2 0 # bsd consensus
syscon sigact SA_NOCLDSTOP 1 8 8 8 0 # bsd consensus
syscon sigact SA_NOCLDWAIT 2 0x20 0x20 0x20 0 # bsd consensus
syscon sigact SA_SIGINFO 4 0x40 0x40 0x40 0 # bsd consensus
syscon sigact SA_NODEFER 0x40000000 0x10 0x10 0x10 0 # bsd consensus
syscon sigact SA_NOMASK 0x40000000 0x10 0x10 0x10 0 # linux/obsolete
syscon sigact SA_RESETHAND 0x80000000 4 4 4 0 # bsd consensus
syscon sigact SA_ONESHOT 0x80000000 0 0 0 0
syscon clock CLOCK_REALTIME 0 0 0 0 0 # consensus
syscon clock CLOCK_PROCESS_CPUTIME_ID 2 -1 15 2 0
syscon clock CLOCK_THREAD_CPUTIME_ID 3 -1 14 4 0
syscon clock CLOCK_MONOTONIC 4 1 4 3 1 # XNU/NT faked
syscon clock CLOCK_MONOTONIC_RAW 4 4 0x4000 0x4000 4 # XNU/NT/FreeBSD/OpenBSD faked
syscon clock CLOCK_REALTIME_COARSE 5 -1 0 0 0 # bsd consensus
syscon clock CLOCK_MONOTONIC_COARSE 6 -1 0 0 0 # bsd consensus
syscon clock CLOCK_BOOTTIME 7 -1 0 6 0
syscon clock CLOCK_REALTIME_ALARM 8 -1 0 0 0 # bsd consensus
syscon clock CLOCK_BOOTTIME_ALARM 9 -1 0 0 0 # bsd consensus
syscon clock CLOCK_TAI 11 -1 0 0 0 # bsd consensus
syscon epoll EPOLLIN 1 0 0 0 0
syscon epoll EPOLL_CTL_ADD 1 0 0 0 0
syscon epoll EPOLLPRI 2 0 0 0 0
syscon epoll EPOLL_CTL_DEL 2 0 0 0 0
syscon epoll EPOLL_CTL_MOD 3 0 0 0 0
syscon epoll EPOLLOUT 4 0 0 0 0
syscon epoll EPOLLERR 8 0 0 0 0
syscon epoll EPOLLHUP 0x10 0 0 0 0
syscon epoll EPOLLRDNORM 0x40 0 0 0 0
syscon epoll EPOLLRDBAND 0x80 0 0 0 0
syscon epoll EPOLLWRNORM 0x0100 0 0 0 0
syscon epoll EPOLLWRBAND 0x0200 0 0 0 0
syscon epoll EPOLLMSG 0x0400 0 0 0 0
syscon epoll EPOLLRDHUP 0x2000 0 0 0 0
syscon epoll EPOLL_CLOEXEC 0x080000 0 0 0 0
syscon epoll EPOLLEXCLUSIVE 0x10000000 0 0 0 0
syscon epoll EPOLLWAKEUP 0x20000000 0 0 0 0
syscon epoll EPOLLONESHOT 0x40000000 0 0 0 0
syscon epoll EPOLLET 0x80000000 0 0 0 0
# {set,get}sockopt(fd, level=SOL_SOCKET, X, ...)
#
# * 0 we define as EINVAL
# * -1 we define as no-op
#
# group name GNU/Systemd XNU's Not UNIX FreeBSD OpenBSD XENIX Commentary
syscon so SO_REUSEPORT 15 0x0200 0x0200 0x0200 4 # bsd consensus (NT calls it SO_REUSEADDR)
syscon so SO_REUSEADDR 2 4 4 4 -1 # bsd consensus (default behavior on NT)
syscon so SO_KEEPALIVE 9 8 8 8 8 # bsd consensus
syscon so SO_DONTROUTE 5 0x10 0x10 0x10 0x10 # bsd consensus
syscon so SO_BROADCAST 6 0x20 0x20 0x20 0x20 # bsd consensus
syscon so SO_LINGER 13 0x80 0x80 0x80 0x80 # bsd consensus
syscon so SO_DEBUG 1 1 1 1 1 # consensus
syscon so SO_ACCEPTCONN 30 2 2 2 2 # bsd consensus
syscon so SO_ERROR 4 0x1007 0x1007 0x1007 0x1007 # bsd consensus
syscon so SO_OOBINLINE 10 0x0100 0x0100 0x0100 0x0100 # bsd consensus
syscon so SO_SNDBUF 7 0x1001 0x1001 0x1001 0x1001 # bsd consensus
syscon so SO_RCVBUF 8 0x1002 0x1002 0x1002 0x1002 # bsd consensus
syscon so SO_RCVLOWAT 18 0x1004 0x1004 0x1004 0x1004 # bsd consensus
syscon so SO_RCVTIMEO 20 0x1006 0x1006 0x1006 0x1006 # bsd consensus
syscon so SO_EXCLUSIVEADDRUSE -1 -1 -1 -1 0xfffffffb # hoo boy
syscon so SO_SNDLOWAT 19 0x1003 0x1003 0x1003 0x1003 # bsd consensus
syscon so SO_SNDTIMEO 21 0x1005 0x1005 0x1005 0x1005 # bsd consensus
syscon so SO_TYPE 3 0x1008 0x1008 0x1008 0x1008 # bsd consensus
syscon so SO_TIMESTAMP 29 0x0400 0x0400 0x0800 0
syscon so SO_DOMAIN 39 0 0x1019 0 0
syscon so SO_MAX_PACING_RATE 47 0 0x1018 0 0
syscon so SO_PEERCRED 17 0 0 0x1022 0
syscon so SO_PROTOCOL 38 0 0x1016 0 0
syscon so SO_ATTACH_BPF 50 0 0 0 0
syscon so SO_ATTACH_FILTER 26 0 0 0 0
syscon so SO_ATTACH_REUSEPORT_CBPF 51 0 0 0 0
syscon so SO_ATTACH_REUSEPORT_EBPF 52 0 0 0 0
syscon so SO_BINDTODEVICE 25 0 0 0 0
syscon so SO_BPF_EXTENSIONS 48 0 0 0 0
syscon so SO_BSDCOMPAT 14 0 0 0 0
syscon so SO_BUSY_POLL 46 0 0 0 0
syscon so SO_CNX_ADVICE 53 0 0 0 0
syscon so SO_DETACH_BPF 27 0 0 0 0
syscon so SO_DETACH_FILTER 27 0 0 0 0
syscon so SO_GET_FILTER 26 0 0 0 0
syscon so SO_INCOMING_CPU 49 0 0 0 0
syscon so SO_LOCK_FILTER 44 0 0 0 0
syscon so SO_MARK 36 0 0 0 0
syscon so SO_NOFCS 43 0 0 0 0
syscon so SO_NO_CHECK 11 0 0 0 0
syscon so SO_PASSCRED 0x10 0 0 0 0
syscon so SO_PASSSEC 34 0 0 0 0
syscon so SO_PEEK_OFF 42 0 0 0 0
syscon so SO_PEERNAME 28 0 0 0 0
syscon so SO_PEERSEC 31 0 0 0 0
syscon so SO_PRIORITY 12 0 0 0 0
syscon so SO_RCVBUFFORCE 33 0 0 0 0
syscon so SO_RXQ_OVFL 40 0 0 0 0
syscon so SO_SECURITY_AUTHENTICATION 22 0 0 0 0
syscon so SO_SECURITY_ENCRYPTION_NETWORK 24 0 0 0 0
syscon so SO_SECURITY_ENCRYPTION_TRANSPORT 23 0 0 0 0
syscon so SO_SELECT_ERR_QUEUE 45 0 0 0 0
syscon so SO_SNDBUFFORCE 0x20 0 0 0 0
syscon so SO_TIMESTAMPING 37 0 0 0 0
syscon so SO_TIMESTAMPNS 35 0 0 0 0
syscon so SO_WIFI_STATUS 41 0 0 0 0
2020-10-11 04:18:53 +00:00
syscon sol SOL_IP 0 0 0 0 0 # consensus
syscon sol SOL_SOCKET 1 0xffff 0xffff 0xffff 0xffff # bsd+nt consensus (todo: what's up with ipproto_icmp overlap)
syscon sol SOL_TCP 6 6 6 6 6 # consensus
syscon sol SOL_UDP 17 17 17 17 17 # consensus
syscon sol SOL_IPV6 41 41 41 41 41
syscon sol SOL_ICMPV6 58 58 58 58 0
syscon sol SOL_AAL 265 0 0 0 0
syscon sol SOL_ALG 279 0 0 0 0
syscon sol SOL_ATM 264 0 0 0 0
syscon sol SOL_BLUETOOTH 274 0 0 0 0
syscon sol SOL_CAIF 278 0 0 0 0
syscon sol SOL_DCCP 269 0 0 0 0
syscon sol SOL_DECNET 261 0 0 0 0
syscon sol SOL_IRDA 266 0 0 0 0
syscon sol SOL_IUCV 277 0 0 0 0
syscon sol SOL_KCM 281 0 0 0 0
syscon sol SOL_LLC 268 0 0 0 0
syscon sol SOL_NETBEUI 267 0 0 0 0
syscon sol SOL_NETLINK 270 0 0 0 0
syscon sol SOL_NFC 280 0 0 0 0
syscon sol SOL_PACKET 263 0 0 0 0
syscon sol SOL_PNPIPE 275 0 0 0 0
syscon sol SOL_PPPOL2TP 273 0 0 0 0
syscon sol SOL_RAW 255 0 0 0 0
syscon sol SOL_RDS 276 0 0 0 0
syscon sol SOL_RXRPC 272 0 0 0 0
syscon sol SOL_TIPC 271 0 0 0 0
syscon sol SOL_X25 262 0 0 0 0
2020-06-15 14:18:57 +00:00
# {set,get}sockopt(fd, level=IPPROTO_TCP, X, ...)
# » most elite of all tuning groups
#
# * 0 we define as EINVAL
# * -1 we define as no-op
#
# @see https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt
# @see https://www.iana.org/assignments/tcp-parameters/tcp-parameters.txt
#
# group name GNU/Systemd XNU's Not UNIX FreeBSD OpenBSD XENIX Commentary
2020-10-11 04:18:53 +00:00
syscon tcp TCP_NODELAY 1 1 1 1 1 # strong consensus for disabling nagle's algorithm
2020-06-15 14:18:57 +00:00
syscon tcp TCP_MAXSEG 2 2 2 2 0 # reduces tcp segment size; see also tcp offloading
syscon tcp TCP_FASTOPEN 23 261 0x0401 0 15 # reduces roundtrips; for listener; Linux 3.7+ (c. 2012) / or is windows it 0x22? /proc/sys/net/ipv4/tcp_fastopen TODO(jart): MSG_FASTOPEN
syscon tcp TCP_KEEPIDLE 4 0 0x100 0 0 # keepalives
syscon tcp TCP_KEEPINTVL 5 0x101 0x200 0 0 # keepalives
syscon tcp TCP_KEEPCNT 6 0x102 0x400 0 0 # keepalives
syscon tcp TCP_SYNCNT 7 0 0 0 0 # how hard to syn packet the enemy
syscon tcp TCP_COOKIE_TRANSACTIONS 15 0 0 0 0 # defense against the syn packets
syscon tcp TCP_LINGER2 8 0 0 0 0 # orphaned fin-wait-2 lifetime cf. net.ipv4.tcp_fin_timeout see cloudflare blog
syscon tcp TCP_CORK 3 0 0 0 0 # linux tries to automate iovec
syscon tcp TCP_NOTSENT_LOWAT 25 513 0 0 0 # limit unset byte queue
syscon tcp TCP_INFO 11 0 0x20 0 0 # get connection info
syscon tcp TCP_CC_INFO 26 0 0 0 0 # get congestion control info
syscon tcp TCP_CONGESTION 13 0 0x40 0 0 # set traffic control
syscon tcp TCP_MD5SIG 14 0 0x10 4 0 # what is it (rfc2385)
syscon tcp TCP_MD5SIG_MAXKEYLEN 80 0 0 0 0 # what is it
syscon tcp TCP_TIMESTAMP 24 0 0 0 0 # what is it
syscon tcp TCP_USER_TIMEOUT 18 0 0 0 0 # what is it
syscon tcp TCP_QUICKACK 12 0 0 0 0 # what is it
syscon tcp TCP_SAVE_SYN 27 0 0 0 0 # record syn packets
syscon tcp TCP_SAVED_SYN 28 0 0 0 0 # get recorded syn packets
syscon tcp TCP_THIN_DUPACK 17 0 0 0 0 # what is it
syscon tcp TCP_QUEUE_SEQ 21 0 0 0 0 # what is it
syscon tcp TCP_WINDOW_CLAMP 10 0 0 0 0 # what is it
syscon tcp TCP_DEFER_ACCEPT 9 0 0 0 0 # what is it
syscon tcp TCP_REPAIR 19 0 0 0 0 # what is it
syscon tcp TCP_REPAIR_OPTIONS 22 0 0 0 0 # what is it
syscon tcp TCP_REPAIR_QUEUE 20 0 0 0 0 # what is it
syscon tcp TCP_THIN_LINEAR_TIMEOUTS 16 0 0 0 0 # what is it
2020-10-11 04:18:53 +00:00
syscon iproto IPPROTO_IP 0 0 0 0 0 # consensus
syscon iproto IPPROTO_ICMP 1 1 1 1 1 # consensus
syscon iproto IPPROTO_TCP 6 6 6 6 6 # consensus
syscon iproto IPPROTO_UDP 17 17 17 17 17 # consensus
syscon iproto IPPROTO_RAW 255 255 255 255 255 # consensus
syscon iproto IPPROTO_HOPOPTS 0 0 0 0 0 # consensus
syscon iproto IPPROTO_IDP 22 22 22 22 22 # consensus
syscon iproto IPPROTO_IGMP 2 2 2 2 2 # consensus
syscon iproto IPPROTO_PUP 12 12 12 12 12 # consensus
syscon iproto IPPROTO_AH 51 51 51 51 0 # unix consensus
syscon iproto IPPROTO_DSTOPTS 60 60 60 60 0 # unix consensus
syscon iproto IPPROTO_EGP 8 8 8 8 0 # unix consensus
syscon iproto IPPROTO_ENCAP 98 98 98 98 0 # unix consensus
syscon iproto IPPROTO_ESP 50 50 50 50 0 # unix consensus
syscon iproto IPPROTO_FRAGMENT 44 44 44 44 0 # unix consensus
syscon iproto IPPROTO_GRE 47 47 47 47 0 # unix consensus
syscon iproto IPPROTO_ICMPV6 58 58 58 58 0 # unix consensus
syscon iproto IPPROTO_IPIP 4 4 4 4 0 # unix consensus
syscon iproto IPPROTO_IPV6 41 41 41 41 0 # unix consensus
syscon iproto IPPROTO_NONE 59 59 59 59 0 # unix consensus
syscon iproto IPPROTO_PIM 103 103 103 103 0 # unix consensus
syscon iproto IPPROTO_ROUTING 43 43 43 43 0 # unix consensus
syscon iproto IPPROTO_RSVP 46 46 46 46 0 # unix consensus
syscon iproto IPPROTO_TP 29 29 29 29 0 # unix consensus
syscon iproto IPPROTO_MPLS 137 0 137 137 0
syscon iproto IPPROTO_MTP 92 92 92 0 0
syscon iproto IPPROTO_SCTP 132 132 132 0 0
syscon iproto IPPROTO_MH 135 0 135 0 0
syscon iproto IPPROTO_UDPLITE 136 0 136 0 0
syscon iproto IPPROTO_BEETPH 94 0 0 0 0
syscon iproto IPPROTO_COMP 108 0 0 0 0
syscon iproto IPPROTO_DCCP 33 0 0 0 0
2020-06-15 14:18:57 +00:00
syscon misc EXTA 14 0x4b00 0x4b00 0x4b00 0 # bsd consensus
syscon misc EXTB 15 0x9600 0x9600 0x9600 0 # bsd consensus
syscon misc ERA 0x02002c 45 45 0 0
syscon misc EMPTY 0 0 0 0 0 # consensus
syscon pr PR_SET_PTRACER_ANY -1 0 0 0 0
syscon pr PR_ENDIAN_BIG 0 0 0 0 0 # consensus
syscon pr PR_FP_EXC_DISABLED 0 0 0 0 0 # consensus
syscon pr PR_MCE_KILL_CLEAR 0 0 0 0 0 # consensus
syscon pr PR_MCE_KILL_LATE 0 0 0 0 0 # consensus
syscon pr PR_SPEC_NOT_AFFECTED 0 0 0 0 0 # consensus
syscon pr PR_SPEC_STORE_BYPASS 0 0 0 0 0 # consensus
syscon pr PR_TIMING_STATISTICAL 0 0 0 0 0 # consensus
syscon pr PR_CAP_AMBIENT_IS_SET 1 0 0 0 0
syscon pr PR_ENDIAN_LITTLE 1 0 0 0 0
syscon pr PR_FPEMU_NOPRINT 1 0 0 0 0
syscon pr PR_FP_EXC_NONRECOV 1 0 0 0 0
syscon pr PR_FP_MODE_FR 1 0 0 0 0
syscon pr PR_MCE_KILL_EARLY 1 0 0 0 0
syscon pr PR_MCE_KILL_SET 1 0 0 0 0
syscon pr PR_SET_MM_START_CODE 1 0 0 0 0
syscon pr PR_SET_PDEATHSIG 1 0 0 0 0
syscon pr PR_SPEC_PRCTL 1 0 0 0 0
syscon pr PR_TIMING_TIMESTAMP 1 0 0 0 0
syscon pr PR_TSC_ENABLE 1 0 0 0 0
syscon pr PR_UNALIGN_NOPRINT 1 0 0 0 0
syscon pr PR_CAP_AMBIENT_RAISE 2 0 0 0 0
syscon pr PR_ENDIAN_PPC_LITTLE 2 0 0 0 0
syscon pr PR_FPEMU_SIGFPE 2 0 0 0 0
syscon pr PR_FP_EXC_ASYNC 2 0 0 0 0
syscon pr PR_FP_MODE_FRE 2 0 0 0 0
syscon pr PR_GET_PDEATHSIG 2 0 0 0 0
syscon pr PR_MCE_KILL_DEFAULT 2 0 0 0 0
syscon pr PR_SET_MM_END_CODE 2 0 0 0 0
syscon pr PR_SPEC_ENABLE 2 0 0 0 0
syscon pr PR_TSC_SIGSEGV 2 0 0 0 0
syscon pr PR_UNALIGN_SIGBUS 2 0 0 0 0
syscon pr PR_CAP_AMBIENT_LOWER 3 0 0 0 0
syscon pr PR_FP_EXC_PRECISE 3 0 0 0 0
syscon pr PR_GET_DUMPABLE 3 0 0 0 0
syscon pr PR_SET_MM_START_DATA 3 0 0 0 0
syscon pr PR_CAP_AMBIENT_CLEAR_ALL 4 0 0 0 0
syscon pr PR_SET_DUMPABLE 4 0 0 0 0
syscon pr PR_SET_MM_END_DATA 4 0 0 0 0
syscon pr PR_SPEC_DISABLE 4 0 0 0 0
syscon pr PR_GET_UNALIGN 5 0 0 0 0
syscon pr PR_SET_MM_START_STACK 5 0 0 0 0
syscon pr PR_SET_MM_START_BRK 6 0 0 0 0
syscon pr PR_SET_UNALIGN 6 0 0 0 0
syscon pr PR_GET_KEEPCAPS 7 0 0 0 0
syscon pr PR_SET_MM_BRK 7 0 0 0 0
syscon pr PR_SET_KEEPCAPS 8 0 0 0 0
syscon pr PR_SET_MM_ARG_START 8 0 0 0 0
syscon pr PR_SPEC_FORCE_DISABLE 8 0 0 0 0
syscon pr PR_GET_FPEMU 9 0 0 0 0
syscon pr PR_SET_MM_ARG_END 9 0 0 0 0
syscon pr PR_SET_FPEMU 10 0 0 0 0
syscon pr PR_SET_MM_ENV_START 10 0 0 0 0
syscon pr PR_GET_FPEXC 11 0 0 0 0
syscon pr PR_SET_MM_ENV_END 11 0 0 0 0
syscon pr PR_SET_FPEXC 12 0 0 0 0
syscon pr PR_SET_MM_AUXV 12 0 0 0 0
syscon pr PR_GET_TIMING 13 0 0 0 0
syscon pr PR_SET_MM_EXE_FILE 13 0 0 0 0
syscon pr PR_SET_MM_MAP 14 0 0 0 0
syscon pr PR_SET_TIMING 14 0 0 0 0
syscon pr PR_SET_MM_MAP_SIZE 15 0 0 0 0
syscon pr PR_SET_NAME 15 0 0 0 0
syscon pr PR_GET_NAME 0x10 0 0 0 0
syscon pr PR_GET_ENDIAN 19 0 0 0 0
syscon pr PR_SET_ENDIAN 20 0 0 0 0
syscon pr PR_GET_SECCOMP 21 0 0 0 0
syscon pr PR_SET_SECCOMP 22 0 0 0 0
syscon pr PR_CAPBSET_READ 23 0 0 0 0
syscon pr PR_CAPBSET_DROP 24 0 0 0 0
syscon pr PR_GET_TSC 25 0 0 0 0
syscon pr PR_SET_TSC 26 0 0 0 0
syscon pr PR_GET_SECUREBITS 27 0 0 0 0
syscon pr PR_SET_SECUREBITS 28 0 0 0 0
syscon pr PR_SET_TIMERSLACK 29 0 0 0 0
syscon pr PR_GET_TIMERSLACK 30 0 0 0 0
syscon pr PR_TASK_PERF_EVENTS_DISABLE 31 0 0 0 0
syscon pr PR_TASK_PERF_EVENTS_ENABLE 0x20 0 0 0 0
syscon pr PR_MCE_KILL 33 0 0 0 0
syscon pr PR_MCE_KILL_GET 34 0 0 0 0
syscon pr PR_SET_MM 35 0 0 0 0
syscon pr PR_SET_CHILD_SUBREAPER 36 0 0 0 0
syscon pr PR_GET_CHILD_SUBREAPER 37 0 0 0 0
syscon pr PR_SET_NO_NEW_PRIVS 38 0 0 0 0
syscon pr PR_GET_NO_NEW_PRIVS 39 0 0 0 0
syscon pr PR_GET_TID_ADDRESS 40 0 0 0 0
syscon pr PR_SET_THP_DISABLE 41 0 0 0 0
syscon pr PR_GET_THP_DISABLE 42 0 0 0 0
syscon pr PR_MPX_ENABLE_MANAGEMENT 43 0 0 0 0
syscon pr PR_MPX_DISABLE_MANAGEMENT 44 0 0 0 0
syscon pr PR_SET_FP_MODE 45 0 0 0 0
syscon pr PR_GET_FP_MODE 46 0 0 0 0
syscon pr PR_CAP_AMBIENT 47 0 0 0 0
syscon pr PR_GET_SPECULATION_CTRL 52 0 0 0 0
syscon pr PR_SET_SPECULATION_CTRL 53 0 0 0 0
syscon pr PR_FP_EXC_SW_ENABLE 0x80 0 0 0 0
syscon pr PR_FP_EXC_DIV 0x010000 0 0 0 0
syscon pr PR_FP_EXC_OVF 0x020000 0 0 0 0
syscon pr PR_FP_EXC_UND 0x040000 0 0 0 0
syscon pr PR_FP_EXC_RES 0x080000 0 0 0 0
syscon pr PR_FP_EXC_INV 0x100000 0 0 0 0
syscon pr PR_SET_PTRACER 0x59616d61 0 0 0 0
syscon log LOG_EMERG 0 0 0 0 0 # consensus
syscon log LOG_KERN 0 0 0 0 0 # consensus
syscon log LOG_ALERT 1 1 1 1 0 # unix consensus
syscon log LOG_PID 1 1 1 1 0 # unix consensus
syscon log LOG_CONS 2 2 2 2 0 # unix consensus
syscon log LOG_CRIT 2 2 2 2 0 # unix consensus
syscon log LOG_ERR 3 3 3 3 0 # unix consensus
syscon log LOG_ODELAY 4 4 4 4 0 # unix consensus
syscon log LOG_WARNING 4 4 4 4 0 # unix consensus
syscon log LOG_NOTICE 5 5 5 5 0 # unix consensus
syscon log LOG_INFO 6 6 6 6 0 # unix consensus
syscon log LOG_DEBUG 7 7 7 7 0 # unix consensus
syscon log LOG_PRIMASK 7 7 7 7 0 # unix consensus
syscon log LOG_NDELAY 8 8 8 8 0 # unix consensus
syscon log LOG_USER 8 8 8 8 0 # unix consensus
syscon log LOG_MAIL 0x10 0x10 0x10 0x10 0 # unix consensus
syscon log LOG_NOWAIT 0x10 0x10 0x10 0x10 0 # unix consensus
syscon log LOG_DAEMON 24 24 24 24 0 # unix consensus
syscon log LOG_NFACILITIES 24 25 24 24 0
syscon log LOG_AUTH 0x20 0x20 0x20 0x20 0 # unix consensus
syscon log LOG_PERROR 0x20 0x20 0x20 0x20 0 # unix consensus
syscon log LOG_SYSLOG 40 40 40 40 0 # unix consensus
syscon log LOG_LPR 48 48 48 48 0 # unix consensus
syscon log LOG_NEWS 56 56 56 56 0 # unix consensus
syscon log LOG_UUCP 0x40 0x40 0x40 0x40 0 # unix consensus
syscon log LOG_CRON 72 72 72 72 0 # unix consensus
syscon log LOG_SELECT 76 0 0 0 0
syscon log LOG_SENSE 77 0 0 0 0
syscon log LOG_LOCAL0 0x80 0x80 0x80 0x80 0 # unix consensus
syscon log LOG_LOCAL1 136 136 136 136 0 # unix consensus
syscon log LOG_LOCAL2 144 144 144 144 0 # unix consensus
syscon log LOG_LOCAL3 152 152 152 152 0 # unix consensus
syscon log LOG_LOCAL4 160 160 160 160 0 # unix consensus
syscon log LOG_LOCAL5 168 168 168 168 0 # unix consensus
syscon log LOG_LOCAL6 176 176 176 176 0 # unix consensus
syscon log LOG_LOCAL7 184 184 184 184 0 # unix consensus
syscon log LOG_FACMASK 0x03f8 0x03f8 0x03f8 0x03f8 0 # unix consensus
syscon sg SG_DXFER_TO_FROM_DEV -4 0 0 0 0
syscon sg SG_DXFER_FROM_DEV -3 0 0 0 0
syscon sg SG_DXFER_TO_DEV -2 0 0 0 0
syscon sg SG_DXFER_NONE -1 0 0 0 0
syscon sg SG_DEF_COMMAND_Q 0 0 0 0 0 # consensus
syscon sg SG_DEF_FORCE_LOW_DMA 0 0 0 0 0 # consensus
syscon sg SG_DEF_FORCE_PACK_ID 0 0 0 0 0 # consensus
syscon sg SG_DEF_KEEP_ORPHAN 0 0 0 0 0 # consensus
syscon sg SG_DEF_UNDERRUN_FLAG 0 0 0 0 0 # consensus
syscon sg SG_INFO_INDIRECT_IO 0 0 0 0 0 # consensus
syscon sg SG_INFO_OK 0 0 0 0 0 # consensus
syscon sg SG_SCSI_RESET_NOTHING 0 0 0 0 0 # consensus
syscon sg SG_DEFAULT_RETRIES 1 0 0 0 0
syscon sg SG_FLAG_DIRECT_IO 1 0 0 0 0
syscon sg SG_INFO_CHECK 1 0 0 0 0
syscon sg SG_INFO_OK_MASK 1 0 0 0 0
syscon sg SG_SCSI_RESET_DEVICE 1 0 0 0 0
syscon sg SG_FLAG_LUN_INHIBIT 2 0 0 0 0
syscon sg SG_INFO_DIRECT_IO 2 0 0 0 0
syscon sg SG_SCSI_RESET_BUS 2 0 0 0 0
syscon sg SG_SCSI_RESET_HOST 3 0 0 0 0
syscon sg SG_INFO_MIXED_IO 4 0 0 0 0
syscon sg SG_INFO_DIRECT_IO_MASK 6 0 0 0 0
syscon misc VOLUME_OVERFLOW 13 0 0 0 0
syscon sg SG_MAX_QUEUE 0x10 0 0 0 0
syscon sg SG_MAX_SENSE 0x10 0 0 0 0
syscon sg SG_DEFAULT_TIMEOUT 0x1770 0 0 0 0
syscon sg SG_SET_TIMEOUT 0x2201 0 0 0 0
syscon sg SG_GET_TIMEOUT 0x2202 0 0 0 0
syscon sg SG_EMULATED_HOST 0x2203 0 0 0 0
syscon sg SG_SET_TRANSFORM 0x2204 0 0 0 0
syscon sg SG_GET_TRANSFORM 0x2205 0 0 0 0
syscon sg SG_GET_COMMAND_Q 0x2270 0 0 0 0
syscon sg SG_SET_COMMAND_Q 0x2271 0 0 0 0
syscon sg SG_GET_RESERVED_SIZE 0x2272 0 0 0 0
syscon sg SG_SET_RESERVED_SIZE 0x2275 0 0 0 0
syscon sg SG_GET_SCSI_ID 0x2276 0 0 0 0
syscon sg SG_SET_FORCE_LOW_DMA 0x2279 0 0 0 0
syscon sg SG_GET_LOW_DMA 0x227a 0 0 0 0
syscon sg SG_SET_FORCE_PACK_ID 0x227b 0 0 0 0
syscon sg SG_GET_PACK_ID 0x227c 0 0 0 0
syscon sg SG_GET_NUM_WAITING 0x227d 0 0 0 0
syscon sg SG_SET_DEBUG 0x227e 0 0 0 0
syscon sg SG_GET_SG_TABLESIZE 0x227f 0 0 0 0
syscon sg SG_GET_VERSION_NUM 0x2282 0 0 0 0
syscon sg SG_NEXT_CMD_LEN 0x2283 0 0 0 0
syscon sg SG_SCSI_RESET 0x2284 0 0 0 0
syscon sg SG_IO 0x2285 0 0 0 0
syscon sg SG_GET_REQUEST_TABLE 0x2286 0 0 0 0
syscon sg SG_SET_KEEP_ORPHAN 0x2287 0 0 0 0
syscon sg SG_GET_KEEP_ORPHAN 0x2288 0 0 0 0
syscon sg SG_BIG_BUFF 0x8000 0 0 0 0
syscon sg SG_DEF_RESERVED_SIZE 0x8000 0 0 0 0
syscon sg SG_SCATTER_SZ 0x8000 0 0 0 0
syscon sg SG_FLAG_NO_DXFER 0x010000 0 0 0 0
syscon posix _POSIX_ARG_MAX 0x1000 0x1000 0x1000 0x1000 0 # unix consensus
syscon posix _POSIX_CHILD_MAX 25 25 25 25 0 # unix consensus
syscon posix _POSIX_HOST_NAME_MAX 255 255 255 255 0 # unix consensus
syscon posix _POSIX_LINK_MAX 8 8 8 8 0 # unix consensus
syscon posix _POSIX_LOGIN_NAME_MAX 9 9 9 9 0 # unix consensus
syscon posix _POSIX_MAX_CANON 255 255 255 255 0 # unix consensus
syscon posix _POSIX_MAX_INPUT 255 255 255 255 0 # unix consensus
syscon posix _POSIX_NAME_MAX 14 14 14 14 14 # forced consensus
syscon posix _POSIX_NGROUPS_MAX 8 8 8 8 0 # unix consensus
syscon posix _POSIX_OPEN_MAX 20 20 20 20 20 # forced consensus
syscon posix _POSIX_PATH_MAX 255 255 255 255 255 # forced consensus
syscon posix _POSIX_PIPE_BUF 0x0200 0x0200 0x0200 0x0200 0 # unix consensus
syscon posix _POSIX_RE_DUP_MAX 255 255 255 255 0 # unix consensus
syscon posix _POSIX_SEM_NSEMS_MAX 0x0100 0x0100 0x0100 0x0100 0 # unix consensus
syscon posix _POSIX_SEM_VALUE_MAX 0x7fff 0x7fff 0x7fff 0x7fff 0 # unix consensus
syscon posix _POSIX_SSIZE_MAX 0x7fff 0x7fff 0x7fff 0x7fff 0 # unix consensus
syscon posix _POSIX_STREAM_MAX 8 8 8 8 0 # unix consensus
syscon posix _POSIX_SYMLINK_MAX 255 255 255 255 0 # unix consensus
syscon posix _POSIX_SYMLOOP_MAX 8 8 8 8 0 # unix consensus
syscon posix _POSIX_THREAD_DESTRUCTOR_ITERATIONS 4 4 4 4 0 # unix consensus
syscon posix _POSIX_THREAD_KEYS_MAX 0x80 0x80 0x80 0x80 0 # unix consensus
syscon posix _POSIX_TTY_NAME_MAX 9 9 9 9 0 # unix consensus
syscon posix _POSIX_TZNAME_MAX 6 6 6 6 0 # unix consensus
syscon posix _POSIX_CLOCK_SELECTION 0x031069 -1 -1 -1 0 # bsd consensus
syscon posix _POSIX_FSYNC 0x031069 0x030db0 0x030db0 0x030db0 0 # bsd consensus
syscon posix _POSIX_MAPPED_FILES 0x031069 0x030db0 0x030db0 0x030db0 0 # bsd consensus
syscon posix _POSIX_MEMORY_PROTECTION 0x031069 0x030db0 0x030db0 0x030db0 0 # bsd consensus
syscon posix _POSIX_READER_WRITER_LOCKS 0x031069 0x030db0 0x030db0 0x030db0 0 # bsd consensus
syscon posix _POSIX_THREADS 0x031069 0x030db0 0x030db0 0x030db0 0 # bsd consensus
syscon posix _POSIX_THREAD_ATTR_STACKADDR 0x031069 0x030db0 0x030db0 0x030db0 0 # bsd consensus
syscon posix _POSIX_THREAD_ATTR_STACKSIZE 0x031069 0x030db0 0x030db0 0x030db0 0 # bsd consensus
syscon posix _POSIX_ADVISORY_INFO 0x031069 -1 0x030db0 -1 0
syscon posix _POSIX_ASYNCHRONOUS_IO 0x031069 -1 0x030db0 -1 0
syscon posix _POSIX_BARRIERS 0x031069 -1 0x030db0 0x030db0 0
syscon posix _POSIX_JOB_CONTROL 1 0x030db0 1 1 0
syscon posix _POSIX_MEMLOCK 0x031069 -1 -1 0x030db0 0
syscon posix _POSIX_MEMLOCK_RANGE 0x031069 -1 0x030db0 0x030db0 0
syscon posix _POSIX_MESSAGE_PASSING 0x031069 -1 0x030db0 -1 0
syscon posix _POSIX_NO_TRUNC 1 0x030db0 1 1 0
syscon posix _POSIX_RAW_SOCKETS 0x031069 -1 0x030db0 0x030db0 0
syscon posix _POSIX_REALTIME_SIGNALS 0x031069 -1 0x030db0 -1 0
syscon posix _POSIX_REGEXP 1 0x030db0 1 1 0
syscon posix _POSIX_SEMAPHORES 0x031069 -1 0x030db0 0x030db0 0
syscon posix _POSIX_SHARED_MEMORY_OBJECTS 0x031069 -1 0x030db0 0x031069 0
syscon posix _POSIX_SHELL 1 0x030db0 1 1 0
syscon posix _POSIX_SPAWN 0x031069 -1 0x030db0 0x030db0 0
syscon posix _POSIX_SPIN_LOCKS 0x031069 -1 0x030db0 0x030db0 0
syscon posix _POSIX_THREAD_PRIORITY_SCHEDULING 0x031069 -1 0x030db0 -1 0
syscon posix _POSIX_THREAD_PROCESS_SHARED 0x031069 0x030db0 0x030db0 -1 0
syscon posix _POSIX_THREAD_SAFE_FUNCTIONS 0x031069 0x030db0 -1 0x030db0 0
syscon posix _POSIX_THREAD_THREADS_MAX 0x40 0x40 0x40 4 0
syscon posix _POSIX_TIMEOUTS 0x031069 -1 0x030db0 0x030db0 0
syscon posix _POSIX_TIMERS 0x031069 -1 0x030db0 -1 0
syscon posix _POSIX_VERSION 0x031069 0x030db0 0x030db0 0x031069 0
syscon posix _POSIX_VDISABLE 0 255 255 255 0 # bsd consensus
syscon posix _POSIX_AIO_LISTIO_MAX 2 2 2 0 0
syscon posix _POSIX_AIO_MAX 1 1 1 0 0
syscon posix _POSIX_CHOWN_RESTRICTED 0 0x030db0 1 1 0
syscon posix _POSIX_CLOCKRES_MIN 0x01312d00 0 0x01312d00 0x01312d00 0
syscon posix _POSIX_CPUTIME 0 -1 0x030db0 0x031069 0
syscon posix _POSIX_DELAYTIMER_MAX 0x20 0x20 0x20 0 0
syscon posix _POSIX_MONOTONIC_CLOCK 0 -1 0x030db0 0x030db0 0
syscon posix _POSIX_MQ_OPEN_MAX 8 8 8 0 0
syscon posix _POSIX_MQ_PRIO_MAX 0x20 0x20 0x20 0 0
syscon posix _POSIX_RTSIG_MAX 8 8 8 0 0
syscon posix _POSIX_SAVED_IDS 1 0x030db0 0 1 0
syscon posix _POSIX_SIGQUEUE_MAX 0x20 0x20 0x20 0 0
syscon posix _POSIX_THREAD_CPUTIME 0 -1 0x030db0 0x031069 0
syscon posix _POSIX_TIMER_MAX 0x20 0x20 0x20 0 0
syscon posix _POSIX_IPV6 0x031069 0x030db0 0 0 0
syscon posix _POSIX_SS_REPL_MAX 0 4 4 0 0
syscon posix _POSIX_TRACE_EVENT_NAME_MAX 0 30 30 0 0
syscon posix _POSIX_TRACE_NAME_MAX 0 8 8 0 0
syscon posix _POSIX_TRACE_SYS_MAX 0 8 8 0 0
syscon posix _POSIX_TRACE_USER_EVENT_MAX 0 0x20 0x20 0 0
syscon posix _POSIX_V6_LP64_OFF64 1 1 0 0 0
syscon posix _POSIX_V7_LP64_OFF64 1 1 0 0 0
syscon icmp6 ICMP6_DST_UNREACH_NOROUTE 0 0 0 0 0 # consensus
syscon icmp6 ICMP6_PARAMPROB_HEADER 0 0 0 0 0 # consensus
syscon icmp6 ICMP6_TIME_EXCEED_TRANSIT 0 0 0 0 0 # consensus
syscon icmp6 ICMP6_DST_UNREACH_ADMIN 1 1 1 1 1 # consensus
syscon icmp6 ICMP6_PARAMPROB_NEXTHEADER 1 1 1 1 1 # consensus
syscon icmp6 ICMP6_TIME_EXCEED_REASSEMBLY 1 1 1 1 1 # consensus
syscon icmp6 ICMP6_DST_UNREACH 1 1 1 1 0 # unix consensus
syscon icmp6 ICMP6_FILTER 1 18 18 18 0 # bsd consensus
syscon icmp6 ICMP6_DST_UNREACH_BEYONDSCOPE 2 2 2 2 2 # consensus
syscon icmp6 ICMP6_PARAMPROB_OPTION 2 2 2 2 2 # consensus
syscon icmp6 ICMP6_PACKET_TOO_BIG 2 2 2 2 0 # unix consensus
syscon icmp6 ICMP6_DST_UNREACH_ADDR 3 3 3 3 3 # consensus
syscon icmp6 ICMP6_TIME_EXCEEDED 3 3 3 3 0 # unix consensus
syscon icmp6 ICMP6_DST_UNREACH_NOPORT 4 4 4 4 4 # consensus
syscon icmp6 ICMP6_PARAM_PROB 4 4 4 4 0 # unix consensus
syscon icmp6 ICMP6_RR_FLAGS_PREVDONE 8 8 8 8 0 # unix consensus
syscon icmp6 ICMP6_RR_FLAGS_SPECSITE 0x10 0x10 0x10 0x10 0 # unix consensus
syscon icmp6 ICMP6_RR_PCOUSE_RAFLAGS_AUTO 0x10 0x40 0x40 0x40 0 # bsd consensus
syscon icmp6 ICMP6_RR_FLAGS_FORCEAPPLY 0x20 0x20 0x20 0x20 0 # unix consensus
syscon icmp6 ICMP6_RR_PCOUSE_RAFLAGS_ONLINK 0x20 0x80 0x80 0x80 0 # bsd consensus
syscon icmp6 ICMP6_RR_FLAGS_REQRESULT 0x40 0x40 0x40 0x40 0 # unix consensus
syscon icmp6 ICMP6_RR_PCOUSE_FLAGS_DECRPLTIME 0x40 0x40 0x40 0x40 0 # unix consensus
syscon icmp6 ICMP6_INFOMSG_MASK 0x80 0x80 0x80 0x80 0x80 # consensus
syscon icmp6 ICMP6_ECHO_REQUEST 0x80 0x80 0x80 0x80 0 # unix consensus
syscon icmp6 ICMP6_RR_FLAGS_TEST 0x80 0x80 0x80 0x80 0 # unix consensus
syscon icmp6 ICMP6_RR_PCOUSE_FLAGS_DECRVLTIME 0x80 0x80 0x80 0x80 0 # unix consensus
syscon icmp6 ICMP6_ECHO_REPLY 129 129 129 129 0 # unix consensus
syscon icmp6 ICMP6_ROUTER_RENUMBERING 138 138 138 138 0 # unix consensus
syscon icmp6 ICMP6_RR_RESULT_FLAGS_FORBIDDEN 0x0100 0x0100 0x0100 0x0100 0 # unix consensus
syscon icmp6 ICMP6_RR_RESULT_FLAGS_OOB 0x0200 0x0200 0x0200 0x0200 0 # unix consensus
syscon sio SIOCADDMULTI 0x8931 0x80206931 0x80206931 0x80206931 0 # bsd consensus
syscon sio SIOCATMARK 0x8905 0x40047307 0x40047307 0x40047307 0 # bsd consensus
syscon sio SIOCDELMULTI 0x8932 0x80206932 0x80206932 0x80206932 0 # bsd consensus
syscon sio SIOCDIFADDR 0x8936 0x80206919 0x80206919 0x80206919 0 # bsd consensus
syscon sio SIOCGIFADDR 0x8915 0xc0206921 0xc0206921 0xc0206921 0 # bsd consensus
syscon sio SIOCGIFBRDADDR 0x8919 0xc0206923 0xc0206923 0xc0206923 0 # bsd consensus
syscon sio SIOCGIFDSTADDR 0x8917 0xc0206922 0xc0206922 0xc0206922 0 # bsd consensus
syscon sio SIOCGIFFLAGS 0x8913 0xc0206911 0xc0206911 0xc0206911 0 # bsd consensus
syscon sio SIOCGIFMETRIC 0x891d 0xc0206917 0xc0206917 0xc0206917 0 # bsd consensus
syscon sio SIOCGIFNETMASK 0x891b 0xc0206925 0xc0206925 0xc0206925 0 # bsd consensus
syscon sio SIOCGPGRP 0x8904 0x40047309 0x40047309 0x40047309 0 # bsd consensus
syscon sio SIOCSIFADDR 0x8916 0x8020690c 0x8020690c 0x8020690c 0 # bsd consensus
syscon sio SIOCSIFBRDADDR 0x891a 0x80206913 0x80206913 0x80206913 0 # bsd consensus
syscon sio SIOCSIFDSTADDR 0x8918 0x8020690e 0x8020690e 0x8020690e 0 # bsd consensus
syscon sio SIOCSIFFLAGS 0x8914 0x80206910 0x80206910 0x80206910 0 # bsd consensus
syscon sio SIOCSIFMETRIC 0x891e 0x80206918 0x80206918 0x80206918 0 # bsd consensus
syscon sio SIOCSIFNETMASK 0x891c 0x80206916 0x80206916 0x80206916 0 # bsd consensus
syscon sio SIOCSPGRP 0x8902 0x80047308 0x80047308 0x80047308 0 # bsd consensus
syscon sio SIOCGIFCONF 0x8912 0xc00c6924 0xc0106924 0xc0106924 0
syscon sio SIOCGIFMTU 0x8921 0xc0206933 0xc0206933 0xc020697e 0
syscon sio SIOCSIFMTU 0x8922 0x80206934 0x80206934 0x8020697f 0
syscon sio SIOCGIFINDEX 0x8933 0 0xc0206920 0 0
syscon sio SIOCSIFNAME 0x8923 0 0x80206928 0 0
syscon sio SIOCADDDLCI 0x8980 0 0 0 0
syscon sio SIOCADDRT 0x890b 0 0 0 0
syscon sio SIOCDARP 0x8953 0 0 0 0
syscon sio SIOCDELDLCI 0x8981 0 0 0 0
syscon sio SIOCDELRT 0x890c 0 0 0 0
syscon sio SIOCDEVPRIVATE 0x89f0 0 0 0 0
syscon sio SIOCDRARP 0x8960 0 0 0 0
syscon sio SIOCGARP 0x8954 0 0 0 0
syscon sio SIOCGIFBR 0x8940 0 0 0 0
syscon sio SIOCGIFCOUNT 0x8938 0 0 0 0
syscon sio SIOCGIFENCAP 0x8925 0 0 0 0
syscon sio SIOCGIFHWADDR 0x8927 0 0 0 0
syscon sio SIOCGIFMAP 0x8970 0 0 0 0
syscon sio SIOCGIFMEM 0x891f 0 0 0 0
syscon sio SIOCGIFNAME 0x8910 0 0 0 0
syscon sio SIOCGIFPFLAGS 0x8935 0 0 0 0
syscon sio SIOCGIFSLAVE 0x8929 0 0 0 0
syscon sio SIOCGIFTXQLEN 0x8942 0 0 0 0
syscon sio SIOCGRARP 0x8961 0 0 0 0
syscon sio SIOCGSTAMP 0x8906 0 0 0 0
syscon sio SIOCGSTAMPNS 0x8907 0 0 0 0
syscon sio SIOCPROTOPRIVATE 0x89e0 0 0 0 0
syscon sio SIOCRTMSG 0x890d 0 0 0 0
syscon sio SIOCSARP 0x8955 0 0 0 0
syscon sio SIOCSIFBR 0x8941 0 0 0 0
syscon sio SIOCSIFENCAP 0x8926 0 0 0 0
syscon sio SIOCSIFHWADDR 0x8924 0 0 0 0
syscon sio SIOCSIFHWBROADCAST 0x8937 0 0 0 0
syscon sio SIOCSIFLINK 0x8911 0 0 0 0
syscon sio SIOCSIFMAP 0x8971 0 0 0 0
syscon sio SIOCSIFMEM 0x8920 0 0 0 0
syscon sio SIOCSIFPFLAGS 0x8934 0 0 0 0
syscon sio SIOCSIFSLAVE 0x8930 0 0 0 0
syscon sio SIOCSIFTXQLEN 0x8943 0 0 0 0
syscon sio SIOCSRARP 0x8962 0 0 0 0
syscon sio SIOGIFINDEX 0x8933 0 0 0 0
syscon af AF_UNSPEC 0 0 0 0 0 # consensus
syscon af AF_UNIX 1 1 1 1 1 # consensus
syscon af AF_LOCAL 1 1 1 1 0 # unix consensus
syscon af AF_FILE 1 0 0 0 0
syscon af AF_INET 2 2 2 2 2 # consensus
syscon af AF_AX25 3 0 0 0 0
syscon af AF_IPX 4 23 23 23 0 # bsd consensus
syscon af AF_APPLETALK 5 0x10 0x10 0x10 0x10 # bsd consensus
syscon af AF_NETROM 6 0 0 0 0
syscon af AF_BRIDGE 7 0 0 0 0
syscon af AF_ATMPVC 8 0 0 0 0
syscon af AF_X25 9 0 0 0 0
syscon af AF_INET6 10 30 28 24 23
syscon af AF_ROSE 11 0 0 0 0
syscon af AF_NETBEUI 13 0 0 0 0
syscon af AF_SECURITY 14 0 0 0 0
syscon af AF_KEY 15 0 0 30 0
syscon af AF_ROUTE 16 17 17 17 0 # bsd consensus
syscon af AF_NETLINK 16 0 0 0 0
syscon af AF_PACKET 17 0 0 0 0
syscon af AF_ASH 18 0 0 0 0
syscon af AF_ECONET 19 0 0 0 0
syscon af AF_ATMSVC 20 0 0 0 0
syscon af AF_RDS 21 0 0 0 0
syscon af AF_SNA 22 11 11 11 11 # bsd consensus
syscon af AF_IRDA 23 0 0 0 0
syscon af AF_PPPOX 24 0 0 0 0
syscon af AF_WANPIPE 25 0 0 0 0
syscon af AF_LLC 26 0 0 0 0
syscon af AF_IB 27 0 0 0 0
syscon af AF_MPLS 28 0 0 33 0
syscon af AF_CAN 29 0 0 0 0
syscon af AF_TIPC 30 0 0 0 0
syscon af AF_BLUETOOTH 31 0 36 0x20 0
syscon af AF_IUCV 0x20 0 0 0 0
syscon af AF_RXRPC 33 0 0 0 0
syscon af AF_ISDN 34 28 26 26 0
syscon af AF_PHONET 35 0 0 0 0
syscon af AF_IEEE802154 36 0 0 0 0
syscon af AF_CAIF 37 0 0 0 0
syscon af AF_ALG 38 0 0 0 0
syscon af AF_NFC 39 0 0 0 0
syscon af AF_VSOCK 40 0 0 0 0
syscon af AF_KCM 41 0 0 0 0
syscon af AF_MAX 42 40 42 36 35
syscon pf PF_UNIX 1 1 1 1 1 # consensus
syscon pf PF_UNSPEC 0 0 0 0 0 # consensus
syscon pf PF_APPLETALK 5 0x10 0x10 0x10 0x10 # bsd consensus
syscon pf PF_SNA 22 11 11 11 11 # bsd consensus
syscon pf PF_INET6 10 30 28 24 23
syscon pf PF_MAX 42 40 42 36 35
syscon pf PF_INET 2 2 2 2 0 # unix consensus
syscon pf PF_LOCAL 1 1 1 1 0 # unix consensus
syscon pf PF_IPX 4 23 23 23 0 # bsd consensus
syscon pf PF_ROUTE 0x10 17 17 17 0 # bsd consensus
syscon pf PF_ISDN 34 28 26 26 0
syscon pf PF_KEY 15 29 27 30 0
syscon pf PF_BLUETOOTH 31 0 36 0x20 0
syscon pf PF_MPLS 28 0 0 33 0
syscon pf PF_ALG 38 0 0 0 0
syscon pf PF_ASH 18 0 0 0 0
syscon pf PF_ATMPVC 8 0 0 0 0
syscon pf PF_ATMSVC 20 0 0 0 0
syscon pf PF_AX25 3 0 0 0 0
syscon pf PF_BRIDGE 7 0 0 0 0
syscon pf PF_CAIF 37 0 0 0 0
syscon pf PF_CAN 29 0 0 0 0
syscon pf PF_ECONET 19 0 0 0 0
syscon pf PF_FILE 1 0 0 0 0
syscon pf PF_IB 27 0 0 0 0
syscon pf PF_IEEE802154 36 0 0 0 0
syscon pf PF_IRDA 23 0 0 0 0
syscon pf PF_IUCV 0x20 0 0 0 0
syscon pf PF_KCM 41 0 0 0 0
syscon pf PF_LLC 26 0 0 0 0
syscon pf PF_NETBEUI 13 0 0 0 0
syscon pf PF_NETLINK 0x10 0 0 0 0
syscon pf PF_NETROM 6 0 0 0 0
syscon pf PF_NFC 39 0 0 0 0
syscon pf PF_PACKET 17 0 0 0 0
syscon pf PF_PHONET 35 0 0 0 0
syscon pf PF_PPPOX 24 0 0 0 0
syscon pf PF_RDS 21 0 0 0 0
syscon pf PF_ROSE 11 0 0 0 0
syscon pf PF_RXRPC 33 0 0 0 0
syscon pf PF_SECURITY 14 0 0 0 0
syscon pf PF_TIPC 30 0 0 0 0
syscon pf PF_VSOCK 40 0 0 0 0
syscon pf PF_WANPIPE 25 0 0 0 0
syscon pf PF_X25 9 0 0 0 0
syscon ip IP_DEFAULT_MULTICAST_LOOP 1 1 1 1 1 # consensus
syscon ip IP_DEFAULT_MULTICAST_TTL 1 1 1 1 1 # consensus
syscon ip IP_PMTUDISC_DONT 0 0 0 0 0 # consensus
syscon ip IP_HDRINCL 3 2 2 2 2 # bsd consensus
syscon ip IP_MAX_MEMBERSHIPS 20 0x0fff 0x0fff 0x0fff 20 # bsd consensus
syscon ip IP_OPTIONS 4 1 1 1 1 # bsd consensus
syscon ip IP_TOS 1 3 3 3 8 # bsd consensus
syscon ip IP_RECVTTL 12 24 65 31 21
syscon ip IP_ADD_MEMBERSHIP 35 12 12 12 0 # bsd consensus
syscon ip IP_DROP_MEMBERSHIP 36 13 13 13 0 # bsd consensus
syscon ip IP_MULTICAST_IF 0x20 9 9 9 0 # bsd consensus
syscon ip IP_MULTICAST_LOOP 34 11 11 11 0 # bsd consensus
syscon ip IP_MULTICAST_TTL 33 10 10 10 0 # bsd consensus
syscon ip IP_RECVOPTS 6 5 5 5 0 # bsd consensus
syscon ip IP_RECVRETOPTS 7 6 6 6 0 # bsd consensus
syscon ip IP_RETOPTS 7 8 8 8 0 # bsd consensus
syscon ip IP_TTL 2 4 4 4 0 # bsd consensus
syscon ip IP_ADD_SOURCE_MEMBERSHIP 39 70 70 0 15
syscon ip IP_BLOCK_SOURCE 38 72 72 0 17
syscon ip IP_DROP_SOURCE_MEMBERSHIP 40 71 71 0 0x10
syscon ip IP_UNBLOCK_SOURCE 37 73 73 0 18
syscon ip IP_IPSEC_POLICY 0x10 21 21 0 0
syscon ip IP_MINTTL 21 0 66 0x20 0
syscon ip IP_MSFILTER 41 74 74 0 0
syscon ip IP_PKTINFO 8 26 0 0 19
syscon ip IP_RECVTOS 13 0 68 0 40
syscon ip IP_MTU 14 0 0 0 73 # bsd consensus
syscon ip IP_MTU_DISCOVER 10 0 0 0 71 # bsd consensus
syscon ip IP_RECVERR 11 0 0 0 75 # bsd consensus
syscon ip IP_UNICAST_IF 50 0 0 0 31 # bsd consensus
syscon ip IP_ORIGDSTADDR 20 0 27 0 0
syscon ip IP_RECVORIGDSTADDR 20 0 27 0 0
syscon ip IP_BIND_ADDRESS_NO_PORT 24 0 0 0 0
syscon ip IP_CHECKSUM 23 0 0 0 0
syscon ip IP_FREEBIND 15 0 0 0 0
syscon ip IP_MULTICAST_ALL 49 0 0 0 0
syscon ip IP_NODEFRAG 22 0 0 0 0
syscon ip IP_PASSSEC 18 0 0 0 0
syscon ip IP_PKTOPTIONS 9 0 0 0 0
syscon ip IP_PMTUDISC 10 0 0 0 0
syscon ip IP_PMTUDISC_DO 2 0 0 0 0
syscon ip IP_PMTUDISC_INTERFACE 4 0 0 0 0
syscon ip IP_PMTUDISC_OMIT 5 0 0 0 0
syscon ip IP_PMTUDISC_PROBE 3 0 0 0 0
syscon ip IP_PMTUDISC_WANT 1 0 0 0 0
syscon ip IP_ROUTER_ALERT 5 0 0 0 0
syscon ip IP_TRANSPARENT 19 0 0 0 0
syscon ip IP_XFRM_POLICY 17 0 0 0 0
syscon ip INET_ADDRSTRLEN 0x10 0x10 0x10 0x10 22 # unix consensus
syscon ipv6 IPV6_PMTUDISC_DONT 0 0 0 0 0 # consensus
syscon ipv6 IPV6_RTHDR_LOOSE 0 0 0 0 0 # consensus
syscon ipv6 IPV6_RTHDR_TYPE_0 0 0 0 0 0 # consensus
syscon ipv6 IPV6_CHECKSUM 7 26 26 26 26 # bsd consensus
syscon ipv6 IPV6_JOIN_GROUP 20 12 12 12 12 # bsd consensus
syscon ipv6 IPV6_LEAVE_GROUP 21 13 13 13 13 # bsd consensus
syscon ipv6 IPV6_MULTICAST_HOPS 18 10 10 10 10 # bsd consensus
syscon ipv6 IPV6_MULTICAST_IF 17 9 9 9 9 # bsd consensus
syscon ipv6 IPV6_MULTICAST_LOOP 19 11 11 11 11 # bsd consensus
syscon ipv6 IPV6_UNICAST_HOPS 0x10 4 4 4 4 # bsd consensus
syscon ipv6 IPV6_V6ONLY 26 27 27 27 27 # bsd consensus
syscon ipv6 IPV6_RECVTCLASS 66 35 57 57 40
syscon ipv6 IPV6_TCLASS 67 36 61 61 39
syscon ipv6 IPV6_DONTFRAG 62 0 62 62 14
syscon ipv6 IPV6_HOPLIMIT 52 0 47 47 21
syscon ipv6 IPV6_HOPOPTS 54 0 49 49 1
syscon ipv6 IPV6_PKTINFO 50 0 46 46 19
syscon ipv6 IPV6_RECVRTHDR 56 0 38 38 38
syscon ipv6 IPV6_RTHDR 57 0 51 51 0x20
syscon ipv6 IPV6_DSTOPTS 59 0 50 50 0
syscon ipv6 IPV6_IPSEC_POLICY 34 28 28 0 0
syscon ipv6 IPV6_NEXTHOP 9 0 48 48 0
syscon ipv6 IPV6_PATHMTU 61 0 44 44 0
syscon ipv6 IPV6_RECVDSTOPTS 58 0 40 40 0
syscon ipv6 IPV6_RECVHOPLIMIT 51 0 37 37 0
syscon ipv6 IPV6_RECVHOPOPTS 53 0 39 39 0
syscon ipv6 IPV6_RECVPATHMTU 60 0 43 43 0
syscon ipv6 IPV6_RECVPKTINFO 49 0 36 36 0
syscon ipv6 IPV6_RTHDRDSTOPTS 55 0 35 35 0
syscon ipv6 IPV6_RTHDR_STRICT 1 1 1 0 0
syscon ipv6 IPV6_ADD_MEMBERSHIP 20 0 0 0 12 # bsd consensus
syscon ipv6 IPV6_DROP_MEMBERSHIP 21 0 0 0 13 # bsd consensus
syscon ipv6 IPV6_HDRINCL 36 0 0 0 2 # bsd consensus
syscon ipv6 IPV6_MTU 24 0 0 0 72 # bsd consensus
syscon ipv6 IPV6_MTU_DISCOVER 23 0 0 0 71 # bsd consensus
syscon ipv6 IPV6_RECVERR 25 0 0 0 75 # bsd consensus
syscon ipv6 IPV6_2292DSTOPTS 4 23 0 0 0
syscon ipv6 IPV6_2292HOPLIMIT 8 20 0 0 0
syscon ipv6 IPV6_2292HOPOPTS 3 22 0 0 0
syscon ipv6 IPV6_2292PKTINFO 2 19 0 0 0
syscon ipv6 IPV6_2292PKTOPTIONS 6 25 0 0 0
syscon ipv6 IPV6_2292RTHDR 5 24 0 0 0
syscon ipv6 IPV6_AUTOFLOWLABEL 0 0 59 59 0
syscon ipv6 IPV6_ADDRFORM 1 0 0 0 0
syscon ipv6 IPV6_AUTHHDR 10 0 0 0 0
syscon ipv6 IPV6_JOIN_ANYCAST 27 0 0 0 0
syscon ipv6 IPV6_LEAVE_ANYCAST 28 0 0 0 0
syscon ipv6 IPV6_PMTUDISC_DO 2 0 0 0 0
syscon ipv6 IPV6_PMTUDISC_INTERFACE 4 0 0 0 0
syscon ipv6 IPV6_PMTUDISC_OMIT 5 0 0 0 0
syscon ipv6 IPV6_PMTUDISC_PROBE 3 0 0 0 0
syscon ipv6 IPV6_PMTUDISC_WANT 1 0 0 0 0
syscon ipv6 IPV6_ROUTER_ALERT 22 0 0 0 0
syscon ipv6 IPV6_RXDSTOPTS 59 0 0 0 0
syscon ipv6 IPV6_RXHOPOPTS 54 0 0 0 0
syscon ipv6 IPV6_XFRM_POLICY 35 0 0 0 0
syscon ipv6 IPV6_MINHOPCOUNT 0 0 0 65 0
syscon ipv6 IPV6_ORIGDSTADDR 0 0 72 0 0
syscon ipv6 IPV6_RECVORIGDSTADDR 0 0 72 0 0
syscon ipv6 INET6_ADDRSTRLEN 46 46 46 46 65 # unix consensus
syscon poll POLLIN 1 1 1 1 0x300 # unix consensus
syscon poll POLLPRI 2 2 2 2 0x0400 # unix consensus
syscon poll POLLOUT 4 4 4 4 0x10 # unix consensus
syscon poll POLLERR 8 8 8 8 1 # unix consensus
syscon poll POLLHUP 0x10 0x10 0x10 0x10 2 # unix consensus
syscon poll POLLNVAL 0x20 0x20 0x20 0x20 4 # unix consensus
syscon poll POLLRDBAND 0x80 0x80 0x80 0x80 0x0200 # unix consensus
syscon poll POLLRDNORM 0x40 0x40 0x40 0x40 0x0100 # unix consensus
syscon poll POLLWRBAND 0x0200 0x0100 0x0100 0x0100 0x20 # bsd consensus
syscon poll POLLWRNORM 0x0100 4 4 4 0x10 # bsd consensus
syscon poll POLLRDHUP 0x2000 0x10 0x10 0x10 2 # bsd consensus (POLLHUP on non-Linux)
syscon sigpoll POLL_ERR 4 4 4 0 0
syscon sigpoll POLL_HUP 6 6 6 0 0
syscon sigpoll POLL_IN 1 1 1 0 0
syscon sigpoll POLL_MSG 3 3 3 0 0
syscon sigpoll POLL_OUT 2 2 2 0 0
syscon sigpoll POLL_PRI 5 5 5 0 0
syscon c C_IXOTH 0000001 0000001 0000001 0000001 0 # unix consensus
syscon c C_IWOTH 0000002 0000002 0000002 0000002 0 # unix consensus
syscon c C_IROTH 0000004 0000004 0000004 0000004 0 # unix consensus
syscon c C_IXGRP 0000010 0000010 0000010 0000010 0 # unix consensus
syscon c C_IWGRP 0000020 0000020 0000020 0000020 0 # unix consensus
syscon c C_IRGRP 0000040 0000040 0000040 0000040 0 # unix consensus
syscon c C_IXUSR 0000100 0000100 0000100 0000100 0 # unix consensus
syscon c C_IWUSR 0000200 0000200 0000200 0000200 0 # unix consensus
syscon c C_IRUSR 0000400 0000400 0000400 0000400 0 # unix consensus
syscon c C_ISVTX 0001000 0001000 0001000 0001000 0 # unix consensus
syscon c C_ISGID 0002000 0002000 0002000 0002000 0 # unix consensus
syscon c C_ISUID 0004000 0004000 0004000 0004000 0 # unix consensus
syscon c C_ISFIFO 0010000 0010000 0010000 0010000 0 # unix consensus
syscon c C_ISCHR 0020000 0020000 0020000 0020000 0 # unix consensus
syscon c C_ISDIR 0040000 0040000 0040000 0040000 0 # unix consensus
syscon c C_ISBLK 0060000 0060000 0060000 0060000 0 # unix consensus
syscon c C_ISREG 0100000 0100000 0100000 0100000 0 # unix consensus
syscon c C_ISCTG 0110000 0110000 0110000 0110000 0 # unix consensus
syscon c C_ISLNK 0120000 0120000 0120000 0120000 0 # unix consensus
syscon c C_ISSOCK 0140000 0140000 0140000 0140000 0 # unix consensus
syscon fan FAN_CLASS_NOTIF 0 0 0 0 0 # consensus
syscon fan FAN_ACCESS 1 0 0 0 0
syscon fan FAN_ACCESS_PERM 0x020000 0 0 0 0
syscon fan FAN_ALLOW 1 0 0 0 0
syscon fan FAN_ALL_CLASS_BITS 12 0 0 0 0
syscon fan FAN_ALL_EVENTS 59 0 0 0 0
syscon fan FAN_ALL_INIT_FLAGS 63 0 0 0 0
syscon fan FAN_ALL_MARK_FLAGS 255 0 0 0 0
syscon fan FAN_ALL_OUTGOING_EVENTS 0x03403b 0 0 0 0
syscon fan FAN_ALL_PERM_EVENTS 0x030000 0 0 0 0
syscon fan FAN_CLASS_CONTENT 4 0 0 0 0
syscon fan FAN_CLASS_PRE_CONTENT 8 0 0 0 0
syscon fan FAN_CLOEXEC 1 0 0 0 0
syscon fan FAN_CLOSE 24 0 0 0 0
syscon fan FAN_CLOSE_NOWRITE 0x10 0 0 0 0
syscon fan FAN_CLOSE_WRITE 8 0 0 0 0
syscon fan FAN_DENY 2 0 0 0 0
syscon fan FAN_EVENT_METADATA_LEN 24 0 0 0 0
syscon fan FAN_EVENT_ON_CHILD 0x08000000 0 0 0 0
syscon fan FAN_MARK_ADD 1 0 0 0 0
syscon fan FAN_MARK_DONT_FOLLOW 4 0 0 0 0
syscon fan FAN_MARK_FLUSH 0x80 0 0 0 0
syscon fan FAN_MARK_IGNORED_MASK 0x20 0 0 0 0
syscon fan FAN_MARK_IGNORED_SURV_MODIFY 0x40 0 0 0 0
syscon fan FAN_MARK_MOUNT 0x10 0 0 0 0
syscon fan FAN_MARK_ONLYDIR 8 0 0 0 0
syscon fan FAN_MARK_REMOVE 2 0 0 0 0
syscon fan FAN_MODIFY 2 0 0 0 0
syscon fan FAN_NOFD -1 0 0 0 0
syscon fan FAN_NONBLOCK 2 0 0 0 0
syscon fan FAN_ONDIR 0x40000000 0 0 0 0
syscon fan FAN_OPEN 0x20 0 0 0 0
syscon fan FAN_OPEN_PERM 0x010000 0 0 0 0
syscon fan FAN_Q_OVERFLOW 0x4000 0 0 0 0
syscon fan FAN_UNLIMITED_MARKS 0x20 0 0 0 0
syscon fan FAN_UNLIMITED_QUEUE 0x10 0 0 0 0
syscon exit EXIT_SUCCESS 0 0 0 0 0 # consensus
syscon exit EXIT_FAILURE 1 1 1 1 1 # consensus
# Eric Allman's exit() codes
#
# - Broadly supported style guideline;
# - Dating back to 1980 in 4.0BSD;
# - That won't be standardized.
#
# group name GNU/Systemd XNU's Not UNIX FreeBSD OpenBSD XENIX Commentary
syscon ex EX_OK 0 0 0 0 0 # consensus
syscon ex EX_USAGE 64 64 64 64 64 # unix consensus & force NT
syscon ex EX_DATAERR 65 65 65 65 65 # unix consensus & force NT
syscon ex EX_NOINPUT 66 66 66 66 66 # unix consensus & force NT
syscon ex EX_NOUSER 67 67 67 67 67 # unix consensus & force NT
syscon ex EX_NOHOST 68 68 68 68 68 # unix consensus & force NT
syscon ex EX_UNAVAILABLE 69 69 69 69 69 # unix consensus & force NT
syscon ex EX_SOFTWARE 70 70 70 70 70 # unix consensus & force NT
syscon ex EX_OSERR 71 71 71 71 71 # unix consensus & force NT
syscon ex EX_OSFILE 72 72 72 72 72 # unix consensus & force NT
syscon ex EX_CANTCREAT 73 73 73 73 73 # unix consensus & force NT
syscon ex EX_IOERR 74 74 74 74 74 # unix consensus & force NT
syscon ex EX_TEMPFAIL 75 75 75 75 75 # unix consensus & force NT
syscon ex EX_PROTOCOL 76 76 76 76 76 # unix consensus & force NT
syscon ex EX_NOPERM 77 77 77 77 77 # unix consensus & force NT
syscon ex EX_CONFIG 78 78 78 78 78 # unix consensus & force NT
syscon ex EX__BASE 64 64 64 64 64 # unix consensus & force NT
syscon ex EX__MAX 78 78 78 78 78 # unix consensus & force NT
2020-09-07 04:39:00 +00:00
# getdents() constants
#
# group name GNU/Systemd XNU's Not UNIX FreeBSD OpenBSD XENIX Commentary
syscon dt DT_UNKNOWN 0 0 0 0 0 # consensus
syscon dt DT_FIFO 1 1 1 1 1 # unix consensus & faked nt
syscon dt DT_CHR 2 2 2 2 2 # unix consensus & faked nt
syscon dt DT_DIR 4 4 4 4 4 # unix consensus & faked nt
syscon dt DT_BLK 6 6 6 6 6 # unix consensus & faked nt
syscon dt DT_REG 8 8 8 8 8 # unix consensus & faked nt
syscon dt DT_LNK 10 10 10 10 10 # unix consensus & faked nt
syscon dt DT_SOCK 12 12 12 12 12 # unix consensus & faked nt
2020-06-15 14:18:57 +00:00
# msync() flags
#
# group name GNU/Systemd XNU's Not UNIX FreeBSD OpenBSD XENIX Commentary
syscon ms MS_SYNC 4 16 0 2 4 # faked nt
syscon ms MS_ASYNC 1 1 1 1 1 # consensus (faked nt)
syscon ms MS_INVALIDATE 2 2 2 4 0
# mount flags
#
# group name GNU/Systemd XNU's Not UNIX FreeBSD OpenBSD XENIX Commentary
syscon mount MS_ACTIVE 0x40000000 0 0 0 0
syscon mount MS_BIND 0x1000 0 0 0 0
syscon mount MS_DIRSYNC 0x80 0 0 0 0
syscon mount MS_I_VERSION 0x800000 0 0 0 0
syscon mount MS_KERNMOUNT 0x400000 0 0 0 0
syscon mount MS_LAZYTIME 0x02000000 0 0 0 0
syscon mount MS_MANDLOCK 0x40 0 0 0 0
syscon mount MS_MGC_VAL 0xc0ed0000 0 0 0 0
syscon mount MS_MOVE 0x2000 0 0 0 0
syscon mount MS_NOATIME 0x0400 0 0 0 0
syscon mount MS_NODEV 4 0 0 0 0
syscon mount MS_NODIRATIME 0x0800 0 0 0 0
syscon mount MS_NOEXEC 8 0 0 0 0
syscon mount MS_NOSUID 2 0 0 0 0
syscon mount MS_NOUSER -2147483648 0 0 0 0
syscon mount MS_POSIXACL 0x010000 0 0 0 0
syscon mount MS_PRIVATE 0x040000 0 0 0 0
syscon mount MS_RDONLY 1 0 0 0 0
syscon mount MS_REC 0x4000 0 0 0 0
syscon mount MS_RELATIME 0x200000 0 0 0 0
syscon mount MS_REMOUNT 0x20 0 0 0 0
syscon mount MS_RMT_MASK 0x02800051 0 0 0 0
syscon mount MS_SHARED 0x100000 0 0 0 0
syscon mount MS_SILENT 0x8000 0 0 0 0
syscon mount MS_SLAVE 0x080000 0 0 0 0
syscon mount MS_STRICTATIME 0x01000000 0 0 0 0
syscon mount MS_SYNCHRONOUS 0x10 0 0 0 0
syscon mount MS_UNBINDABLE 0x020000 0 0 0 0
syscon mount MS_MGC_MSK 0xffff0000 0 0 0 0
# TODO(jart): MSG_ZEROCOPY
syscon msg MSG_OOB 1 1 1 1 1 # consensus
syscon msg MSG_PEEK 2 2 2 2 2 # consensus
syscon msg MSG_DONTROUTE 4 4 4 4 4 # consensus
syscon msg MSG_FASTOPEN 0x20000000 0 0 0 0 # TODO
syscon msg MSG_WAITALL 0x0100 0x40 0x40 0x40 8 # bsd consensus
syscon msg MSG_TRUNC 0x20 0x10 0x10 0x10 0x0100 # bsd consensus
syscon msg MSG_CTRUNC 8 0x20 0x20 0x20 0x0200 # bsd consensus
syscon msg MSG_ERRQUEUE 0x2000 0 0 0 0x1000 # bsd consensus
syscon msg MSG_NOERROR 0x1000 0x1000 0x1000 0x1000 0 # unix consensus
syscon msg MSG_DONTWAIT 0x40 0x80 0x80 0x80 0 # bsd consensus
syscon msg MSG_EOR 0x80 8 8 8 0 # bsd consensus
syscon msg MSG_CMSG_CLOEXEC 0x40000000 0 0x040000 0x0800 0
syscon msg MSG_NOSIGNAL 0x4000 0 0x020000 0x0400 0
syscon msg MSG_WAITFORONE 0x010000 0 0x080000 0 0
syscon msg MSG_BATCH 0x040000 0 0 0 0
syscon msg MSG_CONFIRM 0x0800 0 0 0 0
syscon msg MSG_EXCEPT 0x2000 0 0 0 0
syscon msg MSG_FIN 0x0200 0 0 0 0
syscon msg MSG_INFO 12 0 0 0 0
syscon msg MSG_MORE 0x8000 0 0 0 0
syscon msg MSG_PARITY_ERROR 9 0 0 0 0
syscon msg MSG_PROXY 0x10 0 0 0 0
syscon msg MSG_RST 0x1000 0 0 0 0
syscon msg MSG_STAT 11 0 0 0 0
syscon msg MSG_SYN 0x0400 0 0 0 0
syscon in IN_LOOPBACKNET 127 127 127 127 0 # unix consensus
syscon in IN_ACCESS 1 0 0 0 0
syscon in IN_ALL_EVENTS 0x0fff 0 0 0 0
syscon in IN_ATTRIB 4 0 0 0 0
syscon in IN_CLOEXEC 0x080000 0 0 0 0
syscon in IN_CLOSE 24 0 0 0 0
syscon in IN_CLOSE_NOWRITE 0x10 0 0 0 0
syscon in IN_CLOSE_WRITE 8 0 0 0 0
syscon in IN_CREATE 0x0100 0 0 0 0
syscon in IN_DELETE 0x0200 0 0 0 0
syscon in IN_DELETE_SELF 0x0400 0 0 0 0
syscon in IN_DONT_FOLLOW 0x02000000 0 0 0 0
syscon in IN_EXCL_UNLINK 0x04000000 0 0 0 0
syscon in IN_IGNORED 0x8000 0 0 0 0
syscon in IN_ISDIR 0x40000000 0 0 0 0
syscon in IN_MASK_ADD 0x20000000 0 0 0 0
syscon in IN_MODIFY 2 0 0 0 0
syscon in IN_MOVE 192 0 0 0 0
syscon in IN_MOVED_FROM 0x40 0 0 0 0
syscon in IN_MOVED_TO 0x80 0 0 0 0
syscon in IN_MOVE_SELF 0x0800 0 0 0 0
syscon in IN_NONBLOCK 0x0800 0 0 0 0
syscon in IN_ONESHOT 0x80000000 0 0 0 0
syscon in IN_ONLYDIR 0x01000000 0 0 0 0
syscon in IN_OPEN 0x20 0 0 0 0
syscon in IN_Q_OVERFLOW 0x4000 0 0 0 0
syscon in IN_UNMOUNT 0x2000 0 0 0 0
syscon pt PT_TRACE_ME 0 0 0 0 0 # consensus
syscon pt PT_CONTINUE 7 7 7 7 0 # unix consensus
syscon pt PT_KILL 8 8 8 8 0 # unix consensus
syscon pt PT_READ_D 2 2 2 2 0 # unix consensus
syscon pt PT_READ_I 1 1 1 1 0 # unix consensus
syscon pt PT_WRITE_D 5 5 5 5 0 # unix consensus
syscon pt PT_WRITE_I 4 4 4 4 0 # unix consensus
syscon pt PT_ATTACH 0x10 10 10 9 0
syscon pt PT_DETACH 17 11 11 10 0
syscon pt PT_STEP 9 9 9 0x20 0
syscon pt PT_GETFPREGS 14 0 35 35 0
syscon pt PT_GETREGS 12 0 33 33 0
syscon pt PT_SETFPREGS 15 0 36 36 0
syscon pt PT_SETREGS 13 0 34 34 0
syscon pt PT_READ_U 3 3 0 0 0
syscon pt PT_SYSCALL 24 0 22 0 0
syscon pt PT_WRITE_U 6 6 0 0 0
syscon pt PT_GETEVENTMSG 0x4201 0 0 0 0
syscon pt PT_GETFPXREGS 18 0 0 0 0
syscon pt PT_GETSIGINFO 0x4202 0 0 0 0
syscon pt PT_SETFPXREGS 19 0 0 0 0
syscon pt PT_SETOPTIONS 0x4200 0 0 0 0
syscon pt PT_SETSIGINFO 0x4203 0 0 0 0
syscon iff IFF_BROADCAST 2 2 2 2 2 # consensus
syscon iff IFF_LOOPBACK 8 8 8 8 4 # unix consensus
syscon iff IFF_MULTICAST 0x1000 0x8000 0x8000 0x8000 0x10 # bsd consensus
syscon iff IFF_ALLMULTI 0x0200 0x0200 0x0200 0x0200 0 # unix consensus
syscon iff IFF_DEBUG 4 4 4 4 0 # unix consensus
syscon iff IFF_NOARP 0x80 0x80 0x80 0x80 0 # unix consensus
syscon iff IFF_POINTOPOINT 0x10 0x10 0x10 0x10 0 # unix consensus
syscon iff IFF_PROIFF 0x0100 0x0100 0x0100 0x0100 0 # unix consensus
syscon iff IFF_RUNNING 0x40 0x40 0x40 0x40 0 # unix consensus
syscon iff IFF_NOTRAILERS 0x20 0x20 0 0 0
syscon iff IFF_AUTOMEDIA 0x4000 0 0 0 0
syscon iff IFF_DYNAMIC 0x8000 0 0 0 0
syscon iff IFF_MASTER 0x0400 0 0 0 0
syscon iff IFF_PORTSEL 0x2000 0 0 0 0
syscon iff IFF_SLAVE 0x0800 0 0 0 0
syscon nd ND_RA_FLAG_MANAGED 0x80 0x80 0x80 0x80 0x80 # consensus
syscon nd ND_RA_FLAG_OTHER 0x40 0x40 0x40 0x40 0x40 # consensus
syscon nd ND_NA_FLAG_OVERRIDE 0x20 0x20 0x20 0x20 0x20000000 # unix consensus
syscon nd ND_NA_FLAG_ROUTER 0x80 0x80 0x80 0x80 0x80000000 # unix consensus
syscon nd ND_NA_FLAG_SOLICITED 0x40 0x40 0x40 0x40 0x40000000 # unix consensus
syscon nd ND_NEIGHBOR_ADVERT 136 136 136 136 0 # unix consensus
syscon nd ND_NEIGHBOR_SOLICIT 135 135 135 135 0 # unix consensus
syscon nd ND_REDIRECT 137 137 137 137 0 # unix consensus
syscon nd ND_ROUTER_ADVERT 134 134 134 134 0 # unix consensus
syscon nd ND_ROUTER_SOLICIT 133 133 133 133 0 # unix consensus
syscon nd ND_RA_FLAG_HOME_AGENT 0x20 0 0 0 0x20 # bsd consensus
syscon rlim RLIMIT_CPU 0 0 0 0 -1 # unix consensus
syscon rlim RLIMIT_FSIZE 1 1 1 1 -1 # unix consensus
syscon rlim RLIMIT_DATA 2 2 2 2 -1 # unix consensus
syscon rlim RLIMIT_STACK 3 3 3 3 -1 # unix consensus
syscon rlim RLIMIT_CORE 4 4 4 4 -1 # unix consensus
syscon rlim RLIMIT_RSS 5 5 5 5 -1 # unix consensus
syscon rlim RLIMIT_NPROC 6 7 7 7 -1 # bsd consensus
syscon rlim RLIMIT_NOFILE 7 8 8 8 -1 # bsd consensus
syscon rlim RLIMIT_MEMLOCK 8 6 6 6 -1 # bsd consensus
syscon rlim RLIMIT_AS 9 5 10 -1 -1
syscon rlim RLIMIT_LOCKS 10 -1 -1 -1 -1 # bsd consensus
syscon rlim RLIMIT_SIGPENDING 11 -1 -1 -1 -1 # bsd consensus
syscon rlim RLIMIT_MSGQUEUE 12 -1 -1 -1 -1 # bsd consensus
syscon rlim RLIMIT_NICE 13 -1 -1 -1 -1 # bsd consensus
syscon rlim RLIMIT_RTPRIO 14 -1 -1 -1 -1 # bsd consensus
syscon rlim RLIMIT_NLIMITS 16 -1 -1 -1 -1 # bsd consensus
syscon misc TCFLSH 0x540b 0 0 0 0
syscon misc TCIFLUSH 0 1 1 1 0 # bsd consensus
syscon misc TCIOFF 2 3 3 3 0 # bsd consensus
syscon misc TCIOFLUSH 2 3 3 3 0 # bsd consensus
syscon misc TCION 3 4 4 4 0 # bsd consensus
syscon misc TCOFLUSH 1 2 2 2 0 # bsd consensus
syscon misc TCOOFF 0 1 1 1 0 # bsd consensus
syscon misc TCOON 1 2 2 2 0 # bsd consensus
syscon misc FE_TONEAREST 0 0 0 0 0 # consensus
syscon misc FE_DIVBYZERO 4 4 4 4 0 # unix consensus
syscon misc FE_DOWNWARD 0x0400 0x0400 0x0400 0x0400 0 # unix consensus
syscon misc FE_INEXACT 0x20 0x20 0x20 0x20 0 # unix consensus
syscon misc FE_INVALID 1 1 1 1 0 # unix consensus
syscon misc FE_OVERFLOW 8 8 8 8 0 # unix consensus
syscon misc FE_TOWARDZERO 0x0c00 0x0c00 0x0c00 0x0c00 0 # unix consensus
syscon misc FE_UNDERFLOW 0x10 0x10 0x10 0x10 0 # unix consensus
syscon misc FE_UPWARD 0x0800 0x0800 0x0800 0x0800 0 # unix consensus
syscon misc FE_ALL_EXCEPT 61 63 63 63 0 # bsd consensus
syscon misc TYPE_DISK 0 0 0 0 0 # consensus
syscon misc TYPE_A 1 1 1 1 0 # unix consensus
syscon misc TYPE_E 2 2 2 2 0 # unix consensus
syscon misc TYPE_I 3 3 3 3 0 # unix consensus
syscon misc TYPE_L 4 4 4 4 0 # unix consensus
syscon misc TYPE_ENCLOSURE 13 0 0 0 0
syscon misc TYPE_MEDIUM_CHANGER 8 0 0 0 0
syscon misc TYPE_MOD 7 0 0 0 0
syscon misc TYPE_NO_LUN 127 0 0 0 0
syscon misc TYPE_PROCESSOR 3 0 0 0 0
syscon misc TYPE_ROM 5 0 0 0 0
syscon misc TYPE_SCANNER 6 0 0 0 0
syscon misc TYPE_TAPE 1 0 0 0 0
syscon misc TYPE_WORM 4 0 0 0 0
syscon misc _POSIX2_BC_BASE_MAX 99 99 99 99 0 # unix consensus
syscon misc _POSIX2_BC_DIM_MAX 0x0800 0x0800 0x0800 0x0800 0 # unix consensus
syscon misc _POSIX2_BC_SCALE_MAX 99 99 99 99 0 # unix consensus
syscon misc _POSIX2_BC_STRING_MAX 0x03e8 0x03e8 0x03e8 0x03e8 0 # unix consensus
syscon misc _POSIX2_CHARCLASS_NAME_MAX 14 14 14 14 0 # unix consensus
syscon misc _POSIX2_COLL_WEIGHTS_MAX 2 2 2 2 0 # unix consensus
syscon misc _POSIX2_EXPR_NEST_MAX 0x20 0x20 0x20 0x20 0 # unix consensus
syscon misc _POSIX2_LINE_MAX 0x0800 0x0800 0x0800 0x0800 0 # unix consensus
syscon misc _POSIX2_RE_DUP_MAX 255 255 255 255 0 # unix consensus
syscon misc _POSIX2_C_BIND 0x031069 0x030db0 0x030db0 0x030db0 0 # bsd consensus
syscon misc _POSIX2_VERSION 0x031069 0x030db0 0x030a2c 0x031069 0
syscon misc PTHREAD_MUTEX_STALLED 0 0 0 0 0 # consensus
syscon misc PTHREAD_PRIO_NONE 0 0 0 0 0 # consensus
syscon misc PTHREAD_PRIO_INHERIT 0 1 1 1 0 # bsd consensus
syscon misc PTHREAD_PRIO_PROTECT 0 2 2 2 0 # bsd consensus
syscon misc PTHREAD_DESTRUCTOR_ITERATIONS 4 4 4 4 0 # unix consensus
syscon misc PTHREAD_PROCESS_SHARED 1 1 1 1 0 # unix consensus
syscon misc PTHREAD_CREATE_DETACHED 1 2 1 1 0
syscon misc PTHREAD_KEYS_MAX 0x0400 0x0200 0x0100 0x0100 0
syscon misc PTHREAD_STACK_MIN 0x4000 0x2000 0x0800 0x1000 0
syscon misc PTHREAD_BARRIER_SERIAL_THREAD -1 0 -1 -1 0
syscon misc PTHREAD_CANCEL_ASYNCHRONOUS 1 0 2 2 0
syscon misc PTHREAD_CANCEL_DISABLE 1 0 1 1 0
syscon misc PTHREAD_INHERIT_SCHED 0 1 4 4 0
syscon misc PTHREAD_SCOPE_SYSTEM 0 1 2 2 0
syscon misc PTHREAD_EXPLICIT_SCHED 1 2 0 0 0
syscon misc PTHREAD_MUTEX_DEFAULT 0 0 1 4 0
syscon misc PTHREAD_MUTEX_ERRORCHECK 0 1 0 1 0
syscon misc PTHREAD_MUTEX_RECURSIVE 0 2 0 2 0
syscon misc PTHREAD_SCOPE_PROCESS 1 2 0 0 0
syscon misc PTHREAD_CANCEL_DEFERRED 0 2 0 0 0
syscon misc PTHREAD_CANCEL_ENABLE 0 1 0 0 0
syscon misc PTHREAD_CREATE_JOINABLE 0 1 0 0 0
syscon misc PTHREAD_MUTEX_NORMAL 0 0 0 3 0
syscon misc PTHREAD_MUTEX_ROBUST 0 0 1 0 0
syscon misc PTHREAD_PROCESS_PRIVATE 0 2 0 0 0
syscon misc FTW_F 0 0 0 0 0 # consensus
syscon misc FTW_D 1 1 1 1 0 # unix consensus
syscon misc FTW_DNR 2 2 2 2 0 # unix consensus
syscon misc FTW_MOUNT 2 2 2 2 0 # unix consensus
syscon misc FTW_PHYS 1 1 1 1 0 # unix consensus
syscon misc FTW_SLN 6 6 6 6 0 # unix consensus
syscon misc FTW_CHDIR 4 8 8 8 0 # bsd consensus
syscon misc FTW_DEPTH 8 4 4 4 0 # bsd consensus
syscon misc FTW_DP 5 3 3 3 0 # bsd consensus
syscon misc FTW_NS 3 4 4 4 0 # bsd consensus
syscon misc FTW_SL 4 5 5 5 0 # bsd consensus
syscon misc N_TTY 0 0 0 0 0 # consensus
syscon misc N_6PACK 7 0 0 0 0
syscon misc N_AX25 5 0 0 0 0
syscon misc N_HCI 15 0 0 0 0
syscon misc N_HDLC 13 0 0 0 0
syscon misc N_IRDA 11 0 0 0 0
syscon misc N_MASC 8 0 0 0 0
syscon misc N_MOUSE 2 0 0 0 0
syscon misc N_PPP 3 0 0 0 0
syscon misc N_PROFIBUS_FDL 10 0 0 0 0
syscon misc N_R3964 9 0 0 0 0
syscon misc N_SLIP 1 0 0 0 0
syscon misc N_SMSBLOCK 12 0 0 0 0
syscon misc N_STRIP 4 0 0 0 0
syscon misc N_SYNC_PPP 14 0 0 0 0
syscon misc N_X25 6 0 0 0 0
syscon sock SOCK_STREAM 1 1 1 1 1 # consensus
syscon sock SOCK_DGRAM 2 2 2 2 2 # consensus
syscon sock SOCK_RAW 3 3 3 3 3 # consensus
syscon sock SOCK_RDM 4 4 4 4 4 # consensus
syscon sock SOCK_SEQPACKET 5 5 5 5 5 # consensus
syscon sock SOCK_CLOEXEC 0x080000 0x080000 0x10000000 0x8000 0x80 # faked xnu & WSA_FLAG_NO_HANDLE_INHERIT
syscon sock SOCK_NONBLOCK 0x0800 0x0800 0x20000000 0x4000 0x0800 # faked xnu; faked nt; socket() will ioctl(FIONBIO=1)
syscon sock SOCK_DCCP 6 0 0 0 0 # what is it?
syscon sock SOCK_PACKET 10 0 0 0 0 # what is it?
syscon prsnlty ADDR_COMPAT_LAYOUT 0x0200000 -1 -1 -1 -1 # linux only
syscon prsnlty READ_IMPLIES_EXEC 0x0400000 -1 -1 -1 -1 # linux only
syscon prsnlty ADDR_LIMIT_3GB 0x8000000 -1 -1 -1 -1 # linux only
syscon prsnlty FDPIC_FUNCPTRS 0x0080000 -1 -1 -1 -1 # linux only
syscon prsnlty STICKY_TIMEOUTS 0x4000000 -1 -1 -1 -1 # linux only
syscon prsnlty MMAP_PAGE_ZERO 0x0100000 -1 -1 -1 -1 # linux only
syscon prsnlty ADDR_LIMIT_32BIT 0x0800000 -1 -1 -1 -1 # linux only
syscon prsnlty WHOLE_SECONDS 0x2000000 -1 -1 -1 -1 # linux only
syscon prsnlty ADDR_NO_RANDOMIZE 0x0040000 -1 -1 -1 -1 # linux only
syscon prsnlty SHORT_INODE 0x1000000 -1 -1 -1 -1 # linux only
syscon prsnlty UNAME26 0x0020000 -1 -1 -1 -1 # linux only
syscon misc INADDR_ANY 0 0 0 0 0 # consensus
syscon misc INADDR_BROADCAST 0xffffffff 0xffffffff 0xffffffff 0xffffffff 0xffffffff # consensus
syscon misc INADDR_NONE 0xffffffff 0xffffffff 0xffffffff 0xffffffff 0xffffffff # consensus
syscon misc INADDR_ALLHOSTS_GROUP 0xe0000001 0xe0000001 0xe0000001 0xe0000001 0 # unix consensus
syscon misc INADDR_LOOPBACK 0x7f000001 0x7f000001 0x7f000001 0x7f000001 0x7f000001 # consensus
syscon misc INADDR_MAX_LOCAL_GROUP 0xe00000ff 0xe00000ff 0xe00000ff 0xe00000ff 0 # unix consensus
syscon misc INADDR_UNSPEC_GROUP 0xe0000000 0xe0000000 0xe0000000 0xe0000000 0 # unix consensus
syscon misc INADDR_ALLRTRS_GROUP 0xe0000002 0xe0000002 0xe0000002 0 0
syscon misc BLKTYPE 52 52 52 52 0 # unix consensus
syscon misc BLKBSZGET 0x80081270 0 0 0 0
syscon misc BLKBSZSET 0x40081271 0 0 0 0
syscon misc BLKFLSBUF 0x1261 0 0 0 0
syscon misc BLKFRAGET 0x1265 0 0 0 0
syscon misc BLKFRASET 0x1264 0 0 0 0
syscon misc BLKGETSIZE 0x1260 0 0 0 0
syscon misc BLKGETSIZE64 0x80081272 0 0 0 0
syscon misc BLKRAGET 0x1263 0 0 0 0
syscon misc BLKRASET 0x1262 0 0 0 0
syscon misc BLKROGET 0x125e 0 0 0 0
syscon misc BLKROSET 0x125d 0 0 0 0
syscon misc BLKRRPART 0x125f 0 0 0 0
syscon misc BLKSECTGET 0x1267 0 0 0 0
syscon misc BLKSECTSET 0x1266 0 0 0 0
syscon misc BLKSSZGET 0x1268 0 0 0 0
syscon misc TH_FIN 1 1 1 1 1 # consensus
syscon misc TH_SYN 2 2 2 2 2 # consensus
syscon misc TH_RST 4 4 4 4 4 # consensus
syscon misc TH_PUSH 8 8 8 8 0 # unix consensus
syscon misc TH_URG 32 32 32 32 32 # consensus
syscon misc TH_ACK 16 16 16 16 16 # consensus
syscon misc IPC_PRIVATE 0 0 0 0 0 # consensus
syscon misc IPC_RMID 0 0 0 0 0 # consensus
syscon misc IPC_CREAT 0x0200 0x0200 0x0200 0x0200 0 # unix consensus
syscon misc IPC_EXCL 0x0400 0x0400 0x0400 0x0400 0 # unix consensus
syscon misc IPC_NOWAIT 0x0800 0x0800 0x0800 0x0800 0 # unix consensus
syscon misc IPC_SET 1 1 1 1 0 # unix consensus
syscon misc IPC_STAT 2 2 2 2 0 # unix consensus
syscon misc IPC_INFO 3 0 3 0 0
syscon shm SHM_R 0x0100 0x0100 0x0100 0x0100 0 # unix consensus
syscon shm SHM_RDONLY 0x1000 0x1000 0x1000 0x1000 0 # unix consensus
syscon shm SHM_RND 0x2000 0x2000 0x2000 0x2000 0 # unix consensus
syscon shm SHM_W 0x80 0x80 0x80 0x80 0 # unix consensus
syscon shm SHM_LOCK 11 0 11 3 0
syscon shm SHM_UNLOCK 12 0 12 4 0
syscon shm SHM_INFO 14 0 14 0 0
syscon shm SHM_STAT 13 0 13 0 0
syscon shm SHM_DEST 0x0200 0 0 0 0
syscon shm SHM_EXEC 0x8000 0 0 0 0
syscon shm SHM_HUGETLB 0x0800 0 0 0 0
syscon shm SHM_LOCKED 0x0400 0 0 0 0
syscon shm SHM_NORESERVE 0x1000 0 0 0 0
syscon shm SHM_REMAP 0x4000 0 0 0 0
syscon misc TCPOPT_EOL 0 0 0 0 0 # consensus
syscon misc TCPOPT_MAXSEG 2 2 2 2 0 # unix consensus
syscon misc TCPOPT_NOP 1 1 1 1 0 # unix consensus
syscon misc TCPOPT_SACK 5 5 5 5 0 # unix consensus
syscon misc TCPOPT_SACK_PERMITTED 4 4 4 4 0 # unix consensus
syscon misc TCPOPT_TIMESTAMP 8 8 8 8 0 # unix consensus
syscon misc TCPOPT_WINDOW 3 3 3 3 0 # unix consensus
syscon misc ETH_P_CUST 0x6006 0 0 0 0
syscon misc ETH_P_DDCMP 6 0 0 0 0
syscon misc ETH_P_DEC 0x6000 0 0 0 0
syscon misc ETH_P_DIAG 0x6005 0 0 0 0
syscon misc ETH_P_DNA_DL 0x6001 0 0 0 0
syscon misc ETH_P_DNA_RC 0x6002 0 0 0 0
syscon misc ETH_P_DNA_RT 0x6003 0 0 0 0
syscon misc ETH_P_IEEE802154 246 0 0 0 0
syscon misc ETH_P_LAT 0x6004 0 0 0 0
syscon misc ETH_P_LOCALTALK 9 0 0 0 0
syscon misc ETH_P_PPP_MP 8 0 0 0 0
syscon misc ETH_P_RARP 0x8035 0 0 0 0
syscon misc ETH_P_SCA 0x6007 0 0 0 0
syscon misc ETH_P_WAN_PPP 7 0 0 0 0
syscon misc ST_NOSUID 2 2 2 2 0 # unix consensus
syscon misc ST_RDONLY 1 1 1 1 0 # unix consensus
syscon misc ST_APPEND 0x0100 0 0 0 0
syscon misc ST_IMMUTABLE 0x0200 0 0 0 0
syscon misc ST_MANDLOCK 0x40 0 0 0 0
syscon misc ST_NOATIME 0x0400 0 0 0 0
syscon misc ST_NODEV 4 0 0 0 0
syscon misc ST_NODIRATIME 0x0800 0 0 0 0
syscon misc ST_NOEXEC 8 0 0 0 0
syscon misc ST_RELATIME 0x1000 0 0 0 0
syscon misc ST_SYNCHRONOUS 0x10 0 0 0 0
syscon misc ST_WRITE 0x80 0 0 0 0
syscon misc SCSI_IOCTL_BENCHMARK_COMMAND 3 0 0 0 0
syscon misc SCSI_IOCTL_DOORLOCK 0x5380 0 0 0 0
syscon misc SCSI_IOCTL_DOORUNLOCK 0x5381 0 0 0 0
syscon misc SCSI_IOCTL_GET_BUS_NUMBER 0x5386 0 0 0 0
syscon misc SCSI_IOCTL_GET_IDLUN 0x5382 0 0 0 0
syscon misc SCSI_IOCTL_PROBE_HOST 0x5385 0 0 0 0
syscon misc SCSI_IOCTL_SEND_COMMAND 1 0 0 0 0
syscon misc SCSI_IOCTL_START_UNIT 5 0 0 0 0
syscon misc SCSI_IOCTL_STOP_UNIT 6 0 0 0 0
syscon misc SCSI_IOCTL_SYNC 4 0 0 0 0
syscon misc SCSI_IOCTL_TAGGED_DISABLE 0x5384 0 0 0 0
syscon misc SCSI_IOCTL_TAGGED_ENABLE 0x5383 0 0 0 0
syscon misc SCSI_IOCTL_TEST_UNIT_READY 2 0 0 0 0
syscon misc CLD_CONTINUED 6 6 6 6 0 # unix consensus
syscon misc CLD_DUMPED 3 3 3 3 0 # unix consensus
syscon misc CLD_EXITED 1 1 1 1 0 # unix consensus
syscon misc CLD_KILLED 2 2 2 2 0 # unix consensus
syscon misc CLD_STOPPED 5 5 5 5 0 # unix consensus
syscon misc CLD_TRAPPED 4 4 4 4 0 # unix consensus
syscon misc READ_10 40 0 0 0 0
syscon misc READ_12 168 0 0 0 0
syscon misc READ_6 8 0 0 0 0
syscon misc READ_BLOCK_LIMITS 5 0 0 0 0
syscon misc READ_BUFFER 60 0 0 0 0
syscon misc READ_CAPACITY 37 0 0 0 0
syscon misc READ_DEFECT_DATA 55 0 0 0 0
syscon misc READ_ELEMENT_STATUS 184 0 0 0 0
syscon misc READ_LONG 62 0 0 0 0
syscon misc READ_POSITION 52 0 0 0 0
syscon misc READ_REVERSE 15 0 0 0 0
syscon misc READ_TOC 67 0 0 0 0
# getpriority() / setpriority() magnums (a.k.a. nice)
#
# group name GNU/Systemd XNU's Not UNIX FreeBSD OpenBSD XENIX Commentary
syscon prio PRIO_PROCESS 0 0 0 0 0 # consensus / poly nt
syscon prio PRIO_PGRP 1 1 1 1 1 # unix consensus / poly nt
syscon prio PRIO_USER 2 2 2 2 2 # unix consensus / poly nt
syscon prio PRIO_MIN -20 -20 -20 -20 -20 # unix consensus / poly nt
syscon prio PRIO_MAX 20 20 20 20 20 # unix consensus / poly nt
syscon prio NZERO 20 20 20 20 20 # unix consensus / polyfilled nt
# getaddrinfo() flags
#
# group name GNU/Systemd XNU's Not UNIX FreeBSD OpenBSD XENIX Commentary
syscon gai AI_PASSIVE 1 1 1 1 1 # consensus
syscon gai AI_CANONNAME 2 2 2 2 2 # consensus
syscon gai AI_NUMERICHOST 4 4 4 4 4 # consensus
syscon gai AI_ADDRCONFIG 0x20 0x0400 0x0400 0x40 0x0400
syscon gai AI_NUMERICSERV 0x0400 0x1000 8 0x10 8
syscon gai AI_ALL 0x10 0x0100 0x0100 0 0x0100
syscon gai AI_V4MAPPED 8 0x0800 0x0800 0 0x0800
# getaddrinfo() return codes
#
# group name GNU/Systemd XNU's Not UNIX FreeBSD OpenBSD XENIX Commentary
syscon eai EAI_SUCCESS 0 0 0 0 0
syscon eai EAI_BADFLAGS -1 3 3 -1 0x2726
syscon eai EAI_NONAME -2 8 8 -2 0x2af9
syscon eai EAI_AGAIN -3 2 2 -3 0x2afa
syscon eai EAI_FAIL -4 4 4 -4 0x2afb
syscon eai EAI_FAMILY -6 5 5 -6 0x273f
syscon eai EAI_MEMORY -10 6 6 -10 0x2747
syscon eai EAI_SERVICE -8 9 9 -8 0x277d
syscon eai EAI_SOCKTYPE -7 10 10 -7 0x273c
syscon eai EAI_NODATA -5 7 0 -5 0x2af9
syscon eai EAI_OVERFLOW -12 14 14 -14 -12
syscon eai EAI_SYSTEM -11 11 11 -11 -11
syscon eai EAI_ADDRFAMILY -9 1 0 -9 -9
syscon eai EAI_ALLDONE -103 -103 -103 -103 -103 # copying from linux
syscon eai EAI_CANCELED -101 -101 -101 -101 -101 # copying from linux
syscon eai EAI_IDN_ENCODE -105 -105 -105 -105 -105 # copying from linux
syscon eai EAI_INPROGRESS -100 -100 -100 -100 -100 # copying from linux
syscon eai EAI_INTR -104 -104 -104 -104 -104 # copying from linux
syscon eai EAI_NOTCANCELED -102 -102 -102 -102 -102 # copying from linux
syscon misc BLK_BYTECOUNT 2 2 2 2 0 # unix consensus
syscon misc BLK_EOF 0x40 0x40 0x40 0x40 0 # unix consensus
syscon misc BLK_EOR 0x80 0x80 0x80 0x80 0 # unix consensus
syscon misc BLK_ERRORS 0x20 0x20 0x20 0x20 0 # unix consensus
syscon misc BLK_RESTART 0x10 0x10 0x10 0x10 0 # unix consensus
syscon misc MODE_B 2 2 2 2 0 # unix consensus
syscon misc MODE_C 3 3 3 3 0 # unix consensus
syscon misc MODE_S 1 1 1 1 0 # unix consensus
syscon misc MODE_SELECT 21 0 0 0 0
syscon misc MODE_SELECT_10 85 0 0 0 0
syscon misc MODE_SENSE 26 0 0 0 0
syscon misc MODE_SENSE_10 90 0 0 0 0
syscon misc WRITE_10 42 0 0 0 0
syscon misc WRITE_12 170 0 0 0 0
syscon misc WRITE_6 10 0 0 0 0
syscon misc WRITE_BUFFER 59 0 0 0 0
syscon misc WRITE_FILEMARKS 0x10 0 0 0 0
syscon misc WRITE_LONG 63 0 0 0 0
syscon misc WRITE_LONG_2 234 0 0 0 0
syscon misc WRITE_SAME 65 0 0 0 0
syscon misc WRITE_VERIFY 46 0 0 0 0
syscon misc WRITE_VERIFY_12 174 0 0 0 0
syscon misc ILL_BADSTK 8 8 8 8 0 # unix consensus
syscon misc ILL_COPROC 7 7 7 7 0 # unix consensus
syscon misc ILL_ILLOPC 1 1 1 1 0 # unix consensus
syscon misc ILL_PRVREG 6 6 6 6 0 # unix consensus
syscon misc ILL_ILLADR 3 5 3 3 0
syscon misc ILL_ILLOPN 2 4 2 2 0
syscon misc ILL_ILLTRP 4 2 4 4 0
syscon misc ILL_PRVOPC 5 3 5 5 0
syscon misc LC_CTYPE 0 2 2 2 0 # bsd consensus
syscon misc LC_NUMERIC 1 4 4 4 0 # bsd consensus
syscon misc LC_CTYPE_MASK 1 0 2 4 0
syscon misc LC_TIME 2 5 5 5 0 # bsd consensus
syscon misc LC_NUMERIC_MASK 2 0 8 0x10 0
syscon misc LC_COLLATE 3 1 1 1 0 # bsd consensus
syscon misc LC_MONETARY 4 3 3 3 0 # bsd consensus
syscon misc LC_TIME_MASK 4 0 0x10 0x20 0
syscon misc LC_MESSAGES 5 6 6 6 0 # bsd consensus
syscon misc LC_ALL 6 0 0 0 0
syscon misc LC_COLLATE_MASK 8 0 1 2 0
syscon misc LC_MONETARY_MASK 0x10 0 4 8 0
syscon misc LC_MESSAGES_MASK 0x20 0 0x20 0x40 0
syscon misc LC_ALL_MASK 0x1fbf 0 63 126 0
2020-09-28 08:13:56 +00:00
syscon lock LOCK_UNLOCK_CACHE 54 0 0 0 0 # wut
2020-06-15 14:18:57 +00:00
syscon ptrace PTRACE_GETREGSET 0x4204 0 0 0 0
syscon ptrace PTRACE_GETSIGMASK 0x420a 0 0 0 0
syscon ptrace PTRACE_INTERRUPT 0x4207 0 0 0 0
syscon ptrace PTRACE_LISTEN 0x4208 0 0 0 0
syscon ptrace PTRACE_PEEKSIGINFO 0x4209 0 0 0 0
syscon ptrace PTRACE_SECCOMP_GET_FILTER 0x420c 0 0 0 0
syscon ptrace PTRACE_SEIZE 0x4206 0 0 0 0
syscon ptrace PTRACE_SETREGSET 0x4205 0 0 0 0
syscon ptrace PTRACE_SETSIGMASK 0x420b 0 0 0 0
syscon ptrace PTRACE_SYSCALL 0 0 6 0 0
syscon misc ARPHRD_ETHER 1 1 1 1 0 # unix consensus
syscon misc ARPHRD_FCFABRIC 787 0 0 0 0
syscon misc ARPHRD_IEEE80211 801 0 0 0 0
syscon misc ARPHRD_IEEE80211_PRISM 802 0 0 0 0
syscon misc ARPHRD_IEEE80211_RADIOTAP 803 0 0 0 0
syscon misc ARPHRD_IEEE802154 804 0 0 0 0
syscon misc ARPHRD_IEEE802_TR 800 0 0 0 0
syscon misc ARPHRD_LOCALTLK 773 0 0 0 0
syscon misc BUS_ADRALN 1 1 1 1 0 # unix consensus
syscon misc BUS_ADRERR 2 2 2 2 0 # unix consensus
syscon misc BUS_OBJERR 3 3 3 3 0 # unix consensus
syscon misc BUS_DEVICE_RESET 12 0 0 0 0
syscon misc BUS_MCEERR_AO 5 0 0 0 0
syscon misc BUS_MCEERR_AR 4 0 0 0 0
syscon misc IP6F_MORE_FRAG 0x0100 0x0100 0x0100 0x0100 0x0100 # consensus
syscon misc IP6F_OFF_MASK 0xf8ff 0xf8ff 0xf8ff 0xf8ff 0xf8ff # consensus
syscon misc IP6F_RESERVED_MASK 0x0600 0x0600 0x0600 0x0600 0x0600 # consensus
syscon misc NO_SENSE 0 0 0 0 0 # consensus
syscon misc NO_ADDRESS 4 4 4 4 0x2afc # unix consensus
syscon misc NO_DATA 4 4 4 4 0x2afc # unix consensus
syscon misc NO_RECOVERY 3 3 3 3 0x2afb # unix consensus
syscon misc RB_DISABLE_CAD 0 0 0 0 0 # consensus
syscon misc RB_AUTOBOOT 0x01234567 0 0 0 0
syscon misc RB_ENABLE_CAD 0x89abcdef 0 0 0 0
syscon misc RB_HALT_SYSTEM 0xcdef0123 0 0 0 0
syscon misc RB_KEXEC 0x45584543 0 0 0 0
syscon misc RB_POWER_OFF 0x4321fedc 0 0 0 0
syscon misc RB_SW_SUSPEND 0xd000fce2 0 0 0 0
syscon misc NI_DGRAM 0x10 0x10 0x10 0x10 0x10 # consensus
syscon misc NI_MAXSERV 0x20 0x20 0x20 0x20 0x20 # consensus
syscon misc NI_MAXHOST 0x0401 0x0401 0x0401 0x0100 0x0401
syscon misc NI_NAMEREQD 8 4 4 8 4
syscon misc NI_NOFQDN 4 1 1 4 1
syscon misc NI_NUMERICHOST 1 2 2 1 2
syscon misc NI_NUMERICSERV 2 8 8 2 8
syscon misc NI_NUMERICSCOPE 0 0 0x20 0 0
syscon misc TCPOLEN_MAXSEG 4 4 4 4 0 # unix consensus
syscon misc TCPOLEN_SACK_PERMITTED 2 2 2 2 0 # unix consensus
syscon misc TCPOLEN_TIMESTAMP 10 10 10 10 0 # unix consensus
syscon misc TCPOLEN_WINDOW 3 3 3 3 0 # unix consensus
syscon misc TELOPT_NAOL 8 8 8 8 0 # unix consensus
syscon misc TELOPT_NAOP 9 9 9 9 0 # unix consensus
syscon misc TELOPT_NEW_ENVIRON 39 39 39 39 0 # unix consensus
syscon misc TELOPT_OLD_ENVIRON 36 36 36 36 0 # unix consensus
syscon misc EXTENDED_MODIFY_DATA_POINTER 0 0 0 0 0 # consensus
syscon misc EXTENDED_EXTENDED_IDENTIFY 2 0 0 0 0
syscon misc EXTENDED_MESSAGE 1 0 0 0 0
syscon misc EXTENDED_SDTR 1 0 0 0 0
syscon misc EXTENDED_WDTR 3 0 0 0 0
syscon misc ITIMER_REAL 0 0 0 0 0 # consensus
syscon misc ITIMER_VIRTUAL 1 1 1 1 1 # unix consensus (force win)
syscon misc ITIMER_PROF 2 2 2 2 2 # unix consensus (force win)
syscon misc L_SET 0 0 0 0 0 # consensus
syscon misc L_INCR 1 1 1 1 0 # unix consensus
syscon misc L_XTND 2 2 2 2 0 # unix consensus
syscon misc SHUT_RD 0 0 0 0 0 # consensus (SD_RECEIVE)
syscon misc SHUT_WR 1 1 1 1 1 # consensus (SD_SEND)
syscon misc SHUT_RDWR 2 2 2 2 2 # consensus (SD_BOTH)
syscon misc Q_QUOTAOFF 0x800003 0x0200 0x0200 0x0200 0 # bsd consensus
syscon misc Q_QUOTAON 0x800002 0x0100 0x0100 0x0100 0 # bsd consensus
syscon misc Q_SYNC 0x800001 0x0600 0x0600 0x0600 0 # bsd consensus
syscon misc Q_GETQUOTA 0x800007 768 0x0700 768 0
syscon misc Q_SETQUOTA 0x800008 0x0400 0x0800 0x0400 0
syscon misc Q_GETFMT 0x800004 0 0 0 0
syscon misc Q_GETINFO 0x800005 0 0 0 0
syscon misc Q_SETINFO 0x800006 0 0 0 0
syscon misc SCM_RIGHTS 1 1 1 1 0 # unix consensus
syscon misc SCM_TIMESTAMP 29 2 2 4 0
syscon misc SCM_CREDENTIALS 2 0 0 0 0
syscon misc SCM_TIMESTAMPING 37 0 0 0 0
syscon misc SCM_TIMESTAMPNS 35 0 0 0 0
syscon misc SCM_WIFI_STATUS 41 0 0 0 0
syscon misc FORM_C 3 3 3 3 0 # unix consensus
syscon misc FORM_N 1 1 1 1 0 # unix consensus
syscon misc FORM_T 2 2 2 2 0 # unix consensus
syscon misc REC_EOF 2 2 2 2 0 # unix consensus
syscon misc REC_EOR 1 1 1 1 0 # unix consensus
syscon misc REC_ESC -1 -1 -1 -1 0 # unix consensus
syscon misc RPM_PCO_ADD 1 1 1 1 0 # unix consensus
syscon misc RPM_PCO_CHANGE 2 2 2 2 0 # unix consensus
syscon misc RPM_PCO_SETGLOBAL 3 3 3 3 0 # unix consensus
syscon misc SEARCH_EQUAL 49 0 0 0 0
syscon misc SEARCH_EQUAL_12 177 0 0 0 0
syscon misc SEARCH_HIGH 48 0 0 0 0
syscon misc SEARCH_HIGH_12 176 0 0 0 0
syscon misc SEARCH_LOW 50 0 0 0 0
syscon misc SEARCH_LOW_12 178 0 0 0 0
syscon misc SI_QUEUE -1 0x010002 0x010002 -2 0
syscon misc SI_TIMER -2 0x010003 0x010003 -3 0
syscon misc SI_ASYNCIO -4 0x010004 0x010004 0 0
syscon misc SI_MESGQ -3 0x010005 0x010005 0 0
syscon misc SI_KERNEL 0x80 0 0x010006 0 0
syscon misc SI_USER 0 0x010001 0x010001 0 0
syscon misc SI_ASYNCNL -60 0 0 0 0
syscon misc SI_LOAD_SHIFT 0x10 0 0 0 0
syscon misc SI_SIGIO -5 0 0 0 0
syscon misc SI_TKILL -6 0 0 0 0
syscon misc STRU_F 1 1 1 1 0 # unix consensus
syscon misc STRU_P 3 3 3 3 0 # unix consensus
syscon misc STRU_R 2 2 2 2 0 # unix consensus
syscon misc _XOPEN_IOV_MAX 0x10 0x10 0x10 0x10 0 # unix consensus
syscon misc _XOPEN_ENH_I18N 1 1 -1 -1 0
syscon misc _XOPEN_UNIX 1 1 -1 -1 0
syscon misc _XOPEN_NAME_MAX 63 63 63 63 63 # forced consensus
syscon misc _XOPEN_PATH_MAX 255 255 255 255 255 # forced consensus
syscon misc _XOPEN_VERSION 700 600 0 0 0
syscon misc _XOPEN_SOURCE 700 0 0 0 0
syscon misc NL_CAT_LOCALE 1 1 1 1 0 # unix consensus
syscon misc NL_MSGMAX 0x7fffffff 0x7fff 0x7fff 0x7fff 0 # bsd consensus
syscon misc NL_SETMAX 0x7fffffff 255 255 255 0 # bsd consensus
syscon misc NL_ARGMAX 0x1000 9 0x1000 9 0
syscon misc NL_LANGMAX 0x0800 14 31 14 0
syscon misc NL_TEXTMAX 0x7fffffff 0x0800 0x0800 255 0
syscon misc NL_NMAX 0x7fffffff 1 1 0 0
syscon misc NL_SETD 1 1 0 1 0
syscon misc RTLD_LAZY 1 1 1 1 0 # unix consensus
syscon misc RTLD_NOW 2 2 2 2 0 # unix consensus
syscon misc RTLD_GLOBAL 0x0100 8 0x0100 0x0100 0
syscon misc RTLD_NODELETE 0x1000 0x80 0x1000 0 0
syscon misc RTLD_NOLOAD 4 0x10 0x2000 0 0
syscon misc RTLD_DI_LINKMAP 0 0 2 0 0
syscon misc RTLD_LOCAL 0 4 0 0 0
2020-09-28 08:13:56 +00:00
syscon rusage RUSAGE_SELF 0 0 0 0 0 # unix consensus & faked nt
syscon rusage RUSAGE_CHILDREN -1 -1 -1 -1 99 # unix consensus & unavailable on nt
syscon rusage RUSAGE_THREAD 1 99 1 1 1 # faked nt & unavailable on xnu
2020-06-15 14:18:57 +00:00
syscon misc FSETLOCKING_QUERY 0 0 0 0 0 # consensus
syscon misc FSETLOCKING_BYCALLER 2 0 0 0 0
syscon misc FSETLOCKING_INTERNAL 1 0 0 0 0
syscon misc MAX_DQ_TIME 0x093a80 0x093a80 0x093a80 0x093a80 0 # unix consensus
syscon misc MAX_IQ_TIME 0x093a80 0x093a80 0x093a80 0x093a80 0 # unix consensus
syscon misc MAX_HANDLE_SZ 0x80 0 0 0 0
syscon mlock MCL_CURRENT 1 1 1 1 0 # unix consensus
syscon mlock MCL_FUTURE 2 2 2 2 0 # unix consensus
syscon mlock MCL_ONFAULT 4 0 0 0 0
syscon misc NS_DSA_MAX_BYTES 405 405 405 0 0
syscon misc NS_DSA_MIN_SIZE 213 213 213 0 0
syscon misc NS_DSA_SIG_SIZE 41 41 41 0 0
syscon misc NS_KEY_PROT_DNSSEC 3 3 3 0 0
syscon misc NS_KEY_PROT_EMAIL 2 2 2 0 0
syscon misc NS_KEY_PROT_IPSEC 4 4 4 0 0
syscon misc NS_KEY_PROT_TLS 1 1 1 0 0
syscon misc NS_KEY_RESERVED_BITMASK2 0xffff 0xffff 0xffff 0 0
syscon misc NS_NXT_MAX 127 127 127 0 0
syscon misc NS_OPT_DNSSEC_OK 0x8000 0x8000 0x8000 0 0
syscon misc NS_TSIG_ERROR_FORMERR -12 -12 -12 0 0
syscon misc NS_TSIG_ERROR_NO_SPACE -11 -11 -11 0 0
syscon misc NS_TSIG_ERROR_NO_TSIG -10 -10 -10 0 0
syscon misc NS_TSIG_FUDGE 300 300 300 0 0
syscon misc NS_TSIG_TCP_COUNT 100 100 100 0 0
syscon misc _IOC_NONE 0 0 0 0 0 # consensus
syscon misc _IOC_READ 2 0 0 0 0
syscon misc _IOC_WRITE 1 0 0 0 0
syscon misc MLD_LISTENER_QUERY 130 130 130 130 0 # unix consensus
syscon misc MLD_LISTENER_REPORT 131 131 131 131 0 # unix consensus
syscon misc MLD_LISTENER_REDUCTION 132 132 132 0 0
syscon misc TTYDEF_CFLAG 0x05a0 0x4b00 0x4b00 0x4b00 0 # bsd consensus
syscon misc TTYDEF_IFLAG 0x2d22 0x2b02 0x2b02 0x2b02 0 # bsd consensus
syscon misc TTYDEF_LFLAG 0x8a1b 0x05cb 0x05cb 0x05cb 0 # bsd consensus
syscon misc TTYDEF_SPEED 13 0x2580 0x2580 0x2580 0 # bsd consensus
syscon misc TTYDEF_OFLAG 0x1805 3 3 7 0
syscon misc ACCT_BYTEORDER 0 0 0 0 0 # consensus
syscon misc ACCT_COMM 0x10 0 0 0 0
syscon misc COMMAND_COMPLETE 0 0 0 0 0 # consensus
syscon misc COMMAND_TERMINATED 17 0 0 0 0
syscon select FD_SETSIZE 0x0400 0x0400 0x0400 0x0400 0x0400 # forced consensus (0x40 on NT)
syscon misc MATH_ERREXCEPT 2 2 2 2 0 # unix consensus
syscon misc MATH_ERRNO 1 1 1 1 0 # unix consensus
syscon misc SCHED_FIFO 1 4 1 1 0
syscon misc SCHED_RR 2 2 3 3 0
syscon misc SCHED_OTHER 0 1 2 2 0
syscon misc SCHED_BATCH 3 0 0 0 0
syscon misc SCHED_IDLE 5 0 0 0 0
syscon misc SCHED_RESET_ON_FORK 0x40000000 0 0 0 0
syscon misc SEGV_ACCERR 2 2 2 2 0 # unix consensus
syscon misc SEGV_MAPERR 1 1 1 1 0 # unix consensus
syscon misc TRAP_BRKPT 1 1 1 1 0 # unix consensus
syscon misc TRAP_TRACE 2 2 2 2 0 # unix consensus
syscon misc WRDE_APPEND 0 1 1 0 0
syscon misc WRDE_BADCHAR 0 1 1 0 0
syscon misc WRDE_BADVAL 0 2 2 0 0
syscon misc WRDE_CMDSUB 0 3 3 0 0
syscon misc WRDE_DOOFFS 0 2 2 0 0
syscon misc WRDE_NOCMD 0 4 4 0 0
syscon misc WRDE_NOSPACE 0 4 4 0 0
syscon misc WRDE_NOSYS 0 5 5 0 0
syscon misc WRDE_REUSE 0 8 8 0 0
syscon misc WRDE_SHOWERR 0 0x10 0x10 0 0
syscon misc WRDE_SYNTAX 0 6 6 0 0
syscon misc WRDE_UNDEF 0 0x20 0x20 0 0
syscon misc MCAST_BLOCK_SOURCE 43 84 84 0 43
syscon misc MCAST_JOIN_GROUP 42 80 80 0 41
syscon misc MCAST_JOIN_SOURCE_GROUP 46 82 82 0 45
syscon misc MCAST_LEAVE_GROUP 45 81 81 0 42
syscon misc MCAST_LEAVE_SOURCE_GROUP 47 83 83 0 46
syscon misc MCAST_UNBLOCK_SOURCE 44 85 85 0 44
syscon misc MCAST_INCLUDE 1 1 1 0 0
syscon misc MCAST_EXCLUDE 0 2 2 0 0
syscon misc MCAST_MSFILTER 48 0 0 0 0
syscon misc SIG_SETMASK 2 3 3 3 0 # bsd consensus
syscon misc SIG_UNBLOCK 1 2 2 2 0 # bsd consensus
syscon misc SIG_ATOMIC_MIN -2147483648 -2147483648 -9223372036854775808 -2147483648 0
syscon misc SIG_BLOCK 0 1 1 1 0 # bsd consensus
syscon misc AREGTYPE 0 0 0 0 0 # consensus
syscon misc B0 0 0 0 0 0 # consensus
syscon misc CS5 0 0 0 0 0 # consensus
syscon misc CTIME 0 0 0 0 0 # consensus
syscon misc EFD_CLOEXEC 0x080000 0 0 0 0
syscon misc EFD_NONBLOCK 0x0800 0 0 0 0
syscon misc EFD_SEMAPHORE 1 0 0 0 0
syscon misc GOOD 0 0 0 0 0 # consensus
syscon misc IPPORT_RESERVED 0x0400 0x0400 0x0400 0x0400 0x0400 # consensus
syscon misc MTRESET 0 0 0 0 0 # consensus
syscon misc MT_ST_CAN_PARTITIONS 0x0400 0 0 0 0
syscon misc MT_ST_HPLOADER_OFFSET 0x2710 0 0 0 0
syscon misc MT_ST_SCSI2LOGICAL 0x0800 0 0 0 0
syscon misc SS_ONSTACK 1 1 1 1 0 # unix consensus
syscon misc SS_DISABLE 2 4 4 4 0 # bsd consensus
syscon misc SYNC_FILE_RANGE_WAIT_AFTER 4 0 0 0 0
syscon misc SYNC_FILE_RANGE_WAIT_BEFORE 1 0 0 0 0
syscon misc SYNC_FILE_RANGE_WRITE 2 0 0 0 0
syscon misc TEST_UNIT_READY 0 0 0 0 0
syscon misc TFD_CLOEXEC 0x080000 0 0 0 0
syscon misc TFD_NONBLOCK 0x0800 0 0 0 0
syscon misc TFD_TIMER_ABSTIME 1 0 0 0 0
syscon misc USRQUOTA 0 0 0 0 0
syscon misc FPE_FLTDIV 3 1 3 3 0
syscon misc FPE_FLTINV 7 5 7 7 0
syscon misc FPE_FLTOVF 4 2 4 4 0
syscon misc FPE_FLTRES 6 4 6 6 0
syscon misc FPE_FLTSUB 8 6 8 8 0
syscon misc FPE_FLTUND 5 3 5 5 0
syscon misc FPE_INTDIV 1 7 2 1 0
syscon misc FPE_INTOVF 2 8 1 2 0
syscon misc ABDAY_1 0x020000 14 14 13 0
syscon misc ABDAY_2 0x020001 15 15 14 0
syscon misc ABDAY_3 0x020002 0x10 0x10 15 0
syscon misc ABDAY_4 0x020003 17 17 0x10 0
syscon misc ABDAY_5 0x020004 18 18 17 0
syscon misc ABDAY_6 0x020005 19 19 18 0
syscon misc ABDAY_7 0x020006 20 20 19 0
syscon misc DAY_1 0x020007 7 7 6 0
syscon misc DAY_2 0x020008 8 8 7 0
syscon misc DAY_3 0x020009 9 9 8 0
syscon misc DAY_4 0x02000a 10 10 9 0
syscon misc DAY_5 0x02000b 11 11 10 0
syscon misc DAY_6 0x02000c 12 12 11 0
syscon misc DAY_7 0x02000d 13 13 12 0
syscon misc FUTEX_PRIVATE_FLAG 0 0 0 0x80 0
syscon misc FUTEX_REQUEUE 0 0 0 3 0
syscon misc FUTEX_REQUEUE_PRIVATE 0 0 0 131 0
syscon misc FUTEX_WAIT 0 0 0 1 0
syscon misc FUTEX_WAIT_PRIVATE 0 0 0 129 0
syscon misc FUTEX_WAKE 0 0 0 2 0
syscon misc FUTEX_WAKE_PRIVATE 0 0 0 130 0
syscon misc HOST_NOT_FOUND 1 1 1 1 0x2af9 # unix consensus
syscon misc HOST_NAME_MAX 0x40 0 0 255 0
syscon misc LIO_WRITE 1 2 1 0 0
syscon misc LIO_NOWAIT 1 1 0 0 0
syscon misc LIO_READ 0 1 2 0 0
syscon misc LIO_WAIT 0 2 1 0 0
syscon misc LIO_NOP 2 0 0 0 0
syscon misc MNT_FORCE 1 0x080000 0 0x080000 0
syscon misc MNT_DETACH 2 0 0 0 0
syscon misc MNT_EXPIRE 4 0 0 0 0
syscon misc UDP_ENCAP_ESPINUDP_NON_IKE 1 0 1 0 0
syscon misc UDP_NO_CHECK6_RX 102 0 0 0 0
syscon misc UDP_NO_CHECK6_TX 101 0 0 0 0
syscon misc ACK 4 4 4 4 0 # unix consensus
syscon misc BIG_ENDIAN 0x10e1 0x10e1 0x10e1 0x10e1 0 # unix consensus
syscon misc CDISCARD 15 15 15 15 0 # unix consensus
syscon misc CDSUSP 25 25 25 25 0 # unix consensus
syscon misc CEOF 4 4 4 4 0 # unix consensus
syscon misc CEOT 4 4 4 4 0 # unix consensus
syscon misc CERASE 127 127 127 127 0 # unix consensus
syscon misc CFLUSH 15 15 15 15 0 # unix consensus
syscon misc CHRTYPE 51 51 51 51 0 # unix consensus
syscon misc CINTR 3 3 3 3 0 # unix consensus
syscon misc CKILL 21 21 21 21 0 # unix consensus
syscon misc CLNEXT 22 22 22 22 0 # unix consensus
syscon misc CMIN 1 1 1 1 0 # unix consensus
syscon misc COMPLETE 2 2 2 2 0 # unix consensus
syscon misc CONTINUE 3 3 3 3 0 # unix consensus
syscon misc CONTTYPE 55 55 55 55 0 # unix consensus
syscon misc COPY_ABORTED 10 0 0 0 0
syscon misc COPY_VERIFY 58 0 0 0 0
syscon misc CQUIT 28 28 28 28 0 # unix consensus
syscon misc CREPRINT 18 18 18 18 0 # unix consensus
syscon misc CRPRNT 18 18 18 18 0 # unix consensus
syscon misc CSTART 17 17 17 17 0 # unix consensus
syscon misc CSTOP 19 19 19 19 0 # unix consensus
syscon misc CSUSP 26 26 26 26 0 # unix consensus
syscon misc CWERASE 23 23 23 23 0 # unix consensus
syscon misc DATA 3 3 3 3 0 # unix consensus
syscon misc DEV_BSIZE 0x0200 0x0200 0x0200 0x0200 0 # unix consensus
syscon misc DIRTYPE 53 53 53 53 0 # unix consensus
syscon misc ELF_NGREG 27 0 0 0 0
syscon misc ELF_PRARGSZ 80 0 0 0 0
syscon misc EM_ALTERA_NIOS2 113 0 0 0 0
syscon misc EM_LATTICEMICO32 138 0 0 0 0
syscon misc EXPR_NEST_MAX 0x20 0x20 0x20 0x20 0 # unix consensus
# fallocate() flags (posix_fallocate() doesn't have these)
#
# group name GNU/Systemd XNU's Not UNIX FreeBSD OpenBSD XENIX Commentary
syscon misc FALLOC_FL_KEEP_SIZE 0x01 -1 -1 -1 -1 # bsd consensus
syscon misc FALLOC_FL_PUNCH_HOLE 0x02 -1 -1 -1 -1 # bsd consensus
syscon misc FALLOC_FL_NO_HIDE_STALE 0x04 -1 -1 -1 -1 # bsd consensus
syscon misc FALLOC_FL_COLLAPSE_RANGE 0x08 -1 -1 -1 -1 # bsd consensus
syscon misc FALLOC_FL_ZERO_RANGE 0x10 -1 -1 -1 0x000980C8 # bsd consensus & kNtFsctlSetZeroData
syscon misc FALLOC_FL_INSERT_RANGE 0x20 -1 -1 -1 -1 # bsd consensus
syscon misc FALLOC_FL_UNSHARE_RANGE 0x40 -1 -1 -1 -1 # bsd consensus
syscon misc FIFOTYPE 54 54 54 54 0 # unix consensus
syscon misc GRPQUOTA 1 1 1 1 0 # unix consensus
syscon misc IF_NAMESIZE 0x10 0x10 0x10 0x10 0 # unix consensus
syscon misc INTERMEDIATE_C_GOOD 10 0 0 0 0
syscon misc INTERMEDIATE_GOOD 8 0 0 0 0
syscon misc IOV_MAX 0x0400 0x0400 0x0400 0x0400 16 # unix consensus & MSG_MAXIOVLEN
syscon misc LINE_MAX 0x0800 0x0800 0x0800 0x0800 0 # unix consensus
syscon misc LINKED_CMD_COMPLETE 10 0 0 0 0
syscon misc LINKED_FLG_CMD_COMPLETE 11 0 0 0 0
syscon misc LITTLE_ENDIAN 0x04d2 0x04d2 0x04d2 0x04d2 0 # unix consensus
syscon misc LNKTYPE 49 49 49 49 0 # unix consensus
syscon misc MAXNAMLEN 255 255 255 255 0 # unix consensus
syscon misc MAXQUOTAS 2 2 2 2 0 # unix consensus
syscon misc MEDIUM_ERROR 3 0 0 0 0
syscon misc MEDIUM_SCAN 56 0 0 0 0
syscon misc NBBY 8 8 8 8 0 # unix consensus
syscon misc NR_DQHASH 43 0 0 0 0
syscon misc NR_DQUOTS 0x0100 0 0 0 0
syscon misc PERSISTENT_RESERVE_IN 94 0 0 0 0
syscon misc PERSISTENT_RESERVE_OUT 95 0 0 0 0
syscon misc PRELIM 1 1 1 1 0 # unix consensus
syscon misc REGTYPE 48 48 48 48 0 # unix consensus
syscon misc RES_PRF_CLASS 4 4 4 4 0 # unix consensus
syscon misc RHF_GUARANTEE_START_INIT 0x80 0 0 0 0
syscon misc RHF_NO_LIBRARY_REPLACEMENT 4 0 0 0 0
syscon misc RRQ 1 1 1 1 0 # unix consensus
syscon misc RTF_NOFORWARD 0x1000 0 0 0 0
syscon misc RTF_NOPMTUDISC 0x4000 0 0 0 0
syscon misc SARMAG 8 8 8 8 0 # unix consensus
syscon misc SEGSIZE 0x0200 0x0200 0x0200 0x0200 0 # unix consensus
syscon misc SEND_DIAGNOSTIC 29 0 0 0 0
syscon misc SEND_VOLUME_TAG 182 0 0 0 0
syscon misc SET_LIMITS 51 0 0 0 0
syscon misc SET_WINDOW 36 0 0 0 0
syscon misc SFD_CLOEXEC 0x080000 0 0 0 0
syscon misc SFD_NONBLOCK 0x0800 0 0 0 0
syscon misc SOMAXCONN 0x80 0x80 0x80 0x80 0x7fffffff # unix consensus
syscon misc SUBCMDMASK 255 255 255 255 0 # unix consensus
syscon misc SUBCMDSHIFT 8 8 8 8 0 # unix consensus
syscon misc SYMTYPE 50 50 50 50 0 # unix consensus
syscon misc TGEXEC 8 8 8 8 0 # unix consensus
syscon misc TGREAD 0x20 0x20 0x20 0x20 0 # unix consensus
syscon misc TGWRITE 0x10 0x10 0x10 0x10 0 # unix consensus
syscon misc TMAGLEN 6 6 6 6 0 # unix consensus
syscon misc TOEXEC 1 1 1 1 0 # unix consensus
syscon misc TOREAD 4 4 4 4 0 # unix consensus
syscon misc TOWRITE 2 2 2 2 0 # unix consensus
syscon misc TRANSIENT 4 4 4 4 0 # unix consensus
syscon misc TRY_AGAIN 2 2 2 2 0x2afa # unix consensus
syscon misc TSGID 0x0400 0x0400 0x0400 0x0400 0 # unix consensus
syscon misc TSUID 0x0800 0x0800 0x0800 0x0800 0 # unix consensus
syscon misc TSVTX 0x0200 0x0200 0x0200 0x0200 0 # unix consensus
syscon misc TUEXEC 0x40 0x40 0x40 0x40 0 # unix consensus
syscon misc TUREAD 0x0100 0x0100 0x0100 0x0100 0 # unix consensus
syscon misc TUWRITE 0x80 0x80 0x80 0x80 0 # unix consensus
syscon misc TVERSLEN 2 2 2 2 0 # unix consensus
syscon misc WORD_BIT 0x20 0x20 0x20 0x20 0 # unix consensus
syscon misc WRQ 2 2 2 2 0 # unix consensus
syscon misc SIGEV_THREAD 2 3 2 0 0
syscon misc SIGEV_SIGNAL 0 1 1 0 0
syscon misc SIGEV_NONE 1 0 0 0 0
syscon misc BC_BASE_MAX 99 99 99 0x7fffffff 0
syscon misc BC_DIM_MAX 0x0800 0x0800 0x0800 0xffff 0
syscon misc BC_SCALE_MAX 99 99 99 0x7fffffff 0
syscon misc BC_STRING_MAX 0x03e8 0x03e8 0x03e8 0x7fffffff 0
syscon misc RLIM_NLIMITS 0x10 9 15 9 0
syscon misc RLIM_INFINITY -1 0 0x7fffffffffffffff 0 0
syscon misc RLIM_SAVED_CUR -1 0 0x7fffffffffffffff 0 0
syscon misc RLIM_SAVED_MAX -1 0 0x7fffffffffffffff 0 0
syscon misc ABORTED_COMMAND 11 0 0 0 0
syscon misc ACORE 0 8 8 8 0 # bsd consensus
syscon misc AFORK 0 1 1 1 0 # bsd consensus
syscon misc AIO_ALLDONE 2 1 3 0 0
syscon misc AIO_NOTCANCELED 1 4 2 0 0
syscon misc AIO_CANCELED 0 2 1 0 0
syscon misc ALLOW_MEDIUM_REMOVAL 30 0 0 0 0
syscon misc ASU 0 2 2 2 0 # bsd consensus
syscon misc ATF_NETMASK 0x20 0 0 0 0
syscon misc AXSIG 0 0x10 0x10 0x10 0 # bsd consensus
syscon misc B1000000 0x1008 0 0 0 0
syscon misc B110 3 110 110 110 0 # bsd consensus
syscon misc B115200 0x1002 0x01c200 0x01c200 0x01c200 0 # bsd consensus
syscon misc B1152000 0x1009 0 0 0 0
syscon misc B1200 9 0x04b0 0x04b0 0x04b0 0 # bsd consensus
syscon misc B134 4 134 134 134 0 # bsd consensus
syscon misc B150 5 150 150 150 0 # bsd consensus
syscon misc B1500000 0x100a 0 0 0 0
syscon misc B1800 10 0x0708 0x0708 0x0708 0 # bsd consensus
syscon misc B19200 14 0x4b00 0x4b00 0x4b00 0 # bsd consensus
syscon misc B200 6 200 200 200 0 # bsd consensus
syscon misc B2000000 0x100b 0 0 0 0
syscon misc B230400 0x1003 0x038400 0x038400 0x038400 0 # bsd consensus
syscon misc B2400 11 0x0960 0x0960 0x0960 0 # bsd consensus
syscon misc B2500000 0x100c 0 0 0 0
syscon misc B300 7 300 300 300 0 # bsd consensus
syscon misc B3000000 0x100d 0 0 0 0
syscon misc B3500000 0x100e 0 0 0 0
syscon misc B38400 15 0x9600 0x9600 0x9600 0 # bsd consensus
syscon misc B4000000 0x100f 0 0 0 0
syscon misc B4800 12 0x12c0 0x12c0 0x12c0 0 # bsd consensus
syscon misc B50 1 50 50 50 0 # bsd consensus
syscon misc B500000 0x1005 0 0 0 0
syscon misc B57600 0x1001 0xe100 0xe100 0xe100 0 # bsd consensus
syscon misc B576000 0x1006 0 0 0 0
syscon misc B600 8 600 600 600 0 # bsd consensus
syscon misc B75 2 75 75 75 0 # bsd consensus
syscon misc B9600 13 0x2580 0x2580 0x2580 0 # bsd consensus
syscon misc BITSPERBYTE 8 0 0 0 0
syscon misc BLANK_CHECK 8 0 0 0 0
syscon misc CHANGE_DEFINITION 0x40 0 0 0 0
syscon misc CHARBITS 8 0 0 0 0
syscon misc CHECK_CONDITION 1 0 0 0 0
syscon misc CONDITION_GOOD 2 0 0 0 0
syscon misc CREAD 0x80 0x0800 0x0800 0x0800 0 # bsd consensus
syscon misc CSTOPB 0x40 0x0400 0x0400 0x0400 0 # bsd consensus
syscon misc DATA_PROTECT 7 0 0 0 0
syscon misc DELAYTIMER_MAX 0x7fffffff 0 0 0 0
syscon misc DMAXEXP 0x0400 0 0 0 0
syscon misc DMINEXP -1021 0 0 0 0
syscon misc DOUBLEBITS 0x40 0 0 0 0
syscon misc ERA_D_FMT 0x02002e 46 46 0 0
syscon misc ERA_D_T_FMT 0x020030 47 47 0 0
syscon misc ERA_T_FMT 0x020031 48 48 0 0
# Teletypewriter Control, e.g.
#
# TCSETS → About 70,800 results (0.31 seconds)
# = TCSETNOW → About 47,700 results (0.31 seconds)
# ≈ TCSETA → About 12,600 results (0.32 seconds)
# = TIOCSETA → About 3,110 results (0.41 seconds)
#
# group name GNU/Systemd XNU's Not UNIX FreeBSD OpenBSD XENIX Commentary
syscon termios TCGETS 0x5401 0x40487413 0x402c7413 0x402c7413 -1 # Gets console settings; tcgetattr(tty, argp) → ioctl(tty, TCGETS, struct termios *argp); polyfilled NT
syscon compat TIOCGETA 0x5401 0x40487413 0x402c7413 0x402c7413 -1 # Gets console settings; = tcgetattr(tty, struct termios *argp)
#syscon compat TCGETA 0x5405 -1 -1 -1 -1 # Gets console settings; ≈ ioctl(fd, TCGETA, struct termio *argp)
syscon termios TCSANOW 0 0 0 0 0 # Sets console settings; tcsetattr(fd, TCSANOW, argp); polyfilled NT
syscon termios TCSETS 0x5402 0x80487414 0x802c7414 0x802c7414 0x5402 # Sets console settings; = ioctl(tty, TCSETS, const struct termios *argp); polyfilled NT
syscon compat TIOCSETA 0x5402 0x80487414 0x802c7414 0x802c7414 0x5402 # Sets console settings; = ioctl(tty, TIOCSETA, const struct termios *argp); polyfilled NT
#syscon compat TCSETA 0x5402 0x80487414 0x802c7414 0x802c7414 0x5402 # Sets console settings; ≈ ioctl(tty, TCSETA, const struct termio *argp); polyfilled NT
syscon termios TCSADRAIN 1 1 1 1 1 # Drains output & sets console settings; tcsetawttr(fd, TCSADRAIN, argp); polyfilled NT
syscon termios TCSETSW 0x5403 0x80487415 0x802c7415 0x802c7415 0x5403 # Drains output & sets console settings; = ioctl(tty, TCSETSW, const struct termios *argp); polyfilled NT
syscon compat TIOCSETAW 0x5403 0x80487415 0x802c7415 0x802c7415 0x5403 # Drains output & sets console settings; = ioctl(tty, TIOCSETAW, const struct termios *argp); polyfilled NT
#syscon compat TCSETAW 0x5403 0x80487415 0x802c7415 0x802c7415 0x5403 # Drains output & sets console settings; ≈ ioctl(tty, TCSETAW, const struct termio *argp); polyfilled NT
syscon termios TCSAFLUSH 2 2 2 2 2 # Drops input & drains output & sets console settings; tcsetafttr(fd, TCSAFLUSH, argp); polyfilled NT
syscon termios TCSETSF 0x5404 0x80487416 0x802c7416 0x802c7416 0x5404 # Drops input & drains output & sets console settings; = ioctl(tty, TCSETSF, const struct termios *argp); polyfilled NT
syscon compat TIOCSETAF 0x5404 0x80487416 0x802c7416 0x802c7416 0x5402 # Drops input & drains output & sets console settings; = ioctl(tty, TIOCSETAF, const struct termios *argp); polyfilled NT
#syscon compat TCSETAF 0x5404 0x80487416 0x802c7416 0x802c7416 0x5402 # Drops input & drains output & sets console settings; ≈ ioctl(tty, TCSETAF, const struct termio *argp); polyfilled NT
syscon termios TIOCGWINSZ 0x5413 1074295912 1074295912 1074295912 0x5413 # ioctl(tty, TIOCGWINSZ, struct winsize *argp); polyfilled NT
syscon termios TIOCSWINSZ 0x5414 0x80087467 0x80087467 0x80087467 0x5414 # ioctl(tty, TIOCSWINSZ, const struct winsize *argp) (faked NT)
syscon termios TIOCOUTQ 0x5411 0x40047473 0x40047473 0x40047473 -1 # get # bytes queued in TTY's output buffer ioctl(tty, TIOCSWINSZ, const struct winsize *argp)
syscon termios TIOCCBRK 0x5428 0x2000747a 0x2000747a 0x2000747a -1 # boop
syscon termios TIOCCONS 0x541d 0x80047462 0x80047462 0x80047462 -1 # boop
syscon termios TIOCGETD 0x5424 0x4004741a 0x4004741a 0x4004741a -1 # boop
syscon termios TIOCGPGRP 0x540f 0x40047477 0x40047477 0x40047477 -1 # boop
syscon termios TIOCNOTTY 0x5422 0x20007471 0x20007471 0x20007471 -1 # boop
syscon termios TIOCNXCL 0x540d 0x2000740e 0x2000740e 0x2000740e -1 # boop
syscon termios TIOCSBRK 0x5427 0x2000747b 0x2000747b 0x2000747b -1 # boop
syscon termios TIOCSCTTY 0x540e 0x20007461 0x20007461 0x20007461 -1 # boop
syscon termios TIOCSETD 0x5423 0x8004741b 0x8004741b 0x8004741b -1 # boop
syscon termios TIOCSIG 0x40045436 0x2000745f 0x2004745f 0x8004745f -1 # boop
syscon termios TIOCSPGRP 0x5410 0x80047476 0x80047476 0x80047476 -1 # boop
syscon termios TIOCSTI 0x5412 0x80017472 0x80017472 0 -1 # boop
syscon termios TIOCGPTN 0x80045430 0 0x4004740f 0 -1 # boop
syscon termios TIOCGSID 0x5429 0 0x40047463 0x40047463 -1 # boop
syscon termios TABLDISC 0 0x3 0 0x3 -1 # boop
syscon termios SLIPDISC 0 0x4 0x4 0x4 -1 # boop
syscon termios PPPDISC 0 0x5 0x5 0x5 -1 # boop
syscon termios TIOCDRAIN 0 0x2000745e 0x2000745e 0x2000745e -1 # boop
syscon termios TIOCSTAT 0 0x20007465 0x20007465 0x20007465 -1 # boop
syscon termios TIOCSTART 0 0x2000746e 0x2000746e 0x2000746e -1 # boop
syscon termios TIOCCDTR 0 0x20007478 0x20007478 0x20007478 -1 # boop
syscon termios TIOCSDTR 0 0x20007479 0x20007479 0x20007479 -1 # boop
syscon termios TIOCFLUSH 0 0x80047410 0x80047410 0x80047410 -1 # boop
syscon termios TIOCEXT 0 0x80047460 0x80047460 0x80047460 -1 # boop
syscon termios TIOCGDRAINWAIT 0 0x40047456 0x40047456 0 -1 # boop
syscon termios TIOCTIMESTAMP 0 0x40107459 0x40107459 0 -1 # boop
syscon termios TIOCSDRAINWAIT 0 0x80047457 0x80047457 0 -1 # boop
syscon termios TIOCREMOTE 0 0x80047469 0 0x80047469 -1 # boop
syscon termios TTYDISC 0 0 0 0 -1 # boop
syscon termios TIOCFLAG_SOFTCAR 0 0 0 0x1 -1 # boop
syscon termios TIOCFLAG_PPS 0 0 0 0x10 -1 # boop
syscon termios TIOCFLAG_CLOCAL 0 0 0 0x2 -1 # boop
syscon termios TIOCCHKVERAUTH 0 0 0 0x2000741e -1 # boop
syscon termios TIOCGFLAGS 0 0 0 0x4004745d -1 # boop
syscon termios TIOCGTSTAMP 0 0 0 0x4010745b -1 # boop
syscon termios STRIPDISC 0 0 0 0x6 -1 # boop
syscon termios NMEADISC 0 0 0 0x7 -1 # boop
syscon termios TIOCUCNTL_CBRK 0 0 0 0x7a -1 # boop
syscon termios TIOCFLAG_MDMBUF 0 0 0 0x8 -1 # boop
syscon termios TIOCSETVERAUTH 0 0 0 0x8004741c -1 # boop
syscon termios TIOCSFLAGS 0 0 0 0x8004745c -1 # boop
syscon termios TIOCSTSTAMP 0 0 0 0x8008745a -1 # boop
syscon termios ENDRUNDISC 0 0 0 0x9 -1 # boop
syscon termios TIOCPTMASTER 0 0 0x2000741c 0 -1 # boop
syscon termios NETGRAPHDISC 0 0 0x6 0 -1 # boop
syscon termios H4DISC 0 0 0x7 0 -1 # boop
syscon termios ISIG 0b0000000000000001 0b0000000010000000 0b0000000010000000 0b0000000010000000 0b0000000000000001 # termios.c_lflag|=ISIG makes Ctrl-C, Ctrl-\, etc. generate signals
2020-10-11 04:18:53 +00:00
syscon termios ICANON 0b0000000000000010 0b0000000100000000 0b0000000100000000 0b0000000100000000 0b0000000000000010 # termios.c_lflag&=~ICANON disables 1960's version of gnu readline (see also VMIN)
2020-06-15 14:18:57 +00:00
syscon termios XCASE 0b0000000000000100 0 0 16777216 0b0000000000000100 # termios.c_lflag
2020-10-11 04:18:53 +00:00
syscon termios ECHO 0b0000000000001000 0b0000000000001000 0b0000000000001000 0b0000000000001000 0b0000000000001000 # termios.c_lflag&=~ECHO is for passwords and raw mode
2020-06-15 14:18:57 +00:00
syscon termios ECHOE 0b0000000000010000 0b0000000000000010 0b0000000000000010 0b0000000000000010 0b0000000000010000 # termios.c_lflag
syscon termios ECHOK 0b0000000000100000 0b0000000000000100 0b0000000000000100 0b0000000000000100 0b0000000000100000 # termios.c_lflag
syscon termios ECHONL 0b0000000001000000 0b0000000000010000 0b0000000000010000 0b0000000000010000 0b0000000001000000 # termios.c_lflag
syscon termios NOFLSH 0b0000000010000000 2147483648 2147483648 2147483648 0b0000000010000000 # termios.c_lflag|=NOFLSH means don't flush on INT/QUIT/SUSP
syscon termios TOSTOP 0b0000000100000000 4194304 4194304 4194304 0b0000000100000000 # termios.c_lflag|=TOSTOP raises SIGTTOU to process group if background job tries to write to controlling terminal
syscon termios ECHOCTL 0b0000001000000000 0b0000000001000000 0b0000000001000000 0b0000000001000000 0b0000001000000000 # termios.c_lflag|=ECHOCTL prints ^𝑥 codes for monotonic motion
syscon termios ECHOPRT 0b0000010000000000 0b0000000000100000 0b0000000000100000 0b0000000000100000 0b0000010000000000 # termios.c_lflag|=ECHOPRT includes the parity bit
syscon termios ECHOKE 0b0000100000000000 0b0000000000000001 0b0000000000000001 0b0000000000000001 0b0000100000000000 # termios.c_lflag
syscon termios FLUSHO 0b0001000000000000 8388608 8388608 8388608 0b0001000000000000 # termios.c_lflag
syscon termios PENDIN 0b0100000000000000 536870912 536870912 536870912 0b0100000000000000 # termios.c_lflag
syscon termios IEXTEN 0b1000000000000000 0b0000010000000000 0b0000010000000000 0b0000010000000000 0b1000000000000000 # termios.c_lflag&=~IEXTEN disables platform input processing magic
syscon termios EXTPROC 65536 0b0000100000000000 0b0000100000000000 0b0000100000000000 65536 # termios.c_lflag
2020-10-11 04:18:53 +00:00
syscon termios IGNBRK 0b0000000000000001 0b0000000000000001 0b0000000000000001 0b0000000000000001 0b0000000000000001 # termios.c_iflag it's complicated, uart only? UNIXCONSENSUS
syscon termios BRKINT 0b0000000000000010 0b0000000000000010 0b0000000000000010 0b0000000000000010 0b0000000000000010 # termios.c_iflag it's complicated, uart only? UNIXCONSENSUS
2020-06-15 14:18:57 +00:00
syscon termios IGNPAR 0b0000000000000100 0b0000000000000100 0b0000000000000100 0b0000000000000100 0b0000000000000100 # termios.c_iflag|=IGNPAR ignores parity and framing errors; see PARMRK UNIXCONSENSUS
syscon termios PARMRK 0b0000000000001000 0b0000000000001000 0b0000000000001000 0b0000000000001000 0b0000000000001000 # termios.c_iflag|=PARMRK passes-through parity bit UNIXCONSENSUS
syscon termios INPCK 0b0000000000010000 0b0000000000010000 0b0000000000010000 0b0000000000010000 0b0000000000010000 # termios.c_iflag|=INPCK enables parity checking UNIXCONSENSUS
syscon termios ISTRIP 0b0000000000100000 0b0000000000100000 0b0000000000100000 0b0000000000100000 0b0000000000100000 # termios.c_iflag|=ISTRIP automates read(1)&0x7f UNIXCONSENSUS
syscon termios INLCR 0b0000000001000000 0b0000000001000000 0b0000000001000000 0b0000000001000000 0b0000000001000000 # termios.c_iflag|=INLCR maps \n → \r input UNIXCONSENSUS
syscon termios IGNCR 0b0000000010000000 0b0000000010000000 0b0000000010000000 0b0000000010000000 0b0000000010000000 # termios.c_iflag|=IGNCR maps \r → ∅ input UNIXCONSENSUS
syscon termios ICRNL 0b0000000100000000 0b0000000100000000 0b0000000100000000 0b0000000100000000 0b0000000100000000 # termios.c_iflag|=ICRNL maps \r → \n input UNIXCONSENSUS
syscon termios IUCLC 0b0000001000000000 0 0 0b0001000000000000 0b0000001000000000 # termios.c_iflag|=IUCLC maps A-Z → a-z input
syscon termios IXON 0b0000010000000000 0b0000001000000000 0b0000001000000000 0b0000001000000000 0b0000010000000000 # termios.c_iflag|=IXON enables flow rida
syscon termios IXANY 0b0000100000000000 0b0000100000000000 0b0000100000000000 0b0000100000000000 0b0000100000000000 # termios.c_iflag|=IXANY tying will un-stuck teletype UNIXCONSENSUS
syscon termios IXOFF 0b0001000000000000 0b0000010000000000 0b0000010000000000 0b0000010000000000 0b0001000000000000 # termios.c_iflag|=IXOFF disables annoying display freeze keys
syscon termios IMAXBEL 0b0010000000000000 0b0010000000000000 0b0010000000000000 0b0010000000000000 0b0010000000000000 # termios.c_iflag|=IMAXBEL rings when queue full UNIXCONSENSUS
syscon termios IUTF8 0b0100000000000000 0b0100000000000000 0 0 0b0100000000000000 # termios.c_iflag|=IUTF8 helps w/ rubout on UTF-8 input
syscon termios OPOST 0b0000000000000001 0b000000000000000001 0b000000000000000001 0b0000000000000001 0b0000000000000001 # termios.c_oflag&=~OPOST disables output processing magic
syscon termios OLCUC 0b0000000000000010 0b000000000000000000 0 0b0000000000100000 0b0000000000000010 # termios.c_oflag|=OLCUC maps a-z → A-Z output
syscon termios ONLCR 0b0000000000000100 0b000000000000000010 0b000000000000000010 0b0000000000000010 0b0000000000000100 # termios.c_oflag|=ONLCR maps \n → \r\n output
syscon termios OCRNL 0b0000000000001000 0b000000000000010000 0b000000000000010000 0b0000000000010000 0b0000000000001000 # termios.c_oflag|=OCRNL maps \r → \n output
syscon termios ONOCR 0b0000000000010000 0b000000000000100000 0b000000000000100000 0b0000000001000000 0b0000000000010000 # termios.c_oflag|=ONOCR maps \r → ∅ output iff column 0
syscon termios ONLRET 0b0000000000100000 0b000000000001000000 0b000000000001000000 0b0000000010000000 0b0000000000100000 # termios.c_oflag|=ONLRET maps \r → ∅ output
syscon termios OFILL 0b0000000001000000 0b000000000010000000 0 0 0b0000000001000000 # termios.c_oflag
syscon termios OFDEL 0b0000000010000000 0b100000000000000000 0 0 0b0000000010000000 # termios.c_oflag
syscon termios NLDLY 0b0000000100000000 0b000000001100000000 0b000000001100000000 0 0b0000000100000000 # (termios.c_oflag & NLDLY) ∈ {NL0,NL1,NL2,NL3}
syscon termios NL0 0b0000000000000000 0b000000000000000000 0b000000000000000000 0 0b0000000000000000 # (termios.c_oflag & NLDLY) == NL0
syscon termios NL1 0b0000000100000000 0b000000000100000000 0b000000000100000000 0 0b0000000100000000 # (termios.c_oflag & NLDLY) == NL1
syscon termios NL2 0 0b000000001000000000 0b000000001000000000 0 0 # (termios.c_oflag & NLDLY) == NL2
syscon termios NL3 0 0b000000001100000000 0b000000001100000000 0 0 # (termios.c_oflag & NLDLY) == NL3
syscon termios CRDLY 0b0000011000000000 0b000011000000000000 0b000011000000000000 0 0b0000011000000000 # (termios.c_oflag & CRDLY) ∈ {CR0,CR1,CR2,CR3}
syscon termios CR0 0b0000000000000000 0b000000000000000000 0b000000000000000000 0x0 0b0000000000000000 # (termios.c_oflag & CRDLY) == CR0
syscon termios CR1 0b0000001000000000 0b000001000000000000 0b000001000000000000 0x0 0b0000001000000000 # (termios.c_oflag & CRDLY) == CR1
syscon termios CR2 0b0000010000000000 0b000010000000000000 0b000010000000000000 0x0 0b0000010000000000 # (termios.c_oflag & CRDLY) == CR2
syscon termios CR3 0b0000011000000000 0b000011000000000000 0b000011000000000000 0x0 0b0000011000000000 # (termios.c_oflag & CRDLY) == CR3
syscon termios TABDLY 0b0001100000000000 0b000000110000000100 0b000000000000000100 0 0b0001100000000000 # (termios.c_oflag & TABDLY) ∈ {TAB0,TAB1,TAB2,TAB3,XTABS}
syscon termios TAB0 0b0000000000000000 0b000000000000000000 0b000000000000000000 0 0b0000000000000000 # (termios.c_oflag & TABDLY) == TAB0
syscon termios TAB1 0b0000100000000000 0b000000010000000000 0b000000010000000000 0 0b0000100000000000 # (termios.c_oflag & TABDLY) == TAB1
syscon termios TAB2 0b0001000000000000 0b000000100000000000 0b000000100000000000 0 0b0001000000000000 # (termios.c_oflag & TABDLY) == TAB2
syscon termios TAB3 0b0001100000000000 0b000000000000000100 0b000000000000000100 0 0b0001100000000000 # (termios.c_oflag & TABDLY) == TAB3
syscon termios XTABS 0b0001100000000000 0b000000000000000000 0b000000110000000000 0 0b0001100000000000 # (termios.c_oflag & TABDLY) == XTABS
syscon termios BSDLY 0b0010000000000000 0b001000000000000000 0b001000000000000000 0 0b0010000000000000 # termios.c_oflag
syscon termios BS0 0b0000000000000000 0b000000000000000000 0b000000000000000000 0 0b0000000000000000 # termios.c_oflag
syscon termios BS1 0b0010000000000000 0b001000000000000000 0b001000000000000000 0 0b0010000000000000 # termios.c_oflag
syscon termios VTDLY 0b0100000000000000 0b010000000000000000 0b010000000000000000 0 0b0100000000000000 # termios.c_oflag
syscon termios VT0 0b0000000000000000 0b000000000000000000 0b000000000000000000 0 0b0000000000000000 # termios.c_oflag
syscon termios VT1 0b0100000000000000 0b010000000000000000 0b010000000000000000 0 0b0100000000000000 # termios.c_oflag
syscon termios FFDLY 0b1000000000000000 0b000100000000000000 0b000100000000000000 0 0b1000000000000000 # termios.c_oflag
syscon termios FF0 0b0000000000000000 0b000000000000000000 0b000000000000000000 0 0b0000000000000000 # termios.c_oflag
syscon termios FF1 0b1000000000000000 0b000100000000000000 0b000100000000000000 0 0b1000000000000000 # termios.c_oflag
syscon termios CS6 0b0000000000010000 0b0000000100000000 0b0000000100000000 0b0000000100000000 0b0000000000010000 # termios.c_cflag flag for 6-bit characters
syscon termios CS7 0b0000000000100000 0b0000001000000000 0b0000001000000000 0b0000001000000000 0b0000000000100000 # termios.c_cflag flag for 7-bit characters
syscon termios CS8 0b0000000000110000 0b0000001100000000 0b0000001100000000 0b0000001100000000 0b0000000000110000 # termios.c_cflag flag for 8-bit characters
syscon termios CSIZE 0b0000000000110000 0b0000001100000000 0b0000001100000000 0b0000001100000000 0b0000000000110000 # mask for CS𝑥 flags
syscon termios NCCS 32 32 32 32 32 # ARRAYLEN(termios.c_cc); faked xnu/freebsd/openbsd (originally 20) and faked nt
syscon termios VINTR 0 8 8 8 0 # termios.c_cc[VINTR]=𝑥
syscon termios VQUIT 1 9 9 9 0 # termios.c_cc[VQUIT]=𝑥
syscon termios VERASE 2 3 3 3 0 # termios.c_cc[VERASE]=𝑥
syscon termios VKILL 3 5 5 5 0 # termios.c_cc[VKILL]=𝑥
syscon termios VEOF 4 0 0 0 0 # termios.c_cc[VEOF]=𝑥
2020-10-11 04:18:53 +00:00
syscon termios VTIME 5 17 17 17 0 # termios.c_cc[VTIME]=𝑥 sets non-canonical read timeout to 𝑥 × 𝟷 𝟶 𝟶 ms which is needed when entering escape sequences manually with the escape key
syscon termios VMIN 6 16 16 16 0 # termios.c_cc[VMIN]=𝑥 in non-canonical mode can be set to 0 for non-blocking reads, 1 for single character raw mode reads, or higher to buffer
2020-06-15 14:18:57 +00:00
syscon termios VSWTC 7 0 0 0 0 # termios.c_cc[VSWTC]=𝑥
syscon termios VSTART 8 12 12 12 0 # termios.c_cc[VSTART]=𝑥
syscon termios VSTOP 9 13 13 13 0 # termios.c_cc[VSTOP]=𝑥
syscon termios VSUSP 10 10 10 10 0 # termios.c_cc[VSUSP]=𝑥 defines suspend, i.e. Ctrl-Z (a.k.a. →, ^Z, SUB, 26, 032, 0x1A, ord('Z')^0b01000000); unix consensus
syscon termios VEOL 11 1 1 1 0 # termios.c_cc[VEOL]=𝑥
syscon termios VEOL2 16 2 2 2 0 # termios.c_cc[VEOL2]=𝑥
syscon termios VREPRINT 12 6 6 6 0 # termios.c_cc[VREPRINT]=𝑥
syscon termios VDISCARD 13 15 15 15 0 # termios.c_cc[VDISCARD]=𝑥
syscon termios VWERASE 14 4 4 4 0 # termios.c_cc[VWERASE]=𝑥
syscon termios VLNEXT 15 14 14 14 0 # termios.c_cc[VLNEXT]=𝑥
syscon termios TIOCSERGETLSR 0x5459 0 0 0 0 #
syscon termios TIOCSERGETMULTI 0x545a 0 0 0 0 #
syscon termios TIOCSERSETMULTI 0x545b 0 0 0 0 #
syscon termios TIOCSER_TEMT 1 0 0 0 0 #
syscon termios VERIFY 47 0 0 0 0
syscon termios PARENB 0x0100 0x1000 0x1000 0x1000 0 #
syscon termios PARODD 0x0200 0x2000 0x2000 0x2000 0 #
syscon termios CIBAUD 0x100f0000 0 0 0 0
syscon termios CLOCAL 0x0800 0x8000 0x8000 0x8000 0 #
syscon termios CMSPAR 0x40000000 0 0 0 0
syscon termios BUSY 4 0 0 0 0
syscon termios CANBSIZ 255 0 0 0 0
syscon termios CBAUD 0x100f 0 0 0 0
syscon termios CBAUDEX 0x1000 0 0 0 0
syscon termios CBRK 0 255 255 255 0 #
syscon termios CEOL 0 255 255 255 0 #
# Pseudoteletypewriter Control
#
# group name GNU/Systemd XNU's Not UNIX FreeBSD OpenBSD XENIX Commentary
syscon pty TIOCPKT 0x5420 0x80047470 0x80047470 0x80047470 -1 # boop
syscon pty TIOCPKT_DATA 0 0 0 0 0 # consensus
syscon pty TIOCPKT_FLUSHREAD 1 1 1 1 1 # unix consensus
syscon pty TIOCPKT_FLUSHWRITE 2 2 2 2 2 # unix consensus
syscon pty TIOCPKT_STOP 4 4 4 4 4 # unix consensus
syscon pty TIOCPKT_START 8 8 8 8 8 # unix consensus
syscon pty TIOCPKT_NOSTOP 16 16 16 16 16 # unix consensus
syscon pty TIOCPKT_DOSTOP 32 32 32 32 32 # unix consensus
syscon pty TIOCPKT_IOCTL 64 64 64 64 64 # unix consensus
syscon pty TIOCSPTLCK 0x40045431 0 0 0 -1 # boop
syscon pty PTMGET 0 0 0 0x40287401 -1 # for /dev/ptm
# Modem Control
#
# group name GNU/Systemd XNU's Not UNIX FreeBSD OpenBSD XENIX Commentary
syscon modem TIOCMGET 0x5415 0x4004746a 0x4004746a 0x4004746a -1 # get status of modem bits; ioctl(fd, TIOCMGET, int *argp)
syscon modem TIOCMSET 0x5418 0x8004746d 0x8004746d 0x8004746d -1 # set status of modem bits; ioctl(fd, TIOCMSET, const int *argp)
syscon modem TIOCMBIC 0x5417 0x8004746b 0x8004746b 0x8004746b -1 # clear indicated modem bits; ioctl(fd, TIOCMBIC, int *argp)
syscon modem TIOCMBIS 0x5416 0x8004746c 0x8004746c 0x8004746c -1 # set indicated modem bits; ioctl(fd, TIOCMBIS, int *argp)
syscon modem TIOCM_LE 0b0000000000000001 0b0000000000000001 0b0000000000000001 0b0000000000000001 0b0000000000000001 # consensus
syscon modem TIOCM_DTR 0b0000000000000010 0b0000000000000010 0b0000000000000010 0b0000000000000010 0b0000000000000010 # consensus
syscon modem TIOCM_RTS 0b0000000000000100 0b0000000000000100 0b0000000000000100 0b0000000000000100 0b0000000000000100 # consensus
syscon modem TIOCM_ST 0b0000000000001000 0b0000000000001000 0b0000000000001000 0b0000000000001000 0b0000000000001000 # consensus
syscon modem TIOCM_SR 0b0000000000010000 0b0000000000010000 0b0000000000010000 0b0000000000010000 0b0000000000010000 # consensus
syscon modem TIOCM_CTS 0b0000000000100000 0b0000000000100000 0b0000000000100000 0b0000000000100000 0b0000000000100000 # consensus
syscon modem TIOCM_CAR 0b0000000001000000 0b0000000001000000 0b0000000001000000 0b0000000001000000 0b0000000001000000 # consensus
syscon modem TIOCM_CD 0b0000000001000000 0b0000000001000000 0b0000000001000000 0b0000000001000000 0b0000000001000000 # boop
syscon modem TIOCM_RI 0b0000000010000000 0b0000000010000000 0b0000000010000000 0b0000000010000000 0b0000000010000000 # boop
syscon modem TIOCM_RNG 0b0000000010000000 0b0000000010000000 0b0000000010000000 0b0000000010000000 0b0000000010000000 # boop
syscon modem TIOCM_DSR 0b0000000100000000 0b0000000100000000 0b0000000100000000 0b0000000100000000 0b0000000100000000 # consensus
syscon modem TIOCM_DCD 0 0 0x40 0 -1 # wut
syscon modem TIOCMODG 0 0x40047403 0 0x4004746a -1 # wut
syscon modem TIOCMODS 0 0x80047404 0 0x8004746d -1 # wut
syscon modem TIOCMSDTRWAIT 0 0x8004745b 0x8004745b 0 -1 # wut
syscon ioctl FIONBIO 0x5421 0x8004667e 0x8004667e 0x8004667e 0x8004667e # BSD-Windows consensus; FIONBIO is traditional O_NONBLOCK; see F_SETFL for re-imagined api
syscon ioctl FIOASYNC 0x5452 0x8004667d 0x8004667d 0x8004667d 0x8004667d # BSD-Windows consensus
syscon ioctl FIONREAD 0x541b 0x4004667f 0x4004667f 0x4004667f 0x4004667f # BSD-Windows consensus; bytes waiting in FD's input buffer
#syscon ioctl FIONWRITE 0x0 0x0 0x40046677 0x0 -1 # [FreeBSD Generalization] bytes queued in FD's output buffer (same as TIOCOUTQ for TTY FDs; see also SO_SNDBUF)
#syscon ioctl FIONSPACE 0x0 0x0 0x40046676 0x0 -1 # [FreeBSD Generalization] capacity of FD's output buffer, e.g. equivalent to TIOCGSERIAL w/ UART
syscon ioctl TIOCINQ 0x541b 0x4004667f 0x4004667f 0x4004667f 0x4004667f # [Linuxism] same as FIONREAD
2020-08-27 06:08:08 +00:00
#syscon ioctl TIOCOUTQ 0x5411 0x40047473 0x40047473 0x40047473 -1 # bytes queued in TTY's output buffer
2020-06-15 14:18:57 +00:00
syscon misc FANOTIFY_METADATA_VERSION 3 0 0 0 0
syscon misc FAPPEND 0x0400 8 8 8 0 # bsd consensus
syscon misc FASYNC 0x2000 0x40 0x40 0x40 0 # bsd consensus
syscon misc FFSYNC 0x101000 0x80 0x80 0x80 0 # bsd consensus
syscon misc FILENAME_MAX 0x1000 0x0400 0x0400 0x0400 0 # bsd consensus
syscon misc FIOGETOWN 0x8903 0x4004667b 0x4004667b 0x4004667b 0 # bsd consensus
syscon misc FIOSETOWN 0x8901 0x8004667c 0x8004667c 0x8004667c 0 # bsd consensus
syscon misc FMAXEXP 0x80 0 0 0 0
syscon misc FMINEXP -125 0 0 0 0
syscon misc FNDELAY 0x0800 4 4 4 0 # bsd consensus
syscon misc FNONBLOCK 0x0800 4 4 4 0 # bsd consensus
syscon misc FOPEN_MAX 0x10 20 20 20 0 # bsd consensus
syscon misc FORMAT_UNIT 4 0 0 0 0
syscon misc HARDWARE_ERROR 4 0 0 0 0
syscon misc HEAD_OF_QUEUE_TAG 33 0 0 0 0
syscon misc HUPCL 0x0400 0x4000 0x4000 0x4000 0 # bsd consensus
syscon misc IGMP_MEMBERSHIP_QUERY 17 0 0 0 0
syscon misc ILLEGAL_REQUEST 5 0 0 0 0
syscon misc INITIATE_RECOVERY 15 0 0 0 0
syscon misc INITIATOR_ERROR 5 0 0 0 0
syscon misc INQUIRY 18 0 0 0 0
syscon misc MAXHOSTNAMELEN 0x40 0x0100 0x0100 0x0100 0 # bsd consensus
syscon misc MAXPATHLEN 255 255 255 255 255 # forced consensus
syscon misc MAXSYMLINKS 20 0x20 0x20 0x20 0 # bsd consensus
syscon misc MESSAGE_REJECT 7 0 0 0 0
syscon misc MISCOMPARE 14 0 0 0 0
syscon misc MOVE_MEDIUM 165 0 0 0 0
syscon misc MTCOMPRESSION 0x20 0 0 0 0
syscon misc MTFSFM 11 0 0 0 0
syscon misc MTLOCK 28 0 0 0 0
syscon misc MTMKPART 34 0 0 0 0
syscon misc MTRAS1 14 0 0 0 0
syscon misc MTRAS3 0x10 0 0 0 0
syscon misc MTSETBLK 20 0 0 0 0
syscon misc MTSETDENSITY 21 0 0 0 0
syscon misc MTSETDRVBUFFER 24 0 0 0 0
syscon misc MTSETPART 33 0 0 0 0
syscon misc MTUNLOAD 31 0 0 0 0
syscon misc MTUNLOCK 29 0 0 0 0
syscon misc NCARGS 0x020000 0x040000 0x040000 0x040000 0 # bsd consensus
syscon misc NGREG 23 0 0 0 0
syscon misc NOGROUP -1 0xffff 0xffff 0xffff 0 # bsd consensus
syscon misc ORDERED_QUEUE_TAG 34 0 0 0 0
syscon misc ORIG_RAX 15 0 0 0 0
syscon misc PIPE_BUF 0x1000 0x0200 0x0200 0x0200 0 # bsd consensus
syscon misc PRE_FETCH 52 0 0 0 0
syscon misc QUEUE_FULL 20 0 0 0 0
syscon misc REASSIGN_BLOCKS 7 0 0 0 0
syscon misc RECEIVE_DIAGNOSTIC 28 0 0 0 0
syscon misc RECOVERED_ERROR 1 0 0 0 0
syscon misc RECOVER_BUFFERED_DATA 20 0 0 0 0
syscon misc RELEASE_RECOVERY 0x10 0 0 0 0
syscon misc REQUEST_SENSE 3 0 0 0 0
syscon misc RESERVATION_CONFLICT 12 0 0 0 0
syscon misc RESERVE 22 0 0 0 0
syscon misc RESERVE_10 86 0 0 0 0
syscon misc RESTORE_POINTERS 3 0 0 0 0
syscon misc REZERO_UNIT 1 0 0 0 0
syscon misc RE_DUP_MAX 0x7fff 255 255 255 0 # bsd consensus
syscon misc RTCF_DOREDIRECT 0x01000000 0 0 0 0
syscon misc SAVE_POINTERS 2 0 0 0 0
syscon misc SEM_VALUE_MAX 0x7fffffff 0x7fff 0x7fffffff 0xffffffff 0
syscon misc SEM_INFO 19 0 11 0 0
syscon misc SEM_STAT 18 0 10 0 0
syscon misc SHMLBA 0 0x1000 0x1000 0x1000 0 # bsd consensus
syscon misc SIMPLE_QUEUE_TAG 0x20 0 0 0 0
syscon misc SPACE 17 0 0 0 0
syscon misc START_STOP 27 0 0 0 0
syscon misc STATUS_MASK 62 0 0 0 0
syscon misc SWAP_FLAG_DISCARD 0x010000 0 0 0 0
syscon misc SYNCHRONIZE_CACHE 53 0 0 0 0
syscon misc UMOUNT_NOFOLLOW 8 0 0 0 0
syscon misc UNIT_ATTENTION 6 0 0 0 0
syscon misc UPDATE_BLOCK 61 0 0 0 0
syscon misc UT_HOSTSIZE 0x0100 0x10 0 0x0100 0
syscon misc UT_LINESIZE 0x20 8 0 8 0
syscon misc UT_NAMESIZE 0x20 8 0 0x20 0
syscon misc WEOF 0xffffffff -1 -1 -1 -1 # bsd consensus (win fake)
syscon misc _LINUX_QUOTA_VERSION 2 0 0 0 0
syscon misc _SEM_SEMUN_UNDEFINED 1 0 0 0 0
syscon misc D_FMT 0x020029 2 2 1 0
syscon misc D_T_FMT 0x020028 1 1 0 0
syscon misc LOGIN_PROCESS 6 6 6 0 0
syscon misc LOGIN_NAME_MAX 0x0100 0 0 0x20 0
syscon misc T_FMT 0x02002a 3 3 2 0
syscon misc T_FMT_AMPM 0x02002b 4 4 3 0
syscon misc UL_GETFSIZE 1 1 1 0 0
syscon misc UL_SETFSIZE 2 2 2 0 0
syscon misc XATTR_CREATE 1 2 0 0 0
syscon misc XATTR_REPLACE 2 4 0 0 0
syscon misc ACCOUNTING 9 9 0 0 0
syscon misc AHZ 100 0x40 0 0x40 0
syscon misc ALT_DIGITS 0x02002f 49 49 0 0
syscon misc AM_STR 0x020026 5 5 4 0
syscon misc B460800 0x1004 0 0x070800 0 0
syscon misc B921600 0x1007 0 0x0e1000 0 0
syscon misc BOOT_TIME 2 2 1 0 0
syscon misc CHARCLASS_NAME_MAX 0x0800 14 14 0 0
syscon misc CLOCKS_PER_SEC 1000000 1000000 0x80 100 10000000
syscon misc CODESET 14 0 0 51 0
syscon misc COLL_WEIGHTS_MAX 255 2 10 2 0
syscon misc CPU_SETSIZE 0x0400 0 0x0100 0 0
syscon misc CRNCYSTR 0x04000f 56 56 50 0
syscon misc CRTSCTS 0x80000000 0x030000 0x030000 0x010000 0
syscon misc CSTATUS 0 20 20 255 0
syscon misc DEAD_PROCESS 8 8 7 0 0
syscon misc FNM_NOSYS -1 -1 -1 2 0
syscon misc INIT_PROCESS 5 5 5 0 0
syscon misc MINSIGSTKSZ 0x0800 0x8000 0x0800 0x3000 0
syscon misc MQ_PRIO_MAX 0x8000 0 0x40 0 0
syscon misc MTERASE 13 0 12 9 0
syscon misc MTLOAD 30 0 19 0 0
syscon misc MTRETEN 9 0 0 8 0
syscon misc NEW_TIME 3 4 3 0 0
syscon misc NFDBITS 0x40 0x20 0x40 0x20 0
syscon misc NGROUPS 0x010000 0x10 0x0400 0x10 0
syscon misc NGROUPS_MAX 0x010000 0x10 0x03ff 0x10 0
syscon misc NOEXPR 0x050001 53 53 49 0
syscon misc NOFILE 0x0100 0x0100 0x40 0x40 0
syscon misc NOSTR 0x050003 55 55 48 0
syscon misc OLD_TIME 4 3 2 0 0
syscon misc PM_STR 0x020027 6 6 5 0
syscon misc RADIXCHAR 0x010000 50 50 44 0
syscon misc RUN_LVL 1 1 0 0 0
syscon misc STA_RONLY 0xff00 0 0xff00 0 0
syscon misc SYMLOOP_MAX 0 0 0 0x20 0
syscon misc THOUSEP 0x010001 51 51 45 0
syscon misc TIMER_ABSTIME 1 0 1 1 0
syscon misc TIME_UTC 1 0 1 0 0
syscon misc TMP_MAX 0x03a2f8 0x1269ae40 0x1269ae40 0x7fffffff 0
syscon misc TSS_DTOR_ITERATIONS 0 0 4 0 0
syscon misc TTY_NAME_MAX 0x20 0 0 260 0
syscon misc UIO_MAXIOV 0x0400 0 0 0x0400 0
syscon misc USER_PROCESS 7 7 4 0 0
syscon misc YESEXPR 0x050000 52 52 47 0
syscon misc YESSTR 0x050002 54 54 46 0
# System Call Numbers.
#
# group name GNU/Systemd XNU's Not UNIX FreeBSD OpenBSD XENIX
syscon nr __NR_getpid 0x0027 0x2000014 0x0014 0x0014 -1
syscon nr __NR_kill 0x003e 0x2000025 0x0025 0x007a -1
syscon nr __NR_exit 0x00e7 0x2000001 0x0001 0x0001 -1
syscon nr __NR_read 0x0000 0x2000003 0x0003 0x0003 -1
syscon nr __NR_write 0x0001 0x2000004 0x0004 0x0004 -1
syscon nr __NR_open 0x0002 0x2000005 0x0005 0x0005 -1
syscon nr __NR_close 0x0003 0x2000006 0x0006 0x0006 -1
syscon nr __NR_wait4 0x003d 0x1000007 0x0007 0x000b -1
syscon nr __NR_stat 0x0004 0x2000152 0x00bc 0x0026 -1
syscon nr __NR_fstat 0x0005 0x2000153 0x0227 0x0035 -1
syscon nr __NR_lstat 0x0006 0x2000154 0x0028 0x0028 -1
syscon nr __NR_mmap 0x0009 0x20000c5 0x01dd 0x00c5 -1
syscon nr __NR_mprotect 0x000a 0x200004a 0x004a 0x004a -1
syscon nr __NR_munmap 0x000b 0x2000049 0x0049 0x0049 -1
syscon nr __NR_sigaction 0x000d 0x200002e 0x01a0 0x002e -1
syscon nr __NR_pread 0x0011 0x2000099 0x01db 0x00ad -1
syscon nr __NR_pwrite 0x0012 0x200009a 0x01dc 0x00ae -1
syscon nr __NR_access 0x0015 0x2000021 0x0021 0x0021 -1
syscon nr __NR_sched_yield 0x0018 0x100003c 0x014b 0x012a -1
syscon nr __NR_sendfile 0x0028 0x2000151 0x0189 0xffff -1
syscon nr __NR_fork 0x0039 0x2000002 0x0002 0x0002 -1
syscon nr __NR_gettimeofday 0x0060 0x2000074 0x0074 0x0043 -1
syscon nr __NR_arch_prctl 0x009e 0x000ffff 0x00a5 0x00a5 -1
syscon nr __NR_gettid 0x00ba 0x200011e 0xffff 0xffff -1
syscon nr __NR_fadvise 0x00dd 0x000ffff 0x0213 0xffff -1
syscon nr __NR_clock_gettime 0x00e4 0x000ffff 0x00e8 0x0057 -1
syscon nr __NR_getuid 0x0066 0x2000018 0x0018 0x0018 -1
syscon nr __NR_getgid 0x0068 0x200002f 0x002f 0x002f -1
syscon nr __NR_geteuid 0x006b 0x2000019 0x0019 0x0019 -1
syscon nr __NR_getegid 0x006c 0x200002b 0x002b 0x002b -1
syscon nr __NR_madvise 0x001c 0x200004b 0x004b 0x004b -1
syscon nr __NR_sigprocmask 0x000e 0x2000030 0x0154 0x0030 -1
# https://youtu.be/GUQUD3IMbb4?t=85