unistd_freebsd_amd64.go (91077B)
1 // Code generated by 'ccgo unistd/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o unistd/unistd_freebsd_amd64.go -pkgname unistd', DO NOT EDIT. 2 3 package unistd 4 5 import ( 6 "math" 7 "reflect" 8 "sync/atomic" 9 "unsafe" 10 ) 11 12 var _ = math.Pi 13 var _ reflect.Kind 14 var _ atomic.Value 15 var _ unsafe.Pointer 16 17 const ( 18 BIG_ENDIAN = 4321 // _endian.h:70:1: 19 BYTE_ORDER = 1234 // _endian.h:72:1: 20 CLOSE_RANGE_CLOEXEC = 4 // unistd.h:205:1: 21 FD_SETSIZE = 1024 // select.h:61:1: 22 F_LOCK = 1 // unistd.h:85:1: 23 F_OK = 0 // unistd.h:102:1: 24 F_TEST = 3 // unistd.h:87:1: 25 F_TLOCK = 2 // unistd.h:86:1: 26 F_ULOCK = 0 // unistd.h:84:1: 27 LITTLE_ENDIAN = 1234 // _endian.h:69:1: 28 L_INCR = 1 // unistd.h:121:1: 29 L_SET = 0 // unistd.h:120:1: 30 L_XTND = 2 // unistd.h:122:1: 31 PDP_ENDIAN = 3412 // _endian.h:71:1: 32 RFCENVG = 2048 // unistd.h:178:1: 33 RFCFDG = 4096 // unistd.h:179:1: 34 RFCNAMEG = 1024 // unistd.h:177:1: 35 RFENVG = 2 // unistd.h:171:1: 36 RFFDG = 4 // unistd.h:172:1: 37 RFFLAGS = 2416930932 // unistd.h:195:1: 38 RFHIGHPID = 262144 // unistd.h:184:1: 39 RFKERNELONLY = 268828672 // unistd.h:198:1: 40 RFLINUXTHPN = 65536 // unistd.h:182:1: 41 RFMEM = 32 // unistd.h:175:1: 42 RFNAMEG = 1 // unistd.h:170:1: 43 RFNOTEG = 8 // unistd.h:173:1: 44 RFNOWAIT = 64 // unistd.h:176:1: 45 RFPPWAIT = 2147483648 // unistd.h:192:1: 46 RFPROC = 16 // unistd.h:174:1: 47 RFPROCDESC = 268435456 // unistd.h:190:1: 48 RFSIGSHARE = 16384 // unistd.h:181:1: 49 RFSPAWN = 2147483648 // unistd.h:194:1: 50 RFSTOPPED = 131072 // unistd.h:183:1: 51 RFTHREAD = 8192 // unistd.h:180:1: 52 RFTSIGMASK = 0xFF // unistd.h:187:1: 53 RFTSIGSHIFT = 20 // unistd.h:186:1: 54 RFTSIGZMB = 524288 // unistd.h:185:1: 55 R_OK = 0x04 // unistd.h:105:1: 56 SEEK_CUR = 1 // unistd.h:110:1: 57 SEEK_DATA = 3 // unistd.h:114:1: 58 SEEK_END = 2 // unistd.h:111:1: 59 SEEK_HOLE = 4 // unistd.h:115:1: 60 SEEK_SET = 0 // unistd.h:109:1: 61 STDERR_FILENO = 2 // unistd.h:81:1: 62 STDIN_FILENO = 0 // unistd.h:79:1: 63 STDOUT_FILENO = 1 // unistd.h:80:1: 64 SWAPOFF_FORCE = 0x00000001 // unistd.h:200:1: 65 W_OK = 0x02 // unistd.h:104:1: 66 X_OK = 0x01 // unistd.h:103:1: 67 X_ACCMODE_T_DECLARED = 0 // types.h:166:1: 68 X_BIG_ENDIAN = 4321 // _endian.h:47:1: 69 X_BLKCNT_T_DECLARED = 0 // types.h:90:1: 70 X_BLKSIZE_T_DECLARED = 0 // types.h:81:1: 71 X_BYTE_ORDER = 1234 // _endian.h:40:1: 72 X_CAP_IOCTL_T_DECLARED = 0 // types.h:243:1: 73 X_CAP_RIGHTS_T_DECLARED = 0 // types.h:248:1: 74 X_CLOCKID_T_DECLARED = 0 // types.h:100:1: 75 X_CLOCK_T_DECLARED = 0 // types.h:95:1: 76 X_CS_PATH = 1 // unistd.h:302:1: 77 X_CS_POSIX_V6_ILP32_OFF32_CFLAGS = 2 // unistd.h:306:1: 78 X_CS_POSIX_V6_ILP32_OFF32_LDFLAGS = 3 // unistd.h:307:1: 79 X_CS_POSIX_V6_ILP32_OFF32_LIBS = 4 // unistd.h:308:1: 80 X_CS_POSIX_V6_ILP32_OFFBIG_CFLAGS = 5 // unistd.h:309:1: 81 X_CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS = 6 // unistd.h:310:1: 82 X_CS_POSIX_V6_ILP32_OFFBIG_LIBS = 7 // unistd.h:311:1: 83 X_CS_POSIX_V6_LP64_OFF64_CFLAGS = 8 // unistd.h:312:1: 84 X_CS_POSIX_V6_LP64_OFF64_LDFLAGS = 9 // unistd.h:313:1: 85 X_CS_POSIX_V6_LP64_OFF64_LIBS = 10 // unistd.h:314:1: 86 X_CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS = 11 // unistd.h:315:1: 87 X_CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS = 12 // unistd.h:316:1: 88 X_CS_POSIX_V6_LPBIG_OFFBIG_LIBS = 13 // unistd.h:317:1: 89 X_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS = 14 // unistd.h:318:1: 90 X_DEV_T_DECLARED = 0 // types.h:108:1: 91 X_FFLAGS_T_DECLARED = 0 // types.h:113:1: 92 X_FILE_OFFSET_BITS = 64 // <builtin>:25:1: 93 X_FSBLKCNT_T_DECLARED = 0 // types.h:121:1: 94 X_FTRUNCATE_DECLARED = 0 // types.h:417:1: 95 X_GETOPT_DECLARED = 0 // unistd.h:378:1: 96 X_GID_T_DECLARED = 0 // types.h:126:1: 97 X_ID_T_DECLARED = 0 // types.h:141:1: 98 X_INO_T_DECLARED = 0 // types.h:146:1: 99 X_INT16_T_DECLARED = 0 // _stdint.h:42:1: 100 X_INT32_T_DECLARED = 0 // _stdint.h:47:1: 101 X_INT64_T_DECLARED = 0 // _stdint.h:52:1: 102 X_INT8_T_DECLARED = 0 // _stdint.h:37:1: 103 X_INTMAX_T_DECLARED = 0 // _stdint.h:85:1: 104 X_INTPTR_T_DECLARED = 0 // _stdint.h:77:1: 105 X_IN_ADDR_T_DECLARED = 0 // types.h:131:1: 106 X_IN_PORT_T_DECLARED = 0 // types.h:136:1: 107 X_KEY_T_DECLARED = 0 // types.h:151:1: 108 X_LITTLE_ENDIAN = 1234 // _endian.h:46:1: 109 X_LP64 = 1 // <predefined>:1:1: 110 X_LSEEK_DECLARED = 0 // types.h:421:1: 111 X_LWPID_T_DECLARED = 0 // types.h:156:1: 112 X_MACHINE_ENDIAN_H_ = 0 // endian.h:36:1: 113 X_MACHINE__LIMITS_H_ = 0 // _limits.h:36:1: 114 X_MACHINE__TYPES_H_ = 0 // _types.h:42:1: 115 X_MKDTEMP_DECLARED = 0 // unistd.h:528:1: 116 X_MKNOD_DECLARED = 0 // unistd.h:532:1: 117 X_MKSTEMP_DECLARED = 0 // unistd.h:536:1: 118 X_MKTEMP_DECLARED = 0 // unistd.h:541:1: 119 X_MMAP_DECLARED = 0 // types.h:425:1: 120 X_MODE_T_DECLARED = 0 // types.h:161:1: 121 X_MQD_T_DECLARED = 0 // types.h:227:1: 122 X_NLINK_T_DECLARED = 0 // types.h:171:1: 123 X_Nonnull = 0 // cdefs.h:790:1: 124 X_Null_unspecified = 0 // cdefs.h:792:1: 125 X_Nullable = 0 // cdefs.h:791:1: 126 X_OFF64_T_DECLARED = 0 // types.h:181:1: 127 X_OFF_T_DECLARED = 0 // types.h:176:1: 128 X_OPTRESET_DECLARED = 0 // unistd.h:592:1: 129 X_PC_ACL_EXTENDED = 59 // unistd.h:153:1: 130 X_PC_ACL_NFS4 = 64 // unistd.h:158:1: 131 X_PC_ACL_PATH_MAX = 60 // unistd.h:154:1: 132 X_PC_ALLOC_SIZE_MIN = 10 // unistd.h:143:1: 133 X_PC_ASYNC_IO = 53 // unistd.h:137:1: 134 X_PC_CAP_PRESENT = 61 // unistd.h:155:1: 135 X_PC_CHOWN_RESTRICTED = 7 // unistd.h:132:1: 136 X_PC_FILESIZEBITS = 12 // unistd.h:144:1: 137 X_PC_INF_PRESENT = 62 // unistd.h:156:1: 138 X_PC_LINK_MAX = 1 // unistd.h:126:1: 139 X_PC_MAC_PRESENT = 63 // unistd.h:157:1: 140 X_PC_MAX_CANON = 2 // unistd.h:127:1: 141 X_PC_MAX_INPUT = 3 // unistd.h:128:1: 142 X_PC_MIN_HOLE_SIZE = 21 // unistd.h:162:1: 143 X_PC_NAME_MAX = 4 // unistd.h:129:1: 144 X_PC_NO_TRUNC = 8 // unistd.h:133:1: 145 X_PC_PATH_MAX = 5 // unistd.h:130:1: 146 X_PC_PIPE_BUF = 6 // unistd.h:131:1: 147 X_PC_PRIO_IO = 54 // unistd.h:138:1: 148 X_PC_REC_INCR_XFER_SIZE = 14 // unistd.h:145:1: 149 X_PC_REC_MAX_XFER_SIZE = 15 // unistd.h:146:1: 150 X_PC_REC_MIN_XFER_SIZE = 16 // unistd.h:147:1: 151 X_PC_REC_XFER_ALIGN = 17 // unistd.h:148:1: 152 X_PC_SYMLINK_MAX = 18 // unistd.h:149:1: 153 X_PC_SYNC_IO = 55 // unistd.h:139:1: 154 X_PC_VDISABLE = 9 // unistd.h:134:1: 155 X_PDP_ENDIAN = 3412 // _endian.h:48:1: 156 X_PID_T_DECLARED = 0 // types.h:186:1: 157 X_POSIX2_CHAR_TERM = 1 // unistd.h:127:1: 158 X_POSIX2_C_BIND = 200112 // unistd.h:125:1: 159 X_POSIX2_C_DEV = -1 // unistd.h:126:1: 160 X_POSIX2_FORT_DEV = -1 // unistd.h:128:1: 161 X_POSIX2_FORT_RUN = 200112 // unistd.h:129:1: 162 X_POSIX2_LOCALEDEF = -1 // unistd.h:130:1: 163 X_POSIX2_PBS = -1 // unistd.h:131:1: 164 X_POSIX2_PBS_ACCOUNTING = -1 // unistd.h:132:1: 165 X_POSIX2_PBS_CHECKPOINT = -1 // unistd.h:133:1: 166 X_POSIX2_PBS_LOCATE = -1 // unistd.h:134:1: 167 X_POSIX2_PBS_MESSAGE = -1 // unistd.h:135:1: 168 X_POSIX2_PBS_TRACK = -1 // unistd.h:136:1: 169 X_POSIX2_SW_DEV = -1 // unistd.h:137:1: 170 X_POSIX2_UPE = 200112 // unistd.h:138:1: 171 X_POSIX2_VERSION = 199212 // unistd.h:154:1: 172 X_POSIX_ADVISORY_INFO = 200112 // unistd.h:54:1: 173 X_POSIX_ASYNCHRONOUS_IO = 200112 // unistd.h:55:1: 174 X_POSIX_BARRIERS = 200112 // unistd.h:104:1: 175 X_POSIX_CHOWN_RESTRICTED = 1 // unistd.h:56:1: 176 X_POSIX_CLOCK_SELECTION = -1 // unistd.h:57:1: 177 X_POSIX_CPUTIME = 200112 // unistd.h:105:1: 178 X_POSIX_FSYNC = 200112 // unistd.h:59:1: 179 X_POSIX_IPV6 = 0 // unistd.h:60:1: 180 X_POSIX_JOB_CONTROL = 1 // unistd.h:61:1: 181 X_POSIX_MAPPED_FILES = 200112 // unistd.h:62:1: 182 X_POSIX_MEMLOCK = -1 // unistd.h:63:1: 183 X_POSIX_MEMLOCK_RANGE = 200112 // unistd.h:64:1: 184 X_POSIX_MEMORY_PROTECTION = 200112 // unistd.h:65:1: 185 X_POSIX_MESSAGE_PASSING = 200112 // unistd.h:66:1: 186 X_POSIX_MONOTONIC_CLOCK = 200112 // unistd.h:67:1: 187 X_POSIX_NO_TRUNC = 1 // unistd.h:68:1: 188 X_POSIX_PRIORITIZED_IO = -1 // unistd.h:69:1: 189 X_POSIX_PRIORITY_SCHEDULING = 0 // unistd.h:70:1: 190 X_POSIX_RAW_SOCKETS = 200112 // unistd.h:71:1: 191 X_POSIX_READER_WRITER_LOCKS = 200112 // unistd.h:106:1: 192 X_POSIX_REALTIME_SIGNALS = 200112 // unistd.h:72:1: 193 X_POSIX_REGEXP = 1 // unistd.h:107:1: 194 X_POSIX_SEMAPHORES = 200112 // unistd.h:73:1: 195 X_POSIX_SHARED_MEMORY_OBJECTS = 200112 // unistd.h:74:1: 196 X_POSIX_SHELL = 1 // unistd.h:108:1: 197 X_POSIX_SPAWN = 200112 // unistd.h:109:1: 198 X_POSIX_SPIN_LOCKS = 200112 // unistd.h:110:1: 199 X_POSIX_SPORADIC_SERVER = -1 // unistd.h:75:1: 200 X_POSIX_SYNCHRONIZED_IO = -1 // unistd.h:76:1: 201 X_POSIX_THREADS = 200112 // unistd.h:120:1: 202 X_POSIX_THREAD_ATTR_STACKADDR = 200112 // unistd.h:111:1: 203 X_POSIX_THREAD_ATTR_STACKSIZE = 200112 // unistd.h:112:1: 204 X_POSIX_THREAD_CPUTIME = 200112 // unistd.h:113:1: 205 X_POSIX_THREAD_PRIORITY_SCHEDULING = 200112 // unistd.h:116:1: 206 X_POSIX_THREAD_PRIO_INHERIT = 200112 // unistd.h:114:1: 207 X_POSIX_THREAD_PRIO_PROTECT = 200112 // unistd.h:115:1: 208 X_POSIX_THREAD_PROCESS_SHARED = 200112 // unistd.h:117:1: 209 X_POSIX_THREAD_SAFE_FUNCTIONS = -1 // unistd.h:118:1: 210 X_POSIX_THREAD_SPORADIC_SERVER = -1 // unistd.h:119:1: 211 X_POSIX_TIMEOUTS = 200112 // unistd.h:77:1: 212 X_POSIX_TIMERS = 200112 // unistd.h:78:1: 213 X_POSIX_TRACE = -1 // unistd.h:121:1: 214 X_POSIX_TRACE_EVENT_FILTER = -1 // unistd.h:122:1: 215 X_POSIX_TRACE_INHERIT = -1 // unistd.h:123:1: 216 X_POSIX_TRACE_LOG = -1 // unistd.h:124:1: 217 X_POSIX_TYPED_MEMORY_OBJECTS = -1 // unistd.h:79:1: 218 X_POSIX_VDISABLE = 0xff // unistd.h:80:1: 219 X_POSIX_VERSION = 200112 // unistd.h:99:1: 220 X_PTHREAD_T_DECLARED = 0 // _pthreadtypes.h:68:1: 221 X_QUAD_HIGHWORD = 1 // _endian.h:55:1: 222 X_QUAD_LOWWORD = 0 // _endian.h:56:1: 223 X_RLIM_T_DECLARED = 0 // types.h:193:1: 224 X_SC_2_CHAR_TERM = 20 // unistd.h:184:1: 225 X_SC_2_C_BIND = 18 // unistd.h:182:1: 226 X_SC_2_C_DEV = 19 // unistd.h:183:1: 227 X_SC_2_FORT_DEV = 21 // unistd.h:185:1: 228 X_SC_2_FORT_RUN = 22 // unistd.h:186:1: 229 X_SC_2_LOCALEDEF = 23 // unistd.h:187:1: 230 X_SC_2_PBS = 59 // unistd.h:222:1: 231 X_SC_2_PBS_ACCOUNTING = 60 // unistd.h:223:1: 232 X_SC_2_PBS_CHECKPOINT = 61 // unistd.h:224:1: 233 X_SC_2_PBS_LOCATE = 62 // unistd.h:225:1: 234 X_SC_2_PBS_MESSAGE = 63 // unistd.h:226:1: 235 X_SC_2_PBS_TRACK = 64 // unistd.h:227:1: 236 X_SC_2_SW_DEV = 24 // unistd.h:188:1: 237 X_SC_2_UPE = 25 // unistd.h:189:1: 238 X_SC_2_VERSION = 17 // unistd.h:181:1: 239 X_SC_ADVISORY_INFO = 65 // unistd.h:228:1: 240 X_SC_AIO_LISTIO_MAX = 42 // unistd.h:208:1: 241 X_SC_AIO_MAX = 43 // unistd.h:209:1: 242 X_SC_AIO_PRIO_DELTA_MAX = 44 // unistd.h:210:1: 243 X_SC_ARG_MAX = 1 // unistd.h:165:1: 244 X_SC_ASYNCHRONOUS_IO = 28 // unistd.h:194:1: 245 X_SC_ATEXIT_MAX = 107 // unistd.h:276:1: 246 X_SC_BARRIERS = 66 // unistd.h:229:1: 247 X_SC_BC_BASE_MAX = 9 // unistd.h:173:1: 248 X_SC_BC_DIM_MAX = 10 // unistd.h:174:1: 249 X_SC_BC_SCALE_MAX = 11 // unistd.h:175:1: 250 X_SC_BC_STRING_MAX = 12 // unistd.h:176:1: 251 X_SC_CHILD_MAX = 2 // unistd.h:166:1: 252 X_SC_CLK_TCK = 3 // unistd.h:167:1: 253 X_SC_CLOCK_SELECTION = 67 // unistd.h:230:1: 254 X_SC_COLL_WEIGHTS_MAX = 13 // unistd.h:177:1: 255 X_SC_CPUSET_SIZE = 122 // unistd.h:294:1: 256 X_SC_CPUTIME = 68 // unistd.h:231:1: 257 X_SC_DELAYTIMER_MAX = 45 // unistd.h:211:1: 258 X_SC_EXPR_NEST_MAX = 14 // unistd.h:178:1: 259 X_SC_FILE_LOCKING = 69 // unistd.h:232:1: 260 X_SC_FSYNC = 38 // unistd.h:204:1: 261 X_SC_GETGR_R_SIZE_MAX = 70 // unistd.h:233:1: 262 X_SC_GETPW_R_SIZE_MAX = 71 // unistd.h:234:1: 263 X_SC_HOST_NAME_MAX = 72 // unistd.h:235:1: 264 X_SC_IOV_MAX = 56 // unistd.h:277:1: 265 X_SC_IPV6 = 118 // unistd.h:270:1: 266 X_SC_JOB_CONTROL = 6 // unistd.h:170:1: 267 X_SC_LINE_MAX = 15 // unistd.h:179:1: 268 X_SC_LOGIN_NAME_MAX = 73 // unistd.h:236:1: 269 X_SC_MAPPED_FILES = 29 // unistd.h:195:1: 270 X_SC_MEMLOCK = 30 // unistd.h:196:1: 271 X_SC_MEMLOCK_RANGE = 31 // unistd.h:197:1: 272 X_SC_MEMORY_PROTECTION = 32 // unistd.h:198:1: 273 X_SC_MESSAGE_PASSING = 33 // unistd.h:199:1: 274 X_SC_MONOTONIC_CLOCK = 74 // unistd.h:237:1: 275 X_SC_MQ_OPEN_MAX = 46 // unistd.h:212:1: 276 X_SC_MQ_PRIO_MAX = 75 // unistd.h:238:1: 277 X_SC_NGROUPS_MAX = 4 // unistd.h:168:1: 278 X_SC_NPROCESSORS_CONF = 57 // unistd.h:292:1: 279 X_SC_NPROCESSORS_ONLN = 58 // unistd.h:293:1: 280 X_SC_OPEN_MAX = 5 // unistd.h:169:1: 281 X_SC_PAGESIZE = 47 // unistd.h:213:1: 282 X_SC_PAGE_SIZE = 47 // unistd.h:278:1: 283 X_SC_PHYS_PAGES = 121 // unistd.h:298:1: 284 X_SC_PRIORITIZED_IO = 34 // unistd.h:200:1: 285 X_SC_PRIORITY_SCHEDULING = 35 // unistd.h:201:1: 286 X_SC_RAW_SOCKETS = 119 // unistd.h:271:1: 287 X_SC_READER_WRITER_LOCKS = 76 // unistd.h:239:1: 288 X_SC_REALTIME_SIGNALS = 36 // unistd.h:202:1: 289 X_SC_REGEXP = 77 // unistd.h:240:1: 290 X_SC_RE_DUP_MAX = 16 // unistd.h:180:1: 291 X_SC_RTSIG_MAX = 48 // unistd.h:214:1: 292 X_SC_SAVED_IDS = 7 // unistd.h:171:1: 293 X_SC_SEMAPHORES = 37 // unistd.h:203:1: 294 X_SC_SEM_NSEMS_MAX = 49 // unistd.h:215:1: 295 X_SC_SEM_VALUE_MAX = 50 // unistd.h:216:1: 296 X_SC_SHARED_MEMORY_OBJECTS = 39 // unistd.h:205:1: 297 X_SC_SHELL = 78 // unistd.h:241:1: 298 X_SC_SIGQUEUE_MAX = 51 // unistd.h:217:1: 299 X_SC_SPAWN = 79 // unistd.h:242:1: 300 X_SC_SPIN_LOCKS = 80 // unistd.h:243:1: 301 X_SC_SPORADIC_SERVER = 81 // unistd.h:244:1: 302 X_SC_STREAM_MAX = 26 // unistd.h:190:1: 303 X_SC_SYMLOOP_MAX = 120 // unistd.h:272:1: 304 X_SC_SYNCHRONIZED_IO = 40 // unistd.h:206:1: 305 X_SC_THREADS = 96 // unistd.h:259:1: 306 X_SC_THREAD_ATTR_STACKADDR = 82 // unistd.h:245:1: 307 X_SC_THREAD_ATTR_STACKSIZE = 83 // unistd.h:246:1: 308 X_SC_THREAD_CPUTIME = 84 // unistd.h:247:1: 309 X_SC_THREAD_DESTRUCTOR_ITERATIONS = 85 // unistd.h:248:1: 310 X_SC_THREAD_KEYS_MAX = 86 // unistd.h:249:1: 311 X_SC_THREAD_PRIORITY_SCHEDULING = 89 // unistd.h:252:1: 312 X_SC_THREAD_PRIO_INHERIT = 87 // unistd.h:250:1: 313 X_SC_THREAD_PRIO_PROTECT = 88 // unistd.h:251:1: 314 X_SC_THREAD_PROCESS_SHARED = 90 // unistd.h:253:1: 315 X_SC_THREAD_SAFE_FUNCTIONS = 91 // unistd.h:254:1: 316 X_SC_THREAD_SPORADIC_SERVER = 92 // unistd.h:255:1: 317 X_SC_THREAD_STACK_MIN = 93 // unistd.h:256:1: 318 X_SC_THREAD_THREADS_MAX = 94 // unistd.h:257:1: 319 X_SC_TIMEOUTS = 95 // unistd.h:258:1: 320 X_SC_TIMERS = 41 // unistd.h:207:1: 321 X_SC_TIMER_MAX = 52 // unistd.h:218:1: 322 X_SC_TRACE = 97 // unistd.h:260:1: 323 X_SC_TRACE_EVENT_FILTER = 98 // unistd.h:261:1: 324 X_SC_TRACE_INHERIT = 99 // unistd.h:262:1: 325 X_SC_TRACE_LOG = 100 // unistd.h:263:1: 326 X_SC_TTY_NAME_MAX = 101 // unistd.h:264:1: 327 X_SC_TYPED_MEMORY_OBJECTS = 102 // unistd.h:265:1: 328 X_SC_TZNAME_MAX = 27 // unistd.h:191:1: 329 X_SC_V6_ILP32_OFF32 = 103 // unistd.h:266:1: 330 X_SC_V6_ILP32_OFFBIG = 104 // unistd.h:267:1: 331 X_SC_V6_LP64_OFF64 = 105 // unistd.h:268:1: 332 X_SC_V6_LPBIG_OFFBIG = 106 // unistd.h:269:1: 333 X_SC_VERSION = 8 // unistd.h:172:1: 334 X_SC_XOPEN_CRYPT = 108 // unistd.h:279:1: 335 X_SC_XOPEN_ENH_I18N = 109 // unistd.h:280:1: 336 X_SC_XOPEN_LEGACY = 110 // unistd.h:281:1: 337 X_SC_XOPEN_REALTIME = 111 // unistd.h:282:1: 338 X_SC_XOPEN_REALTIME_THREADS = 112 // unistd.h:283:1: 339 X_SC_XOPEN_SHM = 113 // unistd.h:284:1: 340 X_SC_XOPEN_STREAMS = 114 // unistd.h:285:1: 341 X_SC_XOPEN_UNIX = 115 // unistd.h:286:1: 342 X_SC_XOPEN_VERSION = 116 // unistd.h:287:1: 343 X_SC_XOPEN_XCU_VERSION = 117 // unistd.h:288:1: 344 X_SELECT_DECLARED = 0 // select.h:103:1: 345 X_SIGSET_T_DECLARED = 0 // select.h:50:1: 346 X_SIG_MAXSIG = 128 // _sigset.h:47:1: 347 X_SIG_WORDS = 4 // _sigset.h:46:1: 348 X_SIZE_T_DECLARED = 0 // types.h:202:1: 349 X_SSIZE_T_DECLARED = 0 // types.h:207:1: 350 X_SUSECONDS_T_DECLARED = 0 // types.h:212:1: 351 X_SWAB_DECLARED = 0 // unistd.h:461:1: 352 X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1: 353 X_SYS_SELECT_H_ = 0 // select.h:35:1: 354 X_SYS_TIMESPEC_H_ = 0 // timespec.h:37:1: 355 X_SYS_TYPES_H_ = 0 // types.h:41:1: 356 X_SYS_UNISTD_H_ = 0 // unistd.h:36:1: 357 X_SYS__ENDIAN_H_ = 0 // _endian.h:33:1: 358 X_SYS__PTHREADTYPES_H_ = 0 // _pthreadtypes.h:39:1: 359 X_SYS__SIGSET_H_ = 0 // _sigset.h:41:1: 360 X_SYS__STDINT_H_ = 0 // _stdint.h:33:1: 361 X_SYS__TIMESPEC_H_ = 0 // _timespec.h:37:1: 362 X_SYS__TIMEVAL_H_ = 0 // _timeval.h:32:1: 363 X_SYS__TYPES_H_ = 0 // _types.h:32:1: 364 X_TIMER_T_DECLARED = 0 // types.h:222:1: 365 X_TIME_T_DECLARED = 0 // types.h:217:1: 366 X_TRUNCATE_DECLARED = 0 // types.h:429:1: 367 X_UID_T_DECLARED = 0 // types.h:234:1: 368 X_UINT16_T_DECLARED = 0 // _stdint.h:62:1: 369 X_UINT32_T_DECLARED = 0 // _stdint.h:67:1: 370 X_UINT64_T_DECLARED = 0 // _stdint.h:72:1: 371 X_UINT8_T_DECLARED = 0 // _stdint.h:57:1: 372 X_UINTMAX_T_DECLARED = 0 // _stdint.h:89:1: 373 X_UINTPTR_T_DECLARED = 0 // _stdint.h:81:1: 374 X_UNISTD_H_ = 0 // unistd.h:36:1: 375 X_USECONDS_T_DECLARED = 0 // types.h:239:1: 376 X_V6_ILP32_OFF32 = -1 // unistd.h:139:1: 377 X_V6_ILP32_OFFBIG = 0 // unistd.h:140:1: 378 X_V6_LP64_OFF64 = 0 // unistd.h:141:1: 379 X_V6_LPBIG_OFFBIG = -1 // unistd.h:142:1: 380 X_XOPEN_CRYPT = -1 // unistd.h:145:1: 381 X_XOPEN_ENH_I18N = -1 // unistd.h:146:1: 382 X_XOPEN_LEGACY = -1 // unistd.h:147:1: 383 X_XOPEN_REALTIME = -1 // unistd.h:148:1: 384 X_XOPEN_REALTIME_THREADS = -1 // unistd.h:149:1: 385 X_XOPEN_SHM = 1 // unistd.h:83:1: 386 X_XOPEN_STREAMS = -1 // unistd.h:84:1: 387 X_XOPEN_UNIX = -1 // unistd.h:150:1: 388 Unix = 1 // <predefined>:340:1: 389 ) 390 391 type Ptrdiff_t = int64 /* <builtin>:3:26 */ 392 393 type Size_t = uint64 /* <builtin>:9:23 */ 394 395 type Wchar_t = int32 /* <builtin>:15:24 */ 396 397 type X__int128_t = struct { 398 Flo int64 399 Fhi int64 400 } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128 401 type X__uint128_t = struct { 402 Flo uint64 403 Fhi uint64 404 } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128 405 406 type X__builtin_va_list = uintptr /* <builtin>:46:14 */ 407 type X__float128 = float64 /* <builtin>:47:21 */ 408 409 // - 410 // SPDX-License-Identifier: BSD-3-Clause 411 // 412 // Copyright (c) 1991, 1993, 1994 413 // The Regents of the University of California. All rights reserved. 414 // 415 // Redistribution and use in source and binary forms, with or without 416 // modification, are permitted provided that the following conditions 417 // are met: 418 // 1. Redistributions of source code must retain the above copyright 419 // notice, this list of conditions and the following disclaimer. 420 // 2. Redistributions in binary form must reproduce the above copyright 421 // notice, this list of conditions and the following disclaimer in the 422 // documentation and/or other materials provided with the distribution. 423 // 3. Neither the name of the University nor the names of its contributors 424 // may be used to endorse or promote products derived from this software 425 // without specific prior written permission. 426 // 427 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 428 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 429 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 430 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 431 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 432 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 433 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 434 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 435 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 436 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 437 // SUCH DAMAGE. 438 // 439 // @(#)unistd.h 8.12 (Berkeley) 4/27/95 440 // $FreeBSD$ 441 442 // - 443 // SPDX-License-Identifier: BSD-3-Clause 444 // 445 // Copyright (c) 1991, 1993 446 // The Regents of the University of California. All rights reserved. 447 // 448 // This code is derived from software contributed to Berkeley by 449 // Berkeley Software Design, Inc. 450 // 451 // Redistribution and use in source and binary forms, with or without 452 // modification, are permitted provided that the following conditions 453 // are met: 454 // 1. Redistributions of source code must retain the above copyright 455 // notice, this list of conditions and the following disclaimer. 456 // 2. Redistributions in binary form must reproduce the above copyright 457 // notice, this list of conditions and the following disclaimer in the 458 // documentation and/or other materials provided with the distribution. 459 // 3. Neither the name of the University nor the names of its contributors 460 // may be used to endorse or promote products derived from this software 461 // without specific prior written permission. 462 // 463 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 464 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 465 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 466 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 467 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 468 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 469 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 470 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 471 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 472 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 473 // SUCH DAMAGE. 474 // 475 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 476 // $FreeBSD$ 477 478 // Testing against Clang-specific extensions. 479 480 // This code has been put in place to help reduce the addition of 481 // compiler specific defines in FreeBSD code. It helps to aid in 482 // having a compiler-agnostic source tree. 483 484 // Compiler memory barriers, specific to gcc and clang. 485 486 // XXX: if __GNUC__ >= 2: not tested everywhere originally, where replaced 487 488 // Macro to test if we're using a specific version of gcc or later. 489 490 // The __CONCAT macro is used to concatenate parts of symbol names, e.g. 491 // with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo. 492 // The __CONCAT macro is a bit tricky to use if it must work in non-ANSI 493 // mode -- there must be no spaces between its arguments, and for nested 494 // __CONCAT's, all the __CONCAT's must be at the left. __CONCAT can also 495 // concatenate double-quoted strings produced by the __STRING macro, but 496 // this only works with ANSI C. 497 // 498 // __XSTRING is like __STRING, but it expands any macros in its argument 499 // first. It is only available with ANSI C. 500 501 // Compiler-dependent macros to help declare dead (non-returning) and 502 // pure (no side effects) functions, and unused variables. They are 503 // null except for versions of gcc that are known to support the features 504 // properly (old versions of gcc-2 supported the dead and pure features 505 // in a different (wrong) way). If we do not provide an implementation 506 // for a given compiler, let the compile fail if it is told to use 507 // a feature that we cannot live without. 508 509 // Keywords added in C11. 510 511 // Emulation of C11 _Generic(). Unlike the previously defined C11 512 // keywords, it is not possible to implement this using exactly the same 513 // syntax. Therefore implement something similar under the name 514 // __generic(). Unlike _Generic(), this macro can only distinguish 515 // between a single type, so it requires nested invocations to 516 // distinguish multiple cases. 517 518 // C99 Static array indices in function parameter declarations. Syntax such as: 519 // void bar(int myArray[static 10]); 520 // is allowed in C99 but not in C++. Define __min_size appropriately so 521 // headers using it can be compiled in either language. Use like this: 522 // void bar(int myArray[__min_size(10)]); 523 524 // XXX: should use `#if __STDC_VERSION__ < 199901'. 525 526 // C++11 exposes a load of C99 stuff 527 528 // GCC 2.95 provides `__restrict' as an extension to C90 to support the 529 // C99-specific `restrict' type qualifier. We happen to use `__restrict' as 530 // a way to define the `restrict' type qualifier without disturbing older 531 // software that is unaware of C99 keywords. 532 533 // GNU C version 2.96 adds explicit branch prediction so that 534 // the CPU back-end can hint the processor and also so that 535 // code blocks can be reordered such that the predicted path 536 // sees a more linear flow, thus improving cache behavior, etc. 537 // 538 // The following two macros provide us with a way to utilize this 539 // compiler feature. Use __predict_true() if you expect the expression 540 // to evaluate to true, and __predict_false() if you expect the 541 // expression to evaluate to false. 542 // 543 // A few notes about usage: 544 // 545 // * Generally, __predict_false() error condition checks (unless 546 // you have some _strong_ reason to do otherwise, in which case 547 // document it), and/or __predict_true() `no-error' condition 548 // checks, assuming you want to optimize for the no-error case. 549 // 550 // * Other than that, if you don't know the likelihood of a test 551 // succeeding from empirical or other `hard' evidence, don't 552 // make predictions. 553 // 554 // * These are meant to be used in places that are run `a lot'. 555 // It is wasteful to make predictions in code that is run 556 // seldomly (e.g. at subsystem initialization time) as the 557 // basic block reordering that this affects can often generate 558 // larger code. 559 560 // We define this here since <stddef.h>, <sys/queue.h>, and <sys/types.h> 561 // require it. 562 563 // Given the pointer x to the member m of the struct s, return 564 // a pointer to the containing structure. When using GCC, we first 565 // assign pointer x to a local variable, to check that its type is 566 // compatible with member m. 567 568 // Compiler-dependent macros to declare that functions take printf-like 569 // or scanf-like arguments. They are null except for versions of gcc 570 // that are known to support the features properly (old versions of gcc-2 571 // didn't permit keeping the keywords out of the application namespace). 572 573 // Compiler-dependent macros that rely on FreeBSD-specific extensions. 574 575 // Embed the rcs id of a source file in the resulting library. Note that in 576 // more recent ELF binutils, we use .ident allowing the ID to be stripped. 577 // Usage: 578 // __FBSDID("$FreeBSD$"); 579 580 // - 581 // The following definitions are an extension of the behavior originally 582 // implemented in <sys/_posix.h>, but with a different level of granularity. 583 // POSIX.1 requires that the macros we test be defined before any standard 584 // header file is included. 585 // 586 // Here's a quick run-down of the versions: 587 // defined(_POSIX_SOURCE) 1003.1-1988 588 // _POSIX_C_SOURCE == 1 1003.1-1990 589 // _POSIX_C_SOURCE == 2 1003.2-1992 C Language Binding Option 590 // _POSIX_C_SOURCE == 199309 1003.1b-1993 591 // _POSIX_C_SOURCE == 199506 1003.1c-1995, 1003.1i-1995, 592 // and the omnibus ISO/IEC 9945-1: 1996 593 // _POSIX_C_SOURCE == 200112 1003.1-2001 594 // _POSIX_C_SOURCE == 200809 1003.1-2008 595 // 596 // In addition, the X/Open Portability Guide, which is now the Single UNIX 597 // Specification, defines a feature-test macro which indicates the version of 598 // that specification, and which subsumes _POSIX_C_SOURCE. 599 // 600 // Our macros begin with two underscores to avoid namespace screwage. 601 602 // Deal with IEEE Std. 1003.1-1990, in which _POSIX_C_SOURCE == 1. 603 604 // Deal with IEEE Std. 1003.2-1992, in which _POSIX_C_SOURCE == 2. 605 606 // Deal with various X/Open Portability Guides and Single UNIX Spec. 607 608 // Deal with all versions of POSIX. The ordering relative to the tests above is 609 // important. 610 // - 611 // Deal with _ANSI_SOURCE: 612 // If it is defined, and no other compilation environment is explicitly 613 // requested, then define our internal feature-test macros to zero. This 614 // makes no difference to the preprocessor (undefined symbols in preprocessing 615 // expressions are defined to have value zero), but makes it more convenient for 616 // a test program to print out the values. 617 // 618 // If a program mistakenly defines _ANSI_SOURCE and some other macro such as 619 // _POSIX_C_SOURCE, we will assume that it wants the broader compilation 620 // environment (and in fact we will never get here). 621 622 // User override __EXT1_VISIBLE 623 624 // Old versions of GCC use non-standard ARM arch symbols; acle-compat.h 625 // translates them to __ARM_ARCH and the modern feature symbols defined by ARM. 626 627 // Nullability qualifiers: currently only supported by Clang. 628 629 // Type Safety Checking 630 // 631 // Clang provides additional attributes to enable checking type safety 632 // properties that cannot be enforced by the C type system. 633 634 // Lock annotations. 635 // 636 // Clang provides support for doing basic thread-safety tests at 637 // compile-time, by marking which locks will/should be held when 638 // entering/leaving a functions. 639 // 640 // Furthermore, it is also possible to annotate variables and structure 641 // members to enforce that they are only accessed when certain locks are 642 // held. 643 644 // Structure implements a lock. 645 646 // Function acquires an exclusive or shared lock. 647 648 // Function attempts to acquire an exclusive or shared lock. 649 650 // Function releases a lock. 651 652 // Function asserts that an exclusive or shared lock is held. 653 654 // Function requires that an exclusive or shared lock is or is not held. 655 656 // Function should not be analyzed. 657 658 // Function or variable should not be sanitized, e.g., by AddressSanitizer. 659 // GCC has the nosanitize attribute, but as a function attribute only, and 660 // warns on use as a variable attribute. 661 662 // Guard variables and structure members by lock. 663 664 // Alignment builtins for better type checking and improved code generation. 665 // Provide fallback versions for other compilers (GCC/Clang < 10): 666 667 // - 668 // SPDX-License-Identifier: BSD-3-Clause 669 // 670 // Copyright (c) 1982, 1986, 1991, 1993, 1994 671 // The Regents of the University of California. All rights reserved. 672 // (c) UNIX System Laboratories, Inc. 673 // All or some portions of this file are derived from material licensed 674 // to the University of California by American Telephone and Telegraph 675 // Co. or Unix System Laboratories, Inc. and are reproduced herein with 676 // the permission of UNIX System Laboratories, Inc. 677 // 678 // Redistribution and use in source and binary forms, with or without 679 // modification, are permitted provided that the following conditions 680 // are met: 681 // 1. Redistributions of source code must retain the above copyright 682 // notice, this list of conditions and the following disclaimer. 683 // 2. Redistributions in binary form must reproduce the above copyright 684 // notice, this list of conditions and the following disclaimer in the 685 // documentation and/or other materials provided with the distribution. 686 // 3. Neither the name of the University nor the names of its contributors 687 // may be used to endorse or promote products derived from this software 688 // without specific prior written permission. 689 // 690 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 691 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 692 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 693 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 694 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 695 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 696 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 697 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 698 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 699 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 700 // SUCH DAMAGE. 701 // 702 // @(#)types.h 8.6 (Berkeley) 2/19/95 703 // $FreeBSD$ 704 705 // - 706 // SPDX-License-Identifier: BSD-3-Clause 707 // 708 // Copyright (c) 1991, 1993 709 // The Regents of the University of California. All rights reserved. 710 // 711 // This code is derived from software contributed to Berkeley by 712 // Berkeley Software Design, Inc. 713 // 714 // Redistribution and use in source and binary forms, with or without 715 // modification, are permitted provided that the following conditions 716 // are met: 717 // 1. Redistributions of source code must retain the above copyright 718 // notice, this list of conditions and the following disclaimer. 719 // 2. Redistributions in binary form must reproduce the above copyright 720 // notice, this list of conditions and the following disclaimer in the 721 // documentation and/or other materials provided with the distribution. 722 // 3. Neither the name of the University nor the names of its contributors 723 // may be used to endorse or promote products derived from this software 724 // without specific prior written permission. 725 // 726 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 727 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 728 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 729 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 730 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 731 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 732 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 733 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 734 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 735 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 736 // SUCH DAMAGE. 737 // 738 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 739 // $FreeBSD$ 740 741 // Machine type dependent parameters. 742 // - 743 // This file is in the public domain. 744 // $FreeBSD$ 745 746 // - 747 // SPDX-License-Identifier: BSD-3-Clause 748 // 749 // Copyright (c) 1987, 1991 Regents of the University of California. 750 // All rights reserved. 751 // 752 // Redistribution and use in source and binary forms, with or without 753 // modification, are permitted provided that the following conditions 754 // are met: 755 // 1. Redistributions of source code must retain the above copyright 756 // notice, this list of conditions and the following disclaimer. 757 // 2. Redistributions in binary form must reproduce the above copyright 758 // notice, this list of conditions and the following disclaimer in the 759 // documentation and/or other materials provided with the distribution. 760 // 3. Neither the name of the University nor the names of its contributors 761 // may be used to endorse or promote products derived from this software 762 // without specific prior written permission. 763 // 764 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 765 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 766 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 767 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 768 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 769 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 770 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 771 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 772 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 773 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 774 // SUCH DAMAGE. 775 // 776 // @(#)endian.h 7.8 (Berkeley) 4/3/91 777 // $FreeBSD$ 778 779 // - 780 // SPDX-License-Identifier: BSD-2-Clause-FreeBSD 781 // 782 // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org> 783 // All rights reserved. 784 // 785 // Redistribution and use in source and binary forms, with or without 786 // modification, are permitted provided that the following conditions 787 // are met: 788 // 1. Redistributions of source code must retain the above copyright 789 // notice, this list of conditions and the following disclaimer. 790 // 2. Redistributions in binary form must reproduce the above copyright 791 // notice, this list of conditions and the following disclaimer in the 792 // documentation and/or other materials provided with the distribution. 793 // 794 // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 795 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 796 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 797 // ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 798 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 799 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 800 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 801 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 802 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 803 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 804 // SUCH DAMAGE. 805 // 806 // $FreeBSD$ 807 808 // - 809 // SPDX-License-Identifier: BSD-3-Clause 810 // 811 // Copyright (c) 1991, 1993 812 // The Regents of the University of California. All rights reserved. 813 // 814 // This code is derived from software contributed to Berkeley by 815 // Berkeley Software Design, Inc. 816 // 817 // Redistribution and use in source and binary forms, with or without 818 // modification, are permitted provided that the following conditions 819 // are met: 820 // 1. Redistributions of source code must retain the above copyright 821 // notice, this list of conditions and the following disclaimer. 822 // 2. Redistributions in binary form must reproduce the above copyright 823 // notice, this list of conditions and the following disclaimer in the 824 // documentation and/or other materials provided with the distribution. 825 // 3. Neither the name of the University nor the names of its contributors 826 // may be used to endorse or promote products derived from this software 827 // without specific prior written permission. 828 // 829 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 830 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 831 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 832 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 833 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 834 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 835 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 836 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 837 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 838 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 839 // SUCH DAMAGE. 840 // 841 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 842 // $FreeBSD$ 843 844 // - 845 // This file is in the public domain. 846 // $FreeBSD$ 847 848 // - 849 // SPDX-License-Identifier: BSD-4-Clause 850 // 851 // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org> 852 // Copyright (c) 1990, 1993 853 // The Regents of the University of California. All rights reserved. 854 // 855 // Redistribution and use in source and binary forms, with or without 856 // modification, are permitted provided that the following conditions 857 // are met: 858 // 1. Redistributions of source code must retain the above copyright 859 // notice, this list of conditions and the following disclaimer. 860 // 2. Redistributions in binary form must reproduce the above copyright 861 // notice, this list of conditions and the following disclaimer in the 862 // documentation and/or other materials provided with the distribution. 863 // 3. All advertising materials mentioning features or use of this software 864 // must display the following acknowledgement: 865 // This product includes software developed by the University of 866 // California, Berkeley and its contributors. 867 // 4. Neither the name of the University nor the names of its contributors 868 // may be used to endorse or promote products derived from this software 869 // without specific prior written permission. 870 // 871 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 872 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 873 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 874 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 875 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 876 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 877 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 878 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 879 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 880 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 881 // SUCH DAMAGE. 882 // 883 // From: @(#)ansi.h 8.2 (Berkeley) 1/4/94 884 // From: @(#)types.h 8.3 (Berkeley) 1/5/94 885 // $FreeBSD$ 886 887 // - 888 // This file is in the public domain. 889 // $FreeBSD$ 890 891 // - 892 // SPDX-License-Identifier: BSD-3-Clause 893 // 894 // Copyright (c) 1988, 1993 895 // The Regents of the University of California. All rights reserved. 896 // 897 // Redistribution and use in source and binary forms, with or without 898 // modification, are permitted provided that the following conditions 899 // are met: 900 // 1. Redistributions of source code must retain the above copyright 901 // notice, this list of conditions and the following disclaimer. 902 // 2. Redistributions in binary form must reproduce the above copyright 903 // notice, this list of conditions and the following disclaimer in the 904 // documentation and/or other materials provided with the distribution. 905 // 3. Neither the name of the University nor the names of its contributors 906 // may be used to endorse or promote products derived from this software 907 // without specific prior written permission. 908 // 909 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 910 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 911 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 912 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 913 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 914 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 915 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 916 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 917 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 918 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 919 // SUCH DAMAGE. 920 // 921 // @(#)limits.h 8.3 (Berkeley) 1/4/94 922 // $FreeBSD$ 923 924 // According to ANSI (section 2.2.4.2), the values below must be usable by 925 // #if preprocessing directives. Additionally, the expression must have the 926 // same type as would an expression that is an object of the corresponding 927 // type converted according to the integral promotions. The subtraction for 928 // INT_MIN, etc., is so the value is not unsigned; e.g., 0x80000000 is an 929 // unsigned int for 32-bit two's complement ANSI compilers (section 3.1.3.2). 930 931 // max value for an unsigned long long 932 933 // Quads and longs are the same on the amd64. Ensure they stay in sync. 934 935 // Minimum signal stack size. 936 937 // Basic types upon which most other types are built. 938 type X__int8_t = int8 /* _types.h:55:22 */ 939 type X__uint8_t = uint8 /* _types.h:56:24 */ 940 type X__int16_t = int16 /* _types.h:57:17 */ 941 type X__uint16_t = uint16 /* _types.h:58:25 */ 942 type X__int32_t = int32 /* _types.h:59:15 */ 943 type X__uint32_t = uint32 /* _types.h:60:23 */ 944 type X__int64_t = int64 /* _types.h:62:16 */ 945 type X__uint64_t = uint64 /* _types.h:63:24 */ 946 947 // Standard type definitions. 948 type X__clock_t = X__int32_t /* _types.h:75:19 */ // clock()... 949 type X__critical_t = X__int64_t /* _types.h:76:19 */ 950 type X__double_t = float64 /* _types.h:78:17 */ 951 type X__float_t = float32 /* _types.h:79:16 */ 952 type X__intfptr_t = X__int64_t /* _types.h:81:19 */ 953 type X__intptr_t = X__int64_t /* _types.h:82:19 */ 954 type X__intmax_t = X__int64_t /* _types.h:93:19 */ 955 type X__int_fast8_t = X__int32_t /* _types.h:94:19 */ 956 type X__int_fast16_t = X__int32_t /* _types.h:95:19 */ 957 type X__int_fast32_t = X__int32_t /* _types.h:96:19 */ 958 type X__int_fast64_t = X__int64_t /* _types.h:97:19 */ 959 type X__int_least8_t = X__int8_t /* _types.h:98:18 */ 960 type X__int_least16_t = X__int16_t /* _types.h:99:19 */ 961 type X__int_least32_t = X__int32_t /* _types.h:100:19 */ 962 type X__int_least64_t = X__int64_t /* _types.h:101:19 */ 963 type X__ptrdiff_t = X__int64_t /* _types.h:103:19 */ // ptr1 - ptr2 964 type X__register_t = X__int64_t /* _types.h:104:19 */ 965 type X__segsz_t = X__int64_t /* _types.h:105:19 */ // segment size (in pages) 966 type X__size_t = X__uint64_t /* _types.h:106:20 */ // sizeof() 967 type X__ssize_t = X__int64_t /* _types.h:107:19 */ // byte count or error 968 type X__time_t = X__int64_t /* _types.h:108:19 */ // time()... 969 type X__uintfptr_t = X__uint64_t /* _types.h:109:20 */ 970 type X__uintptr_t = X__uint64_t /* _types.h:110:20 */ 971 type X__uintmax_t = X__uint64_t /* _types.h:121:20 */ 972 type X__uint_fast8_t = X__uint32_t /* _types.h:122:20 */ 973 type X__uint_fast16_t = X__uint32_t /* _types.h:123:20 */ 974 type X__uint_fast32_t = X__uint32_t /* _types.h:124:20 */ 975 type X__uint_fast64_t = X__uint64_t /* _types.h:125:20 */ 976 type X__uint_least8_t = X__uint8_t /* _types.h:126:19 */ 977 type X__uint_least16_t = X__uint16_t /* _types.h:127:20 */ 978 type X__uint_least32_t = X__uint32_t /* _types.h:128:20 */ 979 type X__uint_least64_t = X__uint64_t /* _types.h:129:20 */ 980 type X__u_register_t = X__uint64_t /* _types.h:131:20 */ 981 type X__vm_offset_t = X__uint64_t /* _types.h:132:20 */ 982 type X__vm_paddr_t = X__uint64_t /* _types.h:133:20 */ 983 type X__vm_size_t = X__uint64_t /* _types.h:134:20 */ 984 type X___wchar_t = int32 /* _types.h:141:14 */ 985 986 // Standard type definitions. 987 type X__blksize_t = X__int32_t /* _types.h:40:19 */ // file block size 988 type X__blkcnt_t = X__int64_t /* _types.h:41:19 */ // file block count 989 type X__clockid_t = X__int32_t /* _types.h:42:19 */ // clock_gettime()... 990 type X__fflags_t = X__uint32_t /* _types.h:43:20 */ // file flags 991 type X__fsblkcnt_t = X__uint64_t /* _types.h:44:20 */ 992 type X__fsfilcnt_t = X__uint64_t /* _types.h:45:20 */ 993 type X__gid_t = X__uint32_t /* _types.h:46:20 */ 994 type X__id_t = X__int64_t /* _types.h:47:19 */ // can hold a gid_t, pid_t, or uid_t 995 type X__ino_t = X__uint64_t /* _types.h:48:20 */ // inode number 996 type X__key_t = int64 /* _types.h:49:15 */ // IPC key (for Sys V IPC) 997 type X__lwpid_t = X__int32_t /* _types.h:50:19 */ // Thread ID (a.k.a. LWP) 998 type X__mode_t = X__uint16_t /* _types.h:51:20 */ // permissions 999 type X__accmode_t = int32 /* _types.h:52:14 */ // access permissions 1000 type X__nl_item = int32 /* _types.h:53:14 */ 1001 type X__nlink_t = X__uint64_t /* _types.h:54:20 */ // link count 1002 type X__off_t = X__int64_t /* _types.h:55:19 */ // file offset 1003 type X__off64_t = X__int64_t /* _types.h:56:19 */ // file offset (alias) 1004 type X__pid_t = X__int32_t /* _types.h:57:19 */ // process [group] 1005 type X__rlim_t = X__int64_t /* _types.h:58:19 */ // resource limit - intentionally 1006 // signed, because of legacy code 1007 // that uses -1 for RLIM_INFINITY 1008 type X__sa_family_t = X__uint8_t /* _types.h:61:19 */ 1009 type X__socklen_t = X__uint32_t /* _types.h:62:20 */ 1010 type X__suseconds_t = int64 /* _types.h:63:15 */ // microseconds (signed) 1011 type X__timer_t = uintptr /* _types.h:64:24 */ // timer_gettime()... 1012 type X__mqd_t = uintptr /* _types.h:65:21 */ // mq_open()... 1013 type X__uid_t = X__uint32_t /* _types.h:66:20 */ 1014 type X__useconds_t = uint32 /* _types.h:67:22 */ // microseconds (unsigned) 1015 type X__cpuwhich_t = int32 /* _types.h:68:14 */ // which parameter for cpuset. 1016 type X__cpulevel_t = int32 /* _types.h:69:14 */ // level parameter for cpuset. 1017 type X__cpusetid_t = int32 /* _types.h:70:14 */ // cpuset identifier. 1018 type X__daddr_t = X__int64_t /* _types.h:71:19 */ // bwrite(3), FIOBMAP2, etc 1019 1020 // Unusual type definitions. 1021 // rune_t is declared to be an “int” instead of the more natural 1022 // “unsigned long” or “long”. Two things are happening here. It is not 1023 // unsigned so that EOF (-1) can be naturally assigned to it and used. Also, 1024 // it looks like 10646 will be a 31 bit standard. This means that if your 1025 // ints cannot hold 32 bits, you will be in trouble. The reason an int was 1026 // chosen over a long is that the is*() and to*() routines take ints (says 1027 // ANSI C), but they use __ct_rune_t instead of int. 1028 // 1029 // NOTE: rune_t is not covered by ANSI nor other standards, and should not 1030 // be instantiated outside of lib/libc/locale. Use wchar_t. wint_t and 1031 // rune_t must be the same type. Also, wint_t should be able to hold all 1032 // members of the largest character set plus one extra value (WEOF), and 1033 // must be at least 16 bits. 1034 type X__ct_rune_t = int32 /* _types.h:91:14 */ // arg type for ctype funcs 1035 type X__rune_t = X__ct_rune_t /* _types.h:92:21 */ // rune_t (see above) 1036 type X__wint_t = X__ct_rune_t /* _types.h:93:21 */ // wint_t (see above) 1037 1038 // Clang already provides these types as built-ins, but only in C++ mode. 1039 type X__char16_t = X__uint_least16_t /* _types.h:97:26 */ 1040 type X__char32_t = X__uint_least32_t /* _types.h:98:26 */ 1041 // In C++11, char16_t and char32_t are built-in types. 1042 1043 type X__max_align_t = struct { 1044 F__max_align1 int64 1045 F__max_align2 float64 1046 } /* _types.h:111:3 */ 1047 1048 type X__dev_t = X__uint64_t /* _types.h:113:20 */ // device number 1049 1050 type X__fixpt_t = X__uint32_t /* _types.h:115:20 */ // fixed point number 1051 1052 // mbstate_t is an opaque object to keep conversion state during multibyte 1053 // stream conversions. 1054 type X__mbstate_t = struct { 1055 F__ccgo_pad1 [0]uint64 1056 F__mbstate8 [128]int8 1057 } /* _types.h:124:3 */ 1058 1059 type X__rman_res_t = X__uintmax_t /* _types.h:126:25 */ 1060 1061 // Types for varargs. These are all provided by builtin types these 1062 // days, so centralize their definition. 1063 type X__va_list = X__builtin_va_list /* _types.h:133:27 */ // internally known to gcc 1064 type X__gnuc_va_list = X__va_list /* _types.h:140:20 */ 1065 type Pthread_once = struct { 1066 Fstate int32 1067 F__ccgo_pad1 [4]byte 1068 Fmutex Pthread_mutex_t 1069 } /* _pthreadtypes.h:52:1 */ 1070 1071 // Primitive system data type definitions required by P1003.1c. 1072 // 1073 // Note that P1003.1c specifies that there are no defined comparison 1074 // or assignment operators for the types pthread_attr_t, pthread_cond_t, 1075 // pthread_condattr_t, pthread_mutex_t, pthread_mutexattr_t. 1076 type Pthread_t = uintptr /* _pthreadtypes.h:67:26 */ 1077 type Pthread_attr_t = uintptr /* _pthreadtypes.h:70:30 */ 1078 type Pthread_mutex_t = uintptr /* _pthreadtypes.h:71:31 */ 1079 type Pthread_mutexattr_t = uintptr /* _pthreadtypes.h:72:35 */ 1080 type Pthread_cond_t = uintptr /* _pthreadtypes.h:73:30 */ 1081 type Pthread_condattr_t = uintptr /* _pthreadtypes.h:74:34 */ 1082 type Pthread_key_t = int32 /* _pthreadtypes.h:75:20 */ 1083 type Pthread_once_t = Pthread_once /* _pthreadtypes.h:76:30 */ 1084 type Pthread_rwlock_t = uintptr /* _pthreadtypes.h:77:32 */ 1085 type Pthread_rwlockattr_t = uintptr /* _pthreadtypes.h:78:35 */ 1086 type Pthread_barrier_t = uintptr /* _pthreadtypes.h:79:33 */ 1087 type Pthread_barrierattr_t = uintptr /* _pthreadtypes.h:80:36 */ 1088 type Pthread_spinlock_t = uintptr /* _pthreadtypes.h:81:33 */ 1089 1090 // Additional type definitions: 1091 // 1092 // Note that P1003.1c reserves the prefixes pthread_ and PTHREAD_ for 1093 // use in header symbols. 1094 type Pthread_addr_t = uintptr /* _pthreadtypes.h:89:14 */ 1095 type Pthread_startroutine_t = uintptr /* _pthreadtypes.h:90:14 */ 1096 1097 type U_char = uint8 /* types.h:52:23 */ 1098 type U_short = uint16 /* types.h:53:24 */ 1099 type U_int = uint32 /* types.h:54:22 */ 1100 type U_long = uint64 /* types.h:55:23 */ 1101 type Ushort = uint16 /* types.h:57:24 */ // Sys V compatibility 1102 type Uint = uint32 /* types.h:58:22 */ // Sys V compatibility 1103 1104 // XXX POSIX sized integrals that should appear only in <sys/stdint.h>. 1105 // - 1106 // SPDX-License-Identifier: BSD-2-Clause-FreeBSD 1107 // 1108 // Copyright (c) 2011 David E. O'Brien <obrien@FreeBSD.org> 1109 // Copyright (c) 2001 Mike Barcroft <mike@FreeBSD.org> 1110 // All rights reserved. 1111 // 1112 // Redistribution and use in source and binary forms, with or without 1113 // modification, are permitted provided that the following conditions 1114 // are met: 1115 // 1. Redistributions of source code must retain the above copyright 1116 // notice, this list of conditions and the following disclaimer. 1117 // 2. Redistributions in binary form must reproduce the above copyright 1118 // notice, this list of conditions and the following disclaimer in the 1119 // documentation and/or other materials provided with the distribution. 1120 // 1121 // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 1122 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1123 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1124 // ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 1125 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1126 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1127 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1128 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1129 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1130 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1131 // SUCH DAMAGE. 1132 // 1133 // $FreeBSD$ 1134 1135 type Int8_t = X__int8_t /* _stdint.h:36:19 */ 1136 1137 type Int16_t = X__int16_t /* _stdint.h:41:20 */ 1138 1139 type Int32_t = X__int32_t /* _stdint.h:46:20 */ 1140 1141 type Int64_t = X__int64_t /* _stdint.h:51:20 */ 1142 1143 type Uint8_t = X__uint8_t /* _stdint.h:56:20 */ 1144 1145 type Uint16_t = X__uint16_t /* _stdint.h:61:21 */ 1146 1147 type Uint32_t = X__uint32_t /* _stdint.h:66:21 */ 1148 1149 type Uint64_t = X__uint64_t /* _stdint.h:71:21 */ 1150 1151 type Intptr_t = X__intptr_t /* _stdint.h:76:21 */ 1152 type Uintptr_t = X__uintptr_t /* _stdint.h:80:22 */ 1153 type Intmax_t = X__intmax_t /* _stdint.h:84:21 */ 1154 type Uintmax_t = X__uintmax_t /* _stdint.h:88:22 */ 1155 1156 type U_int8_t = X__uint8_t /* types.h:67:19 */ // unsigned integrals (deprecated) 1157 type U_int16_t = X__uint16_t /* types.h:68:20 */ 1158 type U_int32_t = X__uint32_t /* types.h:69:20 */ 1159 type U_int64_t = X__uint64_t /* types.h:70:20 */ 1160 1161 type U_quad_t = X__uint64_t /* types.h:72:20 */ // quads (deprecated) 1162 type Quad_t = X__int64_t /* types.h:73:19 */ 1163 type Qaddr_t = uintptr /* types.h:74:16 */ 1164 1165 type Caddr_t = uintptr /* types.h:76:14 */ // core address 1166 type C_caddr_t = uintptr /* types.h:77:20 */ // core address, pointer to const 1167 1168 type Blksize_t = X__blksize_t /* types.h:80:21 */ 1169 1170 type Cpuwhich_t = X__cpuwhich_t /* types.h:84:22 */ 1171 type Cpulevel_t = X__cpulevel_t /* types.h:85:22 */ 1172 type Cpusetid_t = X__cpusetid_t /* types.h:86:22 */ 1173 1174 type Blkcnt_t = X__blkcnt_t /* types.h:89:20 */ 1175 1176 type Clock_t = X__clock_t /* types.h:94:19 */ 1177 1178 type Clockid_t = X__clockid_t /* types.h:99:21 */ 1179 1180 type Critical_t = X__critical_t /* types.h:103:22 */ // Critical section value 1181 type Daddr_t = X__daddr_t /* types.h:104:19 */ // disk address 1182 1183 type Dev_t = X__dev_t /* types.h:107:18 */ // device number or struct cdev 1184 1185 type Fflags_t = X__fflags_t /* types.h:112:20 */ // file flags 1186 1187 type Fixpt_t = X__fixpt_t /* types.h:116:19 */ // fixed point number 1188 1189 type Fsblkcnt_t = X__fsblkcnt_t /* types.h:119:22 */ 1190 type Fsfilcnt_t = X__fsfilcnt_t /* types.h:120:22 */ 1191 1192 type Gid_t = X__gid_t /* types.h:125:18 */ // group id 1193 1194 type In_addr_t = X__uint32_t /* types.h:130:20 */ // base type for internet address 1195 1196 type In_port_t = X__uint16_t /* types.h:135:20 */ 1197 1198 type Id_t = X__id_t /* types.h:140:17 */ // can hold a uid_t or pid_t 1199 1200 type Ino_t = X__ino_t /* types.h:145:18 */ // inode number 1201 1202 type Key_t = X__key_t /* types.h:150:18 */ // IPC key (for Sys V IPC) 1203 1204 type Lwpid_t = X__lwpid_t /* types.h:155:19 */ // Thread ID (a.k.a. LWP) 1205 1206 type Mode_t = X__mode_t /* types.h:160:18 */ // permissions 1207 1208 type Accmode_t = X__accmode_t /* types.h:165:21 */ // access permissions 1209 1210 type Nlink_t = X__nlink_t /* types.h:170:19 */ // link count 1211 1212 type Off_t = X__off_t /* types.h:175:18 */ // file offset 1213 1214 type Off64_t = X__off64_t /* types.h:180:19 */ // file offset (alias) 1215 1216 type Pid_t = X__pid_t /* types.h:185:18 */ // process id 1217 1218 type Register_t = X__register_t /* types.h:189:22 */ 1219 1220 type Rlim_t = X__rlim_t /* types.h:192:18 */ // resource limit 1221 1222 type Sbintime_t = X__int64_t /* types.h:196:19 */ 1223 1224 type Segsz_t = X__segsz_t /* types.h:198:19 */ 1225 1226 type Ssize_t = X__ssize_t /* types.h:206:19 */ 1227 1228 type Suseconds_t = X__suseconds_t /* types.h:211:23 */ // microseconds (signed) 1229 1230 type Time_t = X__time_t /* types.h:216:18 */ 1231 1232 type Timer_t = X__timer_t /* types.h:221:19 */ 1233 1234 type Mqd_t = X__mqd_t /* types.h:226:17 */ 1235 1236 type U_register_t = X__u_register_t /* types.h:230:24 */ 1237 1238 type Uid_t = X__uid_t /* types.h:233:18 */ // user id 1239 1240 type Useconds_t = X__useconds_t /* types.h:238:22 */ // microseconds (unsigned) 1241 1242 type Cap_ioctl_t = uint64 /* types.h:244:23 */ 1243 1244 // Types suitable for exporting physical addresses, virtual addresses 1245 // (pointers), and memory object sizes from the kernel independent of native 1246 // word size. These should be used in place of vm_paddr_t, (u)intptr_t, and 1247 // size_t in structs which contain such types that are shared with userspace. 1248 type Kpaddr_t = X__uint64_t /* types.h:260:20 */ 1249 type Kvaddr_t = X__uint64_t /* types.h:261:20 */ 1250 type Ksize_t = X__uint64_t /* types.h:262:20 */ 1251 type Kssize_t = X__int64_t /* types.h:263:19 */ 1252 1253 type Vm_offset_t = X__vm_offset_t /* types.h:265:23 */ 1254 type Vm_ooffset_t = X__uint64_t /* types.h:266:20 */ 1255 type Vm_paddr_t = X__vm_paddr_t /* types.h:267:22 */ 1256 type Vm_pindex_t = X__uint64_t /* types.h:268:20 */ 1257 type Vm_size_t = X__vm_size_t /* types.h:269:21 */ 1258 1259 type Rman_res_t = X__rman_res_t /* types.h:271:25 */ 1260 1261 // - 1262 // SPDX-License-Identifier: BSD-3-Clause 1263 // 1264 // Copyright (c) 1992, 1993 1265 // The Regents of the University of California. All rights reserved. 1266 // 1267 // Redistribution and use in source and binary forms, with or without 1268 // modification, are permitted provided that the following conditions 1269 // are met: 1270 // 1. Redistributions of source code must retain the above copyright 1271 // notice, this list of conditions and the following disclaimer. 1272 // 2. Redistributions in binary form must reproduce the above copyright 1273 // notice, this list of conditions and the following disclaimer in the 1274 // documentation and/or other materials provided with the distribution. 1275 // 3. Neither the name of the University nor the names of its contributors 1276 // may be used to endorse or promote products derived from this software 1277 // without specific prior written permission. 1278 // 1279 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1280 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1281 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1282 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1283 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1284 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1285 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1286 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1287 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1288 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1289 // SUCH DAMAGE. 1290 // 1291 // $FreeBSD$ 1292 1293 // - 1294 // SPDX-License-Identifier: BSD-3-Clause 1295 // 1296 // Copyright (c) 1991, 1993 1297 // The Regents of the University of California. All rights reserved. 1298 // 1299 // This code is derived from software contributed to Berkeley by 1300 // Berkeley Software Design, Inc. 1301 // 1302 // Redistribution and use in source and binary forms, with or without 1303 // modification, are permitted provided that the following conditions 1304 // are met: 1305 // 1. Redistributions of source code must retain the above copyright 1306 // notice, this list of conditions and the following disclaimer. 1307 // 2. Redistributions in binary form must reproduce the above copyright 1308 // notice, this list of conditions and the following disclaimer in the 1309 // documentation and/or other materials provided with the distribution. 1310 // 3. Neither the name of the University nor the names of its contributors 1311 // may be used to endorse or promote products derived from this software 1312 // without specific prior written permission. 1313 // 1314 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1315 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1316 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1317 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1318 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1319 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1320 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1321 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1322 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1323 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1324 // SUCH DAMAGE. 1325 // 1326 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 1327 // $FreeBSD$ 1328 1329 // - 1330 // SPDX-License-Identifier: BSD-2-Clause-FreeBSD 1331 // 1332 // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org> 1333 // All rights reserved. 1334 // 1335 // Redistribution and use in source and binary forms, with or without 1336 // modification, are permitted provided that the following conditions 1337 // are met: 1338 // 1. Redistributions of source code must retain the above copyright 1339 // notice, this list of conditions and the following disclaimer. 1340 // 2. Redistributions in binary form must reproduce the above copyright 1341 // notice, this list of conditions and the following disclaimer in the 1342 // documentation and/or other materials provided with the distribution. 1343 // 1344 // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 1345 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1346 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1347 // ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 1348 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1349 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1350 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1351 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1352 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1353 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1354 // SUCH DAMAGE. 1355 // 1356 // $FreeBSD$ 1357 1358 // - 1359 // SPDX-License-Identifier: BSD-3-Clause 1360 // 1361 // Copyright (c) 1982, 1986, 1989, 1991, 1993 1362 // The Regents of the University of California. All rights reserved. 1363 // (c) UNIX System Laboratories, Inc. 1364 // All or some portions of this file are derived from material licensed 1365 // to the University of California by American Telephone and Telegraph 1366 // Co. or Unix System Laboratories, Inc. and are reproduced herein with 1367 // the permission of UNIX System Laboratories, Inc. 1368 // 1369 // Redistribution and use in source and binary forms, with or without 1370 // modification, are permitted provided that the following conditions 1371 // are met: 1372 // 1. Redistributions of source code must retain the above copyright 1373 // notice, this list of conditions and the following disclaimer. 1374 // 2. Redistributions in binary form must reproduce the above copyright 1375 // notice, this list of conditions and the following disclaimer in the 1376 // documentation and/or other materials provided with the distribution. 1377 // 3. Neither the name of the University nor the names of its contributors 1378 // may be used to endorse or promote products derived from this software 1379 // without specific prior written permission. 1380 // 1381 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1382 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1383 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1384 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1385 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1386 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1387 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1388 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1389 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1390 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1391 // SUCH DAMAGE. 1392 // 1393 // @(#)signal.h 8.4 (Berkeley) 5/4/95 1394 // $FreeBSD$ 1395 1396 // sigset_t macros. 1397 1398 type X__sigset = struct{ F__bits [4]X__uint32_t } /* _sigset.h:53:9 */ 1399 1400 // - 1401 // SPDX-License-Identifier: BSD-3-Clause 1402 // 1403 // Copyright (c) 1992, 1993 1404 // The Regents of the University of California. All rights reserved. 1405 // 1406 // Redistribution and use in source and binary forms, with or without 1407 // modification, are permitted provided that the following conditions 1408 // are met: 1409 // 1. Redistributions of source code must retain the above copyright 1410 // notice, this list of conditions and the following disclaimer. 1411 // 2. Redistributions in binary form must reproduce the above copyright 1412 // notice, this list of conditions and the following disclaimer in the 1413 // documentation and/or other materials provided with the distribution. 1414 // 3. Neither the name of the University nor the names of its contributors 1415 // may be used to endorse or promote products derived from this software 1416 // without specific prior written permission. 1417 // 1418 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1419 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1420 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1421 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1422 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1423 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1424 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1425 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1426 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1427 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1428 // SUCH DAMAGE. 1429 // 1430 // $FreeBSD$ 1431 1432 // - 1433 // SPDX-License-Identifier: BSD-3-Clause 1434 // 1435 // Copyright (c) 1991, 1993 1436 // The Regents of the University of California. All rights reserved. 1437 // 1438 // This code is derived from software contributed to Berkeley by 1439 // Berkeley Software Design, Inc. 1440 // 1441 // Redistribution and use in source and binary forms, with or without 1442 // modification, are permitted provided that the following conditions 1443 // are met: 1444 // 1. Redistributions of source code must retain the above copyright 1445 // notice, this list of conditions and the following disclaimer. 1446 // 2. Redistributions in binary form must reproduce the above copyright 1447 // notice, this list of conditions and the following disclaimer in the 1448 // documentation and/or other materials provided with the distribution. 1449 // 3. Neither the name of the University nor the names of its contributors 1450 // may be used to endorse or promote products derived from this software 1451 // without specific prior written permission. 1452 // 1453 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1454 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1455 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1456 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1457 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1458 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1459 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1460 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1461 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1462 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1463 // SUCH DAMAGE. 1464 // 1465 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 1466 // $FreeBSD$ 1467 1468 // - 1469 // SPDX-License-Identifier: BSD-2-Clause-FreeBSD 1470 // 1471 // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org> 1472 // All rights reserved. 1473 // 1474 // Redistribution and use in source and binary forms, with or without 1475 // modification, are permitted provided that the following conditions 1476 // are met: 1477 // 1. Redistributions of source code must retain the above copyright 1478 // notice, this list of conditions and the following disclaimer. 1479 // 2. Redistributions in binary form must reproduce the above copyright 1480 // notice, this list of conditions and the following disclaimer in the 1481 // documentation and/or other materials provided with the distribution. 1482 // 1483 // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 1484 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1485 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1486 // ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 1487 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1488 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1489 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1490 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1491 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1492 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1493 // SUCH DAMAGE. 1494 // 1495 // $FreeBSD$ 1496 1497 // - 1498 // SPDX-License-Identifier: BSD-3-Clause 1499 // 1500 // Copyright (c) 1982, 1986, 1989, 1991, 1993 1501 // The Regents of the University of California. All rights reserved. 1502 // (c) UNIX System Laboratories, Inc. 1503 // All or some portions of this file are derived from material licensed 1504 // to the University of California by American Telephone and Telegraph 1505 // Co. or Unix System Laboratories, Inc. and are reproduced herein with 1506 // the permission of UNIX System Laboratories, Inc. 1507 // 1508 // Redistribution and use in source and binary forms, with or without 1509 // modification, are permitted provided that the following conditions 1510 // are met: 1511 // 1. Redistributions of source code must retain the above copyright 1512 // notice, this list of conditions and the following disclaimer. 1513 // 2. Redistributions in binary form must reproduce the above copyright 1514 // notice, this list of conditions and the following disclaimer in the 1515 // documentation and/or other materials provided with the distribution. 1516 // 3. Neither the name of the University nor the names of its contributors 1517 // may be used to endorse or promote products derived from this software 1518 // without specific prior written permission. 1519 // 1520 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1521 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1522 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1523 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1524 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1525 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1526 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1527 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1528 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1529 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1530 // SUCH DAMAGE. 1531 // 1532 // @(#)signal.h 8.4 (Berkeley) 5/4/95 1533 // $FreeBSD$ 1534 1535 // sigset_t macros. 1536 1537 type X__sigset_t = X__sigset /* _sigset.h:55:3 */ 1538 1539 // - 1540 // SPDX-License-Identifier: BSD-2-Clause-FreeBSD 1541 // 1542 // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org> 1543 // All rights reserved. 1544 // 1545 // Redistribution and use in source and binary forms, with or without 1546 // modification, are permitted provided that the following conditions 1547 // are met: 1548 // 1. Redistributions of source code must retain the above copyright 1549 // notice, this list of conditions and the following disclaimer. 1550 // 2. Redistributions in binary form must reproduce the above copyright 1551 // notice, this list of conditions and the following disclaimer in the 1552 // documentation and/or other materials provided with the distribution. 1553 // 1554 // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 1555 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1556 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1557 // ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 1558 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1559 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1560 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1561 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1562 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1563 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1564 // SUCH DAMAGE. 1565 // 1566 // $FreeBSD$ 1567 1568 // - 1569 // SPDX-License-Identifier: BSD-2-Clause-FreeBSD 1570 // 1571 // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org> 1572 // All rights reserved. 1573 // 1574 // Redistribution and use in source and binary forms, with or without 1575 // modification, are permitted provided that the following conditions 1576 // are met: 1577 // 1. Redistributions of source code must retain the above copyright 1578 // notice, this list of conditions and the following disclaimer. 1579 // 2. Redistributions in binary form must reproduce the above copyright 1580 // notice, this list of conditions and the following disclaimer in the 1581 // documentation and/or other materials provided with the distribution. 1582 // 1583 // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 1584 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1585 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1586 // ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 1587 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1588 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1589 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1590 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1591 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1592 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1593 // SUCH DAMAGE. 1594 // 1595 // $FreeBSD$ 1596 1597 // Structure returned by gettimeofday(2) system call, and used in other calls. 1598 type Timeval = struct { 1599 Ftv_sec Time_t 1600 Ftv_usec Suseconds_t 1601 } /* _timeval.h:49:1 */ 1602 1603 // - 1604 // SPDX-License-Identifier: BSD-3-Clause 1605 // 1606 // Copyright (c) 1982, 1986, 1993 1607 // The Regents of the University of California. All rights reserved. 1608 // 1609 // Redistribution and use in source and binary forms, with or without 1610 // modification, are permitted provided that the following conditions 1611 // are met: 1612 // 1. Redistributions of source code must retain the above copyright 1613 // notice, this list of conditions and the following disclaimer. 1614 // 2. Redistributions in binary form must reproduce the above copyright 1615 // notice, this list of conditions and the following disclaimer in the 1616 // documentation and/or other materials provided with the distribution. 1617 // 3. Neither the name of the University nor the names of its contributors 1618 // may be used to endorse or promote products derived from this software 1619 // without specific prior written permission. 1620 // 1621 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1622 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1623 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1624 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1625 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1626 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1627 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1628 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1629 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1630 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1631 // SUCH DAMAGE. 1632 // 1633 // @(#)time.h 8.5 (Berkeley) 5/4/95 1634 // from: FreeBSD: src/sys/sys/time.h,v 1.43 2000/03/20 14:09:05 phk Exp 1635 // $FreeBSD$ 1636 1637 // - 1638 // SPDX-License-Identifier: BSD-3-Clause 1639 // 1640 // Copyright (c) 1991, 1993 1641 // The Regents of the University of California. All rights reserved. 1642 // 1643 // This code is derived from software contributed to Berkeley by 1644 // Berkeley Software Design, Inc. 1645 // 1646 // Redistribution and use in source and binary forms, with or without 1647 // modification, are permitted provided that the following conditions 1648 // are met: 1649 // 1. Redistributions of source code must retain the above copyright 1650 // notice, this list of conditions and the following disclaimer. 1651 // 2. Redistributions in binary form must reproduce the above copyright 1652 // notice, this list of conditions and the following disclaimer in the 1653 // documentation and/or other materials provided with the distribution. 1654 // 3. Neither the name of the University nor the names of its contributors 1655 // may be used to endorse or promote products derived from this software 1656 // without specific prior written permission. 1657 // 1658 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1659 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1660 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1661 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1662 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1663 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1664 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1665 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1666 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1667 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1668 // SUCH DAMAGE. 1669 // 1670 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 1671 // $FreeBSD$ 1672 1673 // - 1674 // SPDX-License-Identifier: BSD-3-Clause 1675 // 1676 // Copyright (c) 1982, 1986, 1993 1677 // The Regents of the University of California. All rights reserved. 1678 // 1679 // Redistribution and use in source and binary forms, with or without 1680 // modification, are permitted provided that the following conditions 1681 // are met: 1682 // 1. Redistributions of source code must retain the above copyright 1683 // notice, this list of conditions and the following disclaimer. 1684 // 2. Redistributions in binary form must reproduce the above copyright 1685 // notice, this list of conditions and the following disclaimer in the 1686 // documentation and/or other materials provided with the distribution. 1687 // 3. Neither the name of the University nor the names of its contributors 1688 // may be used to endorse or promote products derived from this software 1689 // without specific prior written permission. 1690 // 1691 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1692 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1693 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1694 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1695 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1696 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1697 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1698 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1699 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1700 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1701 // SUCH DAMAGE. 1702 // 1703 // @(#)time.h 8.5 (Berkeley) 5/4/95 1704 // from: FreeBSD: src/sys/sys/time.h,v 1.43 2000/03/20 14:09:05 phk Exp 1705 // $FreeBSD$ 1706 1707 // - 1708 // SPDX-License-Identifier: BSD-2-Clause-FreeBSD 1709 // 1710 // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org> 1711 // All rights reserved. 1712 // 1713 // Redistribution and use in source and binary forms, with or without 1714 // modification, are permitted provided that the following conditions 1715 // are met: 1716 // 1. Redistributions of source code must retain the above copyright 1717 // notice, this list of conditions and the following disclaimer. 1718 // 2. Redistributions in binary form must reproduce the above copyright 1719 // notice, this list of conditions and the following disclaimer in the 1720 // documentation and/or other materials provided with the distribution. 1721 // 1722 // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 1723 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1724 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1725 // ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 1726 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1727 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1728 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1729 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1730 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1731 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1732 // SUCH DAMAGE. 1733 // 1734 // $FreeBSD$ 1735 1736 type Timespec = struct { 1737 Ftv_sec Time_t 1738 Ftv_nsec int64 1739 } /* _timespec.h:46:1 */ 1740 1741 // Structure defined by POSIX.1b to be like a itimerval, but with 1742 // timespecs. Used in the timer_*() system calls. 1743 type Itimerspec = struct { 1744 Fit_interval struct { 1745 Ftv_sec Time_t 1746 Ftv_nsec int64 1747 } 1748 Fit_value struct { 1749 Ftv_sec Time_t 1750 Ftv_nsec int64 1751 } 1752 } /* timespec.h:60:1 */ 1753 1754 type X__fd_mask = uint64 /* select.h:44:23 */ 1755 type Fd_mask = X__fd_mask /* select.h:46:19 */ 1756 1757 type Sigset_t = X__sigset_t /* select.h:51:20 */ 1758 1759 // Select uses bit masks of file descriptors in longs. These macros 1760 // manipulate such bit fields (the filesystem macros use chars). 1761 // FD_SETSIZE may be defined by the user, but the default here should 1762 // be enough for most uses. 1763 1764 type Fd_set1 = struct{ F__fds_bits [16]X__fd_mask } /* select.h:73:9 */ 1765 1766 // Select uses bit masks of file descriptors in longs. These macros 1767 // manipulate such bit fields (the filesystem macros use chars). 1768 // FD_SETSIZE may be defined by the user, but the default here should 1769 // be enough for most uses. 1770 1771 type Fd_set = Fd_set1 /* select.h:75:3 */ // select(2) 1772 1773 type Crypt_data = struct { 1774 Finitialized int32 1775 F__buf [256]int8 1776 } /* unistd.h:489:1 */ 1777 1778 // getopt(3) external variable 1779 1780 var _ int8 /* gen.c:2:13: */