repo stringlengths 6 47 | file_url stringlengths 77 269 | file_path stringlengths 5 186 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-07 08:35:43 2026-01-07 08:55:24 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/signal_linux_ppc64le.go | vendor/modernc.org/libc/signal/signal_linux_ppc64le.go | // Code generated by 'ccgo signal/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 signal/signal_linux_ppc64le.go -pkgname signal', DO NOT EDIT.
package signal
import (
"math"
"reflect"
"sync/atomic"
"unsafe"
)
var _ = math.Pi
var _ reflect.Kind
var _ atomic.Value
var _ unsafe.Pointer
const (
AT_DCACHEBSIZE = 19 // auxvec.h:9:1:
AT_ICACHEBSIZE = 20 // auxvec.h:10:1:
AT_IGNOREPPC = 22 // auxvec.h:13:1:
AT_L1D_CACHEGEOMETRY = 43 // auxvec.h:45:1:
AT_L1D_CACHESIZE = 42 // auxvec.h:44:1:
AT_L1I_CACHEGEOMETRY = 41 // auxvec.h:43:1:
AT_L1I_CACHESIZE = 40 // auxvec.h:42:1:
AT_L2_CACHEGEOMETRY = 45 // auxvec.h:47:1:
AT_L2_CACHESIZE = 44 // auxvec.h:46:1:
AT_L3_CACHEGEOMETRY = 47 // auxvec.h:49:1:
AT_L3_CACHESIZE = 46 // auxvec.h:48:1:
AT_SYSINFO_EHDR = 33 // auxvec.h:18:1:
AT_UCACHEBSIZE = 21 // auxvec.h:11:1:
AT_VECTOR_SIZE_ARCH = 14 // auxvec.h:51:1:
ELF_NEBB = 3 // elf.h:98:1:
ELF_NFPREG = 33 // elf.h:94:1:
ELF_NGREG = 48 // elf.h:93:1:
ELF_NPKEY = 3 // elf.h:100:1:
ELF_NPMU = 5 // elf.h:99:1:
ELF_NTMSPRREG = 3 // elf.h:97:1:
ELF_NVMX = 34 // elf.h:95:1:
ELF_NVRREG = 34 // elf.h:114:1:
ELF_NVRREG32 = 33 // elf.h:113:1:
ELF_NVSRHALFREG = 32 // elf.h:115:1:
ELF_NVSX = 32 // elf.h:96:1:
MINSIGSTKSZ = 4096 // sigstack.h:27:1:
NFPREG = 33 // ucontext.h:89:1:
NGREG = 48 // ucontext.h:88:1:
NSIG = 65 // signal.h:181:1:
NVRREG = 34 // ucontext.h:90:1:
PPC_BREAKPOINT_CONDITION_AND = 0x00000001 // ptrace.h:259:1:
PPC_BREAKPOINT_CONDITION_AND_OR = 0x00000003 // ptrace.h:262:1:
PPC_BREAKPOINT_CONDITION_BE_ALL = 0x00ff0000 // ptrace.h:263:1:
PPC_BREAKPOINT_CONDITION_BE_SHIFT = 16 // ptrace.h:264:1:
PPC_BREAKPOINT_CONDITION_EXACT = 1 // ptrace.h:260:1:
PPC_BREAKPOINT_CONDITION_MODE = 0x00000003 // ptrace.h:257:1:
PPC_BREAKPOINT_CONDITION_NONE = 0x00000000 // ptrace.h:258:1:
PPC_BREAKPOINT_CONDITION_OR = 0x00000002 // ptrace.h:261:1:
PPC_BREAKPOINT_MODE_EXACT = 0x00000000 // ptrace.h:249:1:
PPC_BREAKPOINT_MODE_MASK = 0x00000003 // ptrace.h:252:1:
PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE = 0x00000002 // ptrace.h:251:1:
PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE = 0x00000001 // ptrace.h:250:1:
PPC_BREAKPOINT_TRIGGER_EXECUTE = 0x00000001 // ptrace.h:240:1:
PPC_BREAKPOINT_TRIGGER_READ = 0x00000002 // ptrace.h:241:1:
PPC_BREAKPOINT_TRIGGER_RW = 6 // ptrace.h:243:1:
PPC_BREAKPOINT_TRIGGER_WRITE = 0x00000004 // ptrace.h:242:1:
PPC_DEBUG_FEATURE_DATA_BP_ARCH_31 = 0x0000000000000020 // ptrace.h:221:1:
PPC_DEBUG_FEATURE_DATA_BP_DAWR = 0x0000000000000010 // ptrace.h:220:1:
PPC_DEBUG_FEATURE_DATA_BP_MASK = 0x0000000000000008 // ptrace.h:219:1:
PPC_DEBUG_FEATURE_DATA_BP_RANGE = 0x0000000000000004 // ptrace.h:218:1:
PPC_DEBUG_FEATURE_INSN_BP_MASK = 0x0000000000000002 // ptrace.h:217:1:
PPC_DEBUG_FEATURE_INSN_BP_RANGE = 0x0000000000000001 // ptrace.h:216:1:
PPC_FEATURE2_ARCH_2_07 = 0x80000000 // cputable.h:40:1:
PPC_FEATURE2_ARCH_3_00 = 0x00800000 // cputable.h:48:1:
PPC_FEATURE2_ARCH_3_1 = 0x00040000 // cputable.h:53:1:
PPC_FEATURE2_DARN = 0x00200000 // cputable.h:50:1:
PPC_FEATURE2_DSCR = 0x20000000 // cputable.h:42:1:
PPC_FEATURE2_EBB = 0x10000000 // cputable.h:43:1:
PPC_FEATURE2_HAS_IEEE128 = 0x00400000 // cputable.h:49:1:
PPC_FEATURE2_HTM = 0x40000000 // cputable.h:41:1:
PPC_FEATURE2_HTM_NOSC = 0x01000000 // cputable.h:47:1:
PPC_FEATURE2_HTM_NO_SUSPEND = 0x00080000 // cputable.h:52:1:
PPC_FEATURE2_ISEL = 0x08000000 // cputable.h:44:1:
PPC_FEATURE2_MMA = 0x00020000 // cputable.h:54:1:
PPC_FEATURE2_SCV = 0x00100000 // cputable.h:51:1:
PPC_FEATURE2_TAR = 0x04000000 // cputable.h:45:1:
PPC_FEATURE2_VEC_CRYPTO = 0x02000000 // cputable.h:46:1:
PPC_FEATURE_32 = 0x80000000 // cputable.h:6:1:
PPC_FEATURE_601_INSTR = 0x20000000 // cputable.h:8:1:
PPC_FEATURE_64 = 0x40000000 // cputable.h:7:1:
PPC_FEATURE_ARCH_2_05 = 0x00001000 // cputable.h:25:1:
PPC_FEATURE_ARCH_2_06 = 0x00000100 // cputable.h:29:1:
PPC_FEATURE_BOOKE = 0x00008000 // cputable.h:22:1:
PPC_FEATURE_CELL = 0x00010000 // cputable.h:21:1:
PPC_FEATURE_HAS_4xxMAC = 0x02000000 // cputable.h:12:1:
PPC_FEATURE_HAS_ALTIVEC = 0x10000000 // cputable.h:9:1:
PPC_FEATURE_HAS_DFP = 0x00000400 // cputable.h:27:1:
PPC_FEATURE_HAS_EFP_DOUBLE = 0x00200000 // cputable.h:16:1:
PPC_FEATURE_HAS_EFP_SINGLE = 0x00400000 // cputable.h:15:1:
PPC_FEATURE_HAS_FPU = 0x08000000 // cputable.h:10:1:
PPC_FEATURE_HAS_MMU = 0x04000000 // cputable.h:11:1:
PPC_FEATURE_HAS_SPE = 0x00800000 // cputable.h:14:1:
PPC_FEATURE_HAS_VSX = 0x00000080 // cputable.h:30:1:
PPC_FEATURE_ICACHE_SNOOP = 0x00002000 // cputable.h:24:1:
PPC_FEATURE_NO_TB = 0x00100000 // cputable.h:17:1:
PPC_FEATURE_PA6T = 0x00000800 // cputable.h:26:1:
PPC_FEATURE_POWER4 = 0x00080000 // cputable.h:18:1:
PPC_FEATURE_POWER5 = 0x00040000 // cputable.h:19:1:
PPC_FEATURE_POWER5_PLUS = 0x00020000 // cputable.h:20:1:
PPC_FEATURE_POWER6_EXT = 0x00000200 // cputable.h:28:1:
PPC_FEATURE_PPC_LE = 0x00000001 // cputable.h:37:1:
PPC_FEATURE_PSERIES_PERFMON_COMPAT = 0x00000040 // cputable.h:32:1:
PPC_FEATURE_SMT = 0x00004000 // cputable.h:23:1:
PPC_FEATURE_TRUE_LE = 0x00000002 // cputable.h:36:1:
PPC_FEATURE_UNIFIED_CACHE = 0x01000000 // cputable.h:13:1:
PPC_PTRACE_DELHWDEBUG = 0x87 // ptrace.h:197:1:
PPC_PTRACE_GETHWDBGINFO = 0x89 // ptrace.h:195:1:
PPC_PTRACE_PEEKDATA_3264 = 0x94 // ptrace.h:187:1:
PPC_PTRACE_PEEKTEXT_3264 = 0x95 // ptrace.h:186:1:
PPC_PTRACE_PEEKUSR_3264 = 0x91 // ptrace.h:190:1:
PPC_PTRACE_POKEDATA_3264 = 0x92 // ptrace.h:189:1:
PPC_PTRACE_POKETEXT_3264 = 0x93 // ptrace.h:188:1:
PPC_PTRACE_POKEUSR_3264 = 0x90 // ptrace.h:191:1:
PPC_PTRACE_SETHWDEBUG = 0x88 // ptrace.h:196:1:
PTRACE_GETEVRREGS = 0x14 // ptrace.h:157:1:
PTRACE_GETFPREGS = 0xe // ptrace.h:180:1:
PTRACE_GETREGS = 0xc // ptrace.h:178:1:
PTRACE_GETREGS64 = 0x16 // ptrace.h:182:1:
PTRACE_GETVRREGS = 0x12 // ptrace.h:152:1:
PTRACE_GETVSRREGS = 0x1b // ptrace.h:161:1:
PTRACE_GET_DEBUGREG = 0x19 // ptrace.h:172:1:
PTRACE_SETEVRREGS = 0x15 // ptrace.h:158:1:
PTRACE_SETFPREGS = 0xf // ptrace.h:181:1:
PTRACE_SETREGS = 0xd // ptrace.h:179:1:
PTRACE_SETREGS64 = 0x17 // ptrace.h:183:1:
PTRACE_SETVRREGS = 0x13 // ptrace.h:153:1:
PTRACE_SETVSRREGS = 0x1c // ptrace.h:162:1:
PTRACE_SET_DEBUGREG = 0x1a // ptrace.h:173:1:
PTRACE_SINGLEBLOCK = 0x100 // ptrace.h:193:1:
PTRACE_SYSEMU = 0x1d // ptrace.h:165:1:
PTRACE_SYSEMU_SINGLESTEP = 0x1e // ptrace.h:166:1:
PT_CCR = 38 // ptrace.h:103:1:
PT_CTR = 35 // ptrace.h:100:1:
PT_DAR = 41 // ptrace.h:110:1:
PT_DSCR = 44 // ptrace.h:113:1:
PT_DSISR = 42 // ptrace.h:111:1:
PT_FPR0 = 48 // ptrace.h:116:1:
PT_FPSCR = 80 // ptrace.h:125:1:
PT_LNK = 36 // ptrace.h:101:1:
PT_MSR = 33 // ptrace.h:98:1:
PT_NIP = 32 // ptrace.h:97:1:
PT_ORIG_R3 = 34 // ptrace.h:99:1:
PT_R0 = 0 // ptrace.h:64:1:
PT_R1 = 1 // ptrace.h:65:1:
PT_R10 = 10 // ptrace.h:74:1:
PT_R11 = 11 // ptrace.h:75:1:
PT_R12 = 12 // ptrace.h:76:1:
PT_R13 = 13 // ptrace.h:77:1:
PT_R14 = 14 // ptrace.h:78:1:
PT_R15 = 15 // ptrace.h:79:1:
PT_R16 = 16 // ptrace.h:80:1:
PT_R17 = 17 // ptrace.h:81:1:
PT_R18 = 18 // ptrace.h:82:1:
PT_R19 = 19 // ptrace.h:83:1:
PT_R2 = 2 // ptrace.h:66:1:
PT_R20 = 20 // ptrace.h:84:1:
PT_R21 = 21 // ptrace.h:85:1:
PT_R22 = 22 // ptrace.h:86:1:
PT_R23 = 23 // ptrace.h:87:1:
PT_R24 = 24 // ptrace.h:88:1:
PT_R25 = 25 // ptrace.h:89:1:
PT_R26 = 26 // ptrace.h:90:1:
PT_R27 = 27 // ptrace.h:91:1:
PT_R28 = 28 // ptrace.h:92:1:
PT_R29 = 29 // ptrace.h:93:1:
PT_R3 = 3 // ptrace.h:67:1:
PT_R30 = 30 // ptrace.h:94:1:
PT_R31 = 31 // ptrace.h:95:1:
PT_R4 = 4 // ptrace.h:68:1:
PT_R5 = 5 // ptrace.h:69:1:
PT_R6 = 6 // ptrace.h:70:1:
PT_R7 = 7 // ptrace.h:71:1:
PT_R8 = 8 // ptrace.h:72:1:
PT_R9 = 9 // ptrace.h:73:1:
PT_REGS_COUNT = 44 // ptrace.h:114:1:
PT_RESULT = 43 // ptrace.h:112:1:
PT_SOFTE = 39 // ptrace.h:107:1:
PT_TRAP = 40 // ptrace.h:109:1:
PT_VR0 = 82 // ptrace.h:128:1:
PT_VRSAVE = 148 // ptrace.h:130:1:
PT_VSCR = 147 // ptrace.h:129:1:
PT_VSR0 = 150 // ptrace.h:136:1:
PT_VSR31 = 212 // ptrace.h:137:1:
PT_XER = 37 // ptrace.h:102:1:
R_PPC64_ADDR14 = 7 // elf.h:175:1:
R_PPC64_ADDR14_BRNTAKEN = 9 // elf.h:177:1:
R_PPC64_ADDR14_BRTAKEN = 8 // elf.h:176:1:
R_PPC64_ADDR16 = 3 // elf.h:171:1:
R_PPC64_ADDR16_DS = 56 // elf.h:225:1:
R_PPC64_ADDR16_HA = 6 // elf.h:174:1:
R_PPC64_ADDR16_HI = 5 // elf.h:173:1:
R_PPC64_ADDR16_HIGHER = 39 // elf.h:207:1:
R_PPC64_ADDR16_HIGHERA = 40 // elf.h:208:1:
R_PPC64_ADDR16_HIGHEST = 41 // elf.h:209:1:
R_PPC64_ADDR16_HIGHESTA = 42 // elf.h:210:1:
R_PPC64_ADDR16_LO = 4 // elf.h:172:1:
R_PPC64_ADDR16_LO_DS = 57 // elf.h:226:1:
R_PPC64_ADDR24 = 2 // elf.h:170:1:
R_PPC64_ADDR30 = 37 // elf.h:205:1:
R_PPC64_ADDR32 = 1 // elf.h:169:1:
R_PPC64_ADDR64 = 38 // elf.h:206:1:
R_PPC64_COPY = 19 // elf.h:187:1:
R_PPC64_DTPMOD64 = 68 // elf.h:239:1:
R_PPC64_DTPREL16 = 74 // elf.h:245:1:
R_PPC64_DTPREL16_DS = 101 // elf.h:272:1:
R_PPC64_DTPREL16_HA = 77 // elf.h:248:1:
R_PPC64_DTPREL16_HI = 76 // elf.h:247:1:
R_PPC64_DTPREL16_HIGHER = 103 // elf.h:274:1:
R_PPC64_DTPREL16_HIGHERA = 104 // elf.h:275:1:
R_PPC64_DTPREL16_HIGHEST = 105 // elf.h:276:1:
R_PPC64_DTPREL16_HIGHESTA = 106 // elf.h:277:1:
R_PPC64_DTPREL16_LO = 75 // elf.h:246:1:
R_PPC64_DTPREL16_LO_DS = 102 // elf.h:273:1:
R_PPC64_DTPREL64 = 78 // elf.h:249:1:
R_PPC64_ENTRY = 118 // elf.h:282:1:
R_PPC64_GLOB_DAT = 20 // elf.h:188:1:
R_PPC64_GOT16 = 14 // elf.h:182:1:
R_PPC64_GOT16_DS = 58 // elf.h:227:1:
R_PPC64_GOT16_HA = 17 // elf.h:185:1:
R_PPC64_GOT16_HI = 16 // elf.h:184:1:
R_PPC64_GOT16_LO = 15 // elf.h:183:1:
R_PPC64_GOT16_LO_DS = 59 // elf.h:228:1:
R_PPC64_GOT_DTPREL16_DS = 91 // elf.h:262:1:
R_PPC64_GOT_DTPREL16_HA = 94 // elf.h:265:1:
R_PPC64_GOT_DTPREL16_HI = 93 // elf.h:264:1:
R_PPC64_GOT_DTPREL16_LO_DS = 92 // elf.h:263:1:
R_PPC64_GOT_TLSGD16 = 79 // elf.h:250:1:
R_PPC64_GOT_TLSGD16_HA = 82 // elf.h:253:1:
R_PPC64_GOT_TLSGD16_HI = 81 // elf.h:252:1:
R_PPC64_GOT_TLSGD16_LO = 80 // elf.h:251:1:
R_PPC64_GOT_TLSLD16 = 83 // elf.h:254:1:
R_PPC64_GOT_TLSLD16_HA = 86 // elf.h:257:1:
R_PPC64_GOT_TLSLD16_HI = 85 // elf.h:256:1:
R_PPC64_GOT_TLSLD16_LO = 84 // elf.h:255:1:
R_PPC64_GOT_TPREL16_DS = 87 // elf.h:258:1:
R_PPC64_GOT_TPREL16_HA = 90 // elf.h:261:1:
R_PPC64_GOT_TPREL16_HI = 89 // elf.h:260:1:
R_PPC64_GOT_TPREL16_LO_DS = 88 // elf.h:259:1:
R_PPC64_JMP_SLOT = 21 // elf.h:189:1:
R_PPC64_NONE = 0 // elf.h:168:1:
R_PPC64_NUM = 253 // elf.h:290:1:
R_PPC64_PLT16_HA = 31 // elf.h:199:1:
R_PPC64_PLT16_HI = 30 // elf.h:198:1:
R_PPC64_PLT16_LO = 29 // elf.h:197:1:
R_PPC64_PLT16_LO_DS = 60 // elf.h:229:1:
R_PPC64_PLT32 = 27 // elf.h:195:1:
R_PPC64_PLT64 = 45 // elf.h:213:1:
R_PPC64_PLTGOT16 = 52 // elf.h:220:1:
R_PPC64_PLTGOT16_DS = 65 // elf.h:234:1:
R_PPC64_PLTGOT16_HA = 55 // elf.h:223:1:
R_PPC64_PLTGOT16_HI = 54 // elf.h:222:1:
R_PPC64_PLTGOT16_LO = 53 // elf.h:221:1:
R_PPC64_PLTGOT16_LO_DS = 66 // elf.h:235:1:
R_PPC64_PLTREL32 = 28 // elf.h:196:1:
R_PPC64_PLTREL64 = 46 // elf.h:214:1:
R_PPC64_REL14 = 11 // elf.h:179:1:
R_PPC64_REL14_BRNTAKEN = 13 // elf.h:181:1:
R_PPC64_REL14_BRTAKEN = 12 // elf.h:180:1:
R_PPC64_REL16 = 249 // elf.h:284:1:
R_PPC64_REL16_HA = 252 // elf.h:287:1:
R_PPC64_REL16_HI = 251 // elf.h:286:1:
R_PPC64_REL16_LO = 250 // elf.h:285:1:
R_PPC64_REL24 = 10 // elf.h:178:1:
R_PPC64_REL32 = 26 // elf.h:194:1:
R_PPC64_REL64 = 44 // elf.h:212:1:
R_PPC64_RELATIVE = 22 // elf.h:190:1:
R_PPC64_SECTOFF = 33 // elf.h:201:1:
R_PPC64_SECTOFF_DS = 61 // elf.h:230:1:
R_PPC64_SECTOFF_HA = 36 // elf.h:204:1:
R_PPC64_SECTOFF_HI = 35 // elf.h:203:1:
R_PPC64_SECTOFF_LO = 34 // elf.h:202:1:
R_PPC64_SECTOFF_LO_DS = 62 // elf.h:231:1:
R_PPC64_TLS = 67 // elf.h:238:1:
R_PPC64_TLSGD = 107 // elf.h:278:1:
R_PPC64_TLSLD = 108 // elf.h:279:1:
R_PPC64_TOC = 51 // elf.h:219:1:
R_PPC64_TOC16 = 47 // elf.h:215:1:
R_PPC64_TOC16_DS = 63 // elf.h:232:1:
R_PPC64_TOC16_HA = 50 // elf.h:218:1:
R_PPC64_TOC16_HI = 49 // elf.h:217:1:
R_PPC64_TOC16_LO = 48 // elf.h:216:1:
R_PPC64_TOC16_LO_DS = 64 // elf.h:233:1:
R_PPC64_TOCSAVE = 109 // elf.h:280:1:
R_PPC64_TPREL16 = 69 // elf.h:240:1:
R_PPC64_TPREL16_DS = 95 // elf.h:266:1:
R_PPC64_TPREL16_HA = 72 // elf.h:243:1:
R_PPC64_TPREL16_HI = 71 // elf.h:242:1:
R_PPC64_TPREL16_HIGHER = 97 // elf.h:268:1:
R_PPC64_TPREL16_HIGHERA = 98 // elf.h:269:1:
R_PPC64_TPREL16_HIGHEST = 99 // elf.h:270:1:
R_PPC64_TPREL16_HIGHESTA = 100 // elf.h:271:1:
R_PPC64_TPREL16_LO = 70 // elf.h:241:1:
R_PPC64_TPREL16_LO_DS = 96 // elf.h:267:1:
R_PPC64_TPREL64 = 73 // elf.h:244:1:
R_PPC64_UADDR16 = 25 // elf.h:193:1:
R_PPC64_UADDR32 = 24 // elf.h:192:1:
R_PPC64_UADDR64 = 43 // elf.h:211:1:
R_PPC_ADDR14 = 7 // elf.h:28:1:
R_PPC_ADDR14_BRNTAKEN = 9 // elf.h:30:1:
R_PPC_ADDR14_BRTAKEN = 8 // elf.h:29:1:
R_PPC_ADDR16 = 3 // elf.h:24:1:
R_PPC_ADDR16_HA = 6 // elf.h:27:1:
R_PPC_ADDR16_HI = 5 // elf.h:26:1:
R_PPC_ADDR16_LO = 4 // elf.h:25:1:
R_PPC_ADDR24 = 2 // elf.h:23:1:
R_PPC_ADDR32 = 1 // elf.h:22:1:
R_PPC_COPY = 19 // elf.h:40:1:
R_PPC_DTPMOD32 = 68 // elf.h:61:1:
R_PPC_DTPREL16 = 74 // elf.h:67:1:
R_PPC_DTPREL16_HA = 77 // elf.h:70:1:
R_PPC_DTPREL16_HI = 76 // elf.h:69:1:
R_PPC_DTPREL16_LO = 75 // elf.h:68:1:
R_PPC_DTPREL32 = 78 // elf.h:71:1:
R_PPC_GLOB_DAT = 20 // elf.h:41:1:
R_PPC_GOT16 = 14 // elf.h:35:1:
R_PPC_GOT16_HA = 17 // elf.h:38:1:
R_PPC_GOT16_HI = 16 // elf.h:37:1:
R_PPC_GOT16_LO = 15 // elf.h:36:1:
R_PPC_GOT_DTPREL16 = 91 // elf.h:84:1:
R_PPC_GOT_DTPREL16_HA = 94 // elf.h:87:1:
R_PPC_GOT_DTPREL16_HI = 93 // elf.h:86:1:
R_PPC_GOT_DTPREL16_LO = 92 // elf.h:85:1:
R_PPC_GOT_TLSGD16 = 79 // elf.h:72:1:
R_PPC_GOT_TLSGD16_HA = 82 // elf.h:75:1:
R_PPC_GOT_TLSGD16_HI = 81 // elf.h:74:1:
R_PPC_GOT_TLSGD16_LO = 80 // elf.h:73:1:
R_PPC_GOT_TLSLD16 = 83 // elf.h:76:1:
R_PPC_GOT_TLSLD16_HA = 86 // elf.h:79:1:
R_PPC_GOT_TLSLD16_HI = 85 // elf.h:78:1:
R_PPC_GOT_TLSLD16_LO = 84 // elf.h:77:1:
R_PPC_GOT_TPREL16 = 87 // elf.h:80:1:
R_PPC_GOT_TPREL16_HA = 90 // elf.h:83:1:
R_PPC_GOT_TPREL16_HI = 89 // elf.h:82:1:
R_PPC_GOT_TPREL16_LO = 88 // elf.h:81:1:
R_PPC_JMP_SLOT = 21 // elf.h:42:1:
R_PPC_LOCAL24PC = 23 // elf.h:44:1:
R_PPC_NONE = 0 // elf.h:21:1:
R_PPC_NUM = 95 // elf.h:90:1:
R_PPC_PLT16_HA = 31 // elf.h:52:1:
R_PPC_PLT16_HI = 30 // elf.h:51:1:
R_PPC_PLT16_LO = 29 // elf.h:50:1:
R_PPC_PLT32 = 27 // elf.h:48:1:
R_PPC_PLTREL24 = 18 // elf.h:39:1:
R_PPC_PLTREL32 = 28 // elf.h:49:1:
R_PPC_REL14 = 11 // elf.h:32:1:
R_PPC_REL14_BRNTAKEN = 13 // elf.h:34:1:
R_PPC_REL14_BRTAKEN = 12 // elf.h:33:1:
R_PPC_REL24 = 10 // elf.h:31:1:
R_PPC_REL32 = 26 // elf.h:47:1:
R_PPC_RELATIVE = 22 // elf.h:43:1:
R_PPC_SDAREL16 = 32 // elf.h:53:1:
R_PPC_SECTOFF = 33 // elf.h:54:1:
R_PPC_SECTOFF_HA = 36 // elf.h:57:1:
R_PPC_SECTOFF_HI = 35 // elf.h:56:1:
R_PPC_SECTOFF_LO = 34 // elf.h:55:1:
R_PPC_TLS = 67 // elf.h:60:1:
R_PPC_TPREL16 = 69 // elf.h:62:1:
R_PPC_TPREL16_HA = 72 // elf.h:65:1:
R_PPC_TPREL16_HI = 71 // elf.h:64:1:
R_PPC_TPREL16_LO = 70 // elf.h:63:1:
R_PPC_TPREL32 = 73 // elf.h:66:1:
R_PPC_UADDR16 = 25 // elf.h:46:1:
R_PPC_UADDR32 = 24 // elf.h:45:1:
SA_INTERRUPT = 0x20000000 // sigaction.h:70:1:
SA_NOCLDSTOP = 1 // sigaction.h:56:1:
SA_NOCLDWAIT = 2 // sigaction.h:57:1:
SA_NODEFER = 0x40000000 // sigaction.h:65:1:
SA_NOMASK = 1073741824 // sigaction.h:73:1:
SA_ONESHOT = 2147483648 // sigaction.h:74:1:
SA_ONSTACK = 0x08000000 // sigaction.h:61:1:
SA_RESETHAND = 0x80000000 // sigaction.h:67:1:
SA_RESTART = 0x10000000 // sigaction.h:64:1:
SA_SIGINFO = 4 // sigaction.h:58:1:
SA_STACK = 134217728 // sigaction.h:75:1:
SIGABRT = 6 // signum-generic.h:50:1:
SIGALRM = 14 // signum-generic.h:63:1:
SIGBUS = 7 // signum.h:35:1:
SIGCHLD = 17 // signum.h:41:1:
SIGCLD = 17 // signum-generic.h:88:1:
SIGCONT = 18 // signum.h:43:1:
SIGFPE = 8 // signum-generic.h:51:1:
SIGHUP = 1 // signum-generic.h:56:1:
SIGILL = 4 // signum-generic.h:49:1:
SIGINT = 2 // signum-generic.h:48:1:
SIGIO = 29 // signum-generic.h:86:1:
SIGIOT = 6 // signum-generic.h:87:1:
SIGKILL = 9 // signum-generic.h:59:1:
SIGPIPE = 13 // signum-generic.h:62:1:
SIGPOLL = 29 // signum.h:51:1:
SIGPROF = 27 // signum-generic.h:77:1:
SIGPWR = 30 // signum.h:32:1:
SIGQUIT = 3 // signum-generic.h:57:1:
SIGSEGV = 11 // signum-generic.h:52:1:
SIGSTKFLT = 16 // signum.h:31:1:
SIGSTKSZ = 16384 // sigstack.h:30:1:
SIGSTOP = 19 // signum.h:45:1:
SIGSYS = 31 // signum.h:53:1:
SIGTERM = 15 // signum-generic.h:53:1:
SIGTRAP = 5 // signum-generic.h:58:1:
SIGTSTP = 20 // signum.h:47:1:
SIGTTIN = 21 // signum-generic.h:71:1:
SIGTTOU = 22 // signum-generic.h:72:1:
SIGURG = 23 // signum.h:49:1:
SIGUSR1 = 10 // signum.h:37:1:
SIGUSR2 = 12 // signum.h:39:1:
SIGVTALRM = 26 // signum-generic.h:76:1:
SIGWINCH = 28 // signum-generic.h:83:1:
SIGXCPU = 24 // signum-generic.h:74:1:
SIGXFSZ = 25 // signum-generic.h:75:1:
SIG_BLOCK = 0 // sigaction.h:79:1:
SIG_SETMASK = 2 // sigaction.h:81:1:
SIG_UNBLOCK = 1 // sigaction.h:80:1:
X_ARCH_PPC = 1 // <predefined>:198:1:
X_ARCH_PPC64 = 1 // <predefined>:402:1:
X_ARCH_PPCGR = 1 // <predefined>:15:1:
X_ARCH_PPCSQ = 1 // <predefined>:43:1:
X_ARCH_PWR4 = 1 // <predefined>:381:1:
X_ARCH_PWR5 = 1 // <predefined>:90:1:
X_ARCH_PWR5X = 1 // <predefined>:137:1:
X_ARCH_PWR6 = 1 // <predefined>:91:1:
X_ARCH_PWR7 = 1 // <predefined>:92:1:
X_ARCH_PWR8 = 1 // <predefined>:93:1:
X_ASM_GENERIC_INT_L64_H = 0 // int-l64.h:10:1:
X_ASM_POWERPC_AUXVEC_H = 0 // auxvec.h:3:1:
X_ASM_POWERPC_ELF_H = 0 // elf.h:11:1:
X_ASM_POWERPC_POSIX_TYPES_H = 0 // posix_types.h:3:1:
X_ASM_POWERPC_PTRACE_H = 0 // ptrace.h:25:1:
X_ASM_POWERPC_SIGCONTEXT_H = 0 // sigcontext.h:3:1:
X_ASM_POWERPC_TYPES_H = 0 // types.h:15:1:
X_ATFILE_SOURCE = 1 // features.h:342:1:
X_BITS_ENDIANNESS_H = 1 // endianness.h:2:1:
X_BITS_ENDIAN_H = 1 // endian.h:20:1:
X_BITS_PTHREADTYPES_ARCH_H = 1 // pthreadtypes-arch.h:21:1:
X_BITS_PTHREADTYPES_COMMON_H = 1 // pthreadtypes.h:20:1:
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | true |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/signal_netbsd_amd64.go | vendor/modernc.org/libc/signal/signal_netbsd_amd64.go | // Code generated by 'ccgo signal/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 signal/signal_netbsd_amd64.go -pkgname signal', DO NOT EDIT.
package signal
import (
"math"
"reflect"
"sync/atomic"
"unsafe"
)
var _ = math.Pi
var _ reflect.Kind
var _ atomic.Value
var _ unsafe.Pointer
const (
BIG_ENDIAN = 4321 // endian.h:101:1:
BUS_ADRALN = 1 // siginfo.h:239:1:
BUS_ADRERR = 2 // siginfo.h:240:1:
BUS_OBJERR = 3 // siginfo.h:241:1:
BYTE_ORDER = 1234 // endian.h:103:1:
CLD_CONTINUED = 6 // siginfo.h:261:1:
CLD_DUMPED = 3 // siginfo.h:257:1:
CLD_EXITED = 1 // siginfo.h:254:1:
CLD_KILLED = 2 // siginfo.h:255:1:
CLD_STOPPED = 5 // siginfo.h:260:1:
CLD_TRAPPED = 4 // siginfo.h:259:1:
FD_SETSIZE = 256 // fd_set.h:59:1:
FPE_FLTDIV = 3 // siginfo.h:227:1:
FPE_FLTINV = 7 // siginfo.h:231:1:
FPE_FLTOVF = 4 // siginfo.h:228:1:
FPE_FLTRES = 6 // siginfo.h:230:1:
FPE_FLTSUB = 8 // siginfo.h:232:1:
FPE_FLTUND = 5 // siginfo.h:229:1:
FPE_INTDIV = 1 // siginfo.h:225:1:
FPE_INTOVF = 2 // siginfo.h:226:1:
ILL_BADSTK = 8 // siginfo.h:222:1:
ILL_COPROC = 7 // siginfo.h:221:1:
ILL_ILLADR = 3 // siginfo.h:217:1:
ILL_ILLOPC = 1 // siginfo.h:215:1:
ILL_ILLOPN = 2 // siginfo.h:216:1:
ILL_ILLTRP = 4 // siginfo.h:218:1:
ILL_PRVOPC = 5 // siginfo.h:219:1:
ILL_PRVREG = 6 // siginfo.h:220:1:
INT16_MAX = 32767 // common_int_limits.h:53:1:
INT16_MIN = -32768 // common_int_limits.h:47:1:
INT32_MAX = 2147483647 // common_int_limits.h:54:1:
INT32_MIN = -2147483648 // common_int_limits.h:48:1:
INT64_MAX = 9223372036854775807 // common_int_limits.h:55:1:
INT64_MIN = -9223372036854775808 // common_int_limits.h:49:1:
INT8_MAX = 127 // common_int_limits.h:52:1:
INT8_MIN = -128 // common_int_limits.h:46:1:
INTMAX_MAX = 9223372036854775807 // common_int_limits.h:111:1:
INTMAX_MIN = -9223372036854775808 // common_int_limits.h:110:1:
INTPTR_MAX = 9223372036854775807 // common_int_limits.h:105:1:
INTPTR_MIN = -9223372036854775808 // common_int_limits.h:104:1:
INT_FAST16_MAX = 2147483647 // common_int_limits.h:93:1:
INT_FAST16_MIN = -2147483648 // common_int_limits.h:87:1:
INT_FAST32_MAX = 2147483647 // common_int_limits.h:94:1:
INT_FAST32_MIN = -2147483648 // common_int_limits.h:88:1:
INT_FAST64_MAX = 9223372036854775807 // common_int_limits.h:95:1:
INT_FAST64_MIN = -9223372036854775808 // common_int_limits.h:89:1:
INT_FAST8_MAX = 2147483647 // common_int_limits.h:92:1:
INT_FAST8_MIN = -2147483648 // common_int_limits.h:86:1:
INT_LEAST16_MAX = 32767 // common_int_limits.h:73:1:
INT_LEAST16_MIN = -32768 // common_int_limits.h:67:1:
INT_LEAST32_MAX = 2147483647 // common_int_limits.h:74:1:
INT_LEAST32_MIN = -2147483648 // common_int_limits.h:68:1:
INT_LEAST64_MAX = 9223372036854775807 // common_int_limits.h:75:1:
INT_LEAST64_MIN = -9223372036854775808 // common_int_limits.h:69:1:
INT_LEAST8_MAX = 127 // common_int_limits.h:72:1:
INT_LEAST8_MIN = -128 // common_int_limits.h:66:1:
LITTLE_ENDIAN = 1234 // endian.h:100:1:
MINSIGSTKSZ = 8192 // signal.h:189:1:
NBBY = 8 // types.h:316:1:
NFDBITS = 32 // fd_set.h:93:1:
NODEVMAJOR = -1 // types.h:258:1:
NSIG = 64 // signal.h:48:1:
PDP_ENDIAN = 3412 // endian.h:102:1:
POLL_ERR = 4 // siginfo.h:267:1:
POLL_HUP = 6 // siginfo.h:269:1:
POLL_IN = 1 // siginfo.h:264:1:
POLL_MSG = 3 // siginfo.h:266:1:
POLL_OUT = 2 // siginfo.h:265:1:
POLL_PRI = 5 // siginfo.h:268:1:
PTRDIFF_MAX = 9223372036854775807 // common_int_limits.h:121:1:
PTRDIFF_MIN = -9223372036854775808 // common_int_limits.h:120:1:
SA_NOCLDSTOP = 0x0008 // signal.h:151:1:
SA_NOCLDWAIT = 0x0020 // signal.h:152:1:
SA_NODEFER = 0x0010 // signal.h:148:1:
SA_NOKERNINFO = 0x0080 // signal.h:158:1:
SA_ONSTACK = 0x0001 // signal.h:145:1:
SA_RESETHAND = 0x0004 // signal.h:147:1:
SA_RESTART = 0x0002 // signal.h:146:1:
SA_SIGINFO = 0x0040 // signal.h:155:1:
SEGV_ACCERR = 2 // siginfo.h:236:1:
SEGV_MAPERR = 1 // siginfo.h:235:1:
SIGABRT = 6 // signal.h:57:1:
SIGALRM = 14 // signal.h:66:1:
SIGBUS = 10 // signal.h:62:1:
SIGCHLD = 20 // signal.h:72:1:
SIGCONT = 19 // signal.h:71:1:
SIGEMT = 7 // signal.h:59:1:
SIGEV_NONE = 0 // signal.h:224:1:
SIGEV_SA = 3 // signal.h:228:1:
SIGEV_SIGNAL = 1 // signal.h:225:1:
SIGEV_THREAD = 2 // signal.h:226:1:
SIGFPE = 8 // signal.h:60:1:
SIGHUP = 1 // signal.h:52:1:
SIGILL = 4 // signal.h:55:1:
SIGINFO = 29 // signal.h:81:1:
SIGINT = 2 // signal.h:53:1:
SIGIO = 23 // signal.h:75:1:
SIGIOT = 6 // signal.h:58:1:
SIGKILL = 9 // signal.h:61:1:
SIGPIPE = 13 // signal.h:65:1:
SIGPROF = 27 // signal.h:79:1:
SIGPWR = 32 // signal.h:84:1:
SIGQUIT = 3 // signal.h:54:1:
SIGRTMAX = 63 // signal.h:86:1:
SIGRTMIN = 33 // signal.h:85:1:
SIGSEGV = 11 // signal.h:63:1:
SIGSTKSZ = 40960 // signal.h:190:1:
SIGSTOP = 17 // signal.h:69:1:
SIGSYS = 12 // signal.h:64:1:
SIGTERM = 15 // signal.h:67:1:
SIGTRAP = 5 // signal.h:56:1:
SIGTSTP = 18 // signal.h:70:1:
SIGTTIN = 21 // signal.h:73:1:
SIGTTOU = 22 // signal.h:74:1:
SIGURG = 16 // signal.h:68:1:
SIGUSR1 = 30 // signal.h:82:1:
SIGUSR2 = 31 // signal.h:83:1:
SIGVTALRM = 26 // signal.h:78:1:
SIGWINCH = 28 // signal.h:80:1:
SIGXCPU = 24 // signal.h:76:1:
SIGXFSZ = 25 // signal.h:77:1:
SIG_ATOMIC_MAX = 2147483647 // common_int_limits.h:125:1:
SIG_ATOMIC_MIN = -2147483648 // common_int_limits.h:124:1:
SIG_BLOCK = 1 // signal.h:167:1:
SIG_SETMASK = 3 // signal.h:169:1:
SIG_UNBLOCK = 2 // signal.h:168:1:
SIZE_MAX = 18446744073709551615 // common_int_limits.h:128:1:
SI_ASYNCIO = -3 // siginfo.h:277:1:
SI_LWP = -5 // siginfo.h:282:1:
SI_MESGQ = -4 // siginfo.h:279:1:
SI_NOINFO = 32767 // siginfo.h:283:1:
SI_QUEUE = -1 // siginfo.h:274:1:
SI_TIMER = -2 // siginfo.h:275:1:
SI_USER = 0 // siginfo.h:273:1:
SS_DISABLE = 0x0004 // signal.h:185:1:
SS_ONSTACK = 0x0001 // signal.h:184:1:
TC_FLAGMASK = 2147483648 // trap.h:70:1:
TC_TSS = 0x80000000 // trap.h:69:1:
TRAP_BRKPT = 1 // siginfo.h:244:1:
TRAP_CHLD = 4 // siginfo.h:247:1:
TRAP_DBREG = 6 // siginfo.h:249:1:
TRAP_EXEC = 3 // siginfo.h:246:1:
TRAP_LWP = 5 // siginfo.h:248:1:
TRAP_SCE = 7 // siginfo.h:250:1:
TRAP_SCX = 8 // siginfo.h:251:1:
TRAP_TRACE = 2 // siginfo.h:245:1:
T_ALIGNFLT = 7 // trap.h:49:1:
T_ARITHTRAP = 2 // trap.h:44:1:
T_ASTFLT = 3 // trap.h:45:1:
T_BOUND = 11 // trap.h:53:1:
T_BPTFLT = 1 // trap.h:43:1:
T_DIVIDE = 8 // trap.h:50:1:
T_DNA = 12 // trap.h:54:1:
T_DOUBLEFLT = 13 // trap.h:55:1:
T_FPOPFLT = 14 // trap.h:56:1:
T_MCA = 18 // trap.h:60:1:
T_NMI = 9 // trap.h:51:1:
T_OFLOW = 10 // trap.h:52:1:
T_PAGEFLT = 6 // trap.h:48:1:
T_PRIVINFLT = 0 // trap.h:42:1:
T_PROTFLT = 4 // trap.h:46:1:
T_RESERVED = 20 // trap.h:62:1:
T_SEGNPFLT = 16 // trap.h:58:1:
T_STKFLT = 17 // trap.h:59:1:
T_TRCTRAP = 5 // trap.h:47:1:
T_TSSFLT = 15 // trap.h:57:1:
T_USER = 0x100 // trap.h:65:1:
T_XMM = 19 // trap.h:61:1:
UINT16_MAX = 65535 // common_int_limits.h:59:1:
UINT32_MAX = 4294967295 // common_int_limits.h:60:1:
UINT64_MAX = 18446744073709551615 // common_int_limits.h:61:1:
UINT8_MAX = 255 // common_int_limits.h:58:1:
UINTMAX_MAX = 18446744073709551615 // common_int_limits.h:112:1:
UINTPTR_MAX = 18446744073709551615 // common_int_limits.h:106:1:
UINT_FAST16_MAX = 4294967295 // common_int_limits.h:99:1:
UINT_FAST32_MAX = 4294967295 // common_int_limits.h:100:1:
UINT_FAST64_MAX = 18446744073709551615 // common_int_limits.h:101:1:
UINT_FAST8_MAX = 4294967295 // common_int_limits.h:98:1:
UINT_LEAST16_MAX = 65535 // common_int_limits.h:79:1:
UINT_LEAST32_MAX = 4294967295 // common_int_limits.h:80:1:
UINT_LEAST64_MAX = 18446744073709551615 // common_int_limits.h:81:1:
UINT_LEAST8_MAX = 255 // common_int_limits.h:78:1:
WCHAR_MAX = 0x7fffffff // wchar_limits.h:41:1:
WCHAR_MIN = -2147483648 // wchar_limits.h:40:1:
WINT_MAX = 0x7fffffff // wchar_limits.h:45:1:
WINT_MIN = -2147483648 // wchar_limits.h:44:1:
X_AMD64_BYTE_SWAP_H_ = 0 // byte_swap.h:37:1:
X_AMD64_FRAME_REGS_H_ = 0 // frame_regs.h:4:1:
X_AMD64_INT_CONST_H_ = 0 // int_const.h:33:1:
X_AMD64_INT_LIMITS_H_ = 0 // int_limits.h:33:1:
X_AMD64_INT_MWGWTYPES_H_ = 0 // int_mwgwtypes.h:33:1:
X_AMD64_INT_TYPES_H_ = 0 // int_types.h:35:1:
X_AMD64_MCONTEXT_H_ = 0 // mcontext.h:33:1:
X_AMD64_SIGNAL_H_ = 0 // signal.h:35:1:
X_AMD64_WCHAR_LIMITS_H_ = 0 // wchar_limits.h:33:1:
X_BIG_ENDIAN = 4321 // endian.h:44:1:
X_BSD_INT16_T_ = 0 // types.h:65:1:
X_BSD_INT32_T_ = 0 // types.h:75:1:
X_BSD_INT64_T_ = 0 // types.h:85:1:
X_BSD_INT8_T_ = 0 // types.h:55:1:
X_BSD_INTPTR_T_ = 0 // stdint.h:80:1:
X_BSD_UINT16_T_ = 0 // types.h:70:1:
X_BSD_UINT32_T_ = 0 // types.h:80:1:
X_BSD_UINT64_T_ = 0 // types.h:90:1:
X_BSD_UINT8_T_ = 0 // types.h:60:1:
X_BSD_UINTPTR_T_ = 0 // stdint.h:85:1:
X_BYTE_ORDER = 1234 // endian_machdep.h:3:1:
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_LIB_PTHREAD_TYPES_H = 0 // pthread_types.h:33:1:
X_LITTLE_ENDIAN = 1234 // endian.h:43:1:
X_LP64 = 1 // <predefined>:268:1:
X_NETBSD_SOURCE = 1 // featuretest.h:70:1:
X_NSIG = 64 // signal.h:45:1:
X_PDP_ENDIAN = 3412 // endian.h:45:1:
X_PT_BARRIERATTR_DEAD = 0xDEAD0808 // pthread_types.h:278:1:
X_PT_BARRIERATTR_MAGIC = 0x88880808 // pthread_types.h:277:1:
X_PT_BARRIER_DEAD = 0xDEAD0008 // pthread_types.h:270:1:
X_PT_BARRIER_MAGIC = 0x88880008 // pthread_types.h:269:1:
X_PT_CONDATTR_DEAD = 0xDEAD0006 // pthread_types.h:197:1:
X_PT_CONDATTR_MAGIC = 0x66660006 // pthread_types.h:196:1:
X_PT_COND_DEAD = 0xDEAD0005 // pthread_types.h:182:1:
X_PT_COND_MAGIC = 0x55550005 // pthread_types.h:181:1:
X_PT_MUTEXATTR_DEAD = 0xDEAD0004 // pthread_types.h:167:1:
X_PT_MUTEXATTR_MAGIC = 0x44440004 // pthread_types.h:166:1:
X_PT_MUTEX_DEAD = 0xDEAD0003 // pthread_types.h:139:1:
X_PT_MUTEX_MAGIC = 0x33330003 // pthread_types.h:138:1:
X_PT_RWLOCKATTR_DEAD = 0xDEAD0909 // pthread_types.h:253:1:
X_PT_RWLOCKATTR_MAGIC = 0x99990909 // pthread_types.h:252:1:
X_PT_RWLOCK_DEAD = 0xDEAD0009 // pthread_types.h:236:1:
X_PT_RWLOCK_MAGIC = 0x99990009 // pthread_types.h:235:1:
X_PT_SPINLOCK_DEAD = 0xDEAD0007 // pthread_types.h:213:1:
X_PT_SPINLOCK_MAGIC = 0x77770007 // pthread_types.h:212:1:
X_PT_SPINLOCK_PSHARED = 0x00000001 // pthread_types.h:214:1:
X_QUAD_HIGHWORD = 1 // endian.h:84:1:
X_QUAD_LOWWORD = 0 // endian.h:85:1:
X_SIGNAL_H_ = 0 // signal.h:35:1:
X_SIZE_T = 0 // types.h:279:1:
X_SYS_ANSI_H_ = 0 // ansi.h:33:1:
X_SYS_BSWAP_H_ = 0 // bswap.h:6:1:
X_SYS_CDEFS_ELF_H_ = 0 // cdefs_elf.h:31:1:
X_SYS_CDEFS_H_ = 0 // cdefs.h:37:1:
X_SYS_COMMON_ANSI_H_ = 0 // common_ansi.h:33:1:
X_SYS_COMMON_INT_LIMITS_H_ = 0 // common_int_limits.h:33:1:
X_SYS_COMMON_INT_MWGWTYPES_H_ = 0 // common_int_mwgwtypes.h:33:1:
X_SYS_COMMON_INT_TYPES_H_ = 0 // common_int_types.h:33:1:
X_SYS_ENDIAN_H_ = 0 // endian.h:35:1:
X_SYS_FD_SET_H_ = 0 // fd_set.h:35:1:
X_SYS_SIGINFO_H_ = 0 // siginfo.h:33:1:
X_SYS_SIGNAL_H_ = 0 // signal.h:40:1:
X_SYS_SIGTYPES_H_ = 0 // sigtypes.h:40:1:
X_SYS_STDINT_H_ = 0 // stdint.h:33:1:
X_SYS_TIMESPEC_H_ = 0 // timespec.h:38:1:
X_SYS_TYPES_H_ = 0 // types.h:40:1:
X_SYS_UCONTEXT_H_ = 0 // ucontext.h:33:1:
X_UC_CLRSTACK = 0x00020000 // mcontext.h:83:1:
X_UC_CPU = 0x04 // ucontext.h:58:1:
X_UC_FPU = 0x08 // ucontext.h:59:1:
X_UC_MD = 0x400f0020 // ucontext.h:60:1:
X_UC_SETSTACK = 0x00010000 // mcontext.h:82:1:
X_UC_SIGMASK = 0x01 // ucontext.h:56:1:
X_UC_STACK = 0x02 // ucontext.h:57:1:
X_UC_TLSBASE = 0x00080000 // mcontext.h:77:1:
X_UC_UCONTEXT_ALIGN = -16 // mcontext.h:67:1:
X_X86_64_BSWAP_H_ = 0 // bswap.h:6:1:
X_X86_64_CDEFS_H_ = 0 // cdefs.h:4:1:
X_X86_64_TYPES_H_ = 0 // types.h:35:1:
)
// Get the "code" values
// $NetBSD: trap.h,v 1.1 2003/04/26 18:39:48 fvdl Exp $
// $NetBSD: trap.h,v 1.2 2003/08/07 16:30:33 agc Exp $
// -
// Copyright (c) 1990 The Regents of the University of California.
// All rights reserved.
//
// This code is derived from software contributed to Berkeley by
// William Jolitz.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// @(#)trap.h 5.4 (Berkeley) 5/9/91
// Trap type values
// also known in trap.c for name strings
// Trap's coming from user mode
// Flags kludged into the trap code
// $NetBSD: mcontext.h,v 1.19 2018/02/15 15:53:56 kamil Exp $
// -
// Copyright (c) 1999 The NetBSD Foundation, Inc.
// All rights reserved.
//
// This code is derived from software contributed to The NetBSD Foundation
// by Klaus Klein.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
//
// THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
// ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
// TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
// BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
// $NetBSD: frame_regs.h,v 1.7 2015/04/26 18:49:39 mrg Exp $
// amd64 registers (and friends) ordered as in a trap/interrupt/syscall frame.
// Also the indexes into the 'general register state' (__greg_t) passed to
// userland.
// Historically they were in the same order, but the order in the frames
// has been changed to improve syscall efficiency.
//
// Notes:
// 1) gdb (amd64nbsd-tdep.c) has a lookup table that assumes the __greg_t
// ordering.
// 2) src/lib/libc/arch/x86_64/gen/makecontext.c assumes that the first
// 6 entries in the __greg_t array match the registers used to pass
// function arguments.
// 3) The 'struct reg' from machine/reg.h has to match __greg_t.
// Since they are both arrays and indexed with the same tokens this
// shouldn't be a problem, but is rather confusing.
// This assumption is made in a lot of places!
// 4) There might be other code out there that relies on the ordering.
//
// The first entries below match the registers used for syscall arguments
// (%rcx is destroyed by the syscall instruction, the libc system call
// stubs copy %rcx to %r10).
// arg6-arg9 are copied from the user stack for system calls with more
// than 6 args (SYS_MAXSYSARGS is 8, + 2 entries for SYS___SYSCALL).
// General register state
const ( /* mcontext.h:43:1: */
X_REG_RDI = 0 /* tf_rdi */
X_REG_RSI = 1 /* tf_rsi */
X_REG_RDX = 2 /* tf_rdx */
X_REG_R10 = 6 /* tf_r10 */
X_REG_R8 = 4 /* tf_r8 */
X_REG_R9 = 5 /* tf_r9 */
X_REG_RCX = 3 /* tf_rcx */
X_REG_R11 = 7 /* tf_r11 */
X_REG_R12 = 8 /* tf_r12 */
X_REG_R13 = 9 /* tf_r13 */
X_REG_R14 = 10 /* tf_r14 */
X_REG_R15 = 11 /* tf_r15 */
X_REG_RBP = 12 /* tf_rbp */
X_REG_RBX = 13 /* tf_rbx */
X_REG_RAX = 14 /* tf_rax */
X_REG_GS = 15 /* tf_gs */
X_REG_FS = 16 /* tf_fs */
X_REG_ES = 17 /* tf_es */
X_REG_DS = 18 /* tf_ds */
X_REG_TRAPNO = 19 /* Below portion defined in hardware */
X_REG_ERR = 20 /* tf_err: Dummy inserted if not defined */
X_REG_RIP = 21 /* tf_rip */
X_REG_CS = 22 /* tf_cs */
X_REG_RFLAGS = 23 /* These are pushed unconditionally on the x86-64 */
X_REG_RSP = 24 /* tf_rsp */
X_REG_SS = 25
X_NGREG = 26
)
type Ptrdiff_t = int64 /* <builtin>:3:26 */
type Size_t = uint64 /* <builtin>:9:23 */
type Wchar_t = int32 /* <builtin>:15:24 */
type X__int128_t = struct {
Flo int64
Fhi int64
} /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
type X__uint128_t = struct {
Flo uint64
Fhi uint64
} /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
type X__float128 = float64 /* <builtin>:47:21 */
// return true if value 'a' fits in type 't'
// $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
// Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
// Public domain.
//
// NOTE: Do not protect this header against multiple inclusion. Doing
// so can have subtle side-effects due to header file inclusion order
// and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead,
// protect each CPP macro that we want to supply.
// Feature-test macros are defined by several standards, and allow an
// application to specify what symbols they want the system headers to
// expose, and hence what standard they want them to conform to.
// There are two classes of feature-test macros. The first class
// specify complete standards, and if one of these is defined, header
// files will try to conform to the relevant standard. They are:
//
// ANSI macros:
// _ANSI_SOURCE ANSI C89
//
// POSIX macros:
// _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?)
// _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990
// _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992
// _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993
// _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996
// _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001
// _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008
//
// X/Open macros:
// _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2
// _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions
// _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5
// _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2
// _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option
// _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option
//
// NetBSD macros:
// _NETBSD_SOURCE == 1 Make all NetBSD features available.
//
// If more than one of these "major" feature-test macros is defined,
// then the set of facilities provided (and namespace used) is the
// union of that specified by the relevant standards, and in case of
// conflict, the earlier standard in the above list has precedence (so
// if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
// of rename() that's used is the POSIX one). If none of the "major"
// feature-test macros is defined, _NETBSD_SOURCE is assumed.
//
// There are also "minor" feature-test macros, which enable extra
// functionality in addition to some base standard. They should be
// defined along with one of the "major" macros. The "minor" macros
// are:
//
// _REENTRANT
// _ISOC99_SOURCE
// _ISOC11_SOURCE
// _LARGEFILE_SOURCE Large File Support
// <http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
// $NetBSD: types.h,v 1.102 2018/11/06 16:26:44 maya Exp $
// -
// Copyright (c) 1982, 1986, 1991, 1993, 1994
// The Regents of the University of California. All rights reserved.
// (c) UNIX System Laboratories, Inc.
// All or some portions of this file are derived from material licensed
// to the University of California by American Telephone and Telegraph
// Co. or Unix System Laboratories, Inc. and are reproduced herein with
// the permission of UNIX System Laboratories, Inc.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// @(#)types.h 8.4 (Berkeley) 1/21/94
// $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
// Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
// Public domain.
//
// NOTE: Do not protect this header against multiple inclusion. Doing
// so can have subtle side-effects due to header file inclusion order
// and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead,
// protect each CPP macro that we want to supply.
// Feature-test macros are defined by several standards, and allow an
// application to specify what symbols they want the system headers to
// expose, and hence what standard they want them to conform to.
// There are two classes of feature-test macros. The first class
// specify complete standards, and if one of these is defined, header
// files will try to conform to the relevant standard. They are:
//
// ANSI macros:
// _ANSI_SOURCE ANSI C89
//
// POSIX macros:
// _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?)
// _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990
// _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992
// _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993
// _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996
// _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001
// _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008
//
// X/Open macros:
// _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2
// _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | true |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/signal_linux_arm.go | vendor/modernc.org/libc/signal/signal_linux_arm.go | // Code generated by 'ccgo signal/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o signal/signal_linux_arm.go -pkgname signal', DO NOT EDIT.
package signal
import (
"math"
"reflect"
"sync/atomic"
"unsafe"
)
var _ = math.Pi
var _ reflect.Kind
var _ atomic.Value
var _ unsafe.Pointer
const (
MINSIGSTKSZ = 2048
NGREG = 18
NSIG = 65
SA_INTERRUPT = 0x20000000
SA_NOCLDSTOP = 1
SA_NOCLDWAIT = 2
SA_NODEFER = 0x40000000
SA_NOMASK = 1073741824
SA_ONESHOT = 2147483648
SA_ONSTACK = 0x08000000
SA_RESETHAND = 0x80000000
SA_RESTART = 0x10000000
SA_SIGINFO = 4
SA_STACK = 134217728
SIGABRT = 6
SIGALRM = 14
SIGBUS = 7
SIGCHLD = 17
SIGCLD = 17
SIGCONT = 18
SIGFPE = 8
SIGHUP = 1
SIGILL = 4
SIGINT = 2
SIGIO = 29
SIGIOT = 6
SIGKILL = 9
SIGPIPE = 13
SIGPOLL = 29
SIGPROF = 27
SIGPWR = 30
SIGQUIT = 3
SIGSEGV = 11
SIGSTKFLT = 16
SIGSTKSZ = 8192
SIGSTOP = 19
SIGSYS = 31
SIGTERM = 15
SIGTRAP = 5
SIGTSTP = 20
SIGTTIN = 21
SIGTTOU = 22
SIGURG = 23
SIGUSR1 = 10
SIGUSR2 = 12
SIGVTALRM = 26
SIGWINCH = 28
SIGXCPU = 24
SIGXFSZ = 25
SIG_BLOCK = 0
SIG_SETMASK = 2
SIG_UNBLOCK = 1
X_ASMARM_SIGCONTEXT_H = 0
X_ATFILE_SOURCE = 1
X_BITS_ENDIANNESS_H = 1
X_BITS_ENDIAN_H = 1
X_BITS_PTHREADTYPES_ARCH_H = 1
X_BITS_PTHREADTYPES_COMMON_H = 1
X_BITS_SIGACTION_H = 1
X_BITS_SIGCONTEXT_H = 1
X_BITS_SIGEVENT_CONSTS_H = 1
X_BITS_SIGINFO_ARCH_H = 1
X_BITS_SIGINFO_CONSTS_H = 1
X_BITS_SIGNUM_GENERIC_H = 1
X_BITS_SIGNUM_H = 1
X_BITS_SIGSTACK_H = 1
X_BITS_SIGTHREAD_H = 1
X_BITS_SS_FLAGS_H = 1
X_BITS_TIME64_H = 1
X_BITS_TYPESIZES_H = 1
X_BITS_TYPES_H = 1
X_BSD_SIZE_T_ = 0
X_BSD_SIZE_T_DEFINED_ = 0
X_DEFAULT_SOURCE = 1
X_FEATURES_H = 1
X_FILE_OFFSET_BITS = 64
X_GCC_SIZE_T = 0
X_NSIG = 65
X_POSIX_C_SOURCE = 200809
X_POSIX_SOURCE = 1
X_SIGNAL_H = 0
X_SIZET_ = 0
X_SIZE_T = 0
X_SIZE_T_ = 0
X_SIZE_T_DECLARED = 0
X_SIZE_T_DEFINED = 0
X_SIZE_T_DEFINED_ = 0
X_STDC_PREDEF_H = 1
X_STRUCT_TIMESPEC = 1
X_SYS_CDEFS_H = 1
X_SYS_SIZE_T_H = 0
X_SYS_UCONTEXT_H = 1
X_THREAD_MUTEX_INTERNAL_H = 1
X_THREAD_SHARED_TYPES_H = 1
X_T_SIZE = 0
X_T_SIZE_ = 0
Linux = 1
Unix = 1
)
// POSIX names to access some of the members.
// sigevent constants. Linux version.
// Copyright (C) 1997-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// `sigev_notify' values.
const ( /* sigevent-consts.h:27:1: */
SIGEV_SIGNAL = 0 // Notify via signal.
SIGEV_NONE = 1 // Other notification: meaningless.
SIGEV_THREAD = 2 // Deliver via thread creation.
SIGEV_THREAD_ID = 4
)
// `si_code' values for SIGSEGV signal.
const ( /* siginfo-consts.h:119:1: */
SEGV_MAPERR = 1 // Address not mapped to object.
SEGV_ACCERR = 2 // Invalid permissions for mapped object.
SEGV_BNDERR = 3 // Bounds checking failure.
SEGV_PKUERR = 4 // Protection key checking failure.
SEGV_ACCADI = 5 // ADI not enabled for mapped object.
SEGV_ADIDERR = 6 // Disrupting MCD error.
SEGV_ADIPERR = 7
)
// `si_code' values for SIGBUS signal.
const ( /* siginfo-consts.h:138:1: */
BUS_ADRALN = 1 // Invalid address alignment.
BUS_ADRERR = 2 // Non-existant physical address.
BUS_OBJERR = 3 // Object specific hardware error.
BUS_MCEERR_AR = 4 // Hardware memory error: action required.
BUS_MCEERR_AO = 5
)
// `si_code' values for SIGCHLD signal.
const ( /* siginfo-consts.h:172:1: */
CLD_EXITED = 1 // Child has exited.
CLD_KILLED = 2 // Child was killed.
CLD_DUMPED = 3 // Child terminated abnormally.
CLD_TRAPPED = 4 // Traced child has trapped.
CLD_STOPPED = 5 // Child has stopped.
CLD_CONTINUED = 6
)
// `si_code' values for SIGPOLL signal.
const ( /* siginfo-consts.h:189:1: */
POLL_IN = 1 // Data input available.
POLL_OUT = 2 // Output buffers available.
POLL_MSG = 3 // Input message available.
POLL_ERR = 4 // I/O error.
POLL_PRI = 5 // High priority input available.
POLL_HUP = 6
)
// X/Open requires some more fields with fixed names.
// siginfo constants. Linux version.
// Copyright (C) 1997-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// Most of these constants are uniform across all architectures, but there
// is one exception.
// Architecture-specific adjustments to siginfo_t.
// Values for `si_code'. Positive values are reserved for kernel-generated
//
// signals.
const ( /* siginfo-consts.h:35:1: */
SI_ASYNCNL = -60 // Sent by asynch name lookup completion.
SI_DETHREAD = -7 // Sent by execve killing subsidiary
// threads.
SI_TKILL = -6 // Sent by tkill.
SI_SIGIO = -5 // Sent by queued SIGIO.
SI_ASYNCIO = -4 // Sent by AIO completion.
SI_MESGQ = -3 // Sent by real time mesq state change.
SI_TIMER = -2 // Sent by timer expiration.
SI_QUEUE = -1 // Sent by sigqueue.
SI_USER = 0 // Sent by kill, sigsend.
SI_KERNEL = 128
)
// `si_code' values for SIGILL signal.
const ( /* siginfo-consts.h:71:1: */
ILL_ILLOPC = 1 // Illegal opcode.
ILL_ILLOPN = 2 // Illegal operand.
ILL_ILLADR = 3 // Illegal addressing mode.
ILL_ILLTRP = 4 // Illegal trap.
ILL_PRVOPC = 5 // Privileged opcode.
ILL_PRVREG = 6 // Privileged register.
ILL_COPROC = 7 // Coprocessor error.
ILL_BADSTK = 8 // Internal stack error.
ILL_BADIADDR = 9
)
// `si_code' values for SIGFPE signal.
const ( /* siginfo-consts.h:94:1: */
FPE_INTDIV = 1 // Integer divide by zero.
FPE_INTOVF = 2 // Integer overflow.
FPE_FLTDIV = 3 // Floating point divide by zero.
FPE_FLTOVF = 4 // Floating point overflow.
FPE_FLTUND = 5 // Floating point underflow.
FPE_FLTRES = 6 // Floating point inexact result.
FPE_FLTINV = 7 // Floating point invalid operation.
FPE_FLTSUB = 8 // Subscript out of range.
FPE_FLTUNK = 14 // Undiagnosed floating-point exception.
FPE_CONDTRAP = 15
)
// sigstack, sigaltstack definitions.
// Copyright (C) 1998-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// Minimum stack size for a signal handler.
// System default stack size.
// ss_flags values for stack_t. Linux version.
// Copyright (C) 1998-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// Possible values for `ss_flags'.
const ( /* ss_flags.h:27:1: */
SS_ONSTACK = 1
SS_DISABLE = 2
)
// Number of each register is the `gregset_t' array.
const ( /* ucontext.h:45:1: */
REG_R0 = 0
REG_R1 = 1
REG_R2 = 2
REG_R3 = 3
REG_R4 = 4
REG_R5 = 5
REG_R6 = 6
REG_R7 = 7
REG_R8 = 8
REG_R9 = 9
REG_R10 = 10
REG_R11 = 11
REG_R12 = 12
REG_R13 = 13
REG_R14 = 14
REG_R15 = 15
)
type Ptrdiff_t = int32 /* <builtin>:3:26 */
type Size_t = uint32 /* <builtin>:9:23 */
type Wchar_t = uint32 /* <builtin>:15:24 */
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
type X__float128 = float64 /* <builtin>:47:21 */
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// ISO C99 Standard: 7.14 Signal handling <signal.h>
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// These are defined by the user (or the compiler)
// to specify the desired environment:
//
// __STRICT_ANSI__ ISO Standard C.
// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99.
// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11.
// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X.
// __STDC_WANT_LIB_EXT2__
// Extensions to ISO C99 from TR 27431-2:2010.
// __STDC_WANT_IEC_60559_BFP_EXT__
// Extensions to ISO C11 from TS 18661-1:2014.
// __STDC_WANT_IEC_60559_FUNCS_EXT__
// Extensions to ISO C11 from TS 18661-4:2015.
// __STDC_WANT_IEC_60559_TYPES_EXT__
// Extensions to ISO C11 from TS 18661-3:2015.
//
// _POSIX_SOURCE IEEE Std 1003.1.
// _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2;
// if >=199309L, add IEEE Std 1003.1b-1993;
// if >=199506L, add IEEE Std 1003.1c-1995;
// if >=200112L, all of IEEE 1003.1-2004
// if >=200809L, all of IEEE 1003.1-2008
// _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if
// Single Unix conformance is wanted, to 600 for the
// sixth revision, to 700 for the seventh revision.
// _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions.
// _LARGEFILE_SOURCE Some more functions for correct standard I/O.
// _LARGEFILE64_SOURCE Additional functionality from LFS for large files.
// _FILE_OFFSET_BITS=N Select default filesystem interface.
// _ATFILE_SOURCE Additional *at interfaces.
// _GNU_SOURCE All of the above, plus GNU extensions.
// _DEFAULT_SOURCE The default set of features (taking precedence over
// __STRICT_ANSI__).
//
// _FORTIFY_SOURCE Add security hardening to many library functions.
// Set to 1 or 2; 2 performs stricter checks than 1.
//
// _REENTRANT, _THREAD_SAFE
// Obsolete; equivalent to _POSIX_C_SOURCE=199506L.
//
// The `-ansi' switch to the GNU C compiler, and standards conformance
// options such as `-std=c99', define __STRICT_ANSI__. If none of
// these are defined, or if _DEFAULT_SOURCE is defined, the default is
// to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to
// 200809L, as well as enabling miscellaneous functions from BSD and
// SVID. If more than one of these are defined, they accumulate. For
// example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together
// give you ISO C, 1003.1, and 1003.2, but nothing else.
//
// These are defined by this file and are used by the
// header files to decide what to declare or define:
//
// __GLIBC_USE (F) Define things from feature set F. This is defined
// to 1 or 0; the subsequent macros are either defined
// or undefined, and those tests should be moved to
// __GLIBC_USE.
// __USE_ISOC11 Define ISO C11 things.
// __USE_ISOC99 Define ISO C99 things.
// __USE_ISOC95 Define ISO C90 AMD1 (C95) things.
// __USE_ISOCXX11 Define ISO C++11 things.
// __USE_POSIX Define IEEE Std 1003.1 things.
// __USE_POSIX2 Define IEEE Std 1003.2 things.
// __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things.
// __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things.
// __USE_XOPEN Define XPG things.
// __USE_XOPEN_EXTENDED Define X/Open Unix things.
// __USE_UNIX98 Define Single Unix V2 things.
// __USE_XOPEN2K Define XPG6 things.
// __USE_XOPEN2KXSI Define XPG6 XSI things.
// __USE_XOPEN2K8 Define XPG7 things.
// __USE_XOPEN2K8XSI Define XPG7 XSI things.
// __USE_LARGEFILE Define correct standard I/O things.
// __USE_LARGEFILE64 Define LFS things with separate names.
// __USE_FILE_OFFSET64 Define 64bit interface as default.
// __USE_MISC Define things from 4.3BSD or System V Unix.
// __USE_ATFILE Define *at interfaces and AT_* constants for them.
// __USE_GNU Define GNU extensions.
// __USE_FORTIFY_LEVEL Additional security measures used, according to level.
//
// The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are
// defined by this file unconditionally. `__GNU_LIBRARY__' is provided
// only for compatibility. All new code should use the other symbols
// to test for features.
//
// All macros listed above as possibly being defined by this file are
// explicitly undefined if they are not explicitly defined.
// Feature-test macros that are not defined by the user or compiler
// but are implied by the other feature-test macros defined (or by the
// lack of any definitions) are defined by the file.
//
// ISO C feature test macros depend on the definition of the macro
// when an affected header is included, not when the first system
// header is included, and so they are handled in
// <bits/libc-header-start.h>, which does not have a multiple include
// guard. Feature test macros that can be handled from the first
// system header included are handled here.
// Undefine everything, so we get a clean slate.
// Suppress kernel-name space pollution unless user expressedly asks
// for it.
// Convenience macro to test the version of gcc.
// Use like this:
// #if __GNUC_PREREQ (2,8)
// ... code requiring gcc 2.8 or later ...
// #endif
// Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was
// added in 2.0.
// Similarly for clang. Features added to GCC after version 4.2 may
// or may not also be available in clang, and clang's definitions of
// __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such
// features can be queried via __has_extension/__has_feature.
// Whether to use feature set F.
// _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for
// _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not
// issue a warning; the expectation is that the source is being
// transitioned to use the new macro.
// If _GNU_SOURCE was defined by the user, turn on all the other features.
// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined,
// define _DEFAULT_SOURCE.
// This is to enable the ISO C2X extension.
// This is to enable the ISO C11 extension.
// This is to enable the ISO C99 extension.
// This is to enable the ISO C90 Amendment 1:1995 extension.
// If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE
// is defined, use POSIX.1-2008 (or another version depending on
// _XOPEN_SOURCE).
// Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be
// defined in all multithreaded code. GNU libc has not required this
// for many years. We now treat them as compatibility synonyms for
// _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with
// comprehensive support for multithreaded code. Using them never
// lowers the selected level of POSIX conformance, only raises it.
// The function 'gets' existed in C89, but is impossible to use
// safely. It has been removed from ISO C11 and ISO C++14. Note: for
// compatibility with various implementations of <cstdio>, this test
// must consider only the value of __cplusplus when compiling C++.
// GNU formerly extended the scanf functions with modified format
// specifiers %as, %aS, and %a[...] that allocate a buffer for the
// input using malloc. This extension conflicts with ISO C99, which
// defines %a as a standalone format specifier that reads a floating-
// point number; moreover, POSIX.1-2008 provides the same feature
// using the modifier letter 'm' instead (%ms, %mS, %m[...]).
//
// We now follow C99 unless GNU extensions are active and the compiler
// is specifically in C89 or C++98 mode (strict or not). For
// instance, with GCC, -std=gnu11 will have C99-compliant scanf with
// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the
// old extension.
// Get definitions of __STDC_* predefined macros, if the compiler has
// not preincluded this header automatically.
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// This macro indicates that the installed library is the GNU C Library.
// For historic reasons the value now is 6 and this will stay from now
// on. The use of this variable is deprecated. Use __GLIBC__ and
// __GLIBC_MINOR__ now (see below) when you want to test for a specific
// GNU C library version and use the values in <gnu/lib-names.h> to get
// the sonames of the shared libraries.
// Major and minor version number of the GNU C library package. Use
// these macros to test for features in specific releases.
// This is here only because every header file already includes this one.
// Copyright (C) 1992-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// We are almost always included from features.h.
// The GNU libc does not support any K&R compilers or the traditional mode
// of ISO C compilers anymore. Check for some of the combinations not
// anymore supported.
// Some user header file might have defined this before.
// All functions, except those with callbacks or those that
// synchronize memory, are leaf functions.
// GCC can always grok prototypes. For C++ programs we add throw()
// to help it optimize the function calls. But this works only with
// gcc 2.8.x and egcs. For gcc 3.2 and up we even mark C functions
// as non-throwing using a function attribute since programs can use
// the -fexceptions options for C code as well.
// Compilers that are not clang may object to
// #if defined __clang__ && __has_extension(...)
// even though they do not need to evaluate the right-hand side of the &&.
// These two macros are not used in glibc anymore. They are kept here
// only because some other projects expect the macros to be defined.
// For these things, GCC behaves the ANSI way normally,
// and the non-ANSI way under -traditional.
// This is not a typedef so `const __ptr_t' does the right thing.
// C++ needs to know that types and declarations are C, not C++.
// Fortify support.
// Support for flexible arrays.
// Headers that should use flexible arrays only if they're "real"
// (e.g. only if they won't affect sizeof()) should test
// #if __glibc_c99_flexarr_available.
// __asm__ ("xyz") is used throughout the headers to rename functions
// at the assembly language level. This is wrapped by the __REDIRECT
// macro, in order to support compilers that can do this some other
// way. When compilers don't support asm-names at all, we have to do
// preprocessor tricks instead (which don't have exactly the right
// semantics, but it's the best we can do).
//
// Example:
// int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid);
//
// #elif __SOME_OTHER_COMPILER__
//
// # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias)
// GCC has various useful declarations that can be made with the
// `__attribute__' syntax. All of the ways we use this do fine if
// they are omitted for compilers that don't understand it.
// At some point during the gcc 2.96 development the `malloc' attribute
// for functions was introduced. We don't want to use it unconditionally
// (although this would be possible) since it generates warnings.
// Tell the compiler which arguments to an allocation function
// indicate the size of the allocation.
// At some point during the gcc 2.96 development the `pure' attribute
// for functions was introduced. We don't want to use it unconditionally
// (although this would be possible) since it generates warnings.
// This declaration tells the compiler that the value is constant.
// At some point during the gcc 3.1 development the `used' attribute
// for functions was introduced. We don't want to use it unconditionally
// (although this would be possible) since it generates warnings.
// Since version 3.2, gcc allows marking deprecated functions.
// Since version 4.5, gcc also allows one to specify the message printed
// when a deprecated function is used. clang claims to be gcc 4.2, but
// may also support this feature.
// At some point during the gcc 2.8 development the `format_arg' attribute
// for functions was introduced. We don't want to use it unconditionally
// (although this would be possible) since it generates warnings.
// If several `format_arg' attributes are given for the same function, in
// gcc-3.0 and older, all but the last one are ignored. In newer gccs,
// all designated arguments are considered.
// At some point during the gcc 2.97 development the `strfmon' format
// attribute for functions was introduced. We don't want to use it
// unconditionally (although this would be possible) since it
// generates warnings.
// The nonull function attribute allows to mark pointer parameters which
// must not be NULL.
// If fortification mode, we warn about unused results of certain
// function calls which can lead to problems.
// Forces a function to be always inlined.
// The Linux kernel defines __always_inline in stddef.h (283d7573), and
// it conflicts with this definition. Therefore undefine it first to
// allow either header to be included first.
// Associate error messages with the source location of the call site rather
// than with the source location inside the function.
// GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99
// inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__
// or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions
// older than 4.3 may define these macros and still not guarantee GNU inlining
// semantics.
//
// clang++ identifies itself as gcc-4.2, but has support for GNU inlining
// semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and
// __GNUC_GNU_INLINE__ macro definitions.
// GCC 4.3 and above allow passing all anonymous arguments of an
// __extern_always_inline function to some other vararg function.
// It is possible to compile containing GCC extensions even if GCC is
// run in pedantic mode if the uses are carefully marked using the
// `__extension__' keyword. But this is not generally available before
// version 2.8.
// __restrict is known in EGCS 1.2 and above.
// ISO C99 also allows to declare arrays as non-overlapping. The syntax is
// array_name[restrict]
// GCC 3.1 supports this.
// Describes a char array whose address can safely be passed as the first
// argument to strncpy and strncat, as the char array is not necessarily
// a NUL-terminated string.
// Undefine (also defined in libc-symbols.h).
// Copies attributes from the declaration or type referenced by
// the argument.
// Copyright (C) 1999-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// Properties of long double type.
// Copyright (C) 2016-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// This header is included by <sys/cdefs.h>.
//
// If long double is ABI-compatible with double, it should define
// __NO_LONG_DOUBLE_MATH to 1; otherwise, it should leave
// __NO_LONG_DOUBLE_MATH undefined.
//
// If this build of the GNU C Library supports both long double
// ABI-compatible with double and some other long double format not
// ABI-compatible with double, it should define
// __LONG_DOUBLE_MATH_OPTIONAL to 1; otherwise, it should leave
// __LONG_DOUBLE_MATH_OPTIONAL undefined.
//
// If __NO_LONG_DOUBLE_MATH is already defined, this header must not
// define anything; this is needed to work with the definition of
// __NO_LONG_DOUBLE_MATH in nldbl-compat.h.
// In the default version of this header, long double is
// ABI-compatible with double.
// __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is
// intended for use in preprocessor macros.
//
// Note: MESSAGE must be a _single_ string; concatenation of string
// literals is not supported.
// Generic selection (ISO C11) is a C-only feature, available in GCC
// since version 4.9. Previous versions do not provide generic
// selection, even though they might set __STDC_VERSION__ to 201112L,
// when in -std=c11 mode. Thus, we must check for !defined __GNUC__
// when testing __STDC_VERSION__ for generic selection support.
// On the other hand, Clang also defines __GNUC__, so a clang-specific
// check is required to enable the use of generic selection.
// If we don't have __REDIRECT, prototypes will be missing if
// __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64].
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | true |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/signal_darwin_amd64.go | vendor/modernc.org/libc/signal/signal_darwin_amd64.go | // Code generated by 'ccgo signal/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 signal/signal_darwin_amd64.go -pkgname signal', DO NOT EDIT.
package signal
import (
"math"
"reflect"
"sync/atomic"
"unsafe"
)
var _ = math.Pi
var _ reflect.Kind
var _ atomic.Value
var _ unsafe.Pointer
const (
BUS_ADRALN = 1 // signal.h:241:1:
BUS_ADRERR = 2 // signal.h:242:1:
BUS_NOOP = 0 // signal.h:239:1:
BUS_OBJERR = 3 // signal.h:243:1:
CLD_CONTINUED = 6 // signal.h:258:1:
CLD_DUMPED = 3 // signal.h:255:1:
CLD_EXITED = 1 // signal.h:253:1:
CLD_KILLED = 2 // signal.h:254:1:
CLD_NOOP = 0 // signal.h:251:1:
CLD_STOPPED = 5 // signal.h:257:1:
CLD_TRAPPED = 4 // signal.h:256:1:
FPE_FLTDIV = 1 // signal.h:221:1:
FPE_FLTINV = 5 // signal.h:225:1:
FPE_FLTOVF = 2 // signal.h:222:1:
FPE_FLTRES = 4 // signal.h:224:1:
FPE_FLTSUB = 6 // signal.h:226:1:
FPE_FLTUND = 3 // signal.h:223:1:
FPE_INTDIV = 7 // signal.h:227:1:
FPE_INTOVF = 8 // signal.h:228:1:
FPE_NOOP = 0 // signal.h:219:1:
FP_CHOP = 3 // _structs.h:112:1:
FP_PREC_24B = 0 // _structs.h:103:1:
FP_PREC_53B = 2 // _structs.h:104:1:
FP_PREC_64B = 3 // _structs.h:105:1:
FP_RND_DOWN = 1 // _structs.h:110:1:
FP_RND_NEAR = 0 // _structs.h:109:1:
FP_RND_UP = 2 // _structs.h:111:1:
FP_STATE_BYTES = 512 // _structs.h:276:1:
ILL_BADSTK = 8 // signal.h:215:1:
ILL_COPROC = 7 // signal.h:214:1:
ILL_ILLADR = 5 // signal.h:212:1:
ILL_ILLOPC = 1 // signal.h:208:1:
ILL_ILLOPN = 4 // signal.h:211:1:
ILL_ILLTRP = 2 // signal.h:209:1:
ILL_NOOP = 0 // signal.h:206:1:
ILL_PRVOPC = 3 // signal.h:210:1:
ILL_PRVREG = 6 // signal.h:213:1:
MINSIGSTKSZ = 32768 // signal.h:340:1:
NSIG = 32 // signal.h:79:1:
POLL_ERR = 4 // signal.h:264:1:
POLL_HUP = 6 // signal.h:266:1:
POLL_IN = 1 // signal.h:261:1:
POLL_MSG = 3 // signal.h:263:1:
POLL_OUT = 2 // signal.h:262:1:
POLL_PRI = 5 // signal.h:265:1:
SA_64REGSET = 0x0200 // signal.h:308:1:
SA_NOCLDSTOP = 0x0008 // signal.h:301:1:
SA_NOCLDWAIT = 0x0020 // signal.h:303:1:
SA_NODEFER = 0x0010 // signal.h:302:1:
SA_ONSTACK = 0x0001 // signal.h:298:1:
SA_RESETHAND = 0x0004 // signal.h:300:1:
SA_RESTART = 0x0002 // signal.h:299:1:
SA_SIGINFO = 0x0040 // signal.h:304:1:
SA_USERSPACE_MASK = 127 // signal.h:314:1:
SA_USERTRAMP = 0x0100 // signal.h:306:1:
SEGV_ACCERR = 2 // signal.h:235:1:
SEGV_MAPERR = 1 // signal.h:234:1:
SEGV_NOOP = 0 // signal.h:232:1:
SIGABRT = 6 // signal.h:89:1:
SIGALRM = 14 // signal.h:102:1:
SIGBUS = 10 // signal.h:98:1:
SIGCHLD = 20 // signal.h:108:1:
SIGCONT = 19 // signal.h:107:1:
SIGEMT = 7 // signal.h:94:1:
SIGEV_NONE = 0 // signal.h:164:1:
SIGEV_SIGNAL = 1 // signal.h:165:1:
SIGEV_THREAD = 3 // signal.h:166:1:
SIGFPE = 8 // signal.h:96:1:
SIGHUP = 1 // signal.h:84:1:
SIGILL = 4 // signal.h:87:1:
SIGINFO = 29 // signal.h:120:1:
SIGINT = 2 // signal.h:85:1:
SIGIO = 23 // signal.h:112:1:
SIGIOT = 6 // signal.h:93:1:
SIGKILL = 9 // signal.h:97:1:
SIGPIPE = 13 // signal.h:101:1:
SIGPROF = 27 // signal.h:117:1:
SIGQUIT = 3 // signal.h:86:1:
SIGSEGV = 11 // signal.h:99:1:
SIGSTKSZ = 131072 // signal.h:341:1:
SIGSTOP = 17 // signal.h:105:1:
SIGSYS = 12 // signal.h:100:1:
SIGTERM = 15 // signal.h:103:1:
SIGTRAP = 5 // signal.h:88:1:
SIGTSTP = 18 // signal.h:106:1:
SIGTTIN = 21 // signal.h:109:1:
SIGTTOU = 22 // signal.h:110:1:
SIGURG = 16 // signal.h:104:1:
SIGUSR1 = 30 // signal.h:122:1:
SIGUSR2 = 31 // signal.h:123:1:
SIGVTALRM = 26 // signal.h:116:1:
SIGWINCH = 28 // signal.h:119:1:
SIGXCPU = 24 // signal.h:114:1:
SIGXFSZ = 25 // signal.h:115:1:
SIG_BLOCK = 1 // signal.h:319:1:
SIG_SETMASK = 3 // signal.h:321:1:
SIG_UNBLOCK = 2 // signal.h:320:1:
SI_ASYNCIO = 0x10004 // signal.h:327:1:
SI_MESGQ = 0x10005 // signal.h:328:1:
SI_QUEUE = 0x10002 // signal.h:325:1:
SI_TIMER = 0x10003 // signal.h:326:1:
SI_USER = 0x10001 // signal.h:324:1:
SS_DISABLE = 0x0004 // signal.h:339:1:
SS_ONSTACK = 0x0001 // signal.h:338:1:
SV_INTERRUPT = 2 // signal.h:355:1:
SV_NOCLDSTOP = 8 // signal.h:358:1:
SV_NODEFER = 16 // signal.h:357:1:
SV_ONSTACK = 1 // signal.h:354:1:
SV_RESETHAND = 4 // signal.h:356:1:
SV_SIGINFO = 64 // signal.h:359:1:
TRAP_BRKPT = 1 // signal.h:246:1:
TRAP_TRACE = 2 // signal.h:247:1:
X_BSD_I386__TYPES_H_ = 0 // _types.h:29:1:
X_BSD_MACHINE_SIGNAL_H_ = 0 // signal.h:29:1:
X_BSD_MACHINE_TYPES_H_ = 0 // types.h:32:1:
X_BSD_MACHINE__TYPES_H_ = 0 // _types.h:29:1:
X_CDEFS_H_ = 0 // cdefs.h:68:1:
X_DARWIN_FEATURE_64_BIT_INODE = 1 // cdefs.h:745:1:
X_DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE = 1 // cdefs.h:771:1:
X_DARWIN_FEATURE_UNIX_CONFORMANCE = 3 // cdefs.h:779:1:
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_FORTIFY_SOURCE = 2 // _types.h:65:1:
X_I386_SIGNAL_H_ = 1 // signal.h:34:1:
X_INT16_T = 0 // _int16_t.h:29:1:
X_INT32_T = 0 // _int32_t.h:29:1:
X_INT64_T = 0 // _int64_t.h:29:1:
X_INT8_T = 0 // _int8_t.h:29:1:
X_INTPTR_T = 0 // _intptr_t.h:29:1:
X_LP64 = 1 // <predefined>:1:1:
X_MACHTYPES_H_ = 0 // types.h:67:1:
X_MACH_I386__STRUCTS_H_ = 0 // _structs.h:33:1:
X_MACH_MACHINE__STRUCTS_H_ = 0 // _structs.h:30:1:
X_MCONTEXT_T = 0 // _mcontext.h:202:1:
X_Nonnull = 0 // cdefs.h:243:1:
X_Null_unspecified = 0 // cdefs.h:246:1:
X_Nullable = 0 // cdefs.h:240:1:
X_PID_T = 0 // _pid_t.h:29:1:
X_PTHREAD_ATTR_T = 0 // _pthread_attr_t.h:29:1:
X_PTHREAD_T = 0 // _pthread_t.h:29:1:
X_SIGSET_T = 0 // _sigset_t.h:29:1:
X_SIZE_T = 0 // _size_t.h:29:1:
X_SYS_SIGNAL_H_ = 0 // signal.h:70:1:
X_SYS__PTHREAD_TYPES_H_ = 0 // _pthread_types.h:30:1:
X_SYS__TYPES_H_ = 0 // _types.h:30:1:
X_UID_T = 0 // _uid_t.h:29:1:
X_UINTPTR_T = 0 // _uintptr_t.h:29:1:
X_USER_SIGNAL_H = 0 // signal.h:59:1:
X_U_INT16_T = 0 // _u_int16_t.h:29:1:
X_U_INT32_T = 0 // _u_int32_t.h:29:1:
X_U_INT64_T = 0 // _u_int64_t.h:29:1:
X_U_INT8_T = 0 // _u_int8_t.h:29:1:
)
type Ptrdiff_t = int64 /* <builtin>:3:26 */
type Size_t = uint64 /* <builtin>:9:23 */
type Wchar_t = int32 /* <builtin>:15:24 */
type X__int128_t = struct {
Flo int64
Fhi int64
} /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
type X__uint128_t = struct {
Flo uint64
Fhi uint64
} /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
type X__float128 = float64 /* <builtin>:47:21 */
var X__darwin_check_fd_set_overflow uintptr /* <builtin>:146:5: */
// Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
//
// @APPLE_LICENSE_HEADER_START@
//
// This file contains Original Code and/or Modifications of Original Code
// as defined in and that are subject to the Apple Public Source License
// Version 2.0 (the 'License'). You may not use this file except in
// compliance with the License. Please obtain a copy of the License at
// http://www.opensource.apple.com/apsl/ and read it before using this
// file.
//
// The Original Code and all software distributed under the License are
// distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
// EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
// INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
// Please see the License for the specific language governing rights and
// limitations under the License.
//
// @APPLE_LICENSE_HEADER_END@
// -
// Copyright (c) 1991, 1993
// The Regents of the University of California. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. All advertising materials mentioning features or use of this software
// must display the following acknowledgement:
// This product includes software developed by the University of
// California, Berkeley and its contributors.
// 4. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// @(#)signal.h 8.3 (Berkeley) 3/30/94
// Copyright (c) 2000-2018 Apple Inc. All rights reserved.
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_START@
//
// This file contains Original Code and/or Modifications of Original Code
// as defined in and that are subject to the Apple Public Source License
// Version 2.0 (the 'License'). You may not use this file except in
// compliance with the License. The rights granted to you under the License
// may not be used to create, or enable the creation or redistribution of,
// unlawful or unlicensed copies of an Apple operating system, or to
// circumvent, violate, or enable the circumvention or violation of, any
// terms of an Apple operating system software license agreement.
//
// Please obtain a copy of the License at
// http://www.opensource.apple.com/apsl/ and read it before using this file.
//
// The Original Code and all software distributed under the License are
// distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
// EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
// INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
// Please see the License for the specific language governing rights and
// limitations under the License.
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_END@
// Copyright 1995 NeXT Computer, Inc. All rights reserved.
// Copyright (c) 1991, 1993
// The Regents of the University of California. All rights reserved.
//
// This code is derived from software contributed to Berkeley by
// Berkeley Software Design, Inc.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. All advertising materials mentioning features or use of this software
// must display the following acknowledgement:
// This product includes software developed by the University of
// California, Berkeley and its contributors.
// 4. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// @(#)cdefs.h 8.8 (Berkeley) 1/9/95
// This SDK is designed to work with clang and specific versions of
// gcc >= 4.0 with Apple's patch sets
// Compatibility with compilers and environments that don't support compiler
// feature checking function-like macros.
// The __CONCAT macro is used to concatenate parts of symbol names, e.g.
// with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo.
// The __CONCAT macro is a bit tricky -- make sure you don't put spaces
// in between its arguments. __CONCAT can also concatenate double-quoted
// strings produced by the __STRING macro, but this only works with ANSI C.
// In non-ANSI C environments, new programs will want ANSI-only C keywords
// deleted from the program and old programs will want them left alone.
// When using a compiler other than gcc, programs using the ANSI C keywords
// const, inline etc. as normal identifiers should define -DNO_ANSI_KEYWORDS.
// When using "gcc -traditional", we assume that this is the intent; if
// __GNUC__ is defined but __STDC__ is not, we leave the new keywords alone.
// __unused denotes variables and functions that may not be used, preventing
// the compiler from warning about it if not used.
// __used forces variables and functions to be included even if it appears
// to the compiler that they are not used (and would thust be discarded).
// __cold marks code used for debugging or that is rarely taken
// and tells the compiler to optimize for size and outline code.
// __deprecated causes the compiler to produce a warning when encountering
// code using the deprecated functionality.
// __deprecated_msg() does the same, and compilers that support it will print
// a message along with the deprecation warning.
// This may require turning on such warning with the -Wdeprecated flag.
// __deprecated_enum_msg() should be used on enums, and compilers that support
// it will print the deprecation warning.
// __kpi_deprecated() specifically indicates deprecation of kernel programming
// interfaces in Kernel.framework used by KEXTs.
// __unavailable causes the compiler to error out when encountering
// code using the tagged function of variable.
// Delete pseudo-keywords wherever they are not available or needed.
// We use `__restrict' as a way to define the `restrict' type qualifier
// without disturbing older software that is unaware of C99 keywords.
// Compatibility with compilers and environments that don't support the
// nullability feature.
// __disable_tail_calls causes the compiler to not perform tail call
// optimization inside the marked function.
// __not_tail_called causes the compiler to prevent tail call optimization
// on statically bound calls to the function. It has no effect on indirect
// calls. Virtual functions, objective-c methods, and functions marked as
// "always_inline" cannot be marked as __not_tail_called.
// __result_use_check warns callers of a function that not using the function
// return value is a bug, i.e. dismissing malloc() return value results in a
// memory leak.
// __swift_unavailable causes the compiler to mark a symbol as specifically
// unavailable in Swift, regardless of any other availability in C.
// __abortlike is the attribute to put on functions like abort() that are
// typically used to mark assertions. These optimize the codegen
// for outlining while still maintaining debugability.
// Declaring inline functions within headers is error-prone due to differences
// across various versions of the C language and extensions. __header_inline
// can be used to declare inline functions within system headers. In cases
// where you want to force inlining instead of letting the compiler make
// the decision, you can use __header_always_inline.
//
// Be aware that using inline for functions which compilers may also provide
// builtins can behave differently under various compilers. If you intend to
// provide an inline version of such a function, you may want to use a macro
// instead.
//
// The check for !__GNUC__ || __clang__ is because gcc doesn't correctly
// support c99 inline in some cases:
// http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55965
// Compiler-dependent macros that bracket portions of code where the
// "-Wunreachable-code" warning should be ignored. Please use sparingly.
// Compiler-dependent macros to declare that functions take printf-like
// or scanf-like arguments. They are null except for versions of gcc
// that are known to support the features properly. Functions declared
// with these attributes will cause compilation warnings if there is a
// mismatch between the format string and subsequent function parameter
// types.
// Source compatibility only, ID string not emitted in object file
// __alloc_size can be used to label function arguments that represent the
// size of memory that the function allocates and returns. The one-argument
// form labels a single argument that gives the allocation size (where the
// arguments are numbered from 1):
//
// void *malloc(size_t __size) __alloc_size(1);
//
// The two-argument form handles the case where the size is calculated as the
// product of two arguments:
//
// void *calloc(size_t __count, size_t __size) __alloc_size(1,2);
// COMPILATION ENVIRONMENTS -- see compat(5) for additional detail
//
// DEFAULT By default newly complied code will get POSIX APIs plus
// Apple API extensions in scope.
//
// Most users will use this compilation environment to avoid
// behavioral differences between 32 and 64 bit code.
//
// LEGACY Defining _NONSTD_SOURCE will get pre-POSIX APIs plus Apple
// API extensions in scope.
//
// This is generally equivalent to the Tiger release compilation
// environment, except that it cannot be applied to 64 bit code;
// its use is discouraged.
//
// We expect this environment to be deprecated in the future.
//
// STRICT Defining _POSIX_C_SOURCE or _XOPEN_SOURCE restricts the
// available APIs to exactly the set of APIs defined by the
// corresponding standard, based on the value defined.
//
// A correct, portable definition for _POSIX_C_SOURCE is 200112L.
// A correct, portable definition for _XOPEN_SOURCE is 600L.
//
// Apple API extensions are not visible in this environment,
// which can cause Apple specific code to fail to compile,
// or behave incorrectly if prototypes are not in scope or
// warnings about missing prototypes are not enabled or ignored.
//
// In any compilation environment, for correct symbol resolution to occur,
// function prototypes must be in scope. It is recommended that all Apple
// tools users add either the "-Wall" or "-Wimplicit-function-declaration"
// compiler flags to their projects to be warned when a function is being
// used without a prototype in scope.
// These settings are particular to each product.
// Platform: MacOSX
// #undef __DARWIN_ONLY_UNIX_CONFORMANCE (automatically set for 64-bit)
// The __DARWIN_ALIAS macros are used to do symbol renaming; they allow
// legacy code to use the old symbol, thus maintaining binary compatibility
// while new code can use a standards compliant version of the same function.
//
// __DARWIN_ALIAS is used by itself if the function signature has not
// changed, it is used along with a #ifdef check for __DARWIN_UNIX03
// if the signature has changed. Because the __LP64__ environment
// only supports UNIX03 semantics it causes __DARWIN_UNIX03 to be
// defined, but causes __DARWIN_ALIAS to do no symbol mangling.
//
// As a special case, when XCode is used to target a specific version of the
// OS, the manifest constant __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
// will be defined by the compiler, with the digits representing major version
// time 100 + minor version times 10 (e.g. 10.5 := 1050). If we are targeting
// pre-10.5, and it is the default compilation environment, revert the
// compilation environment to pre-__DARWIN_UNIX03.
// symbol suffixes used for symbol versioning
// symbol versioning macros
// symbol release macros
// Copyright (c) 2010 Apple Inc. All rights reserved.
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_START@
//
// This file contains Original Code and/or Modifications of Original Code
// as defined in and that are subject to the Apple Public Source License
// Version 2.0 (the 'License'). You may not use this file except in
// compliance with the License. The rights granted to you under the License
// may not be used to create, or enable the creation or redistribution of,
// unlawful or unlicensed copies of an Apple operating system, or to
// circumvent, violate, or enable the circumvention or violation of, any
// terms of an Apple operating system software license agreement.
//
// Please obtain a copy of the License at
// http://www.opensource.apple.com/apsl/ and read it before using this file.
//
// The Original Code and all software distributed under the License are
// distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
// EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
// INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
// Please see the License for the specific language governing rights and
// limitations under the License.
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_END@
// POSIX.1 requires that the macros we test be defined before any standard
// header file is included. This permits us to convert values for feature
// testing, as necessary, using only _POSIX_C_SOURCE.
//
// Here's a quick run-down of the versions:
// defined(_POSIX_SOURCE) 1003.1-1988
// _POSIX_C_SOURCE == 1L 1003.1-1990
// _POSIX_C_SOURCE == 2L 1003.2-1992 C Language Binding Option
// _POSIX_C_SOURCE == 199309L 1003.1b-1993
// _POSIX_C_SOURCE == 199506L 1003.1c-1995, 1003.1i-1995,
// and the omnibus ISO/IEC 9945-1: 1996
// _POSIX_C_SOURCE == 200112L 1003.1-2001
// _POSIX_C_SOURCE == 200809L 1003.1-2008
//
// In addition, the X/Open Portability Guide, which is now the Single UNIX
// Specification, defines a feature-test macro which indicates the version of
// that specification, and which subsumes _POSIX_C_SOURCE.
// Deal with IEEE Std. 1003.1-1990, in which _POSIX_C_SOURCE == 1L.
// Deal with IEEE Std. 1003.2-1992, in which _POSIX_C_SOURCE == 2L.
// Deal with various X/Open Portability Guides and Single UNIX Spec.
// Deal with all versions of POSIX. The ordering relative to the tests above is
// important.
// POSIX C deprecation macros
// Copyright (c) 2010 Apple Inc. All rights reserved.
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_START@
//
// This file contains Original Code and/or Modifications of Original Code
// as defined in and that are subject to the Apple Public Source License
// Version 2.0 (the 'License'). You may not use this file except in
// compliance with the License. The rights granted to you under the License
// may not be used to create, or enable the creation or redistribution of,
// unlawful or unlicensed copies of an Apple operating system, or to
// circumvent, violate, or enable the circumvention or violation of, any
// terms of an Apple operating system software license agreement.
//
// Please obtain a copy of the License at
// http://www.opensource.apple.com/apsl/ and read it before using this file.
//
// The Original Code and all software distributed under the License are
// distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
// EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
// INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
// Please see the License for the specific language governing rights and
// limitations under the License.
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_END@
// Set a single macro which will always be defined and can be used to determine
// the appropriate namespace. For POSIX, these values will correspond to
// _POSIX_C_SOURCE value. Currently there are two additional levels corresponding
// to ANSI (_ANSI_SOURCE) and Darwin extensions (_DARWIN_C_SOURCE)
// If the developer has neither requested a strict language mode nor a version
// of POSIX, turn on functionality provided by __STDC_WANT_LIB_EXT1__ as part
// of __DARWIN_C_FULL.
// long long is not supported in c89 (__STRICT_ANSI__), but g++ -ansi and
// c99 still want long longs. While not perfect, we allow long longs for
// g++.
// ****************************************
//
// Public darwin-specific feature macros
//
// _DARWIN_FEATURE_64_BIT_INODE indicates that the ino_t type is 64-bit, and
// structures modified for 64-bit inodes (like struct stat) will be used.
// _DARWIN_FEATURE_64_ONLY_BIT_INODE indicates that the ino_t type may only
// be 64-bit; there is no support for 32-bit ino_t when this macro is defined
// (and non-zero). There is no struct stat64 either, as the regular
// struct stat will already be the 64-bit version.
// _DARWIN_FEATURE_ONLY_VERS_1050 indicates that only those APIs updated
// in 10.5 exists; no pre-10.5 variants are available.
// _DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE indicates only UNIX conforming API
// are available (the legacy BSD APIs are not available)
// _DARWIN_FEATURE_UNIX_CONFORMANCE indicates whether UNIX conformance is on,
// and specifies the conformance level (3 is SUSv3)
// This macro casts away the qualifier from the variable
//
// Note: use at your own risk, removing qualifiers can result in
// catastrophic run-time failures.
// __XNU_PRIVATE_EXTERN is a linkage decoration indicating that a symbol can be
// used from other compilation units, but not other libraries or executables.
// Architecture validation for current SDK
// Similar to OS_ENUM/OS_CLOSED_ENUM/OS_OPTIONS/OS_CLOSED_OPTIONS
//
// This provides more advanced type checking on compilers supporting
// the proper extensions, even in C.
// Copyright (c) 2004, 2008, 2009 Apple Inc. All rights reserved.
//
// @APPLE_LICENSE_HEADER_START@
//
// This file contains Original Code and/or Modifications of Original Code
// as defined in and that are subject to the Apple Public Source License
// Version 2.0 (the 'License'). You may not use this file except in
// compliance with the License. Please obtain a copy of the License at
// http://www.opensource.apple.com/apsl/ and read it before using this
// file.
//
// The Original Code and all software distributed under the License are
// distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
// EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
// INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
// Please see the License for the specific language governing rights and
// limitations under the License.
//
// @APPLE_LICENSE_HEADER_END@
// Copyright (c) 2003-2007 Apple Inc. All rights reserved.
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_START@
//
// This file contains Original Code and/or Modifications of Original Code
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | true |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/capi_openbsd_arm64.go | vendor/modernc.org/libc/signal/capi_openbsd_arm64.go | // Code generated by 'ccgo signal/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 signal/signal_openbsd_arm64.go -pkgname signal', DO NOT EDIT.
package signal
var CAPI = map[string]struct{}{}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/more_netbsd_arm.go | vendor/modernc.org/libc/signal/more_netbsd_arm.go | // Copyright 2020 The Libc Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package signal
const (
// sys/sys/signal.h:139:#define SIG_DFL ((__sighandler_t *)0)
SIG_DFL = 0
// sys/sys/signal.h:140:#define SIG_IGN ((__sighandler_t *)1)
SIG_IGN = 1
)
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/capi_windows_386.go | vendor/modernc.org/libc/signal/capi_windows_386.go | // Code generated by 'ccgo signal/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 signal/signal_windows_386.go -pkgname signal', DO NOT EDIT.
package signal
var CAPI = map[string]struct{}{}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/signal_freebsd_386.go | vendor/modernc.org/libc/signal/signal_freebsd_386.go | // Code generated by 'ccgo signal/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 signal/signal_freebsd_386.go -pkgname signal', DO NOT EDIT.
package signal
import (
"math"
"reflect"
"sync/atomic"
"unsafe"
)
var _ = math.Pi
var _ reflect.Kind
var _ atomic.Value
var _ unsafe.Pointer
const (
BUS_ADRALN = 1 // signal.h:315:1:
BUS_ADRERR = 2 // signal.h:316:1:
BUS_OBJERR = 3 // signal.h:317:1:
BUS_OOMERR = 100 // signal.h:318:1:
CLD_CONTINUED = 6 // signal.h:350:1:
CLD_DUMPED = 3 // signal.h:346:1:
CLD_EXITED = 1 // signal.h:343:1:
CLD_KILLED = 2 // signal.h:344:1:
CLD_STOPPED = 5 // signal.h:349:1:
CLD_TRAPPED = 4 // signal.h:348:1:
FPE_FLTDIV = 3 // signal.h:329:1:
FPE_FLTINV = 7 // signal.h:333:1:
FPE_FLTOVF = 4 // signal.h:330:1:
FPE_FLTRES = 6 // signal.h:332:1:
FPE_FLTSUB = 8 // signal.h:334:1:
FPE_FLTUND = 5 // signal.h:331:1:
FPE_INTDIV = 2 // signal.h:328:1:
FPE_INTOVF = 1 // signal.h:327:1:
ILL_BADSTK = 8 // signal.h:312:1:
ILL_COPROC = 7 // signal.h:311:1:
ILL_ILLADR = 3 // signal.h:307:1:
ILL_ILLOPC = 1 // signal.h:305:1:
ILL_ILLOPN = 2 // signal.h:306:1:
ILL_ILLTRP = 4 // signal.h:308:1:
ILL_PRVOPC = 5 // signal.h:309:1:
ILL_PRVREG = 6 // signal.h:310:1:
MINSIGSTKSZ = 2048 // signal.h:432:1:
NSIG = 32 // signal.h:399:1:
POLL_ERR = 4 // signal.h:356:1:
POLL_HUP = 6 // signal.h:358:1:
POLL_IN = 1 // signal.h:353:1:
POLL_MSG = 3 // signal.h:355:1:
POLL_OUT = 2 // signal.h:354:1:
POLL_PRI = 5 // signal.h:357:1:
SA_NOCLDSTOP = 0x0008 // signal.h:386:1:
SA_NOCLDWAIT = 0x0020 // signal.h:394:1:
SA_NODEFER = 0x0010 // signal.h:393:1:
SA_ONSTACK = 0x0001 // signal.h:390:1:
SA_RESETHAND = 0x0004 // signal.h:392:1:
SA_RESTART = 0x0002 // signal.h:391:1:
SA_SIGINFO = 0x0040 // signal.h:395:1:
SEGV_ACCERR = 2 // signal.h:322:1:
SEGV_MAPERR = 1 // signal.h:321:1:
SEGV_PKUERR = 100 // signal.h:324:1:
SIGABRT = 6 // signal.h:81:1:
SIGALRM = 14 // signal.h:99:1:
SIGBUS = 10 // signal.h:91:1:
SIGCHLD = 20 // signal.h:109:1:
SIGCONT = 19 // signal.h:108:1:
SIGEMT = 7 // signal.h:84:1:
SIGEV_KEVENT = 3 // signal.h:222:1:
SIGEV_NONE = 0 // signal.h:218:1:
SIGEV_SIGNAL = 1 // signal.h:219:1:
SIGEV_THREAD = 2 // signal.h:220:1:
SIGEV_THREAD_ID = 4 // signal.h:223:1:
SIGFPE = 8 // signal.h:86:1:
SIGHUP = 1 // signal.h:71:1:
SIGILL = 4 // signal.h:77:1:
SIGINFO = 29 // signal.h:124:1:
SIGINT = 2 // signal.h:73:1:
SIGIO = 23 // signal.h:114:1:
SIGIOT = 6 // signal.h:83:1:
SIGKILL = 9 // signal.h:88:1:
SIGLIBRT = 33 // signal.h:133:1:
SIGLWP = 32 // signal.h:132:1:
SIGPIPE = 13 // signal.h:98:1:
SIGPROF = 27 // signal.h:120:1:
SIGQUIT = 3 // signal.h:75:1:
SIGRTMAX = 126 // signal.h:137:1:
SIGRTMIN = 65 // signal.h:136:1:
SIGSEGV = 11 // signal.h:93:1:
SIGSTKSZ = 34816 // signal.h:433:1:
SIGSTOP = 17 // signal.h:106:1:
SIGSYS = 12 // signal.h:95:1:
SIGTERM = 15 // signal.h:101:1:
SIGTHR = 32 // signal.h:131:1:
SIGTRAP = 5 // signal.h:79:1:
SIGTSTP = 18 // signal.h:107:1:
SIGTTIN = 21 // signal.h:110:1:
SIGTTOU = 22 // signal.h:111:1:
SIGURG = 16 // signal.h:103:1:
SIGUSR1 = 30 // signal.h:127:1:
SIGUSR2 = 31 // signal.h:128:1:
SIGVTALRM = 26 // signal.h:119:1:
SIGWINCH = 28 // signal.h:123:1:
SIGXCPU = 24 // signal.h:117:1:
SIGXFSZ = 25 // signal.h:118:1:
SIG_BLOCK = 1 // signal.h:501:1:
SIG_SETMASK = 3 // signal.h:503:1:
SIG_UNBLOCK = 2 // signal.h:502:1:
SI_ASYNCIO = 0x10004 // signal.h:408:1:
SI_KERNEL = 0x10006 // signal.h:412:1:
SI_LWP = 0x10007 // signal.h:413:1:
SI_MESGQ = 0x10005 // signal.h:410:1:
SI_NOINFO = 0 // signal.h:403:1:
SI_QUEUE = 0x10002 // signal.h:405:1:
SI_TIMER = 0x10003 // signal.h:406:1:
SI_UNDEFINED = 0 // signal.h:416:1:
SI_USER = 0x10001 // signal.h:404:1:
SS_DISABLE = 0x0004 // signal.h:431:1:
SS_ONSTACK = 0x0001 // signal.h:430:1:
SV_INTERRUPT = 2 // signal.h:459:1:
SV_NOCLDSTOP = 8 // signal.h:462:1:
SV_NODEFER = 16 // signal.h:461:1:
SV_ONSTACK = 1 // signal.h:458:1:
SV_RESETHAND = 4 // signal.h:460:1:
SV_SIGINFO = 64 // signal.h:463:1:
TRAP_BRKPT = 1 // signal.h:337:1:
TRAP_CAP = 4 // signal.h:340:1:
TRAP_DTRACE = 3 // signal.h:339:1:
TRAP_TRACE = 2 // signal.h:338:1:
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_ILP32 = 1 // <predefined>:1:1:
X_MACHINE_SIGNAL_H_ = 0 // signal.h:36:1:
X_MACHINE_UCONTEXT_H_ = 0 // ucontext.h:34:1:
X_MACHINE__LIMITS_H_ = 0 // _limits.h:36:1:
X_MACHINE__TYPES_H_ = 0 // _types.h:42:1:
X_MC_FLAG_MASK = 7 // ucontext.h:42:1:
X_MC_FPFMT_387 = 0x10001 // ucontext.h:74:1:
X_MC_FPFMT_NODEV = 0x10000 // ucontext.h:73:1:
X_MC_FPFMT_XMM = 0x10002 // ucontext.h:75:1:
X_MC_FPOWNED_FPU = 0x20001 // ucontext.h:78:1:
X_MC_FPOWNED_NONE = 0x20000 // ucontext.h:77:1:
X_MC_FPOWNED_PCB = 0x20002 // ucontext.h:79:1:
X_MC_HASBASES = 0x2 // ucontext.h:40:1:
X_MC_HASFPXSTATE = 0x4 // ucontext.h:41:1:
X_MC_HASSEGS = 0x1 // ucontext.h:39:1:
X_Nonnull = 0 // cdefs.h:790:1:
X_Null_unspecified = 0 // cdefs.h:792:1:
X_Nullable = 0 // cdefs.h:791:1:
X_PID_T_DECLARED = 0 // signal.h:61:1:
X_PTHREAD_T_DECLARED = 0 // _pthreadtypes.h:68:1:
X_SIGNAL_H_ = 0 // signal.h:36:1:
X_SIGSET_T_DECLARED = 0 // signal.h:165:1:
X_SIG_MAXSIG = 128 // _sigset.h:47:1:
X_SIG_WORDS = 4 // _sigset.h:46:1:
X_SIZE_T_DECLARED = 0 // signal.h:57:1:
X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1:
X_SYS_SIGNAL_H_ = 0 // signal.h:41:1:
X_SYS__PTHREADTYPES_H_ = 0 // _pthreadtypes.h:39:1:
X_SYS__SIGSET_H_ = 0 // _sigset.h:41:1:
X_SYS__TIMESPEC_H_ = 0 // _timespec.h:37:1:
X_SYS__TYPES_H_ = 0 // _types.h:32:1:
X_SYS__UCONTEXT_H_ = 0 // _ucontext.h:34:1:
X_TIME_T_DECLARED = 0 // _timespec.h:43:1:
X_UID_T_DECLARED = 0 // signal.h:62:1:
X_X86_SIGNAL_H = 1 // signal.h:37:1:
X_X86_UCONTEXT_H_ = 0 // ucontext.h:35:1:
I386 = 1 // <predefined>:335:1:
Unix = 1 // <predefined>:336:1:
)
type Ptrdiff_t = int32 /* <builtin>:3:26 */
type Size_t = uint32 /* <builtin>:9:23 */
type Wchar_t = int32 /* <builtin>:15:24 */
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
type X__float128 = float64 /* <builtin>:47:21 */
// -
// SPDX-License-Identifier: BSD-3-Clause
//
// Copyright (c) 1991, 1993
// The Regents of the University of California. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// @(#)signal.h 8.3 (Berkeley) 3/30/94
// $FreeBSD$
// -
// SPDX-License-Identifier: BSD-3-Clause
//
// Copyright (c) 1991, 1993
// The Regents of the University of California. All rights reserved.
//
// This code is derived from software contributed to Berkeley by
// Berkeley Software Design, Inc.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// @(#)cdefs.h 8.8 (Berkeley) 1/9/95
// $FreeBSD$
// Testing against Clang-specific extensions.
// This code has been put in place to help reduce the addition of
// compiler specific defines in FreeBSD code. It helps to aid in
// having a compiler-agnostic source tree.
// Compiler memory barriers, specific to gcc and clang.
// XXX: if __GNUC__ >= 2: not tested everywhere originally, where replaced
// Macro to test if we're using a specific version of gcc or later.
// The __CONCAT macro is used to concatenate parts of symbol names, e.g.
// with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo.
// The __CONCAT macro is a bit tricky to use if it must work in non-ANSI
// mode -- there must be no spaces between its arguments, and for nested
// __CONCAT's, all the __CONCAT's must be at the left. __CONCAT can also
// concatenate double-quoted strings produced by the __STRING macro, but
// this only works with ANSI C.
//
// __XSTRING is like __STRING, but it expands any macros in its argument
// first. It is only available with ANSI C.
// Compiler-dependent macros to help declare dead (non-returning) and
// pure (no side effects) functions, and unused variables. They are
// null except for versions of gcc that are known to support the features
// properly (old versions of gcc-2 supported the dead and pure features
// in a different (wrong) way). If we do not provide an implementation
// for a given compiler, let the compile fail if it is told to use
// a feature that we cannot live without.
// Keywords added in C11.
// Emulation of C11 _Generic(). Unlike the previously defined C11
// keywords, it is not possible to implement this using exactly the same
// syntax. Therefore implement something similar under the name
// __generic(). Unlike _Generic(), this macro can only distinguish
// between a single type, so it requires nested invocations to
// distinguish multiple cases.
// C99 Static array indices in function parameter declarations. Syntax such as:
// void bar(int myArray[static 10]);
// is allowed in C99 but not in C++. Define __min_size appropriately so
// headers using it can be compiled in either language. Use like this:
// void bar(int myArray[__min_size(10)]);
// XXX: should use `#if __STDC_VERSION__ < 199901'.
// C++11 exposes a load of C99 stuff
// GCC 2.95 provides `__restrict' as an extension to C90 to support the
// C99-specific `restrict' type qualifier. We happen to use `__restrict' as
// a way to define the `restrict' type qualifier without disturbing older
// software that is unaware of C99 keywords.
// GNU C version 2.96 adds explicit branch prediction so that
// the CPU back-end can hint the processor and also so that
// code blocks can be reordered such that the predicted path
// sees a more linear flow, thus improving cache behavior, etc.
//
// The following two macros provide us with a way to utilize this
// compiler feature. Use __predict_true() if you expect the expression
// to evaluate to true, and __predict_false() if you expect the
// expression to evaluate to false.
//
// A few notes about usage:
//
// * Generally, __predict_false() error condition checks (unless
// you have some _strong_ reason to do otherwise, in which case
// document it), and/or __predict_true() `no-error' condition
// checks, assuming you want to optimize for the no-error case.
//
// * Other than that, if you don't know the likelihood of a test
// succeeding from empirical or other `hard' evidence, don't
// make predictions.
//
// * These are meant to be used in places that are run `a lot'.
// It is wasteful to make predictions in code that is run
// seldomly (e.g. at subsystem initialization time) as the
// basic block reordering that this affects can often generate
// larger code.
// We define this here since <stddef.h>, <sys/queue.h>, and <sys/types.h>
// require it.
// Given the pointer x to the member m of the struct s, return
// a pointer to the containing structure. When using GCC, we first
// assign pointer x to a local variable, to check that its type is
// compatible with member m.
// Compiler-dependent macros to declare that functions take printf-like
// or scanf-like arguments. They are null except for versions of gcc
// that are known to support the features properly (old versions of gcc-2
// didn't permit keeping the keywords out of the application namespace).
// Compiler-dependent macros that rely on FreeBSD-specific extensions.
// Embed the rcs id of a source file in the resulting library. Note that in
// more recent ELF binutils, we use .ident allowing the ID to be stripped.
// Usage:
// __FBSDID("$FreeBSD$");
// -
// The following definitions are an extension of the behavior originally
// implemented in <sys/_posix.h>, but with a different level of granularity.
// POSIX.1 requires that the macros we test be defined before any standard
// header file is included.
//
// Here's a quick run-down of the versions:
// defined(_POSIX_SOURCE) 1003.1-1988
// _POSIX_C_SOURCE == 1 1003.1-1990
// _POSIX_C_SOURCE == 2 1003.2-1992 C Language Binding Option
// _POSIX_C_SOURCE == 199309 1003.1b-1993
// _POSIX_C_SOURCE == 199506 1003.1c-1995, 1003.1i-1995,
// and the omnibus ISO/IEC 9945-1: 1996
// _POSIX_C_SOURCE == 200112 1003.1-2001
// _POSIX_C_SOURCE == 200809 1003.1-2008
//
// In addition, the X/Open Portability Guide, which is now the Single UNIX
// Specification, defines a feature-test macro which indicates the version of
// that specification, and which subsumes _POSIX_C_SOURCE.
//
// Our macros begin with two underscores to avoid namespace screwage.
// Deal with IEEE Std. 1003.1-1990, in which _POSIX_C_SOURCE == 1.
// Deal with IEEE Std. 1003.2-1992, in which _POSIX_C_SOURCE == 2.
// Deal with various X/Open Portability Guides and Single UNIX Spec.
// Deal with all versions of POSIX. The ordering relative to the tests above is
// important.
// -
// Deal with _ANSI_SOURCE:
// If it is defined, and no other compilation environment is explicitly
// requested, then define our internal feature-test macros to zero. This
// makes no difference to the preprocessor (undefined symbols in preprocessing
// expressions are defined to have value zero), but makes it more convenient for
// a test program to print out the values.
//
// If a program mistakenly defines _ANSI_SOURCE and some other macro such as
// _POSIX_C_SOURCE, we will assume that it wants the broader compilation
// environment (and in fact we will never get here).
// User override __EXT1_VISIBLE
// Old versions of GCC use non-standard ARM arch symbols; acle-compat.h
// translates them to __ARM_ARCH and the modern feature symbols defined by ARM.
// Nullability qualifiers: currently only supported by Clang.
// Type Safety Checking
//
// Clang provides additional attributes to enable checking type safety
// properties that cannot be enforced by the C type system.
// Lock annotations.
//
// Clang provides support for doing basic thread-safety tests at
// compile-time, by marking which locks will/should be held when
// entering/leaving a functions.
//
// Furthermore, it is also possible to annotate variables and structure
// members to enforce that they are only accessed when certain locks are
// held.
// Structure implements a lock.
// Function acquires an exclusive or shared lock.
// Function attempts to acquire an exclusive or shared lock.
// Function releases a lock.
// Function asserts that an exclusive or shared lock is held.
// Function requires that an exclusive or shared lock is or is not held.
// Function should not be analyzed.
// Function or variable should not be sanitized, e.g., by AddressSanitizer.
// GCC has the nosanitize attribute, but as a function attribute only, and
// warns on use as a variable attribute.
// Guard variables and structure members by lock.
// Alignment builtins for better type checking and improved code generation.
// Provide fallback versions for other compilers (GCC/Clang < 10):
// -
// SPDX-License-Identifier: BSD-2-Clause-FreeBSD
//
// Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
//
// THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// $FreeBSD$
// -
// SPDX-License-Identifier: BSD-3-Clause
//
// Copyright (c) 1991, 1993
// The Regents of the University of California. All rights reserved.
//
// This code is derived from software contributed to Berkeley by
// Berkeley Software Design, Inc.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// @(#)cdefs.h 8.8 (Berkeley) 1/9/95
// $FreeBSD$
// -
// This file is in the public domain.
// $FreeBSD$
// -
// SPDX-License-Identifier: BSD-4-Clause
//
// Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
// Copyright (c) 1990, 1993
// The Regents of the University of California. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. All advertising materials mentioning features or use of this software
// must display the following acknowledgement:
// This product includes software developed by the University of
// California, Berkeley and its contributors.
// 4. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// From: @(#)ansi.h 8.2 (Berkeley) 1/4/94
// From: @(#)types.h 8.3 (Berkeley) 1/5/94
// $FreeBSD$
// -
// This file is in the public domain.
// $FreeBSD$
// -
// SPDX-License-Identifier: BSD-3-Clause
//
// Copyright (c) 1988, 1993
// The Regents of the University of California. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// @(#)limits.h 8.3 (Berkeley) 1/4/94
// $FreeBSD$
// According to ANSI (section 2.2.4.2), the values below must be usable by
// #if preprocessing directives. Additionally, the expression must have the
// same type as would an expression that is an object of the corresponding
// type converted according to the integral promotions. The subtraction for
// INT_MIN, etc., is so the value is not unsigned; e.g., 0x80000000 is an
// unsigned int for 32-bit two's complement ANSI compilers (section 3.1.3.2).
// max value for an unsigned long long
// Minimum signal stack size.
// Basic types upon which most other types are built.
type X__int8_t = int8 /* _types.h:55:22 */
type X__uint8_t = uint8 /* _types.h:56:24 */
type X__int16_t = int16 /* _types.h:57:17 */
type X__uint16_t = uint16 /* _types.h:58:25 */
type X__int32_t = int32 /* _types.h:59:15 */
type X__uint32_t = uint32 /* _types.h:60:23 */
type X__int64_t = int64 /* _types.h:66:20 */
type X__uint64_t = uint64 /* _types.h:68:28 */
// Standard type definitions.
type X__clock_t = uint32 /* _types.h:84:23 */
type X__critical_t = X__int32_t /* _types.h:85:19 */
type X__double_t = float64 /* _types.h:87:21 */
type X__float_t = float64 /* _types.h:88:21 */
type X__intfptr_t = X__int32_t /* _types.h:90:19 */
type X__intptr_t = X__int32_t /* _types.h:91:19 */
type X__intmax_t = X__int64_t /* _types.h:93:19 */
type X__int_fast8_t = X__int32_t /* _types.h:94:19 */
type X__int_fast16_t = X__int32_t /* _types.h:95:19 */
type X__int_fast32_t = X__int32_t /* _types.h:96:19 */
type X__int_fast64_t = X__int64_t /* _types.h:97:19 */
type X__int_least8_t = X__int8_t /* _types.h:98:18 */
type X__int_least16_t = X__int16_t /* _types.h:99:19 */
type X__int_least32_t = X__int32_t /* _types.h:100:19 */
type X__int_least64_t = X__int64_t /* _types.h:101:19 */
type X__ptrdiff_t = X__int32_t /* _types.h:112:19 */
type X__register_t = X__int32_t /* _types.h:113:19 */
type X__segsz_t = X__int32_t /* _types.h:114:19 */
type X__size_t = X__uint32_t /* _types.h:115:20 */
type X__ssize_t = X__int32_t /* _types.h:116:19 */
type X__time_t = X__int32_t /* _types.h:117:19 */
type X__uintfptr_t = X__uint32_t /* _types.h:118:20 */
type X__uintptr_t = X__uint32_t /* _types.h:119:20 */
type X__uintmax_t = X__uint64_t /* _types.h:121:20 */
type X__uint_fast8_t = X__uint32_t /* _types.h:122:20 */
type X__uint_fast16_t = X__uint32_t /* _types.h:123:20 */
type X__uint_fast32_t = X__uint32_t /* _types.h:124:20 */
type X__uint_fast64_t = X__uint64_t /* _types.h:125:20 */
type X__uint_least8_t = X__uint8_t /* _types.h:126:19 */
type X__uint_least16_t = X__uint16_t /* _types.h:127:20 */
type X__uint_least32_t = X__uint32_t /* _types.h:128:20 */
type X__uint_least64_t = X__uint64_t /* _types.h:129:20 */
type X__u_register_t = X__uint32_t /* _types.h:136:20 */
type X__vm_offset_t = X__uint32_t /* _types.h:137:20 */
type X__vm_paddr_t = X__uint64_t /* _types.h:138:20 */
type X__vm_size_t = X__uint32_t /* _types.h:139:20 */
type X___wchar_t = int32 /* _types.h:141:14 */
// Standard type definitions.
type X__blksize_t = X__int32_t /* _types.h:40:19 */ // file block size
type X__blkcnt_t = X__int64_t /* _types.h:41:19 */ // file block count
type X__clockid_t = X__int32_t /* _types.h:42:19 */ // clock_gettime()...
type X__fflags_t = X__uint32_t /* _types.h:43:20 */ // file flags
type X__fsblkcnt_t = X__uint64_t /* _types.h:44:20 */
type X__fsfilcnt_t = X__uint64_t /* _types.h:45:20 */
type X__gid_t = X__uint32_t /* _types.h:46:20 */
type X__id_t = X__int64_t /* _types.h:47:19 */ // can hold a gid_t, pid_t, or uid_t
type X__ino_t = X__uint64_t /* _types.h:48:20 */ // inode number
type X__key_t = int32 /* _types.h:49:15 */ // IPC key (for Sys V IPC)
type X__lwpid_t = X__int32_t /* _types.h:50:19 */ // Thread ID (a.k.a. LWP)
type X__mode_t = X__uint16_t /* _types.h:51:20 */ // permissions
type X__accmode_t = int32 /* _types.h:52:14 */ // access permissions
type X__nl_item = int32 /* _types.h:53:14 */
type X__nlink_t = X__uint64_t /* _types.h:54:20 */ // link count
type X__off_t = X__int64_t /* _types.h:55:19 */ // file offset
type X__off64_t = X__int64_t /* _types.h:56:19 */ // file offset (alias)
type X__pid_t = X__int32_t /* _types.h:57:19 */ // process [group]
type X__rlim_t = X__int64_t /* _types.h:58:19 */ // resource limit - intentionally
// signed, because of legacy code
// that uses -1 for RLIM_INFINITY
type X__sa_family_t = X__uint8_t /* _types.h:61:19 */
type X__socklen_t = X__uint32_t /* _types.h:62:20 */
type X__suseconds_t = int32 /* _types.h:63:15 */ // microseconds (signed)
type X__timer_t = uintptr /* _types.h:64:24 */ // timer_gettime()...
type X__mqd_t = uintptr /* _types.h:65:21 */ // mq_open()...
type X__uid_t = X__uint32_t /* _types.h:66:20 */
type X__useconds_t = uint32 /* _types.h:67:22 */ // microseconds (unsigned)
type X__cpuwhich_t = int32 /* _types.h:68:14 */ // which parameter for cpuset.
type X__cpulevel_t = int32 /* _types.h:69:14 */ // level parameter for cpuset.
type X__cpusetid_t = int32 /* _types.h:70:14 */ // cpuset identifier.
type X__daddr_t = X__int64_t /* _types.h:71:19 */ // bwrite(3), FIOBMAP2, etc
// Unusual type definitions.
// rune_t is declared to be an “int” instead of the more natural
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | true |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/more_netbsd_amd64.go | vendor/modernc.org/libc/signal/more_netbsd_amd64.go | // Copyright 2020 The Libc Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package signal
const (
// sys/sys/signal.h:139:#define SIG_DFL ((__sighandler_t *)0)
SIG_DFL = 0
// sys/sys/signal.h:140:#define SIG_IGN ((__sighandler_t *)1)
SIG_IGN = 1
)
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/more_linux_amd64.go | vendor/modernc.org/libc/signal/more_linux_amd64.go | // Copyright 2020 The Libc Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package signal
const (
// /usr/include/asm-generic/signal-defs.h:24:#define SIG_DFL ((__sighandler_t)0) /* default signal handling */
SIG_DFL = 0
// /usr/include/asm-generic/signal-defs.h:25:#define SIG_IGN ((__sighandler_t)1) /* ignore signal */
SIG_IGN = 1
)
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/capi_linux_amd64.go | vendor/modernc.org/libc/signal/capi_linux_amd64.go | // Code generated by 'ccgo signal/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 signal/signal_linux_amd64.go -pkgname signal', DO NOT EDIT.
package signal
var CAPI = map[string]struct{}{}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/capi_netbsd_arm.go | vendor/modernc.org/libc/signal/capi_netbsd_arm.go | // Code generated by 'ccgo signal/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 signal/signal_netbsd_arm.go -pkgname signal', DO NOT EDIT.
package signal
var CAPI = map[string]struct{}{}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/capi_linux_386.go | vendor/modernc.org/libc/signal/capi_linux_386.go | // Code generated by 'ccgo signal/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o signal/signal_linux_386.go -pkgname signal', DO NOT EDIT.
package signal
var CAPI = map[string]struct{}{}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/more_openbsd_amd64.go | vendor/modernc.org/libc/signal/more_openbsd_amd64.go | // Copyright 2020 The Libc Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package signal
const (
// sys/sys/signal.h:139:#define SIG_DFL ((__sighandler_t *)0)
SIG_DFL = 0
// sys/sys/signal.h:140:#define SIG_IGN ((__sighandler_t *)1)
SIG_IGN = 1
)
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/more_darwin_arm64.go | vendor/modernc.org/libc/signal/more_darwin_arm64.go | // Copyright 2020 The Libc Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package signal
const (
// /usr/include/asm-generic/signal-defs.h:24:#define SIG_DFL ((__sighandler_t)0) /* default signal handling */
SIG_DFL = 0
// /usr/include/asm-generic/signal-defs.h:25:#define SIG_IGN ((__sighandler_t)1) /* ignore signal */
SIG_IGN = 1
)
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/signal_darwin_arm64.go | vendor/modernc.org/libc/signal/signal_darwin_arm64.go | // Code generated by 'ccgo signal/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 signal/signal_darwin_arm64.go -pkgname signal', DO NOT EDIT.
package signal
import (
"math"
"reflect"
"sync/atomic"
"unsafe"
)
var _ = math.Pi
var _ reflect.Kind
var _ atomic.Value
var _ unsafe.Pointer
const (
BUS_ADRALN = 1 // signal.h:241:1:
BUS_ADRERR = 2 // signal.h:242:1:
BUS_NOOP = 0 // signal.h:239:1:
BUS_OBJERR = 3 // signal.h:243:1:
CLD_CONTINUED = 6 // signal.h:258:1:
CLD_DUMPED = 3 // signal.h:255:1:
CLD_EXITED = 1 // signal.h:253:1:
CLD_KILLED = 2 // signal.h:254:1:
CLD_NOOP = 0 // signal.h:251:1:
CLD_STOPPED = 5 // signal.h:257:1:
CLD_TRAPPED = 4 // signal.h:256:1:
FPE_FLTDIV = 1 // signal.h:221:1:
FPE_FLTINV = 5 // signal.h:225:1:
FPE_FLTOVF = 2 // signal.h:222:1:
FPE_FLTRES = 4 // signal.h:224:1:
FPE_FLTSUB = 6 // signal.h:226:1:
FPE_FLTUND = 3 // signal.h:223:1:
FPE_INTDIV = 7 // signal.h:227:1:
FPE_INTOVF = 8 // signal.h:228:1:
FPE_NOOP = 0 // signal.h:219:1:
ILL_BADSTK = 8 // signal.h:215:1:
ILL_COPROC = 7 // signal.h:214:1:
ILL_ILLADR = 5 // signal.h:212:1:
ILL_ILLOPC = 1 // signal.h:208:1:
ILL_ILLOPN = 4 // signal.h:211:1:
ILL_ILLTRP = 2 // signal.h:209:1:
ILL_NOOP = 0 // signal.h:206:1:
ILL_PRVOPC = 3 // signal.h:210:1:
ILL_PRVREG = 6 // signal.h:213:1:
MAC_OS_VERSION_11_0 = 110000 // AvailabilityVersions.h:238:1:
MAC_OS_VERSION_12_0 = 120000 // AvailabilityVersions.h:239:1:
MAC_OS_X_VERSION_10_0 = 1000 // AvailabilityVersions.h:206:1:
MAC_OS_X_VERSION_10_1 = 1010 // AvailabilityVersions.h:207:1:
MAC_OS_X_VERSION_10_10 = 101000 // AvailabilityVersions.h:216:1:
MAC_OS_X_VERSION_10_10_2 = 101002 // AvailabilityVersions.h:217:1:
MAC_OS_X_VERSION_10_10_3 = 101003 // AvailabilityVersions.h:218:1:
MAC_OS_X_VERSION_10_11 = 101100 // AvailabilityVersions.h:219:1:
MAC_OS_X_VERSION_10_11_2 = 101102 // AvailabilityVersions.h:220:1:
MAC_OS_X_VERSION_10_11_3 = 101103 // AvailabilityVersions.h:221:1:
MAC_OS_X_VERSION_10_11_4 = 101104 // AvailabilityVersions.h:222:1:
MAC_OS_X_VERSION_10_12 = 101200 // AvailabilityVersions.h:223:1:
MAC_OS_X_VERSION_10_12_1 = 101201 // AvailabilityVersions.h:224:1:
MAC_OS_X_VERSION_10_12_2 = 101202 // AvailabilityVersions.h:225:1:
MAC_OS_X_VERSION_10_12_4 = 101204 // AvailabilityVersions.h:226:1:
MAC_OS_X_VERSION_10_13 = 101300 // AvailabilityVersions.h:227:1:
MAC_OS_X_VERSION_10_13_1 = 101301 // AvailabilityVersions.h:228:1:
MAC_OS_X_VERSION_10_13_2 = 101302 // AvailabilityVersions.h:229:1:
MAC_OS_X_VERSION_10_13_4 = 101304 // AvailabilityVersions.h:230:1:
MAC_OS_X_VERSION_10_14 = 101400 // AvailabilityVersions.h:231:1:
MAC_OS_X_VERSION_10_14_1 = 101401 // AvailabilityVersions.h:232:1:
MAC_OS_X_VERSION_10_14_4 = 101404 // AvailabilityVersions.h:233:1:
MAC_OS_X_VERSION_10_14_6 = 101406 // AvailabilityVersions.h:234:1:
MAC_OS_X_VERSION_10_15 = 101500 // AvailabilityVersions.h:235:1:
MAC_OS_X_VERSION_10_15_1 = 101501 // AvailabilityVersions.h:236:1:
MAC_OS_X_VERSION_10_16 = 101600 // AvailabilityVersions.h:237:1:
MAC_OS_X_VERSION_10_2 = 1020 // AvailabilityVersions.h:208:1:
MAC_OS_X_VERSION_10_3 = 1030 // AvailabilityVersions.h:209:1:
MAC_OS_X_VERSION_10_4 = 1040 // AvailabilityVersions.h:210:1:
MAC_OS_X_VERSION_10_5 = 1050 // AvailabilityVersions.h:211:1:
MAC_OS_X_VERSION_10_6 = 1060 // AvailabilityVersions.h:212:1:
MAC_OS_X_VERSION_10_7 = 1070 // AvailabilityVersions.h:213:1:
MAC_OS_X_VERSION_10_8 = 1080 // AvailabilityVersions.h:214:1:
MAC_OS_X_VERSION_10_9 = 1090 // AvailabilityVersions.h:215:1:
MINSIGSTKSZ = 32768 // signal.h:340:1:
NSIG = 32 // signal.h:79:1:
POLL_ERR = 4 // signal.h:264:1:
POLL_HUP = 6 // signal.h:266:1:
POLL_IN = 1 // signal.h:261:1:
POLL_MSG = 3 // signal.h:263:1:
POLL_OUT = 2 // signal.h:262:1:
POLL_PRI = 5 // signal.h:265:1:
SA_64REGSET = 0x0200 // signal.h:308:1:
SA_NOCLDSTOP = 0x0008 // signal.h:301:1:
SA_NOCLDWAIT = 0x0020 // signal.h:303:1:
SA_NODEFER = 0x0010 // signal.h:302:1:
SA_ONSTACK = 0x0001 // signal.h:298:1:
SA_RESETHAND = 0x0004 // signal.h:300:1:
SA_RESTART = 0x0002 // signal.h:299:1:
SA_SIGINFO = 0x0040 // signal.h:304:1:
SA_USERSPACE_MASK = 127 // signal.h:314:1:
SA_USERTRAMP = 0x0100 // signal.h:306:1:
SEGV_ACCERR = 2 // signal.h:235:1:
SEGV_MAPERR = 1 // signal.h:234:1:
SEGV_NOOP = 0 // signal.h:232:1:
SIGABRT = 6 // signal.h:89:1:
SIGALRM = 14 // signal.h:102:1:
SIGBUS = 10 // signal.h:98:1:
SIGCHLD = 20 // signal.h:108:1:
SIGCONT = 19 // signal.h:107:1:
SIGEMT = 7 // signal.h:94:1:
SIGEV_NONE = 0 // signal.h:164:1:
SIGEV_SIGNAL = 1 // signal.h:165:1:
SIGEV_THREAD = 3 // signal.h:166:1:
SIGFPE = 8 // signal.h:96:1:
SIGHUP = 1 // signal.h:84:1:
SIGILL = 4 // signal.h:87:1:
SIGINFO = 29 // signal.h:120:1:
SIGINT = 2 // signal.h:85:1:
SIGIO = 23 // signal.h:112:1:
SIGIOT = 6 // signal.h:93:1:
SIGKILL = 9 // signal.h:97:1:
SIGPIPE = 13 // signal.h:101:1:
SIGPROF = 27 // signal.h:117:1:
SIGQUIT = 3 // signal.h:86:1:
SIGSEGV = 11 // signal.h:99:1:
SIGSTKSZ = 131072 // signal.h:341:1:
SIGSTOP = 17 // signal.h:105:1:
SIGSYS = 12 // signal.h:100:1:
SIGTERM = 15 // signal.h:103:1:
SIGTRAP = 5 // signal.h:88:1:
SIGTSTP = 18 // signal.h:106:1:
SIGTTIN = 21 // signal.h:109:1:
SIGTTOU = 22 // signal.h:110:1:
SIGURG = 16 // signal.h:104:1:
SIGUSR1 = 30 // signal.h:122:1:
SIGUSR2 = 31 // signal.h:123:1:
SIGVTALRM = 26 // signal.h:116:1:
SIGWINCH = 28 // signal.h:119:1:
SIGXCPU = 24 // signal.h:114:1:
SIGXFSZ = 25 // signal.h:115:1:
SIG_BLOCK = 1 // signal.h:319:1:
SIG_SETMASK = 3 // signal.h:321:1:
SIG_UNBLOCK = 2 // signal.h:320:1:
SI_ASYNCIO = 0x10004 // signal.h:327:1:
SI_MESGQ = 0x10005 // signal.h:328:1:
SI_QUEUE = 0x10002 // signal.h:325:1:
SI_TIMER = 0x10003 // signal.h:326:1:
SI_USER = 0x10001 // signal.h:324:1:
SS_DISABLE = 0x0004 // signal.h:339:1:
SS_ONSTACK = 0x0001 // signal.h:338:1:
SV_INTERRUPT = 2 // signal.h:355:1:
SV_NOCLDSTOP = 8 // signal.h:358:1:
SV_NODEFER = 16 // signal.h:357:1:
SV_ONSTACK = 1 // signal.h:354:1:
SV_RESETHAND = 4 // signal.h:356:1:
SV_SIGINFO = 64 // signal.h:359:1:
TRAP_BRKPT = 1 // signal.h:246:1:
TRAP_TRACE = 2 // signal.h:247:1:
X_ARM_MACHTYPES_H_ = 0 // types.h:43:1:
X_ARM_SIGNAL_ = 1 // signal.h:10:1:
X_BSD_ARM__TYPES_H_ = 0 // _types.h:5:1:
X_BSD_MACHINE_SIGNAL_H_ = 0 // signal.h:29:1:
X_BSD_MACHINE_TYPES_H_ = 0 // types.h:32:1:
X_BSD_MACHINE__MCONTEXT_H_ = 0 // _mcontext.h:29:1:
X_BSD_MACHINE__TYPES_H_ = 0 // _types.h:29:1:
X_CDEFS_H_ = 0 // cdefs.h:68:1:
X_DARWIN_FEATURE_64_BIT_INODE = 1 // cdefs.h:774:1:
X_DARWIN_FEATURE_ONLY_64_BIT_INODE = 1 // cdefs.h:784:1:
X_DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE = 1 // cdefs.h:800:1:
X_DARWIN_FEATURE_ONLY_VERS_1050 = 1 // cdefs.h:792:1:
X_DARWIN_FEATURE_UNIX_CONFORMANCE = 3 // cdefs.h:808:1:
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_FORTIFY_SOURCE = 2 // _types.h:65:1:
X_INT16_T = 0 // _int16_t.h:29:1:
X_INT32_T = 0 // _int32_t.h:29:1:
X_INT64_T = 0 // _int64_t.h:29:1:
X_INT8_T = 0 // _int8_t.h:29:1:
X_INTPTR_T = 0 // _intptr_t.h:29:1:
X_LP64 = 1 // <predefined>:1:1:
X_MACHTYPES_H_ = 0 // types.h:44:1:
X_MACH_ARM__STRUCTS_H_ = 0 // _structs.h:32:1:
X_MACH_MACHINE__STRUCTS_H_ = 0 // _structs.h:30:1:
X_MCONTEXT_T = 0 // _mcontext.h:83:1:
X_Nonnull = 0 // cdefs.h:268:1:
X_Null_unspecified = 0 // cdefs.h:271:1:
X_Nullable = 0 // cdefs.h:265:1:
X_PID_T = 0 // _pid_t.h:29:1:
X_PTHREAD_ATTR_T = 0 // _pthread_attr_t.h:29:1:
X_PTHREAD_T = 0 // _pthread_t.h:29:1:
X_SIGSET_T = 0 // _sigset_t.h:29:1:
X_SIZE_T = 0 // _size_t.h:29:1:
X_SYS_SIGNAL_H_ = 0 // signal.h:70:1:
X_SYS__PTHREAD_TYPES_H_ = 0 // _pthread_types.h:30:1:
X_SYS__TYPES_H_ = 0 // _types.h:30:1:
X_UID_T = 0 // _uid_t.h:29:1:
X_UINTPTR_T = 0 // _uintptr_t.h:29:1:
X_USER_SIGNAL_H = 0 // signal.h:59:1:
X_U_INT16_T = 0 // _u_int16_t.h:29:1:
X_U_INT32_T = 0 // _u_int32_t.h:29:1:
X_U_INT64_T = 0 // _u_int64_t.h:29:1:
X_U_INT8_T = 0 // _u_int8_t.h:29:1:
)
type Ptrdiff_t = int64 /* <builtin>:3:26 */
type Size_t = uint64 /* <builtin>:9:23 */
type Wchar_t = int32 /* <builtin>:15:24 */
type X__int128_t = struct {
Flo int64
Fhi int64
} /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
type X__uint128_t = struct {
Flo uint64
Fhi uint64
} /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
type X__float128 = float64 /* <builtin>:47:21 */
var X__darwin_check_fd_set_overflow uintptr /* <builtin>:146:5: */
// Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
//
// @APPLE_LICENSE_HEADER_START@
//
// This file contains Original Code and/or Modifications of Original Code
// as defined in and that are subject to the Apple Public Source License
// Version 2.0 (the 'License'). You may not use this file except in
// compliance with the License. Please obtain a copy of the License at
// http://www.opensource.apple.com/apsl/ and read it before using this
// file.
//
// The Original Code and all software distributed under the License are
// distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
// EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
// INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
// Please see the License for the specific language governing rights and
// limitations under the License.
//
// @APPLE_LICENSE_HEADER_END@
// -
// Copyright (c) 1991, 1993
// The Regents of the University of California. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. All advertising materials mentioning features or use of this software
// must display the following acknowledgement:
// This product includes software developed by the University of
// California, Berkeley and its contributors.
// 4. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// @(#)signal.h 8.3 (Berkeley) 3/30/94
// Copyright (c) 2000-2018 Apple Inc. All rights reserved.
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_START@
//
// This file contains Original Code and/or Modifications of Original Code
// as defined in and that are subject to the Apple Public Source License
// Version 2.0 (the 'License'). You may not use this file except in
// compliance with the License. The rights granted to you under the License
// may not be used to create, or enable the creation or redistribution of,
// unlawful or unlicensed copies of an Apple operating system, or to
// circumvent, violate, or enable the circumvention or violation of, any
// terms of an Apple operating system software license agreement.
//
// Please obtain a copy of the License at
// http://www.opensource.apple.com/apsl/ and read it before using this file.
//
// The Original Code and all software distributed under the License are
// distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
// EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
// INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
// Please see the License for the specific language governing rights and
// limitations under the License.
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_END@
// Copyright 1995 NeXT Computer, Inc. All rights reserved.
// Copyright (c) 1991, 1993
// The Regents of the University of California. All rights reserved.
//
// This code is derived from software contributed to Berkeley by
// Berkeley Software Design, Inc.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. All advertising materials mentioning features or use of this software
// must display the following acknowledgement:
// This product includes software developed by the University of
// California, Berkeley and its contributors.
// 4. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// @(#)cdefs.h 8.8 (Berkeley) 1/9/95
// This SDK is designed to work with clang and specific versions of
// gcc >= 4.0 with Apple's patch sets
// Compatibility with compilers and environments that don't support compiler
// feature checking function-like macros.
// The __CONCAT macro is used to concatenate parts of symbol names, e.g.
// with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo.
// The __CONCAT macro is a bit tricky -- make sure you don't put spaces
// in between its arguments. __CONCAT can also concatenate double-quoted
// strings produced by the __STRING macro, but this only works with ANSI C.
// In non-ANSI C environments, new programs will want ANSI-only C keywords
// deleted from the program and old programs will want them left alone.
// When using a compiler other than gcc, programs using the ANSI C keywords
// const, inline etc. as normal identifiers should define -DNO_ANSI_KEYWORDS.
// When using "gcc -traditional", we assume that this is the intent; if
// __GNUC__ is defined but __STDC__ is not, we leave the new keywords alone.
// __pure2 can be used for functions that are only a function of their scalar
// arguments (meaning they can't dereference pointers).
//
// __stateful_pure can be used for functions that have no side effects,
// but depend on the state of the memory.
// __unused denotes variables and functions that may not be used, preventing
// the compiler from warning about it if not used.
// __used forces variables and functions to be included even if it appears
// to the compiler that they are not used (and would thust be discarded).
// __cold marks code used for debugging or that is rarely taken
// and tells the compiler to optimize for size and outline code.
// __exported denotes symbols that should be exported even when symbols
// are hidden by default.
// __exported_push/_exported_pop are pragmas used to delimit a range of
// symbols that should be exported even when symbols are hidden by default.
// __deprecated causes the compiler to produce a warning when encountering
// code using the deprecated functionality.
// __deprecated_msg() does the same, and compilers that support it will print
// a message along with the deprecation warning.
// This may require turning on such warning with the -Wdeprecated flag.
// __deprecated_enum_msg() should be used on enums, and compilers that support
// it will print the deprecation warning.
// __kpi_deprecated() specifically indicates deprecation of kernel programming
// interfaces in Kernel.framework used by KEXTs.
// __unavailable causes the compiler to error out when encountering
// code using the tagged function
// Delete pseudo-keywords wherever they are not available or needed.
// We use `__restrict' as a way to define the `restrict' type qualifier
// without disturbing older software that is unaware of C99 keywords.
// Compatibility with compilers and environments that don't support the
// nullability feature.
// __disable_tail_calls causes the compiler to not perform tail call
// optimization inside the marked function.
// __not_tail_called causes the compiler to prevent tail call optimization
// on statically bound calls to the function. It has no effect on indirect
// calls. Virtual functions, objective-c methods, and functions marked as
// "always_inline" cannot be marked as __not_tail_called.
// __result_use_check warns callers of a function that not using the function
// return value is a bug, i.e. dismissing malloc() return value results in a
// memory leak.
// __swift_unavailable causes the compiler to mark a symbol as specifically
// unavailable in Swift, regardless of any other availability in C.
// __abortlike is the attribute to put on functions like abort() that are
// typically used to mark assertions. These optimize the codegen
// for outlining while still maintaining debugability.
// Declaring inline functions within headers is error-prone due to differences
// across various versions of the C language and extensions. __header_inline
// can be used to declare inline functions within system headers. In cases
// where you want to force inlining instead of letting the compiler make
// the decision, you can use __header_always_inline.
//
// Be aware that using inline for functions which compilers may also provide
// builtins can behave differently under various compilers. If you intend to
// provide an inline version of such a function, you may want to use a macro
// instead.
//
// The check for !__GNUC__ || __clang__ is because gcc doesn't correctly
// support c99 inline in some cases:
// http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55965
// Compiler-dependent macros that bracket portions of code where the
// "-Wunreachable-code" warning should be ignored. Please use sparingly.
// Compiler-dependent macros to declare that functions take printf-like
// or scanf-like arguments. They are null except for versions of gcc
// that are known to support the features properly. Functions declared
// with these attributes will cause compilation warnings if there is a
// mismatch between the format string and subsequent function parameter
// types.
// Source compatibility only, ID string not emitted in object file
// __alloc_size can be used to label function arguments that represent the
// size of memory that the function allocates and returns. The one-argument
// form labels a single argument that gives the allocation size (where the
// arguments are numbered from 1):
//
// void *malloc(size_t __size) __alloc_size(1);
//
// The two-argument form handles the case where the size is calculated as the
// product of two arguments:
//
// void *calloc(size_t __count, size_t __size) __alloc_size(1,2);
// COMPILATION ENVIRONMENTS -- see compat(5) for additional detail
//
// DEFAULT By default newly complied code will get POSIX APIs plus
// Apple API extensions in scope.
//
// Most users will use this compilation environment to avoid
// behavioral differences between 32 and 64 bit code.
//
// LEGACY Defining _NONSTD_SOURCE will get pre-POSIX APIs plus Apple
// API extensions in scope.
//
// This is generally equivalent to the Tiger release compilation
// environment, except that it cannot be applied to 64 bit code;
// its use is discouraged.
//
// We expect this environment to be deprecated in the future.
//
// STRICT Defining _POSIX_C_SOURCE or _XOPEN_SOURCE restricts the
// available APIs to exactly the set of APIs defined by the
// corresponding standard, based on the value defined.
//
// A correct, portable definition for _POSIX_C_SOURCE is 200112L.
// A correct, portable definition for _XOPEN_SOURCE is 600L.
//
// Apple API extensions are not visible in this environment,
// which can cause Apple specific code to fail to compile,
// or behave incorrectly if prototypes are not in scope or
// warnings about missing prototypes are not enabled or ignored.
//
// In any compilation environment, for correct symbol resolution to occur,
// function prototypes must be in scope. It is recommended that all Apple
// tools users add either the "-Wall" or "-Wimplicit-function-declaration"
// compiler flags to their projects to be warned when a function is being
// used without a prototype in scope.
// These settings are particular to each product.
// Platform: MacOSX
// The __DARWIN_ALIAS macros are used to do symbol renaming; they allow
// legacy code to use the old symbol, thus maintaining binary compatibility
// while new code can use a standards compliant version of the same function.
//
// __DARWIN_ALIAS is used by itself if the function signature has not
// changed, it is used along with a #ifdef check for __DARWIN_UNIX03
// if the signature has changed. Because the __LP64__ environment
// only supports UNIX03 semantics it causes __DARWIN_UNIX03 to be
// defined, but causes __DARWIN_ALIAS to do no symbol mangling.
//
// As a special case, when XCode is used to target a specific version of the
// OS, the manifest constant __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
// will be defined by the compiler, with the digits representing major version
// time 100 + minor version times 10 (e.g. 10.5 := 1050). If we are targeting
// pre-10.5, and it is the default compilation environment, revert the
// compilation environment to pre-__DARWIN_UNIX03.
// symbol suffixes used for symbol versioning
// symbol versioning macros
// symbol release macros
// Copyright (c) 2010 Apple Inc. All rights reserved.
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_START@
//
// This file contains Original Code and/or Modifications of Original Code
// as defined in and that are subject to the Apple Public Source License
// Version 2.0 (the 'License'). You may not use this file except in
// compliance with the License. The rights granted to you under the License
// may not be used to create, or enable the creation or redistribution of,
// unlawful or unlicensed copies of an Apple operating system, or to
// circumvent, violate, or enable the circumvention or violation of, any
// terms of an Apple operating system software license agreement.
//
// Please obtain a copy of the License at
// http://www.opensource.apple.com/apsl/ and read it before using this file.
//
// The Original Code and all software distributed under the License are
// distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
// EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
// INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
// Please see the License for the specific language governing rights and
// limitations under the License.
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_END@
// POSIX.1 requires that the macros we test be defined before any standard
// header file is included. This permits us to convert values for feature
// testing, as necessary, using only _POSIX_C_SOURCE.
//
// Here's a quick run-down of the versions:
// defined(_POSIX_SOURCE) 1003.1-1988
// _POSIX_C_SOURCE == 1L 1003.1-1990
// _POSIX_C_SOURCE == 2L 1003.2-1992 C Language Binding Option
// _POSIX_C_SOURCE == 199309L 1003.1b-1993
// _POSIX_C_SOURCE == 199506L 1003.1c-1995, 1003.1i-1995,
// and the omnibus ISO/IEC 9945-1: 1996
// _POSIX_C_SOURCE == 200112L 1003.1-2001
// _POSIX_C_SOURCE == 200809L 1003.1-2008
//
// In addition, the X/Open Portability Guide, which is now the Single UNIX
// Specification, defines a feature-test macro which indicates the version of
// that specification, and which subsumes _POSIX_C_SOURCE.
// Deal with IEEE Std. 1003.1-1990, in which _POSIX_C_SOURCE == 1L.
// Deal with IEEE Std. 1003.2-1992, in which _POSIX_C_SOURCE == 2L.
// Deal with various X/Open Portability Guides and Single UNIX Spec.
// Deal with all versions of POSIX. The ordering relative to the tests above is
// important.
// POSIX C deprecation macros
// Copyright (c) 2010 Apple Inc. All rights reserved.
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_START@
//
// This file contains Original Code and/or Modifications of Original Code
// as defined in and that are subject to the Apple Public Source License
// Version 2.0 (the 'License'). You may not use this file except in
// compliance with the License. The rights granted to you under the License
// may not be used to create, or enable the creation or redistribution of,
// unlawful or unlicensed copies of an Apple operating system, or to
// circumvent, violate, or enable the circumvention or violation of, any
// terms of an Apple operating system software license agreement.
//
// Please obtain a copy of the License at
// http://www.opensource.apple.com/apsl/ and read it before using this file.
//
// The Original Code and all software distributed under the License are
// distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
// EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
// INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
// Please see the License for the specific language governing rights and
// limitations under the License.
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_END@
// Set a single macro which will always be defined and can be used to determine
// the appropriate namespace. For POSIX, these values will correspond to
// _POSIX_C_SOURCE value. Currently there are two additional levels corresponding
// to ANSI (_ANSI_SOURCE) and Darwin extensions (_DARWIN_C_SOURCE)
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | true |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/more_openbsd_arm64.go | vendor/modernc.org/libc/signal/more_openbsd_arm64.go | // Copyright 2020 The Libc Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package signal
const (
// sys/sys/signal.h:139:#define SIG_DFL ((__sighandler_t *)0)
SIG_DFL = 0
// sys/sys/signal.h:140:#define SIG_IGN ((__sighandler_t *)1)
SIG_IGN = 1
)
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/more_linux_386.go | vendor/modernc.org/libc/signal/more_linux_386.go | // Copyright 2020 The Libc Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package signal
const (
// /usr/include/asm-generic/signal-defs.h:24:#define SIG_DFL ((__sighandler_t)0) /* default signal handling */
SIG_DFL = 0
// /usr/include/asm-generic/signal-defs.h:25:#define SIG_IGN ((__sighandler_t)1) /* ignore signal */
SIG_IGN = 1
)
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/signal_linux_mips64le.go | vendor/modernc.org/libc/signal/signal_linux_mips64le.go | // Code generated by 'ccgo signal/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 signal/signal_linux_amd64.go -pkgname signal', DO NOT EDIT.
package signal
import (
"math"
"reflect"
"sync/atomic"
"unsafe"
)
var _ = math.Pi
var _ reflect.Kind
var _ atomic.Value
var _ unsafe.Pointer
const (
FP_XSTATE_MAGIC1 = 0x46505853 // sigcontext.h:27:1:
FP_XSTATE_MAGIC2 = 0x46505845 // sigcontext.h:28:1:
MINSIGSTKSZ = 2048 // sigstack.h:27:1:
NGREG = 23 // ucontext.h:42:1:
NSIG = 65 // signal.h:181:1:
SA_INTERRUPT = 0x20000000 // sigaction.h:70:1:
SA_NOCLDSTOP = 1 // sigaction.h:56:1:
SA_NOCLDWAIT = 2 // sigaction.h:57:1:
SA_NODEFER = 0x40000000 // sigaction.h:65:1:
SA_NOMASK = 1073741824 // sigaction.h:73:1:
SA_ONESHOT = 2147483648 // sigaction.h:74:1:
SA_ONSTACK = 0x08000000 // sigaction.h:61:1:
SA_RESETHAND = 0x80000000 // sigaction.h:67:1:
SA_RESTART = 0x10000000 // sigaction.h:64:1:
SA_SIGINFO = 4 // sigaction.h:58:1:
SA_STACK = 134217728 // sigaction.h:75:1:
SIGABRT = 6 // signum-generic.h:50:1:
SIGALRM = 14 // signum-generic.h:63:1:
SIGBUS = 7 // signum.h:35:1:
SIGCHLD = 17 // signum.h:41:1:
SIGCLD = 17 // signum-generic.h:88:1:
SIGCONT = 18 // signum.h:43:1:
SIGFPE = 8 // signum-generic.h:51:1:
SIGHUP = 1 // signum-generic.h:56:1:
SIGILL = 4 // signum-generic.h:49:1:
SIGINT = 2 // signum-generic.h:48:1:
SIGIO = 29 // signum-generic.h:86:1:
SIGIOT = 6 // signum-generic.h:87:1:
SIGKILL = 9 // signum-generic.h:59:1:
SIGPIPE = 13 // signum-generic.h:62:1:
SIGPOLL = 29 // signum.h:51:1:
SIGPROF = 27 // signum-generic.h:77:1:
SIGPWR = 30 // signum.h:32:1:
SIGQUIT = 3 // signum-generic.h:57:1:
SIGSEGV = 11 // signum-generic.h:52:1:
SIGSTKFLT = 16 // signum.h:31:1:
SIGSTKSZ = 8192 // sigstack.h:30:1:
SIGSTOP = 19 // signum.h:45:1:
SIGSYS = 31 // signum.h:53:1:
SIGTERM = 15 // signum-generic.h:53:1:
SIGTRAP = 5 // signum-generic.h:58:1:
SIGTSTP = 20 // signum.h:47:1:
SIGTTIN = 21 // signum-generic.h:71:1:
SIGTTOU = 22 // signum-generic.h:72:1:
SIGURG = 23 // signum.h:49:1:
SIGUSR1 = 10 // signum.h:37:1:
SIGUSR2 = 12 // signum.h:39:1:
SIGVTALRM = 26 // signum-generic.h:76:1:
SIGWINCH = 28 // signum-generic.h:83:1:
SIGXCPU = 24 // signum-generic.h:74:1:
SIGXFSZ = 25 // signum-generic.h:75:1:
SIG_BLOCK = 0 // sigaction.h:79:1:
SIG_SETMASK = 2 // sigaction.h:81:1:
SIG_UNBLOCK = 1 // sigaction.h:80:1:
X_ATFILE_SOURCE = 1 // features.h:342:1:
X_BITS_ENDIANNESS_H = 1 // endianness.h:2:1:
X_BITS_ENDIAN_H = 1 // endian.h:20:1:
X_BITS_PTHREADTYPES_ARCH_H = 1 // pthreadtypes-arch.h:19:1:
X_BITS_PTHREADTYPES_COMMON_H = 1 // pthreadtypes.h:20:1:
X_BITS_SIGACTION_H = 1 // sigaction.h:20:1:
X_BITS_SIGCONTEXT_H = 1 // sigcontext.h:19:1:
X_BITS_SIGEVENT_CONSTS_H = 1 // sigevent-consts.h:20:1:
X_BITS_SIGINFO_ARCH_H = 1 // siginfo-arch.h:3:1:
X_BITS_SIGINFO_CONSTS_H = 1 // siginfo-consts.h:20:1:
X_BITS_SIGNUM_GENERIC_H = 1 // signum-generic.h:20:1:
X_BITS_SIGNUM_H = 1 // signum.h:20:1:
X_BITS_SIGSTACK_H = 1 // sigstack.h:20:1:
X_BITS_SIGTHREAD_H = 1 // sigthread.h:20:1:
X_BITS_SS_FLAGS_H = 1 // ss_flags.h:20:1:
X_BITS_TIME64_H = 1 // time64.h:24:1:
X_BITS_TYPESIZES_H = 1 // typesizes.h:24:1:
X_BITS_TYPES_H = 1 // types.h:24:1:
X_BSD_SIZE_T_ = 0 // stddef.h:189:1:
X_BSD_SIZE_T_DEFINED_ = 0 // stddef.h:192:1:
X_DEFAULT_SOURCE = 1 // features.h:227:1:
X_FEATURES_H = 1 // features.h:19:1:
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_GCC_SIZE_T = 0 // stddef.h:195:1:
X_LP64 = 1 // <predefined>:284:1:
X_NSIG = 65 // signum-generic.h:100:1:
X_POSIX_C_SOURCE = 200809 // features.h:281:1:
X_POSIX_SOURCE = 1 // features.h:279:1:
X_RWLOCK_INTERNAL_H = 0 // struct_rwlock.h:21:1:
X_SIGNAL_H = 0 // signal.h:23:1:
X_SIZET_ = 0 // stddef.h:196:1:
X_SIZE_T = 0 // stddef.h:183:1:
X_SIZE_T_ = 0 // stddef.h:188:1:
X_SIZE_T_DECLARED = 0 // stddef.h:193:1:
X_SIZE_T_DEFINED = 0 // stddef.h:191:1:
X_SIZE_T_DEFINED_ = 0 // stddef.h:190:1:
X_STDC_PREDEF_H = 1 // <predefined>:162:1:
X_STRUCT_TIMESPEC = 1 // struct_timespec.h:3:1:
X_SYS_CDEFS_H = 1 // cdefs.h:19:1:
X_SYS_SIZE_T_H = 0 // stddef.h:184:1:
X_SYS_UCONTEXT_H = 1 // ucontext.h:19:1:
X_THREAD_MUTEX_INTERNAL_H = 1 // struct_mutex.h:20:1:
X_THREAD_SHARED_TYPES_H = 1 // thread-shared-types.h:20:1:
X_T_SIZE = 0 // stddef.h:186:1:
X_T_SIZE_ = 0 // stddef.h:185:1:
Linux = 1 // <predefined>:231:1:
Unix = 1 // <predefined>:177:1:
)
// POSIX names to access some of the members.
// sigevent constants. Linux version.
// Copyright (C) 1997-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// `sigev_notify' values.
const ( /* sigevent-consts.h:27:1: */
SIGEV_SIGNAL = 0 // Notify via signal.
SIGEV_NONE = 1 // Other notification: meaningless.
SIGEV_THREAD = 2 // Deliver via thread creation.
SIGEV_THREAD_ID = 4
)
// `si_code' values for SIGSEGV signal.
const ( /* siginfo-consts.h:119:1: */
SEGV_MAPERR = 1 // Address not mapped to object.
SEGV_ACCERR = 2 // Invalid permissions for mapped object.
SEGV_BNDERR = 3 // Bounds checking failure.
SEGV_PKUERR = 4 // Protection key checking failure.
SEGV_ACCADI = 5 // ADI not enabled for mapped object.
SEGV_ADIDERR = 6 // Disrupting MCD error.
SEGV_ADIPERR = 7
)
// `si_code' values for SIGBUS signal.
const ( /* siginfo-consts.h:138:1: */
BUS_ADRALN = 1 // Invalid address alignment.
BUS_ADRERR = 2 // Non-existant physical address.
BUS_OBJERR = 3 // Object specific hardware error.
BUS_MCEERR_AR = 4 // Hardware memory error: action required.
BUS_MCEERR_AO = 5
)
// `si_code' values for SIGCHLD signal.
const ( /* siginfo-consts.h:172:1: */
CLD_EXITED = 1 // Child has exited.
CLD_KILLED = 2 // Child was killed.
CLD_DUMPED = 3 // Child terminated abnormally.
CLD_TRAPPED = 4 // Traced child has trapped.
CLD_STOPPED = 5 // Child has stopped.
CLD_CONTINUED = 6
)
// `si_code' values for SIGPOLL signal.
const ( /* siginfo-consts.h:189:1: */
POLL_IN = 1 // Data input available.
POLL_OUT = 2 // Output buffers available.
POLL_MSG = 3 // Input message available.
POLL_ERR = 4 // I/O error.
POLL_PRI = 5 // High priority input available.
POLL_HUP = 6
)
// X/Open requires some more fields with fixed names.
// siginfo constants. Linux version.
// Copyright (C) 1997-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// Most of these constants are uniform across all architectures, but there
// is one exception.
// Architecture-specific adjustments to siginfo_t. x86 version.
// Values for `si_code'. Positive values are reserved for kernel-generated
//
// signals.
const ( /* siginfo-consts.h:35:1: */
SI_ASYNCNL = -60 // Sent by asynch name lookup completion.
SI_DETHREAD = -7 // Sent by execve killing subsidiary
// threads.
SI_TKILL = -6 // Sent by tkill.
SI_SIGIO = -5 // Sent by queued SIGIO.
SI_ASYNCIO = -4 // Sent by AIO completion.
SI_MESGQ = -3 // Sent by real time mesq state change.
SI_TIMER = -2 // Sent by timer expiration.
SI_QUEUE = -1 // Sent by sigqueue.
SI_USER = 0 // Sent by kill, sigsend.
SI_KERNEL = 128
)
// `si_code' values for SIGILL signal.
const ( /* siginfo-consts.h:71:1: */
ILL_ILLOPC = 1 // Illegal opcode.
ILL_ILLOPN = 2 // Illegal operand.
ILL_ILLADR = 3 // Illegal addressing mode.
ILL_ILLTRP = 4 // Illegal trap.
ILL_PRVOPC = 5 // Privileged opcode.
ILL_PRVREG = 6 // Privileged register.
ILL_COPROC = 7 // Coprocessor error.
ILL_BADSTK = 8 // Internal stack error.
ILL_BADIADDR = 9
)
// `si_code' values for SIGFPE signal.
const ( /* siginfo-consts.h:94:1: */
FPE_INTDIV = 1 // Integer divide by zero.
FPE_INTOVF = 2 // Integer overflow.
FPE_FLTDIV = 3 // Floating point divide by zero.
FPE_FLTOVF = 4 // Floating point overflow.
FPE_FLTUND = 5 // Floating point underflow.
FPE_FLTRES = 6 // Floating point inexact result.
FPE_FLTINV = 7 // Floating point invalid operation.
FPE_FLTSUB = 8 // Subscript out of range.
FPE_FLTUNK = 14 // Undiagnosed floating-point exception.
FPE_CONDTRAP = 15
)
// sigstack, sigaltstack definitions.
// Copyright (C) 1998-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// Minimum stack size for a signal handler.
// System default stack size.
// ss_flags values for stack_t. Linux version.
// Copyright (C) 1998-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// Possible values for `ss_flags'.
const ( /* ss_flags.h:27:1: */
SS_ONSTACK = 1
SS_DISABLE = 2
)
type Ptrdiff_t = int64 /* <builtin>:3:26 */
type Size_t = uint64 /* <builtin>:9:23 */
type Wchar_t = int32 /* <builtin>:15:24 */
type X__int128_t = struct {
Flo int64
Fhi int64
} /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
type X__uint128_t = struct {
Flo uint64
Fhi uint64
} /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
type X__float128 = float64 /* <builtin>:47:21 */
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// ISO C99 Standard: 7.14 Signal handling <signal.h>
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// These are defined by the user (or the compiler)
// to specify the desired environment:
//
// __STRICT_ANSI__ ISO Standard C.
// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99.
// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11.
// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X.
// __STDC_WANT_LIB_EXT2__
// Extensions to ISO C99 from TR 27431-2:2010.
// __STDC_WANT_IEC_60559_BFP_EXT__
// Extensions to ISO C11 from TS 18661-1:2014.
// __STDC_WANT_IEC_60559_FUNCS_EXT__
// Extensions to ISO C11 from TS 18661-4:2015.
// __STDC_WANT_IEC_60559_TYPES_EXT__
// Extensions to ISO C11 from TS 18661-3:2015.
//
// _POSIX_SOURCE IEEE Std 1003.1.
// _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2;
// if >=199309L, add IEEE Std 1003.1b-1993;
// if >=199506L, add IEEE Std 1003.1c-1995;
// if >=200112L, all of IEEE 1003.1-2004
// if >=200809L, all of IEEE 1003.1-2008
// _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if
// Single Unix conformance is wanted, to 600 for the
// sixth revision, to 700 for the seventh revision.
// _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions.
// _LARGEFILE_SOURCE Some more functions for correct standard I/O.
// _LARGEFILE64_SOURCE Additional functionality from LFS for large files.
// _FILE_OFFSET_BITS=N Select default filesystem interface.
// _ATFILE_SOURCE Additional *at interfaces.
// _GNU_SOURCE All of the above, plus GNU extensions.
// _DEFAULT_SOURCE The default set of features (taking precedence over
// __STRICT_ANSI__).
//
// _FORTIFY_SOURCE Add security hardening to many library functions.
// Set to 1 or 2; 2 performs stricter checks than 1.
//
// _REENTRANT, _THREAD_SAFE
// Obsolete; equivalent to _POSIX_C_SOURCE=199506L.
//
// The `-ansi' switch to the GNU C compiler, and standards conformance
// options such as `-std=c99', define __STRICT_ANSI__. If none of
// these are defined, or if _DEFAULT_SOURCE is defined, the default is
// to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to
// 200809L, as well as enabling miscellaneous functions from BSD and
// SVID. If more than one of these are defined, they accumulate. For
// example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together
// give you ISO C, 1003.1, and 1003.2, but nothing else.
//
// These are defined by this file and are used by the
// header files to decide what to declare or define:
//
// __GLIBC_USE (F) Define things from feature set F. This is defined
// to 1 or 0; the subsequent macros are either defined
// or undefined, and those tests should be moved to
// __GLIBC_USE.
// __USE_ISOC11 Define ISO C11 things.
// __USE_ISOC99 Define ISO C99 things.
// __USE_ISOC95 Define ISO C90 AMD1 (C95) things.
// __USE_ISOCXX11 Define ISO C++11 things.
// __USE_POSIX Define IEEE Std 1003.1 things.
// __USE_POSIX2 Define IEEE Std 1003.2 things.
// __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things.
// __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things.
// __USE_XOPEN Define XPG things.
// __USE_XOPEN_EXTENDED Define X/Open Unix things.
// __USE_UNIX98 Define Single Unix V2 things.
// __USE_XOPEN2K Define XPG6 things.
// __USE_XOPEN2KXSI Define XPG6 XSI things.
// __USE_XOPEN2K8 Define XPG7 things.
// __USE_XOPEN2K8XSI Define XPG7 XSI things.
// __USE_LARGEFILE Define correct standard I/O things.
// __USE_LARGEFILE64 Define LFS things with separate names.
// __USE_FILE_OFFSET64 Define 64bit interface as default.
// __USE_MISC Define things from 4.3BSD or System V Unix.
// __USE_ATFILE Define *at interfaces and AT_* constants for them.
// __USE_GNU Define GNU extensions.
// __USE_FORTIFY_LEVEL Additional security measures used, according to level.
//
// The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are
// defined by this file unconditionally. `__GNU_LIBRARY__' is provided
// only for compatibility. All new code should use the other symbols
// to test for features.
//
// All macros listed above as possibly being defined by this file are
// explicitly undefined if they are not explicitly defined.
// Feature-test macros that are not defined by the user or compiler
// but are implied by the other feature-test macros defined (or by the
// lack of any definitions) are defined by the file.
//
// ISO C feature test macros depend on the definition of the macro
// when an affected header is included, not when the first system
// header is included, and so they are handled in
// <bits/libc-header-start.h>, which does not have a multiple include
// guard. Feature test macros that can be handled from the first
// system header included are handled here.
// Undefine everything, so we get a clean slate.
// Suppress kernel-name space pollution unless user expressedly asks
// for it.
// Convenience macro to test the version of gcc.
// Use like this:
// #if __GNUC_PREREQ (2,8)
// ... code requiring gcc 2.8 or later ...
// #endif
// Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was
// added in 2.0.
// Similarly for clang. Features added to GCC after version 4.2 may
// or may not also be available in clang, and clang's definitions of
// __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such
// features can be queried via __has_extension/__has_feature.
// Whether to use feature set F.
// _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for
// _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not
// issue a warning; the expectation is that the source is being
// transitioned to use the new macro.
// If _GNU_SOURCE was defined by the user, turn on all the other features.
// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined,
// define _DEFAULT_SOURCE.
// This is to enable the ISO C2X extension.
// This is to enable the ISO C11 extension.
// This is to enable the ISO C99 extension.
// This is to enable the ISO C90 Amendment 1:1995 extension.
// If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE
// is defined, use POSIX.1-2008 (or another version depending on
// _XOPEN_SOURCE).
// Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be
// defined in all multithreaded code. GNU libc has not required this
// for many years. We now treat them as compatibility synonyms for
// _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with
// comprehensive support for multithreaded code. Using them never
// lowers the selected level of POSIX conformance, only raises it.
// The function 'gets' existed in C89, but is impossible to use
// safely. It has been removed from ISO C11 and ISO C++14. Note: for
// compatibility with various implementations of <cstdio>, this test
// must consider only the value of __cplusplus when compiling C++.
// GNU formerly extended the scanf functions with modified format
// specifiers %as, %aS, and %a[...] that allocate a buffer for the
// input using malloc. This extension conflicts with ISO C99, which
// defines %a as a standalone format specifier that reads a floating-
// point number; moreover, POSIX.1-2008 provides the same feature
// using the modifier letter 'm' instead (%ms, %mS, %m[...]).
//
// We now follow C99 unless GNU extensions are active and the compiler
// is specifically in C89 or C++98 mode (strict or not). For
// instance, with GCC, -std=gnu11 will have C99-compliant scanf with
// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the
// old extension.
// Get definitions of __STDC_* predefined macros, if the compiler has
// not preincluded this header automatically.
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// This macro indicates that the installed library is the GNU C Library.
// For historic reasons the value now is 6 and this will stay from now
// on. The use of this variable is deprecated. Use __GLIBC__ and
// __GLIBC_MINOR__ now (see below) when you want to test for a specific
// GNU C library version and use the values in <gnu/lib-names.h> to get
// the sonames of the shared libraries.
// Major and minor version number of the GNU C library package. Use
// these macros to test for features in specific releases.
// This is here only because every header file already includes this one.
// Copyright (C) 1992-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// We are almost always included from features.h.
// The GNU libc does not support any K&R compilers or the traditional mode
// of ISO C compilers anymore. Check for some of the combinations not
// anymore supported.
// Some user header file might have defined this before.
// All functions, except those with callbacks or those that
// synchronize memory, are leaf functions.
// GCC can always grok prototypes. For C++ programs we add throw()
// to help it optimize the function calls. But this works only with
// gcc 2.8.x and egcs. For gcc 3.2 and up we even mark C functions
// as non-throwing using a function attribute since programs can use
// the -fexceptions options for C code as well.
// Compilers that are not clang may object to
// #if defined __clang__ && __has_extension(...)
// even though they do not need to evaluate the right-hand side of the &&.
// These two macros are not used in glibc anymore. They are kept here
// only because some other projects expect the macros to be defined.
// For these things, GCC behaves the ANSI way normally,
// and the non-ANSI way under -traditional.
// This is not a typedef so `const __ptr_t' does the right thing.
// C++ needs to know that types and declarations are C, not C++.
// Fortify support.
// Support for flexible arrays.
// Headers that should use flexible arrays only if they're "real"
// (e.g. only if they won't affect sizeof()) should test
// #if __glibc_c99_flexarr_available.
// __asm__ ("xyz") is used throughout the headers to rename functions
// at the assembly language level. This is wrapped by the __REDIRECT
// macro, in order to support compilers that can do this some other
// way. When compilers don't support asm-names at all, we have to do
// preprocessor tricks instead (which don't have exactly the right
// semantics, but it's the best we can do).
//
// Example:
// int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid);
//
// #elif __SOME_OTHER_COMPILER__
//
// # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias)
// GCC has various useful declarations that can be made with the
// `__attribute__' syntax. All of the ways we use this do fine if
// they are omitted for compilers that don't understand it.
// At some point during the gcc 2.96 development the `malloc' attribute
// for functions was introduced. We don't want to use it unconditionally
// (although this would be possible) since it generates warnings.
// Tell the compiler which arguments to an allocation function
// indicate the size of the allocation.
// At some point during the gcc 2.96 development the `pure' attribute
// for functions was introduced. We don't want to use it unconditionally
// (although this would be possible) since it generates warnings.
// This declaration tells the compiler that the value is constant.
// At some point during the gcc 3.1 development the `used' attribute
// for functions was introduced. We don't want to use it unconditionally
// (although this would be possible) since it generates warnings.
// Since version 3.2, gcc allows marking deprecated functions.
// Since version 4.5, gcc also allows one to specify the message printed
// when a deprecated function is used. clang claims to be gcc 4.2, but
// may also support this feature.
// At some point during the gcc 2.8 development the `format_arg' attribute
// for functions was introduced. We don't want to use it unconditionally
// (although this would be possible) since it generates warnings.
// If several `format_arg' attributes are given for the same function, in
// gcc-3.0 and older, all but the last one are ignored. In newer gccs,
// all designated arguments are considered.
// At some point during the gcc 2.97 development the `strfmon' format
// attribute for functions was introduced. We don't want to use it
// unconditionally (although this would be possible) since it
// generates warnings.
// The nonull function attribute allows to mark pointer parameters which
// must not be NULL.
// If fortification mode, we warn about unused results of certain
// function calls which can lead to problems.
// Forces a function to be always inlined.
// The Linux kernel defines __always_inline in stddef.h (283d7573), and
// it conflicts with this definition. Therefore undefine it first to
// allow either header to be included first.
// Associate error messages with the source location of the call site rather
// than with the source location inside the function.
// GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99
// inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__
// or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions
// older than 4.3 may define these macros and still not guarantee GNU inlining
// semantics.
//
// clang++ identifies itself as gcc-4.2, but has support for GNU inlining
// semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and
// __GNUC_GNU_INLINE__ macro definitions.
// GCC 4.3 and above allow passing all anonymous arguments of an
// __extern_always_inline function to some other vararg function.
// It is possible to compile containing GCC extensions even if GCC is
// run in pedantic mode if the uses are carefully marked using the
// `__extension__' keyword. But this is not generally available before
// version 2.8.
// __restrict is known in EGCS 1.2 and above.
// ISO C99 also allows to declare arrays as non-overlapping. The syntax is
// array_name[restrict]
// GCC 3.1 supports this.
// Describes a char array whose address can safely be passed as the first
// argument to strncpy and strncat, as the char array is not necessarily
// a NUL-terminated string.
// Undefine (also defined in libc-symbols.h).
// Copies attributes from the declaration or type referenced by
// the argument.
// Determine the wordsize from the preprocessor defines.
// Both x86-64 and x32 use the 64-bit system call interface.
// Properties of long double type. ldbl-96 version.
// Copyright (C) 2016-2020 Free Software Foundation, Inc.
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | true |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/capi_linux_mips64le.go | vendor/modernc.org/libc/signal/capi_linux_mips64le.go | // Code generated by 'ccgo signal/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 signal/signal_linux_amd64.go -pkgname signal', DO NOT EDIT.
package signal
var CAPI = map[string]struct{}{}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/signal_freebsd_arm64.go | vendor/modernc.org/libc/signal/signal_freebsd_arm64.go | // Code generated by 'ccgo signal/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 signal/signal_freebsd_amd64.go -pkgname signal', DO NOT EDIT.
package signal
import (
"math"
"reflect"
"sync/atomic"
"unsafe"
)
var _ = math.Pi
var _ reflect.Kind
var _ atomic.Value
var _ unsafe.Pointer
const (
BUS_ADRALN = 1 // signal.h:315:1:
BUS_ADRERR = 2 // signal.h:316:1:
BUS_OBJERR = 3 // signal.h:317:1:
BUS_OOMERR = 100 // signal.h:318:1:
CLD_CONTINUED = 6 // signal.h:350:1:
CLD_DUMPED = 3 // signal.h:346:1:
CLD_EXITED = 1 // signal.h:343:1:
CLD_KILLED = 2 // signal.h:344:1:
CLD_STOPPED = 5 // signal.h:349:1:
CLD_TRAPPED = 4 // signal.h:348:1:
FPE_FLTDIV = 3 // signal.h:329:1:
FPE_FLTINV = 7 // signal.h:333:1:
FPE_FLTOVF = 4 // signal.h:330:1:
FPE_FLTRES = 6 // signal.h:332:1:
FPE_FLTSUB = 8 // signal.h:334:1:
FPE_FLTUND = 5 // signal.h:331:1:
FPE_INTDIV = 2 // signal.h:328:1:
FPE_INTOVF = 1 // signal.h:327:1:
ILL_BADSTK = 8 // signal.h:312:1:
ILL_COPROC = 7 // signal.h:311:1:
ILL_ILLADR = 3 // signal.h:307:1:
ILL_ILLOPC = 1 // signal.h:305:1:
ILL_ILLOPN = 2 // signal.h:306:1:
ILL_ILLTRP = 4 // signal.h:308:1:
ILL_PRVOPC = 5 // signal.h:309:1:
ILL_PRVREG = 6 // signal.h:310:1:
MINSIGSTKSZ = 2048 // signal.h:432:1:
NSIG = 32 // signal.h:399:1:
POLL_ERR = 4 // signal.h:356:1:
POLL_HUP = 6 // signal.h:358:1:
POLL_IN = 1 // signal.h:353:1:
POLL_MSG = 3 // signal.h:355:1:
POLL_OUT = 2 // signal.h:354:1:
POLL_PRI = 5 // signal.h:357:1:
SA_NOCLDSTOP = 0x0008 // signal.h:386:1:
SA_NOCLDWAIT = 0x0020 // signal.h:394:1:
SA_NODEFER = 0x0010 // signal.h:393:1:
SA_ONSTACK = 0x0001 // signal.h:390:1:
SA_RESETHAND = 0x0004 // signal.h:392:1:
SA_RESTART = 0x0002 // signal.h:391:1:
SA_SIGINFO = 0x0040 // signal.h:395:1:
SEGV_ACCERR = 2 // signal.h:322:1:
SEGV_MAPERR = 1 // signal.h:321:1:
SEGV_PKUERR = 100 // signal.h:324:1:
SIGABRT = 6 // signal.h:81:1:
SIGALRM = 14 // signal.h:99:1:
SIGBUS = 10 // signal.h:91:1:
SIGCHLD = 20 // signal.h:109:1:
SIGCONT = 19 // signal.h:108:1:
SIGEMT = 7 // signal.h:84:1:
SIGEV_KEVENT = 3 // signal.h:222:1:
SIGEV_NONE = 0 // signal.h:218:1:
SIGEV_SIGNAL = 1 // signal.h:219:1:
SIGEV_THREAD = 2 // signal.h:220:1:
SIGEV_THREAD_ID = 4 // signal.h:223:1:
SIGFPE = 8 // signal.h:86:1:
SIGHUP = 1 // signal.h:71:1:
SIGILL = 4 // signal.h:77:1:
SIGINFO = 29 // signal.h:124:1:
SIGINT = 2 // signal.h:73:1:
SIGIO = 23 // signal.h:114:1:
SIGIOT = 6 // signal.h:83:1:
SIGKILL = 9 // signal.h:88:1:
SIGLIBRT = 33 // signal.h:133:1:
SIGLWP = 32 // signal.h:132:1:
SIGPIPE = 13 // signal.h:98:1:
SIGPROF = 27 // signal.h:120:1:
SIGQUIT = 3 // signal.h:75:1:
SIGRTMAX = 126 // signal.h:137:1:
SIGRTMIN = 65 // signal.h:136:1:
SIGSEGV = 11 // signal.h:93:1:
SIGSTKSZ = 34816 // signal.h:433:1:
SIGSTOP = 17 // signal.h:106:1:
SIGSYS = 12 // signal.h:95:1:
SIGTERM = 15 // signal.h:101:1:
SIGTHR = 32 // signal.h:131:1:
SIGTRAP = 5 // signal.h:79:1:
SIGTSTP = 18 // signal.h:107:1:
SIGTTIN = 21 // signal.h:110:1:
SIGTTOU = 22 // signal.h:111:1:
SIGURG = 16 // signal.h:103:1:
SIGUSR1 = 30 // signal.h:127:1:
SIGUSR2 = 31 // signal.h:128:1:
SIGVTALRM = 26 // signal.h:119:1:
SIGWINCH = 28 // signal.h:123:1:
SIGXCPU = 24 // signal.h:117:1:
SIGXFSZ = 25 // signal.h:118:1:
SIG_BLOCK = 1 // signal.h:501:1:
SIG_SETMASK = 3 // signal.h:503:1:
SIG_UNBLOCK = 2 // signal.h:502:1:
SI_ASYNCIO = 0x10004 // signal.h:408:1:
SI_KERNEL = 0x10006 // signal.h:412:1:
SI_LWP = 0x10007 // signal.h:413:1:
SI_MESGQ = 0x10005 // signal.h:410:1:
SI_NOINFO = 0 // signal.h:403:1:
SI_QUEUE = 0x10002 // signal.h:405:1:
SI_TIMER = 0x10003 // signal.h:406:1:
SI_UNDEFINED = 0 // signal.h:416:1:
SI_USER = 0x10001 // signal.h:404:1:
SS_DISABLE = 0x0004 // signal.h:431:1:
SS_ONSTACK = 0x0001 // signal.h:430:1:
SV_INTERRUPT = 2 // signal.h:459:1:
SV_NOCLDSTOP = 8 // signal.h:462:1:
SV_NODEFER = 16 // signal.h:461:1:
SV_ONSTACK = 1 // signal.h:458:1:
SV_RESETHAND = 4 // signal.h:460:1:
SV_SIGINFO = 64 // signal.h:463:1:
TRAP_BRKPT = 1 // signal.h:337:1:
TRAP_CAP = 4 // signal.h:340:1:
TRAP_DTRACE = 3 // signal.h:339:1:
TRAP_TRACE = 2 // signal.h:338:1:
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_LP64 = 1 // <predefined>:1:1:
X_MACHINE__LIMITS_H_ = 0 // _limits.h:36:1:
X_MACHINE__TYPES_H_ = 0 // _types.h:42:1:
X_MC_FLAG_MASK = 7 // ucontext.h:104:1:
X_MC_FPFMT_NODEV = 0x10000 // ucontext.h:145:1:
X_MC_FPFMT_XMM = 0x10002 // ucontext.h:146:1:
X_MC_FPOWNED_FPU = 0x20001 // ucontext.h:149:1:
X_MC_FPOWNED_NONE = 0x20000 // ucontext.h:148:1:
X_MC_FPOWNED_PCB = 0x20002 // ucontext.h:150:1:
X_MC_HASBASES = 0x2 // ucontext.h:102:1:
X_MC_HASFPXSTATE = 0x4 // ucontext.h:103:1:
X_MC_HASSEGS = 0x1 // ucontext.h:101:1:
X_Nonnull = 0 // cdefs.h:790:1:
X_Null_unspecified = 0 // cdefs.h:792:1:
X_Nullable = 0 // cdefs.h:791:1:
X_PID_T_DECLARED = 0 // signal.h:61:1:
X_PTHREAD_T_DECLARED = 0 // _pthreadtypes.h:68:1:
X_SIGNAL_H_ = 0 // signal.h:36:1:
X_SIGSET_T_DECLARED = 0 // signal.h:165:1:
X_SIG_MAXSIG = 128 // _sigset.h:47:1:
X_SIG_WORDS = 4 // _sigset.h:46:1:
X_SIZE_T_DECLARED = 0 // signal.h:57:1:
X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1:
X_SYS_SIGNAL_H_ = 0 // signal.h:41:1:
X_SYS__PTHREADTYPES_H_ = 0 // _pthreadtypes.h:39:1:
X_SYS__SIGSET_H_ = 0 // _sigset.h:41:1:
X_SYS__TIMESPEC_H_ = 0 // _timespec.h:37:1:
X_SYS__TYPES_H_ = 0 // _types.h:32:1:
X_SYS__UCONTEXT_H_ = 0 // _ucontext.h:34:1:
X_TIME_T_DECLARED = 0 // _timespec.h:43:1:
X_UID_T_DECLARED = 0 // signal.h:62:1:
X_X86_SIGNAL_H = 1 // signal.h:37:1:
X_X86_UCONTEXT_H_ = 0 // ucontext.h:35:1:
Unix = 1 // <predefined>:340:1:
)
type Ptrdiff_t = int64 /* <builtin>:3:26 */
type Size_t = uint64 /* <builtin>:9:23 */
type Wchar_t = int32 /* <builtin>:15:24 */
type X__int128_t = struct {
Flo int64
Fhi int64
} /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
type X__uint128_t = struct {
Flo uint64
Fhi uint64
} /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
type X__float128 = float64 /* <builtin>:47:21 */
// -
// SPDX-License-Identifier: BSD-3-Clause
//
// Copyright (c) 1991, 1993
// The Regents of the University of California. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// @(#)signal.h 8.3 (Berkeley) 3/30/94
// $FreeBSD$
// -
// SPDX-License-Identifier: BSD-3-Clause
//
// Copyright (c) 1991, 1993
// The Regents of the University of California. All rights reserved.
//
// This code is derived from software contributed to Berkeley by
// Berkeley Software Design, Inc.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// @(#)cdefs.h 8.8 (Berkeley) 1/9/95
// $FreeBSD$
// Testing against Clang-specific extensions.
// This code has been put in place to help reduce the addition of
// compiler specific defines in FreeBSD code. It helps to aid in
// having a compiler-agnostic source tree.
// Compiler memory barriers, specific to gcc and clang.
// XXX: if __GNUC__ >= 2: not tested everywhere originally, where replaced
// Macro to test if we're using a specific version of gcc or later.
// The __CONCAT macro is used to concatenate parts of symbol names, e.g.
// with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo.
// The __CONCAT macro is a bit tricky to use if it must work in non-ANSI
// mode -- there must be no spaces between its arguments, and for nested
// __CONCAT's, all the __CONCAT's must be at the left. __CONCAT can also
// concatenate double-quoted strings produced by the __STRING macro, but
// this only works with ANSI C.
//
// __XSTRING is like __STRING, but it expands any macros in its argument
// first. It is only available with ANSI C.
// Compiler-dependent macros to help declare dead (non-returning) and
// pure (no side effects) functions, and unused variables. They are
// null except for versions of gcc that are known to support the features
// properly (old versions of gcc-2 supported the dead and pure features
// in a different (wrong) way). If we do not provide an implementation
// for a given compiler, let the compile fail if it is told to use
// a feature that we cannot live without.
// Keywords added in C11.
// Emulation of C11 _Generic(). Unlike the previously defined C11
// keywords, it is not possible to implement this using exactly the same
// syntax. Therefore implement something similar under the name
// __generic(). Unlike _Generic(), this macro can only distinguish
// between a single type, so it requires nested invocations to
// distinguish multiple cases.
// C99 Static array indices in function parameter declarations. Syntax such as:
// void bar(int myArray[static 10]);
// is allowed in C99 but not in C++. Define __min_size appropriately so
// headers using it can be compiled in either language. Use like this:
// void bar(int myArray[__min_size(10)]);
// XXX: should use `#if __STDC_VERSION__ < 199901'.
// C++11 exposes a load of C99 stuff
// GCC 2.95 provides `__restrict' as an extension to C90 to support the
// C99-specific `restrict' type qualifier. We happen to use `__restrict' as
// a way to define the `restrict' type qualifier without disturbing older
// software that is unaware of C99 keywords.
// GNU C version 2.96 adds explicit branch prediction so that
// the CPU back-end can hint the processor and also so that
// code blocks can be reordered such that the predicted path
// sees a more linear flow, thus improving cache behavior, etc.
//
// The following two macros provide us with a way to utilize this
// compiler feature. Use __predict_true() if you expect the expression
// to evaluate to true, and __predict_false() if you expect the
// expression to evaluate to false.
//
// A few notes about usage:
//
// * Generally, __predict_false() error condition checks (unless
// you have some _strong_ reason to do otherwise, in which case
// document it), and/or __predict_true() `no-error' condition
// checks, assuming you want to optimize for the no-error case.
//
// * Other than that, if you don't know the likelihood of a test
// succeeding from empirical or other `hard' evidence, don't
// make predictions.
//
// * These are meant to be used in places that are run `a lot'.
// It is wasteful to make predictions in code that is run
// seldomly (e.g. at subsystem initialization time) as the
// basic block reordering that this affects can often generate
// larger code.
// We define this here since <stddef.h>, <sys/queue.h>, and <sys/types.h>
// require it.
// Given the pointer x to the member m of the struct s, return
// a pointer to the containing structure. When using GCC, we first
// assign pointer x to a local variable, to check that its type is
// compatible with member m.
// Compiler-dependent macros to declare that functions take printf-like
// or scanf-like arguments. They are null except for versions of gcc
// that are known to support the features properly (old versions of gcc-2
// didn't permit keeping the keywords out of the application namespace).
// Compiler-dependent macros that rely on FreeBSD-specific extensions.
// Embed the rcs id of a source file in the resulting library. Note that in
// more recent ELF binutils, we use .ident allowing the ID to be stripped.
// Usage:
// __FBSDID("$FreeBSD$");
// -
// The following definitions are an extension of the behavior originally
// implemented in <sys/_posix.h>, but with a different level of granularity.
// POSIX.1 requires that the macros we test be defined before any standard
// header file is included.
//
// Here's a quick run-down of the versions:
// defined(_POSIX_SOURCE) 1003.1-1988
// _POSIX_C_SOURCE == 1 1003.1-1990
// _POSIX_C_SOURCE == 2 1003.2-1992 C Language Binding Option
// _POSIX_C_SOURCE == 199309 1003.1b-1993
// _POSIX_C_SOURCE == 199506 1003.1c-1995, 1003.1i-1995,
// and the omnibus ISO/IEC 9945-1: 1996
// _POSIX_C_SOURCE == 200112 1003.1-2001
// _POSIX_C_SOURCE == 200809 1003.1-2008
//
// In addition, the X/Open Portability Guide, which is now the Single UNIX
// Specification, defines a feature-test macro which indicates the version of
// that specification, and which subsumes _POSIX_C_SOURCE.
//
// Our macros begin with two underscores to avoid namespace screwage.
// Deal with IEEE Std. 1003.1-1990, in which _POSIX_C_SOURCE == 1.
// Deal with IEEE Std. 1003.2-1992, in which _POSIX_C_SOURCE == 2.
// Deal with various X/Open Portability Guides and Single UNIX Spec.
// Deal with all versions of POSIX. The ordering relative to the tests above is
// important.
// -
// Deal with _ANSI_SOURCE:
// If it is defined, and no other compilation environment is explicitly
// requested, then define our internal feature-test macros to zero. This
// makes no difference to the preprocessor (undefined symbols in preprocessing
// expressions are defined to have value zero), but makes it more convenient for
// a test program to print out the values.
//
// If a program mistakenly defines _ANSI_SOURCE and some other macro such as
// _POSIX_C_SOURCE, we will assume that it wants the broader compilation
// environment (and in fact we will never get here).
// User override __EXT1_VISIBLE
// Old versions of GCC use non-standard ARM arch symbols; acle-compat.h
// translates them to __ARM_ARCH and the modern feature symbols defined by ARM.
// Nullability qualifiers: currently only supported by Clang.
// Type Safety Checking
//
// Clang provides additional attributes to enable checking type safety
// properties that cannot be enforced by the C type system.
// Lock annotations.
//
// Clang provides support for doing basic thread-safety tests at
// compile-time, by marking which locks will/should be held when
// entering/leaving a functions.
//
// Furthermore, it is also possible to annotate variables and structure
// members to enforce that they are only accessed when certain locks are
// held.
// Structure implements a lock.
// Function acquires an exclusive or shared lock.
// Function attempts to acquire an exclusive or shared lock.
// Function releases a lock.
// Function asserts that an exclusive or shared lock is held.
// Function requires that an exclusive or shared lock is or is not held.
// Function should not be analyzed.
// Function or variable should not be sanitized, e.g., by AddressSanitizer.
// GCC has the nosanitize attribute, but as a function attribute only, and
// warns on use as a variable attribute.
// Guard variables and structure members by lock.
// Alignment builtins for better type checking and improved code generation.
// Provide fallback versions for other compilers (GCC/Clang < 10):
// -
// SPDX-License-Identifier: BSD-2-Clause-FreeBSD
//
// Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
//
// THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// $FreeBSD$
// -
// SPDX-License-Identifier: BSD-3-Clause
//
// Copyright (c) 1991, 1993
// The Regents of the University of California. All rights reserved.
//
// This code is derived from software contributed to Berkeley by
// Berkeley Software Design, Inc.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// @(#)cdefs.h 8.8 (Berkeley) 1/9/95
// $FreeBSD$
// -
// This file is in the public domain.
// $FreeBSD$
// -
// SPDX-License-Identifier: BSD-4-Clause
//
// Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
// Copyright (c) 1990, 1993
// The Regents of the University of California. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. All advertising materials mentioning features or use of this software
// must display the following acknowledgement:
// This product includes software developed by the University of
// California, Berkeley and its contributors.
// 4. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// From: @(#)ansi.h 8.2 (Berkeley) 1/4/94
// From: @(#)types.h 8.3 (Berkeley) 1/5/94
// $FreeBSD$
// -
// This file is in the public domain.
// $FreeBSD$
// -
// SPDX-License-Identifier: BSD-3-Clause
//
// Copyright (c) 1988, 1993
// The Regents of the University of California. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// @(#)limits.h 8.3 (Berkeley) 1/4/94
// $FreeBSD$
// According to ANSI (section 2.2.4.2), the values below must be usable by
// #if preprocessing directives. Additionally, the expression must have the
// same type as would an expression that is an object of the corresponding
// type converted according to the integral promotions. The subtraction for
// INT_MIN, etc., is so the value is not unsigned; e.g., 0x80000000 is an
// unsigned int for 32-bit two's complement ANSI compilers (section 3.1.3.2).
// max value for an unsigned long long
// Quads and longs are the same on the amd64. Ensure they stay in sync.
// Minimum signal stack size.
// Basic types upon which most other types are built.
type X__int8_t = int8 /* _types.h:55:22 */
type X__uint8_t = uint8 /* _types.h:56:24 */
type X__int16_t = int16 /* _types.h:57:17 */
type X__uint16_t = uint16 /* _types.h:58:25 */
type X__int32_t = int32 /* _types.h:59:15 */
type X__uint32_t = uint32 /* _types.h:60:23 */
type X__int64_t = int64 /* _types.h:62:16 */
type X__uint64_t = uint64 /* _types.h:63:24 */
// Standard type definitions.
type X__clock_t = X__int32_t /* _types.h:75:19 */ // clock()...
type X__critical_t = X__int64_t /* _types.h:76:19 */
type X__double_t = float64 /* _types.h:78:17 */
type X__float_t = float32 /* _types.h:79:16 */
type X__intfptr_t = X__int64_t /* _types.h:81:19 */
type X__intptr_t = X__int64_t /* _types.h:82:19 */
type X__intmax_t = X__int64_t /* _types.h:93:19 */
type X__int_fast8_t = X__int32_t /* _types.h:94:19 */
type X__int_fast16_t = X__int32_t /* _types.h:95:19 */
type X__int_fast32_t = X__int32_t /* _types.h:96:19 */
type X__int_fast64_t = X__int64_t /* _types.h:97:19 */
type X__int_least8_t = X__int8_t /* _types.h:98:18 */
type X__int_least16_t = X__int16_t /* _types.h:99:19 */
type X__int_least32_t = X__int32_t /* _types.h:100:19 */
type X__int_least64_t = X__int64_t /* _types.h:101:19 */
type X__ptrdiff_t = X__int64_t /* _types.h:103:19 */ // ptr1 - ptr2
type X__register_t = X__int64_t /* _types.h:104:19 */
type X__segsz_t = X__int64_t /* _types.h:105:19 */ // segment size (in pages)
type X__size_t = X__uint64_t /* _types.h:106:20 */ // sizeof()
type X__ssize_t = X__int64_t /* _types.h:107:19 */ // byte count or error
type X__time_t = X__int64_t /* _types.h:108:19 */ // time()...
type X__uintfptr_t = X__uint64_t /* _types.h:109:20 */
type X__uintptr_t = X__uint64_t /* _types.h:110:20 */
type X__uintmax_t = X__uint64_t /* _types.h:121:20 */
type X__uint_fast8_t = X__uint32_t /* _types.h:122:20 */
type X__uint_fast16_t = X__uint32_t /* _types.h:123:20 */
type X__uint_fast32_t = X__uint32_t /* _types.h:124:20 */
type X__uint_fast64_t = X__uint64_t /* _types.h:125:20 */
type X__uint_least8_t = X__uint8_t /* _types.h:126:19 */
type X__uint_least16_t = X__uint16_t /* _types.h:127:20 */
type X__uint_least32_t = X__uint32_t /* _types.h:128:20 */
type X__uint_least64_t = X__uint64_t /* _types.h:129:20 */
type X__u_register_t = X__uint64_t /* _types.h:131:20 */
type X__vm_offset_t = X__uint64_t /* _types.h:132:20 */
type X__vm_paddr_t = X__uint64_t /* _types.h:133:20 */
type X__vm_size_t = X__uint64_t /* _types.h:134:20 */
type X___wchar_t = int32 /* _types.h:141:14 */
// Standard type definitions.
type X__blksize_t = X__int32_t /* _types.h:40:19 */ // file block size
type X__blkcnt_t = X__int64_t /* _types.h:41:19 */ // file block count
type X__clockid_t = X__int32_t /* _types.h:42:19 */ // clock_gettime()...
type X__fflags_t = X__uint32_t /* _types.h:43:20 */ // file flags
type X__fsblkcnt_t = X__uint64_t /* _types.h:44:20 */
type X__fsfilcnt_t = X__uint64_t /* _types.h:45:20 */
type X__gid_t = X__uint32_t /* _types.h:46:20 */
type X__id_t = X__int64_t /* _types.h:47:19 */ // can hold a gid_t, pid_t, or uid_t
type X__ino_t = X__uint64_t /* _types.h:48:20 */ // inode number
type X__key_t = int64 /* _types.h:49:15 */ // IPC key (for Sys V IPC)
type X__lwpid_t = X__int32_t /* _types.h:50:19 */ // Thread ID (a.k.a. LWP)
type X__mode_t = X__uint16_t /* _types.h:51:20 */ // permissions
type X__accmode_t = int32 /* _types.h:52:14 */ // access permissions
type X__nl_item = int32 /* _types.h:53:14 */
type X__nlink_t = X__uint64_t /* _types.h:54:20 */ // link count
type X__off_t = X__int64_t /* _types.h:55:19 */ // file offset
type X__off64_t = X__int64_t /* _types.h:56:19 */ // file offset (alias)
type X__pid_t = X__int32_t /* _types.h:57:19 */ // process [group]
type X__rlim_t = X__int64_t /* _types.h:58:19 */ // resource limit - intentionally
// signed, because of legacy code
// that uses -1 for RLIM_INFINITY
type X__sa_family_t = X__uint8_t /* _types.h:61:19 */
type X__socklen_t = X__uint32_t /* _types.h:62:20 */
type X__suseconds_t = int64 /* _types.h:63:15 */ // microseconds (signed)
type X__timer_t = uintptr /* _types.h:64:24 */ // timer_gettime()...
type X__mqd_t = uintptr /* _types.h:65:21 */ // mq_open()...
type X__uid_t = X__uint32_t /* _types.h:66:20 */
type X__useconds_t = uint32 /* _types.h:67:22 */ // microseconds (unsigned)
type X__cpuwhich_t = int32 /* _types.h:68:14 */ // which parameter for cpuset.
type X__cpulevel_t = int32 /* _types.h:69:14 */ // level parameter for cpuset.
type X__cpusetid_t = int32 /* _types.h:70:14 */ // cpuset identifier.
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | true |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/signal_illumos_amd64.go | vendor/modernc.org/libc/signal/signal_illumos_amd64.go | // Code generated by 'ccgo signal/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 signal/signal_illumos_amd64.go -pkgname signal', DO NOT EDIT.
package signal
import (
"math"
"reflect"
"sync/atomic"
"unsafe"
)
var _ = math.Pi
var _ reflect.Kind
var _ atomic.Value
var _ unsafe.Pointer
const (
BUS_ADRALN = 1 // machsig.h:109:1:
BUS_ADRERR = 2 // machsig.h:110:1:
BUS_OBJERR = 3 // machsig.h:112:1:
CLD_CONTINUED = 6 // siginfo.h:169:1:
CLD_DUMPED = 3 // siginfo.h:166:1:
CLD_EXITED = 1 // siginfo.h:164:1:
CLD_KILLED = 2 // siginfo.h:165:1:
CLD_STOPPED = 5 // siginfo.h:168:1:
CLD_TRAPPED = 4 // siginfo.h:167:1:
CLOCKS_PER_SEC = 1000000 // time_iso.h:78:1:
CLOCK_HIGHRES = 4 // time_impl.h:126:1:
CLOCK_MONOTONIC = 4 // time_impl.h:124:1:
CLOCK_PROCESS_CPUTIME_ID = 5 // time_impl.h:125:1:
CLOCK_PROF = 2 // time_impl.h:127:1:
CLOCK_REALTIME = 3 // time_impl.h:123:1:
CLOCK_THREAD_CPUTIME_ID = 2 // time_impl.h:122:1:
CLOCK_VIRTUAL = 1 // time_impl.h:121:1:
DST_AUST = 2 // time.h:115:1:
DST_AUSTALT = 10 // time.h:123:1:
DST_CAN = 6 // time.h:119:1:
DST_EET = 5 // time.h:118:1:
DST_GB = 7 // time.h:120:1:
DST_MET = 4 // time.h:117:1:
DST_NONE = 0 // time.h:113:1:
DST_RUM = 8 // time.h:121:1:
DST_TUR = 9 // time.h:122:1:
DST_USA = 1 // time.h:114:1:
DST_WET = 3 // time.h:116:1:
EMT_CPCOVF = 1 // machsig.h:74:1:
FC_ALIGN = 0x2 // faultcode.h:54:1:
FC_HWERR = 0x1 // faultcode.h:53:1:
FC_NOMAP = 0x5 // faultcode.h:57:1:
FC_NOSUPPORT = 0x6 // faultcode.h:58:1:
FC_OBJERR = 0x3 // faultcode.h:55:1:
FC_PROT = 0x4 // faultcode.h:56:1:
FD_SETSIZE = 65536 // select.h:88:1:
FPE_FLTDEN = 9 // machsig.h:90:1:
FPE_FLTDIV = 3 // machsig.h:84:1:
FPE_FLTINV = 7 // machsig.h:88:1:
FPE_FLTOVF = 4 // machsig.h:85:1:
FPE_FLTRES = 6 // machsig.h:87:1:
FPE_FLTSUB = 8 // machsig.h:89:1:
FPE_FLTUND = 5 // machsig.h:86:1:
FPE_INTDIV = 1 // machsig.h:82:1:
FPE_INTOVF = 2 // machsig.h:83:1:
ILL_BADSTK = 8 // machsig.h:64:1:
ILL_COPROC = 7 // machsig.h:63:1:
ILL_ILLADR = 3 // machsig.h:59:1:
ILL_ILLOPC = 1 // machsig.h:57:1:
ILL_ILLOPN = 2 // machsig.h:58:1:
ILL_ILLTRP = 4 // machsig.h:60:1:
ILL_PRVOPC = 5 // machsig.h:61:1:
ILL_PRVREG = 6 // machsig.h:62:1:
ITIMER_PROF = 2 // time.h:201:1:
ITIMER_REAL = 0 // time.h:199:1:
ITIMER_REALPROF = 3 // time.h:204:1:
ITIMER_VIRTUAL = 1 // time.h:200:1:
MAXSIG = 74 // signal.h:163:1:
MICROSEC = 1000000 // time.h:246:1:
MILLISEC = 1000 // time.h:245:1:
MINSIGSTKSZ = 2048 // signal.h:166:1:
NANOSEC = 1000000000 // time.h:247:1:
NBBY = 8 // select.h:103:1:
NSIG = 75 // signal.h:162:1:
NSIGBUS = 3 // machsig.h:115:1:
NSIGCLD = 6 // siginfo.h:172:1:
NSIGEMT = 1 // machsig.h:75:1:
NSIGFPE = 9 // machsig.h:92:1:
NSIGILL = 8 // machsig.h:66:1:
NSIGPOLL = 6 // siginfo.h:187:1:
NSIGPROF = 1 // siginfo.h:198:1:
NSIGSEGV = 2 // machsig.h:102:1:
NSIGTRAP = 6 // siginfo.h:157:1:
POLL_ERR = 4 // siginfo.h:182:1:
POLL_HUP = 6 // siginfo.h:184:1:
POLL_IN = 1 // siginfo.h:179:1:
POLL_MSG = 3 // siginfo.h:181:1:
POLL_OUT = 2 // siginfo.h:180:1:
POLL_PRI = 5 // siginfo.h:183:1:
PROF_SIG = 1 // siginfo.h:197:1:
P_INITPGID = 0 // procset.h:50:1:
P_INITPID = 1 // procset.h:48:1:
P_INITUID = 0 // procset.h:49:1:
P_MYID = -1 // types.h:632:1:
REG_LABEL_BP = 2 // machtypes.h:44:1:
REG_LABEL_MAX = 8 // machtypes.h:51:1:
REG_LABEL_PC = 0 // machtypes.h:42:1:
REG_LABEL_R12 = 4 // machtypes.h:47:1:
REG_LABEL_R13 = 5 // machtypes.h:48:1:
REG_LABEL_R14 = 6 // machtypes.h:49:1:
REG_LABEL_R15 = 7 // machtypes.h:50:1:
REG_LABEL_RBX = 3 // machtypes.h:46:1:
REG_LABEL_SP = 1 // machtypes.h:43:1:
SA_NOCLDSTOP = 0x00020000 // signal.h:128:1:
SA_NOCLDWAIT = 0x00010000 // signal.h:155:1:
SA_NODEFER = 0x00000010 // signal.h:152:1:
SA_ONSTACK = 0x00000001 // signal.h:138:1:
SA_RESETHAND = 0x00000002 // signal.h:139:1:
SA_RESTART = 0x00000004 // signal.h:140:1:
SA_SIGINFO = 0x00000008 // signal.h:146:1:
SEC = 1 // time.h:244:1:
SEGV_ACCERR = 2 // machsig.h:100:1:
SEGV_MAPERR = 1 // machsig.h:99:1:
SIG2STR_MAX = 32 // signal.h:95:1:
SIGABRT = 6 // signal_iso.h:58:1:
SIGALRM = 14 // signal_iso.h:66:1:
SIGBUS = 10 // signal_iso.h:62:1:
SIGCANCEL = 36 // signal_iso.h:90:1:
SIGCHLD = 18 // signal_iso.h:71:1:
SIGCLD = 18 // signal_iso.h:70:1:
SIGCONT = 25 // signal_iso.h:79:1:
SIGEMT = 7 // signal_iso.h:59:1:
SIGEV_NONE = 1 // siginfo.h:95:1:
SIGEV_PORT = 4 // siginfo.h:98:1:
SIGEV_SIGNAL = 2 // siginfo.h:96:1:
SIGEV_THREAD = 3 // siginfo.h:97:1:
SIGFPE = 8 // signal_iso.h:60:1:
SIGFREEZE = 34 // signal_iso.h:88:1:
SIGHUP = 1 // signal_iso.h:52:1:
SIGILL = 4 // signal_iso.h:55:1:
SIGINFO = 41 // signal_iso.h:95:1:
SIGINT = 2 // signal_iso.h:53:1:
SIGIO = 22 // signal_iso.h:76:1:
SIGIOT = 6 // signal_iso.h:57:1:
SIGJVM1 = 39 // signal_iso.h:93:1:
SIGJVM2 = 40 // signal_iso.h:94:1:
SIGKILL = 9 // signal_iso.h:61:1:
SIGLOST = 37 // signal_iso.h:91:1:
SIGLWP = 33 // signal_iso.h:87:1:
SIGPIPE = 13 // signal_iso.h:65:1:
SIGPOLL = 22 // signal_iso.h:75:1:
SIGPROF = 29 // signal_iso.h:83:1:
SIGPWR = 19 // signal_iso.h:72:1:
SIGQUIT = 3 // signal_iso.h:54:1:
SIGSEGV = 11 // signal_iso.h:63:1:
SIGSTKSZ = 8192 // signal.h:167:1:
SIGSTOP = 23 // signal_iso.h:77:1:
SIGSYS = 12 // signal_iso.h:64:1:
SIGTERM = 15 // signal_iso.h:67:1:
SIGTHAW = 35 // signal_iso.h:89:1:
SIGTRAP = 5 // signal_iso.h:56:1:
SIGTSTP = 24 // signal_iso.h:78:1:
SIGTTIN = 26 // signal_iso.h:80:1:
SIGTTOU = 27 // signal_iso.h:81:1:
SIGURG = 21 // signal_iso.h:74:1:
SIGUSR1 = 16 // signal_iso.h:68:1:
SIGUSR2 = 17 // signal_iso.h:69:1:
SIGVTALRM = 28 // signal_iso.h:82:1:
SIGWAITING = 32 // signal_iso.h:86:1:
SIGWINCH = 20 // signal_iso.h:73:1:
SIGXCPU = 30 // signal_iso.h:84:1:
SIGXFSZ = 31 // signal_iso.h:85:1:
SIGXRES = 38 // signal_iso.h:92:1:
SIG_BLOCK = 1 // signal_iso.h:131:1:
SIG_SETMASK = 3 // signal_iso.h:133:1:
SIG_UNBLOCK = 2 // signal_iso.h:132:1:
SI_ASYNCIO = -4 // siginfo.h:134:1:
SI_DTRACE = 2050 // siginfo.h:128:1:
SI_LWP = -1 // siginfo.h:131:1:
SI_MAXSZ = 256 // siginfo.h:206:1:
SI_MESGQ = -5 // siginfo.h:135:1:
SI_NOINFO = 32767 // siginfo.h:127:1:
SI_QUEUE = -2 // siginfo.h:132:1:
SI_RCTL = 2049 // siginfo.h:129:1:
SI_TIMER = -3 // siginfo.h:133:1:
SI_USER = 0 // siginfo.h:130:1:
SN_CANCEL = 2 // signal.h:226:1:
SN_PROC = 1 // signal.h:225:1:
SN_SEND = 3 // signal.h:227:1:
SS_DISABLE = 0x00000002 // signal.h:170:1:
SS_ONSTACK = 0x00000001 // signal.h:169:1:
TIMER_ABSTIME = 0x1 // time_impl.h:134:1:
TIMER_RELTIME = 0x0 // time_impl.h:133:1:
TIME_UTC = 0x1 // time.h:306:1:
TRAP_BRKPT = 1 // siginfo.h:150:1:
TRAP_DTRACE = 6 // siginfo.h:155:1:
TRAP_RWATCH = 3 // siginfo.h:152:1:
TRAP_TRACE = 2 // siginfo.h:151:1:
TRAP_WWATCH = 4 // siginfo.h:153:1:
TRAP_XWATCH = 5 // siginfo.h:154:1:
X_ACL_ACE_ENABLED = 0x2 // unistd.h:349:1:
X_ACL_ACLENT_ENABLED = 0x1 // unistd.h:348:1:
X_ALIGNMENT_REQUIRED = 1 // isa_defs.h:262:1:
X_BIT_FIELDS_LTOH = 0 // isa_defs.h:245:1:
X_BOOL_ALIGNMENT = 1 // isa_defs.h:248:1:
X_CASE_INSENSITIVE = 0x2 // unistd.h:342:1:
X_CASE_SENSITIVE = 0x1 // unistd.h:341:1:
X_CHAR_ALIGNMENT = 1 // isa_defs.h:249:1:
X_CHAR_IS_SIGNED = 0 // isa_defs.h:247:1:
X_CLOCKID_T = 0 // types.h:568:1:
X_CLOCK_T = 0 // types.h:563:1:
X_COND_MAGIC = 0x4356 // types.h:426:1:
X_CS_LFS64_CFLAGS = 72 // unistd.h:61:1:
X_CS_LFS64_LDFLAGS = 73 // unistd.h:62:1:
X_CS_LFS64_LIBS = 74 // unistd.h:63:1:
X_CS_LFS64_LINTFLAGS = 75 // unistd.h:64:1:
X_CS_LFS_CFLAGS = 68 // unistd.h:56:1:
X_CS_LFS_LDFLAGS = 69 // unistd.h:57:1:
X_CS_LFS_LIBS = 70 // unistd.h:58:1:
X_CS_LFS_LINTFLAGS = 71 // unistd.h:59:1:
X_CS_PATH = 65 // unistd.h:50:1:
X_CS_POSIX_V6_ILP32_OFF32_CFLAGS = 800 // unistd.h:85:1:
X_CS_POSIX_V6_ILP32_OFF32_LDFLAGS = 801 // unistd.h:86:1:
X_CS_POSIX_V6_ILP32_OFF32_LIBS = 802 // unistd.h:87:1:
X_CS_POSIX_V6_ILP32_OFF32_LINTFLAGS = 803 // unistd.h:88:1:
X_CS_POSIX_V6_ILP32_OFFBIG_CFLAGS = 804 // unistd.h:89:1:
X_CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS = 805 // unistd.h:90:1:
X_CS_POSIX_V6_ILP32_OFFBIG_LIBS = 806 // unistd.h:91:1:
X_CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS = 807 // unistd.h:92:1:
X_CS_POSIX_V6_LP64_OFF64_CFLAGS = 808 // unistd.h:93:1:
X_CS_POSIX_V6_LP64_OFF64_LDFLAGS = 809 // unistd.h:94:1:
X_CS_POSIX_V6_LP64_OFF64_LIBS = 810 // unistd.h:95:1:
X_CS_POSIX_V6_LP64_OFF64_LINTFLAGS = 811 // unistd.h:96:1:
X_CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS = 812 // unistd.h:97:1:
X_CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS = 813 // unistd.h:98:1:
X_CS_POSIX_V6_LPBIG_OFFBIG_LIBS = 814 // unistd.h:99:1:
X_CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS = 815 // unistd.h:100:1:
X_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS = 816 // unistd.h:101:1:
X_CS_XBS5_ILP32_OFF32_CFLAGS = 700 // unistd.h:67:1:
X_CS_XBS5_ILP32_OFF32_LDFLAGS = 701 // unistd.h:68:1:
X_CS_XBS5_ILP32_OFF32_LIBS = 702 // unistd.h:69:1:
X_CS_XBS5_ILP32_OFF32_LINTFLAGS = 703 // unistd.h:70:1:
X_CS_XBS5_ILP32_OFFBIG_CFLAGS = 705 // unistd.h:71:1:
X_CS_XBS5_ILP32_OFFBIG_LDFLAGS = 706 // unistd.h:72:1:
X_CS_XBS5_ILP32_OFFBIG_LIBS = 707 // unistd.h:73:1:
X_CS_XBS5_ILP32_OFFBIG_LINTFLAGS = 708 // unistd.h:74:1:
X_CS_XBS5_LP64_OFF64_CFLAGS = 709 // unistd.h:75:1:
X_CS_XBS5_LP64_OFF64_LDFLAGS = 710 // unistd.h:76:1:
X_CS_XBS5_LP64_OFF64_LIBS = 711 // unistd.h:77:1:
X_CS_XBS5_LP64_OFF64_LINTFLAGS = 712 // unistd.h:78:1:
X_CS_XBS5_LPBIG_OFFBIG_CFLAGS = 713 // unistd.h:79:1:
X_CS_XBS5_LPBIG_OFFBIG_LDFLAGS = 714 // unistd.h:80:1:
X_CS_XBS5_LPBIG_OFFBIG_LIBS = 715 // unistd.h:81:1:
X_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS = 716 // unistd.h:82:1:
X_DMA_USES_PHYSADDR = 0 // isa_defs.h:281:1:
X_DONT_USE_1275_GENERIC_NAMES = 0 // isa_defs.h:287:1:
X_DOUBLE_ALIGNMENT = 8 // isa_defs.h:256:1:
X_DOUBLE_COMPLEX_ALIGNMENT = 8 // isa_defs.h:257:1:
X_DTRACE_VERSION = 1 // feature_tests.h:490:1:
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_FIRMWARE_NEEDS_FDISK = 0 // isa_defs.h:282:1:
X_FLOAT_ALIGNMENT = 4 // isa_defs.h:252:1:
X_FLOAT_COMPLEX_ALIGNMENT = 4 // isa_defs.h:253:1:
X_HAVE_CPUID_INSN = 0 // isa_defs.h:288:1:
X_IEEE_754 = 0 // isa_defs.h:246:1:
X_INT64_TYPE = 0 // int_types.h:82:1:
X_INT_ALIGNMENT = 4 // isa_defs.h:251:1:
X_ISO_CPP_14882_1998 = 0 // feature_tests.h:466:1:
X_ISO_C_9899_1999 = 0 // feature_tests.h:472:1:
X_ISO_C_9899_2011 = 0 // feature_tests.h:478:1:
X_ISO_SIGNAL_ISO_H = 0 // signal_iso.h:46:1:
X_ISO_TIME_ISO_H = 0 // time_iso.h:46:1:
X_LARGEFILE64_SOURCE = 1 // feature_tests.h:231:1:
X_LARGEFILE_SOURCE = 1 // feature_tests.h:235:1:
X_LITTLE_ENDIAN = 0 // isa_defs.h:242:1:
X_LOCALE_T = 0 // time.h:291:1:
X_LONGLONG_TYPE = 0 // feature_tests.h:412:1:
X_LONG_ALIGNMENT = 8 // isa_defs.h:254:1:
X_LONG_DOUBLE_ALIGNMENT = 16 // isa_defs.h:258:1:
X_LONG_DOUBLE_COMPLEX_ALIGNMENT = 16 // isa_defs.h:259:1:
X_LONG_LONG_ALIGNMENT = 8 // isa_defs.h:255:1:
X_LONG_LONG_ALIGNMENT_32 = 4 // isa_defs.h:268:1:
X_LONG_LONG_LTOH = 0 // isa_defs.h:244:1:
X_LP64 = 1 // <predefined>:286:1:
X_MAX_ALIGNMENT = 16 // isa_defs.h:261:1:
X_MULTI_DATAMODEL = 0 // isa_defs.h:279:1:
X_MUTEX_MAGIC = 0x4d58 // types.h:424:1:
X_NBBY = 8 // select.h:100:1:
X_NORETURN_KYWD = 0 // feature_tests.h:448:1:
X_OFF_T = 0 // types.h:142:1:
X_PC_2_SYMLINKS = 19 // unistd.h:309:1:
X_PC_ACCESS_FILTERING = 25 // unistd.h:315:1:
X_PC_ACL_ENABLED = 20 // unistd.h:310:1:
X_PC_ALLOC_SIZE_MIN = 13 // unistd.h:303:1:
X_PC_ASYNC_IO = 10 // unistd.h:299:1:
X_PC_CASE_BEHAVIOR = 22 // unistd.h:312:1:
X_PC_CHOWN_RESTRICTED = 9 // unistd.h:297:1:
X_PC_FILESIZEBITS = 67 // unistd.h:325:1:
X_PC_LAST = 101 // unistd.h:336:1:
X_PC_LINK_MAX = 1 // unistd.h:289:1:
X_PC_MAX_CANON = 2 // unistd.h:290:1:
X_PC_MAX_INPUT = 3 // unistd.h:291:1:
X_PC_MIN_HOLE_SIZE = 21 // unistd.h:311:1:
X_PC_NAME_MAX = 4 // unistd.h:292:1:
X_PC_NO_TRUNC = 7 // unistd.h:295:1:
X_PC_PATH_MAX = 5 // unistd.h:293:1:
X_PC_PIPE_BUF = 6 // unistd.h:294:1:
X_PC_PRIO_IO = 11 // unistd.h:300:1:
X_PC_REC_INCR_XFER_SIZE = 14 // unistd.h:304:1:
X_PC_REC_MAX_XFER_SIZE = 15 // unistd.h:305:1:
X_PC_REC_MIN_XFER_SIZE = 16 // unistd.h:306:1:
X_PC_REC_XFER_ALIGN = 17 // unistd.h:307:1:
X_PC_SATTR_ENABLED = 23 // unistd.h:313:1:
X_PC_SATTR_EXISTS = 24 // unistd.h:314:1:
X_PC_SYMLINK_MAX = 18 // unistd.h:308:1:
X_PC_SYNC_IO = 12 // unistd.h:301:1:
X_PC_TIMESTAMP_RESOLUTION = 26 // unistd.h:317:1:
X_PC_VDISABLE = 8 // unistd.h:296:1:
X_PC_XATTR_ENABLED = 100 // unistd.h:330:1:
X_PC_XATTR_EXISTS = 101 // unistd.h:331:1:
X_POINTER_ALIGNMENT = 8 // isa_defs.h:260:1:
X_POSIX2_CHAR_TERM = 1 // unistd.h:391:1:
X_POSIX2_C_BIND = 1 // unistd.h:401:1:
X_POSIX2_C_DEV = 1 // unistd.h:402:1:
X_POSIX2_C_VERSION = 199209 // unistd.h:376:1:
X_POSIX2_FORT_RUN = 1 // unistd.h:403:1:
X_POSIX2_LOCALEDEF = 1 // unistd.h:404:1:
X_POSIX2_SW_DEV = 1 // unistd.h:405:1:
X_POSIX2_UPE = 1 // unistd.h:406:1:
X_POSIX2_VERSION = 199209 // unistd.h:363:1:
X_POSIX_REGEXP = 1 // unistd.h:410:1:
X_POSIX_SHELL = 1 // unistd.h:411:1:
X_POSIX_VERSION = 199506 // unistd.h:355:1:
X_PSM_MODULES = 0 // isa_defs.h:284:1:
X_PTRDIFF_T = 0 // types.h:112:1:
X_RESTRICT_KYWD = 0 // feature_tests.h:435:1:
X_RTC_CONFIG = 0 // isa_defs.h:285:1:
X_RWL_MAGIC = 0x5257 // types.h:427:1:
X_SC_2_CHAR_TERM = 66 // unistd.h:175:1:
X_SC_2_C_BIND = 45 // unistd.h:153:1:
X_SC_2_C_DEV = 46 // unistd.h:154:1:
X_SC_2_C_VERSION = 47 // unistd.h:155:1:
X_SC_2_FORT_DEV = 48 // unistd.h:156:1:
X_SC_2_FORT_RUN = 49 // unistd.h:157:1:
X_SC_2_LOCALEDEF = 50 // unistd.h:158:1:
X_SC_2_PBS = 724 // unistd.h:246:1:
X_SC_2_PBS_ACCOUNTING = 725 // unistd.h:247:1:
X_SC_2_PBS_CHECKPOINT = 726 // unistd.h:248:1:
X_SC_2_PBS_LOCATE = 728 // unistd.h:249:1:
X_SC_2_PBS_MESSAGE = 729 // unistd.h:250:1:
X_SC_2_PBS_TRACK = 730 // unistd.h:251:1:
X_SC_2_SW_DEV = 51 // unistd.h:159:1:
X_SC_2_UPE = 52 // unistd.h:160:1:
X_SC_2_VERSION = 53 // unistd.h:161:1:
X_SC_ADVISORY_INFO = 731 // unistd.h:252:1:
X_SC_AIO_LISTIO_MAX = 18 // unistd.h:125:1:
X_SC_AIO_MAX = 19 // unistd.h:126:1:
X_SC_AIO_PRIO_DELTA_MAX = 20 // unistd.h:127:1:
X_SC_ARG_MAX = 1 // unistd.h:106:1:
X_SC_ASYNCHRONOUS_IO = 21 // unistd.h:128:1:
X_SC_ATEXIT_MAX = 76 // unistd.h:179:1:
X_SC_AVPHYS_PAGES = 501 // unistd.h:190:1:
X_SC_BARRIERS = 732 // unistd.h:253:1:
X_SC_BC_BASE_MAX = 54 // unistd.h:162:1:
X_SC_BC_DIM_MAX = 55 // unistd.h:163:1:
X_SC_BC_SCALE_MAX = 56 // unistd.h:164:1:
X_SC_BC_STRING_MAX = 57 // unistd.h:165:1:
X_SC_CHILD_MAX = 2 // unistd.h:107:1:
X_SC_CLK_TCK = 3 // unistd.h:108:1:
X_SC_CLOCK_SELECTION = 733 // unistd.h:254:1:
X_SC_COHER_BLKSZ = 503 // unistd.h:196:1:
X_SC_COLL_WEIGHTS_MAX = 58 // unistd.h:166:1:
X_SC_CPUID_MAX = 517 // unistd.h:211:1:
X_SC_CPUTIME = 734 // unistd.h:255:1:
X_SC_DCACHE_ASSOC = 513 // unistd.h:206:1:
X_SC_DCACHE_BLKSZ = 510 // unistd.h:203:1:
X_SC_DCACHE_LINESZ = 508 // unistd.h:201:1:
X_SC_DCACHE_SZ = 506 // unistd.h:199:1:
X_SC_DCACHE_TBLKSZ = 511 // unistd.h:204:1:
X_SC_DELAYTIMER_MAX = 22 // unistd.h:129:1:
X_SC_EPHID_MAX = 518 // unistd.h:212:1:
X_SC_EXPR_NEST_MAX = 59 // unistd.h:167:1:
X_SC_FSYNC = 23 // unistd.h:130:1:
X_SC_GETGR_R_SIZE_MAX = 569 // unistd.h:220:1:
X_SC_GETPW_R_SIZE_MAX = 570 // unistd.h:221:1:
X_SC_HOST_NAME_MAX = 735 // unistd.h:256:1:
X_SC_ICACHE_ASSOC = 512 // unistd.h:205:1:
X_SC_ICACHE_BLKSZ = 509 // unistd.h:202:1:
X_SC_ICACHE_LINESZ = 507 // unistd.h:200:1:
X_SC_ICACHE_SZ = 505 // unistd.h:198:1:
X_SC_IOV_MAX = 77 // unistd.h:180:1:
X_SC_IPV6 = 762 // unistd.h:283:1:
X_SC_JOB_CONTROL = 6 // unistd.h:111:1:
X_SC_LINE_MAX = 60 // unistd.h:168:1:
X_SC_LOGIN_NAME_MAX = 571 // unistd.h:222:1:
X_SC_LOGNAME_MAX = 10 // unistd.h:116:1:
X_SC_MAPPED_FILES = 24 // unistd.h:131:1:
X_SC_MAXPID = 514 // unistd.h:208:1:
X_SC_MEMLOCK = 25 // unistd.h:132:1:
X_SC_MEMLOCK_RANGE = 26 // unistd.h:133:1:
X_SC_MEMORY_PROTECTION = 27 // unistd.h:134:1:
X_SC_MESSAGE_PASSING = 28 // unistd.h:135:1:
X_SC_MONOTONIC_CLOCK = 736 // unistd.h:257:1:
X_SC_MQ_OPEN_MAX = 29 // unistd.h:136:1:
X_SC_MQ_PRIO_MAX = 30 // unistd.h:137:1:
X_SC_NGROUPS_MAX = 4 // unistd.h:109:1:
X_SC_NPROCESSORS_CONF = 14 // unistd.h:120:1:
X_SC_NPROCESSORS_MAX = 516 // unistd.h:210:1:
X_SC_NPROCESSORS_ONLN = 15 // unistd.h:121:1:
X_SC_OPEN_MAX = 5 // unistd.h:110:1:
X_SC_PAGESIZE = 11 // unistd.h:117:1:
X_SC_PAGE_SIZE = 11 // unistd.h:182:1:
X_SC_PASS_MAX = 9 // unistd.h:115:1:
X_SC_PHYS_PAGES = 500 // unistd.h:189:1:
X_SC_PRIORITIZED_IO = 31 // unistd.h:138:1:
X_SC_PRIORITY_SCHEDULING = 32 // unistd.h:139:1:
X_SC_RAW_SOCKETS = 763 // unistd.h:284:1:
X_SC_READER_WRITER_LOCKS = 737 // unistd.h:258:1:
X_SC_REALTIME_SIGNALS = 33 // unistd.h:140:1:
X_SC_REGEXP = 738 // unistd.h:259:1:
X_SC_RE_DUP_MAX = 61 // unistd.h:169:1:
X_SC_RTSIG_MAX = 34 // unistd.h:141:1:
X_SC_SAVED_IDS = 7 // unistd.h:112:1:
X_SC_SEMAPHORES = 35 // unistd.h:142:1:
X_SC_SEM_NSEMS_MAX = 36 // unistd.h:143:1:
X_SC_SEM_VALUE_MAX = 37 // unistd.h:144:1:
X_SC_SHARED_MEMORY_OBJECTS = 38 // unistd.h:145:1:
X_SC_SHELL = 739 // unistd.h:260:1:
X_SC_SIGQUEUE_MAX = 39 // unistd.h:146:1:
X_SC_SIGRT_MAX = 41 // unistd.h:148:1:
X_SC_SIGRT_MIN = 40 // unistd.h:147:1:
X_SC_SPAWN = 740 // unistd.h:261:1:
X_SC_SPIN_LOCKS = 741 // unistd.h:262:1:
X_SC_SPLIT_CACHE = 504 // unistd.h:197:1:
X_SC_SPORADIC_SERVER = 742 // unistd.h:263:1:
X_SC_SS_REPL_MAX = 743 // unistd.h:264:1:
X_SC_STACK_PROT = 515 // unistd.h:209:1:
X_SC_STREAM_MAX = 16 // unistd.h:122:1:
X_SC_SYMLOOP_MAX = 744 // unistd.h:265:1:
X_SC_SYNCHRONIZED_IO = 42 // unistd.h:149:1:
X_SC_THREADS = 576 // unistd.h:227:1:
X_SC_THREAD_ATTR_STACKADDR = 577 // unistd.h:228:1:
X_SC_THREAD_ATTR_STACKSIZE = 578 // unistd.h:229:1:
X_SC_THREAD_CPUTIME = 745 // unistd.h:266:1:
X_SC_THREAD_DESTRUCTOR_ITERATIONS = 568 // unistd.h:219:1:
X_SC_THREAD_KEYS_MAX = 572 // unistd.h:223:1:
X_SC_THREAD_PRIORITY_SCHEDULING = 579 // unistd.h:230:1:
X_SC_THREAD_PRIO_INHERIT = 580 // unistd.h:231:1:
X_SC_THREAD_PRIO_PROTECT = 581 // unistd.h:232:1:
X_SC_THREAD_PROCESS_SHARED = 582 // unistd.h:233:1:
X_SC_THREAD_SAFE_FUNCTIONS = 583 // unistd.h:234:1:
X_SC_THREAD_SPORADIC_SERVER = 746 // unistd.h:267:1:
X_SC_THREAD_STACK_MIN = 573 // unistd.h:224:1:
X_SC_THREAD_THREADS_MAX = 574 // unistd.h:225:1:
X_SC_TIMEOUTS = 747 // unistd.h:268:1:
X_SC_TIMERS = 43 // unistd.h:150:1:
X_SC_TIMER_MAX = 44 // unistd.h:151:1:
X_SC_TRACE = 748 // unistd.h:269:1:
X_SC_TRACE_EVENT_FILTER = 749 // unistd.h:270:1:
X_SC_TRACE_EVENT_NAME_MAX = 750 // unistd.h:271:1:
X_SC_TRACE_INHERIT = 751 // unistd.h:272:1:
X_SC_TRACE_LOG = 752 // unistd.h:273:1:
X_SC_TRACE_NAME_MAX = 753 // unistd.h:274:1:
X_SC_TRACE_SYS_MAX = 754 // unistd.h:275:1:
X_SC_TRACE_USER_EVENT_MAX = 755 // unistd.h:276:1:
X_SC_TTY_NAME_MAX = 575 // unistd.h:226:1:
X_SC_TYPED_MEMORY_OBJECTS = 756 // unistd.h:277:1:
X_SC_TZNAME_MAX = 17 // unistd.h:123:1:
X_SC_T_IOV_MAX = 79 // unistd.h:186:1:
X_SC_UADDR_MAX = 519 // unistd.h:213:1:
X_SC_V6_ILP32_OFF32 = 757 // unistd.h:278:1:
X_SC_V6_ILP32_OFFBIG = 758 // unistd.h:279:1:
X_SC_V6_LP64_OFF64 = 759 // unistd.h:280:1:
X_SC_V6_LPBIG_OFFBIG = 760 // unistd.h:281:1:
X_SC_VERSION = 8 // unistd.h:113:1:
X_SC_XBS5_ILP32_OFF32 = 720 // unistd.h:240:1:
X_SC_XBS5_ILP32_OFFBIG = 721 // unistd.h:241:1:
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | true |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/signal_windows_arm64.go | vendor/modernc.org/libc/signal/signal_windows_arm64.go | // Code generated by 'ccgo signal\gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o signal\signal_windows_arm64.go -pkgname signal', DO NOT EDIT.
package signal
import (
"math"
"reflect"
"sync/atomic"
"unsafe"
)
var _ = math.Pi
var _ reflect.Kind
var _ atomic.Value
var _ unsafe.Pointer
const (
DUMMYSTRUCTNAME = 0
DUMMYSTRUCTNAME1 = 0
DUMMYSTRUCTNAME2 = 0
DUMMYSTRUCTNAME3 = 0
DUMMYSTRUCTNAME4 = 0
DUMMYSTRUCTNAME5 = 0
DUMMYUNIONNAME = 0
DUMMYUNIONNAME1 = 0
DUMMYUNIONNAME2 = 0
DUMMYUNIONNAME3 = 0
DUMMYUNIONNAME4 = 0
DUMMYUNIONNAME5 = 0
DUMMYUNIONNAME6 = 0
DUMMYUNIONNAME7 = 0
DUMMYUNIONNAME8 = 0
DUMMYUNIONNAME9 = 0
MINGW_DDK_H = 0
MINGW_HAS_DDK_H = 1
MINGW_HAS_SECURE_API = 1
MINGW_SDK_INIT = 0
NSIG = 23
SIGABRT = 22
SIGABRT2 = 22
SIGABRT_COMPAT = 6
SIGBREAK = 21
SIGFPE = 8
SIGILL = 4
SIGINT = 2
SIGSEGV = 11
SIGTERM = 15
UNALIGNED = 0
USE___UUIDOF = 0
WIN32 = 1
WIN64 = 1
WINNT = 1
WIN_PTHREADS_SIGNAL_H = 0
X_AGLOBAL = 0
X_ANONYMOUS_STRUCT = 0
X_ANONYMOUS_UNION = 0
X_ARGMAX = 100
X_ARM64_ = 1
X_CONST_RETURN = 0
X_CRTNOALIAS = 0
X_CRTRESTRICT = 0
X_CRT_ALTERNATIVE_IMPORTED = 0
X_CRT_MANAGED_HEAP_DEPRECATE = 0
X_CRT_PACKING = 8
X_CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES = 0
X_CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES_MEMORY = 0
X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES = 0
X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT = 0
X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_MEMORY = 0
X_CRT_USE_WINAPI_FAMILY_DESKTOP_APP = 0
X_DLL = 0
X_ERRCODE_DEFINED = 0
X_FILE_OFFSET_BITS = 64
X_INC_CORECRT = 0
X_INC_CRTDEFS = 0
X_INC_CRTDEFS_MACRO = 0
X_INC_MINGW_SECAPI = 0
X_INC_SIGNAL = 0
X_INC_VADEFS = 0
X_INC__MINGW_H = 0
X_INT128_DEFINED = 0
X_INTPTR_T_DEFINED = 0
X_MT = 0
X_M_ARM64 = 1
X_PGLOBAL = 0
X_PTRDIFF_T_ = 0
X_PTRDIFF_T_DEFINED = 0
X_RSIZE_T_DEFINED = 0
X_SECURECRT_FILL_BUFFER_PATTERN = 0xFD
X_SIG_ATOMIC_T_DEFINED = 0
X_SIZE_T_DEFINED = 0
X_SSIZE_T_DEFINED = 0
X_TAGLC_ID_DEFINED = 0
X_THREADLOCALEINFO = 0
X_TIME32_T_DEFINED = 0
X_TIME64_T_DEFINED = 0
X_TIME_T_DEFINED = 0
X_UCRT = 0
X_UINTPTR_T_DEFINED = 0
X_VA_LIST_DEFINED = 0
X_W64 = 0
X_WCHAR_T_DEFINED = 0
X_WCTYPE_T_DEFINED = 0
X_WIN32 = 1
X_WIN32_WINNT = 0x601
X_WIN64 = 1
X_WINT_T = 0
)
type Ptrdiff_t = int64 /* <builtin>:3:26 */
type Size_t = uint64 /* <builtin>:9:23 */
type Wchar_t = uint16 /* <builtin>:15:24 */
type X__int128_t = struct {
Flo int64
Fhi int64
} /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
type X__uint128_t = struct {
Flo uint64
Fhi uint64
} /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
type X__float128 = float64 /* <builtin>:47:21 */
type Va_list = X__builtin_va_list /* <builtin>:50:27 */
// *
// This file has no copyright assigned and is placed in the Public Domain.
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
// *
// This file has no copyright assigned and is placed in the Public Domain.
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
// *
// This file has no copyright assigned and is placed in the Public Domain.
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
// *
// This file has no copyright assigned and is placed in the Public Domain.
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
// *
// This file has no copyright assigned and is placed in the Public Domain.
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
// This macro holds an monotonic increasing value, which indicates
// a specific fix/patch is present on trunk. This value isn't related to
// minor/major version-macros. It is increased on demand, if a big
// fix was applied to trunk. This macro gets just increased on trunk. For
// other branches its value won't be modified.
// mingw.org's version macros: these make gcc to define
// MINGW32_SUPPORTS_MT_EH and to use the _CRT_MT global
// and the __mingwthr_key_dtor() function from the MinGW
// CRT in its private gthr-win32.h header.
// Set VC specific compiler target macros.
// MS does not prefix symbols by underscores for 64-bit.
// As we have to support older gcc version, which are using underscores
// as symbol prefix for x64, we have to check here for the user label
// prefix defined by gcc.
// Special case nameless struct/union.
// MinGW-w64 has some additional C99 printf/scanf feature support.
// So we add some helper macros to ease recognition of them.
// If _FORTIFY_SOURCE is enabled, some inline functions may use
// __builtin_va_arg_pack(). GCC may report an error if the address
// of such a function is used. Set _FORTIFY_VA_ARG=0 in this case.
// Enable workaround for ABI incompatibility on affected platforms
// *
// This file has no copyright assigned and is placed in the Public Domain.
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
// http://msdn.microsoft.com/en-us/library/ms175759%28v=VS.100%29.aspx
// Templates won't work in C, will break if secure API is not enabled, disabled
// https://blogs.msdn.com/b/sdl/archive/2010/02/16/vc-2010-and-memcpy.aspx?Redirected=true
// fallback on default implementation if we can't know the size of the destination
// Include _cygwin.h if we're building a Cygwin application.
// Target specific macro replacement for type "long". In the Windows API,
// the type long is always 32 bit, even if the target is 64 bit (LLP64).
// On 64 bit Cygwin, the type long is 64 bit (LP64). So, to get the right
// sized definitions and declarations, all usage of type long in the Windows
// headers have to be replaced by the below defined macro __LONG32.
// C/C++ specific language defines.
// Note the extern. This is needed to work around GCC's
// limitations in handling dllimport attribute.
// Attribute `nonnull' was valid as of gcc 3.3. We don't use GCC's
// variadiac macro facility, because variadic macros cause syntax
// errors with --traditional-cpp.
// High byte is the major version, low byte is the minor.
// Allow both 0x1400 and 0xE00 to identify UCRT
// ===-------- vadefs.h ---------------------------------------------------===
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===-----------------------------------------------------------------------===
// Only include this if we are aiming for MSVC compatibility.
// *
// This file has no copyright assigned and is placed in the Public Domain.
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
// *
// This file has no copyright assigned and is placed in the Public Domain.
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
// for backward compatibility
type X__gnuc_va_list = X__builtin_va_list /* vadefs.h:24:29 */
type Ssize_t = int64 /* corecrt.h:45:35 */
type Rsize_t = Size_t /* corecrt.h:52:16 */
type Intptr_t = int64 /* corecrt.h:62:35 */
type Uintptr_t = uint64 /* corecrt.h:75:44 */
type Wint_t = uint16 /* corecrt.h:106:24 */
type Wctype_t = uint16 /* corecrt.h:107:24 */
type Errno_t = int32 /* corecrt.h:113:13 */
type X__time32_t = int32 /* corecrt.h:118:14 */
type X__time64_t = int64 /* corecrt.h:123:35 */
type Time_t = X__time64_t /* corecrt.h:138:20 */
type Threadlocaleinfostruct = struct {
F_locale_pctype uintptr
F_locale_mb_cur_max int32
F_locale_lc_codepage uint32
} /* corecrt.h:430:1 */
type Pthreadlocinfo = uintptr /* corecrt.h:432:39 */
type Pthreadmbcinfo = uintptr /* corecrt.h:433:36 */
type Localeinfo_struct = struct {
Flocinfo Pthreadlocinfo
Fmbcinfo Pthreadmbcinfo
} /* corecrt.h:436:9 */
type X_locale_tstruct = Localeinfo_struct /* corecrt.h:439:3 */
type X_locale_t = uintptr /* corecrt.h:439:19 */
type TagLC_ID = struct {
FwLanguage uint16
FwCountry uint16
FwCodePage uint16
} /* corecrt.h:443:9 */
type LC_ID = TagLC_ID /* corecrt.h:447:3 */
type LPLC_ID = uintptr /* corecrt.h:447:9 */
type Threadlocinfo = Threadlocaleinfostruct /* corecrt.h:482:3 */
//
// Copyright (c) 2013-2016 mingw-w64 project
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
// and/or sell copies of the Software, and to permit persons to whom the
// Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
// Windows has rudimentary signals support.
type Sig_atomic_t = int32 /* signal.h:18:15 */
type X__p_sig_fn_t = uintptr /* signal.h:48:16 */
var _ int8 /* gen.c:2:13: */
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/more_freebsd_arm.go | vendor/modernc.org/libc/signal/more_freebsd_arm.go | // Copyright 2020 The Libc Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package signal
const (
// sys/sys/signal.h:139:#define SIG_DFL ((__sighandler_t *)0)
SIG_DFL = 0
// sys/sys/signal.h:140:#define SIG_IGN ((__sighandler_t *)1)
SIG_IGN = 1
)
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/capi_linux_s390x.go | vendor/modernc.org/libc/signal/capi_linux_s390x.go | // Code generated by 'ccgo signal/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o signal/signal_linux_s390x.go -pkgname signal', DO NOT EDIT.
package signal
var CAPI = map[string]struct{}{}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/capi_darwin_amd64.go | vendor/modernc.org/libc/signal/capi_darwin_amd64.go | // Code generated by 'ccgo signal/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 signal/signal_darwin_amd64.go -pkgname signal', DO NOT EDIT.
package signal
var CAPI = map[string]struct{}{
"__darwin_check_fd_set_overflow": {},
"__sigbits": {},
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/capi_windows_arm64.go | vendor/modernc.org/libc/signal/capi_windows_arm64.go | // Code generated by 'ccgo signal\gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o signal\signal_windows_arm64.go -pkgname signal', DO NOT EDIT.
package signal
var CAPI = map[string]struct{}{}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/capi_linux_arm64.go | vendor/modernc.org/libc/signal/capi_linux_arm64.go | // Code generated by 'ccgo signal/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o signal/signal_linux_arm64.go -pkgname signal', DO NOT EDIT.
package signal
var CAPI = map[string]struct{}{}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/more_linux_arm64.go | vendor/modernc.org/libc/signal/more_linux_arm64.go | // Copyright 2020 The Libc Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package signal
const (
// /usr/include/asm-generic/signal-defs.h:24:#define SIG_DFL ((__sighandler_t)0) /* default signal handling */
SIG_DFL = 0
// /usr/include/asm-generic/signal-defs.h:25:#define SIG_IGN ((__sighandler_t)1) /* ignore signal */
SIG_IGN = 1
)
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/capi_windows_amd64.go | vendor/modernc.org/libc/signal/capi_windows_amd64.go | // Code generated by 'ccgo signal\gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o signal\signal_windows_amd64.go -pkgname signal', DO NOT EDIT.
package signal
var CAPI = map[string]struct{}{}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/capi_linux_loong64.go | vendor/modernc.org/libc/signal/capi_linux_loong64.go | // Code generated by 'ccgo signal/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 signal/signal_linux_loong64.go -pkgname signal', DO NOT EDIT.
package signal
var CAPI = map[string]struct{}{}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/more_freebsd_arm64.go | vendor/modernc.org/libc/signal/more_freebsd_arm64.go | // Copyright 2020 The Libc Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package signal
const (
// sys/sys/signal.h:139:#define SIG_DFL ((__sighandler_t *)0)
SIG_DFL = 0
// sys/sys/signal.h:140:#define SIG_IGN ((__sighandler_t *)1)
SIG_IGN = 1
)
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/signal_linux_loong64.go | vendor/modernc.org/libc/signal/signal_linux_loong64.go | // Code generated by 'ccgo signal/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 signal/signal_linux_loong64.go -pkgname signal', DO NOT EDIT.
package signal
import (
"math"
"reflect"
"sync/atomic"
"unsafe"
)
var _ = math.Pi
var _ reflect.Kind
var _ atomic.Value
var _ unsafe.Pointer
const (
CONTEXT_INFO_ALIGN = 16 // sigcontext.h:28:1:
FPU_CTX_ALIGN = 8 // sigcontext.h:37:1:
FPU_CTX_MAGIC = 0x46505501 // sigcontext.h:36:1:
LARCH_NGREG = 32 // ucontext.h:31:1:
LARCH_REG_A0 = 4 // ucontext.h:37:1:
LARCH_REG_NARGS = 8 // ucontext.h:39:1:
LARCH_REG_RA = 1 // ucontext.h:33:1:
LARCH_REG_S0 = 23 // ucontext.h:35:1:
LARCH_REG_S1 = 24 // ucontext.h:36:1:
LARCH_REG_S2 = 25 // ucontext.h:38:1:
LARCH_REG_SP = 3 // ucontext.h:34:1:
LASX_CTX_ALIGN = 32 // sigcontext.h:55:1:
LASX_CTX_MAGIC = 0x41535801 // sigcontext.h:54:1:
LSX_CTX_ALIGN = 16 // sigcontext.h:46:1:
LSX_CTX_MAGIC = 0x53580001 // sigcontext.h:45:1:
MINSIGSTKSZ = 4096 // sigstack.h:27:1:
NSIG = 65 // signal.h:184:1:
SA_INTERRUPT = 0x20000000 // sigaction.h:70:1:
SA_NOCLDSTOP = 1 // sigaction.h:56:1:
SA_NOCLDWAIT = 2 // sigaction.h:57:1:
SA_NODEFER = 0x40000000 // sigaction.h:65:1:
SA_NOMASK = 1073741824 // sigaction.h:73:1:
SA_ONESHOT = 2147483648 // sigaction.h:74:1:
SA_ONSTACK = 0x08000000 // sigaction.h:61:1:
SA_RESETHAND = 0x80000000 // sigaction.h:67:1:
SA_RESTART = 0x10000000 // sigaction.h:64:1:
SA_SIGINFO = 4 // sigaction.h:58:1:
SA_STACK = 134217728 // sigaction.h:75:1:
SC_ADDRERR_RD = 1073741824 // sigcontext.h:17:1:
SC_ADDRERR_WR = 2147483648 // sigcontext.h:19:1:
SC_USED_FP = 1 // sigcontext.h:15:1:
SIGABRT = 6 // signum-generic.h:50:1:
SIGALRM = 14 // signum-generic.h:61:1:
SIGBUS = 7 // signum-arch.h:33:1:
SIGCHLD = 17 // signum-arch.h:41:1:
SIGCLD = 17 // signum-arch.h:59:1:
SIGCONT = 18 // signum-arch.h:40:1:
SIGFPE = 8 // signum-generic.h:51:1:
SIGHUP = 1 // signum-generic.h:56:1:
SIGILL = 4 // signum-generic.h:49:1:
SIGINT = 2 // signum-generic.h:48:1:
SIGIO = 29 // signum-arch.h:57:1:
SIGIOT = 6 // signum-arch.h:58:1:
SIGKILL = 9 // signum-generic.h:59:1:
SIGPIPE = 13 // signum-generic.h:60:1:
SIGPOLL = 29 // signum-arch.h:44:1:
SIGPROF = 27 // signum-arch.h:48:1:
SIGPWR = 30 // signum-arch.h:30:1:
SIGQUIT = 3 // signum-generic.h:57:1:
SIGSEGV = 11 // signum-generic.h:52:1:
SIGSTKFLT = 16 // signum-arch.h:29:1:
SIGSTKSZ = 16384 // sigstack.h:30:1:
SIGSTOP = 19 // signum-arch.h:38:1:
SIGSYS = 31 // signum-arch.h:34:1:
SIGTERM = 15 // signum-generic.h:53:1:
SIGTRAP = 5 // signum-generic.h:58:1:
SIGTSTP = 20 // signum-arch.h:39:1:
SIGTTIN = 21 // signum-arch.h:42:1:
SIGTTOU = 22 // signum-arch.h:43:1:
SIGURG = 23 // signum-arch.h:37:1:
SIGUSR1 = 10 // signum-arch.h:49:1:
SIGUSR2 = 12 // signum-arch.h:50:1:
SIGVTALRM = 26 // signum-arch.h:47:1:
SIGWINCH = 28 // signum-arch.h:54:1:
SIGXCPU = 24 // signum-arch.h:46:1:
SIGXFSZ = 25 // signum-arch.h:45:1:
SIG_BLOCK = 0 // sigaction.h:79:1:
SIG_SETMASK = 2 // sigaction.h:81:1:
SIG_UNBLOCK = 1 // sigaction.h:80:1:
X_ABILP64 = 3 // <predefined>:377:1:
X_ASM_GENERIC_INT_LL64_H = 0 // int-ll64.h:10:1:
X_ASM_GENERIC_TYPES_H = 0 // types.h:3:1:
X_ASM_SIGCONTEXT_H = 0 // sigcontext.h:9:1:
X_ATFILE_SOURCE = 1 // features.h:353:1:
X_BITS_ATOMIC_WIDE_COUNTER_H = 0 // atomic_wide_counter.h:20:1:
X_BITS_ENDIANNESS_H = 1 // endianness.h:2:1:
X_BITS_ENDIAN_H = 1 // endian.h:20:1:
X_BITS_PTHREADTYPES_ARCH_H = 1 // pthreadtypes-arch.h:21:1:
X_BITS_PTHREADTYPES_COMMON_H = 1 // pthreadtypes.h:20:1:
X_BITS_SIGACTION_H = 1 // sigaction.h:20:1:
X_BITS_SIGCONTEXT_H = 1 // sigcontext.h:19:1:
X_BITS_SIGEVENT_CONSTS_H = 1 // sigevent-consts.h:20:1:
X_BITS_SIGINFO_ARCH_H = 1 // siginfo-arch.h:3:1:
X_BITS_SIGINFO_CONSTS_H = 1 // siginfo-consts.h:20:1:
X_BITS_SIGNUM_ARCH_H = 1 // signum-arch.h:20:1:
X_BITS_SIGNUM_GENERIC_H = 1 // signum-generic.h:20:1:
X_BITS_SIGSTACK_H = 1 // sigstack.h:20:1:
X_BITS_SIGTHREAD_H = 1 // sigthread.h:20:1:
X_BITS_SS_FLAGS_H = 1 // ss_flags.h:20:1:
X_BITS_TIME64_H = 1 // time64.h:24:1:
X_BITS_TYPESIZES_H = 1 // typesizes.h:24:1:
X_BITS_TYPES_H = 1 // types.h:24:1:
X_BSD_SIZE_T_ = 0 // stddef.h:193:1:
X_BSD_SIZE_T_DEFINED_ = 0 // stddef.h:196:1:
X_DEFAULT_SOURCE = 1 // features.h:238:1:
X_FEATURES_H = 1 // features.h:19:1:
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_GCC_SIZE_T = 0 // stddef.h:200:1:
X_LINUX_POSIX_TYPES_H = 0 // posix_types.h:3:1:
X_LINUX_STDDEF_H = 0 // stddef.h:3:1:
X_LINUX_TYPES_H = 0 // types.h:3:1:
X_LOONGARCH_ARCH = "loongarch64" // <predefined>:214:1:
X_LOONGARCH_ARCH_LOONGARCH64 = 1 // <predefined>:340:1:
X_LOONGARCH_FPSET = 32 // <predefined>:265:1:
X_LOONGARCH_SIM = 3 // <predefined>:233:1:
X_LOONGARCH_SPFPSET = 32 // <predefined>:88:1:
X_LOONGARCH_SZINT = 32 // <predefined>:230:1:
X_LOONGARCH_SZLONG = 64 // <predefined>:388:1:
X_LOONGARCH_SZPTR = 64 // <predefined>:200:1:
X_LOONGARCH_TUNE = "la464" // <predefined>:245:1:
X_LOONGARCH_TUNE_LA464 = 1 // <predefined>:63:1:
X_LP64 = 1 // <predefined>:372:1:
X_NSIG = 65 // signum-generic.h:79:1:
X_POSIX_C_SOURCE = 200809 // features.h:292:1:
X_POSIX_SOURCE = 1 // features.h:290:1:
X_SIGNAL_H = 0 // signal.h:23:1:
X_SIZET_ = 0 // stddef.h:201:1:
X_SIZE_T = 0 // stddef.h:187:1:
X_SIZE_T_ = 0 // stddef.h:192:1:
X_SIZE_T_DECLARED = 0 // stddef.h:197:1:
X_SIZE_T_DEFINED = 0 // stddef.h:195:1:
X_SIZE_T_DEFINED_ = 0 // stddef.h:194:1:
X_STDC_PREDEF_H = 1 // <predefined>:223:1:
X_STRUCT_TIMESPEC = 1 // struct_timespec.h:3:1:
X_SYS_CDEFS_H = 1 // cdefs.h:20:1:
X_SYS_SIZE_T_H = 0 // stddef.h:188:1:
X_SYS_UCONTEXT_H = 1 // ucontext.h:23:1:
X_THREAD_MUTEX_INTERNAL_H = 1 // struct_mutex.h:20:1:
X_THREAD_SHARED_TYPES_H = 1 // thread-shared-types.h:20:1:
X_T_SIZE = 0 // stddef.h:190:1:
X_T_SIZE_ = 0 // stddef.h:189:1:
Linux = 1 // <predefined>:308:1:
Unix = 1 // <predefined>:247:1:
)
// POSIX names to access some of the members.
// sigevent constants. Linux version.
// Copyright (C) 1997-2023 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// `sigev_notify' values.
const ( /* sigevent-consts.h:27:1: */
SIGEV_SIGNAL = 0 // Notify via signal.
SIGEV_NONE = 1 // Other notification: meaningless.
SIGEV_THREAD = 2 // Deliver via thread creation.
SIGEV_THREAD_ID = 4
)
// `si_code' values for SIGSEGV signal.
const ( /* siginfo-consts.h:119:1: */
SEGV_MAPERR = 1 // Address not mapped to object.
SEGV_ACCERR = 2 // Invalid permissions for mapped object.
SEGV_BNDERR = 3 // Bounds checking failure.
SEGV_PKUERR = 4 // Protection key checking failure.
SEGV_ACCADI = 5 // ADI not enabled for mapped object.
SEGV_ADIDERR = 6 // Disrupting MCD error.
SEGV_ADIPERR = 7 // Precise MCD exception.
SEGV_MTEAERR = 8 // Asynchronous ARM MTE error.
SEGV_MTESERR = 9
)
// `si_code' values for SIGBUS signal.
const ( /* siginfo-consts.h:142:1: */
BUS_ADRALN = 1 // Invalid address alignment.
BUS_ADRERR = 2 // Non-existent physical address.
BUS_OBJERR = 3 // Object specific hardware error.
BUS_MCEERR_AR = 4 // Hardware memory error: action required.
BUS_MCEERR_AO = 5
)
// `si_code' values for SIGCHLD signal.
const ( /* siginfo-consts.h:176:1: */
CLD_EXITED = 1 // Child has exited.
CLD_KILLED = 2 // Child was killed.
CLD_DUMPED = 3 // Child terminated abnormally.
CLD_TRAPPED = 4 // Traced child has trapped.
CLD_STOPPED = 5 // Child has stopped.
CLD_CONTINUED = 6
)
// `si_code' values for SIGPOLL signal.
const ( /* siginfo-consts.h:193:1: */
POLL_IN = 1 // Data input available.
POLL_OUT = 2 // Output buffers available.
POLL_MSG = 3 // Input message available.
POLL_ERR = 4 // I/O error.
POLL_PRI = 5 // High priority input available.
POLL_HUP = 6
)
// X/Open requires some more fields with fixed names.
// siginfo constants. Linux version.
// Copyright (C) 1997-2023 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// Most of these constants are uniform across all architectures, but there
// is one exception.
// Architecture-specific adjustments to siginfo_t.
// Values for `si_code'. Positive values are reserved for kernel-generated
//
// signals.
const ( /* siginfo-consts.h:35:1: */
SI_ASYNCNL = -60 // Sent by asynch name lookup completion.
SI_DETHREAD = -7 // Sent by execve killing subsidiary
// threads.
SI_TKILL = -6 // Sent by tkill.
SI_SIGIO = -5 // Sent by queued SIGIO.
SI_ASYNCIO = -4 // Sent by AIO completion.
SI_MESGQ = -3 // Sent by real time mesq state change.
SI_TIMER = -2 // Sent by timer expiration.
SI_QUEUE = -1 // Sent by sigqueue.
SI_USER = 0 // Sent by kill, sigsend.
SI_KERNEL = 128
)
// `si_code' values for SIGILL signal.
const ( /* siginfo-consts.h:71:1: */
ILL_ILLOPC = 1 // Illegal opcode.
ILL_ILLOPN = 2 // Illegal operand.
ILL_ILLADR = 3 // Illegal addressing mode.
ILL_ILLTRP = 4 // Illegal trap.
ILL_PRVOPC = 5 // Privileged opcode.
ILL_PRVREG = 6 // Privileged register.
ILL_COPROC = 7 // Coprocessor error.
ILL_BADSTK = 8 // Internal stack error.
ILL_BADIADDR = 9
)
// `si_code' values for SIGFPE signal.
const ( /* siginfo-consts.h:94:1: */
FPE_INTDIV = 1 // Integer divide by zero.
FPE_INTOVF = 2 // Integer overflow.
FPE_FLTDIV = 3 // Floating point divide by zero.
FPE_FLTOVF = 4 // Floating point overflow.
FPE_FLTUND = 5 // Floating point underflow.
FPE_FLTRES = 6 // Floating point inexact result.
FPE_FLTINV = 7 // Floating point invalid operation.
FPE_FLTSUB = 8 // Subscript out of range.
FPE_FLTUNK = 14 // Undiagnosed floating-point exception.
FPE_CONDTRAP = 15
)
// sigstack, sigaltstack definitions.
// Copyright (C) 2022-2023 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// Minimum stack size for a signal handler.
// System default stack size.
// Definition of MINSIGSTKSZ and SIGSTKSZ. Linux version.
// Copyright (C) 2020-2023 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// ss_flags values for stack_t. Linux version.
// Copyright (C) 1998-2023 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// Possible values for `ss_flags'.
const ( /* ss_flags.h:27:1: */
SS_ONSTACK = 1
SS_DISABLE = 2
)
type Ptrdiff_t = int64 /* <builtin>:3:26 */
type Size_t = uint64 /* <builtin>:9:23 */
type Wchar_t = int32 /* <builtin>:15:24 */
type X__int128_t = struct {
Flo int64
Fhi int64
} /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
type X__uint128_t = struct {
Flo uint64
Fhi uint64
} /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
type X__float128 = float64 /* <builtin>:47:21 */
// Copyright (C) 1991-2023 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// ISO C99 Standard: 7.14 Signal handling <signal.h>
// Copyright (C) 1991-2023 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// These are defined by the user (or the compiler)
// to specify the desired environment:
//
// __STRICT_ANSI__ ISO Standard C.
// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99.
// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11.
// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X.
// __STDC_WANT_LIB_EXT2__
// Extensions to ISO C99 from TR 27431-2:2010.
// __STDC_WANT_IEC_60559_BFP_EXT__
// Extensions to ISO C11 from TS 18661-1:2014.
// __STDC_WANT_IEC_60559_FUNCS_EXT__
// Extensions to ISO C11 from TS 18661-4:2015.
// __STDC_WANT_IEC_60559_TYPES_EXT__
// Extensions to ISO C11 from TS 18661-3:2015.
// __STDC_WANT_IEC_60559_EXT__
// ISO C2X interfaces defined only in Annex F.
//
// _POSIX_SOURCE IEEE Std 1003.1.
// _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2;
// if >=199309L, add IEEE Std 1003.1b-1993;
// if >=199506L, add IEEE Std 1003.1c-1995;
// if >=200112L, all of IEEE 1003.1-2004
// if >=200809L, all of IEEE 1003.1-2008
// _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if
// Single Unix conformance is wanted, to 600 for the
// sixth revision, to 700 for the seventh revision.
// _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions.
// _LARGEFILE_SOURCE Some more functions for correct standard I/O.
// _LARGEFILE64_SOURCE Additional functionality from LFS for large files.
// _FILE_OFFSET_BITS=N Select default filesystem interface.
// _ATFILE_SOURCE Additional *at interfaces.
// _DYNAMIC_STACK_SIZE_SOURCE Select correct (but non compile-time constant)
// MINSIGSTKSZ, SIGSTKSZ and PTHREAD_STACK_MIN.
// _GNU_SOURCE All of the above, plus GNU extensions.
// _DEFAULT_SOURCE The default set of features (taking precedence over
// __STRICT_ANSI__).
//
// _FORTIFY_SOURCE Add security hardening to many library functions.
// Set to 1, 2 or 3; 3 performs stricter checks than 2, which
// performs stricter checks than 1.
//
// _REENTRANT, _THREAD_SAFE
// Obsolete; equivalent to _POSIX_C_SOURCE=199506L.
//
// The `-ansi' switch to the GNU C compiler, and standards conformance
// options such as `-std=c99', define __STRICT_ANSI__. If none of
// these are defined, or if _DEFAULT_SOURCE is defined, the default is
// to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to
// 200809L, as well as enabling miscellaneous functions from BSD and
// SVID. If more than one of these are defined, they accumulate. For
// example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together
// give you ISO C, 1003.1, and 1003.2, but nothing else.
//
// These are defined by this file and are used by the
// header files to decide what to declare or define:
//
// __GLIBC_USE (F) Define things from feature set F. This is defined
// to 1 or 0; the subsequent macros are either defined
// or undefined, and those tests should be moved to
// __GLIBC_USE.
// __USE_ISOC11 Define ISO C11 things.
// __USE_ISOC99 Define ISO C99 things.
// __USE_ISOC95 Define ISO C90 AMD1 (C95) things.
// __USE_ISOCXX11 Define ISO C++11 things.
// __USE_POSIX Define IEEE Std 1003.1 things.
// __USE_POSIX2 Define IEEE Std 1003.2 things.
// __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things.
// __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things.
// __USE_XOPEN Define XPG things.
// __USE_XOPEN_EXTENDED Define X/Open Unix things.
// __USE_UNIX98 Define Single Unix V2 things.
// __USE_XOPEN2K Define XPG6 things.
// __USE_XOPEN2KXSI Define XPG6 XSI things.
// __USE_XOPEN2K8 Define XPG7 things.
// __USE_XOPEN2K8XSI Define XPG7 XSI things.
// __USE_LARGEFILE Define correct standard I/O things.
// __USE_LARGEFILE64 Define LFS things with separate names.
// __USE_FILE_OFFSET64 Define 64bit interface as default.
// __USE_MISC Define things from 4.3BSD or System V Unix.
// __USE_ATFILE Define *at interfaces and AT_* constants for them.
// __USE_DYNAMIC_STACK_SIZE Define correct (but non compile-time constant)
// MINSIGSTKSZ, SIGSTKSZ and PTHREAD_STACK_MIN.
// __USE_GNU Define GNU extensions.
// __USE_FORTIFY_LEVEL Additional security measures used, according to level.
//
// The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are
// defined by this file unconditionally. `__GNU_LIBRARY__' is provided
// only for compatibility. All new code should use the other symbols
// to test for features.
//
// All macros listed above as possibly being defined by this file are
// explicitly undefined if they are not explicitly defined.
// Feature-test macros that are not defined by the user or compiler
// but are implied by the other feature-test macros defined (or by the
// lack of any definitions) are defined by the file.
//
// ISO C feature test macros depend on the definition of the macro
// when an affected header is included, not when the first system
// header is included, and so they are handled in
// <bits/libc-header-start.h>, which does not have a multiple include
// guard. Feature test macros that can be handled from the first
// system header included are handled here.
// Undefine everything, so we get a clean slate.
// Suppress kernel-name space pollution unless user expressedly asks
// for it.
// Convenience macro to test the version of gcc.
// Use like this:
// #if __GNUC_PREREQ (2,8)
// ... code requiring gcc 2.8 or later ...
// #endif
// Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was
// added in 2.0.
// Similarly for clang. Features added to GCC after version 4.2 may
// or may not also be available in clang, and clang's definitions of
// __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such
// features can be queried via __has_extension/__has_feature.
// Whether to use feature set F.
// _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for
// _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not
// issue a warning; the expectation is that the source is being
// transitioned to use the new macro.
// If _GNU_SOURCE was defined by the user, turn on all the other features.
// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined,
// define _DEFAULT_SOURCE.
// This is to enable the ISO C2X extension.
// This is to enable the ISO C11 extension.
// This is to enable the ISO C99 extension.
// This is to enable the ISO C90 Amendment 1:1995 extension.
// If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE
// is defined, use POSIX.1-2008 (or another version depending on
// _XOPEN_SOURCE).
// Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be
// defined in all multithreaded code. GNU libc has not required this
// for many years. We now treat them as compatibility synonyms for
// _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with
// comprehensive support for multithreaded code. Using them never
// lowers the selected level of POSIX conformance, only raises it.
// Features part to handle 64-bit time_t support.
// Copyright (C) 2021-2023 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// We need to know the word size in order to check the time size.
// Copyright (C) 1999-2023 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// Bit size of the time_t type at glibc build time, general case.
// Copyright (C) 2018-2023 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// Size in bits of the 'time_t' type of the default ABI.
// The function 'gets' existed in C89, but is impossible to use
// safely. It has been removed from ISO C11 and ISO C++14. Note: for
// compatibility with various implementations of <cstdio>, this test
// must consider only the value of __cplusplus when compiling C++.
// GNU formerly extended the scanf functions with modified format
// specifiers %as, %aS, and %a[...] that allocate a buffer for the
// input using malloc. This extension conflicts with ISO C99, which
// defines %a as a standalone format specifier that reads a floating-
// point number; moreover, POSIX.1-2008 provides the same feature
// using the modifier letter 'm' instead (%ms, %mS, %m[...]).
//
// We now follow C99 unless GNU extensions are active and the compiler
// is specifically in C89 or C++98 mode (strict or not). For
// instance, with GCC, -std=gnu11 will have C99-compliant scanf with
// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the
// old extension.
// ISO C2X added support for a 0b or 0B prefix on binary constants as
// inputs to strtol-family functions (base 0 or 2). This macro is
// used to condition redirection in headers to allow that redirection
// to be disabled when building those functions, despite _GNU_SOURCE
// being defined.
// Get definitions of __STDC_* predefined macros, if the compiler has
// not preincluded this header automatically.
// Copyright (C) 1991-2023 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// This macro indicates that the installed library is the GNU C Library.
// For historic reasons the value now is 6 and this will stay from now
// on. The use of this variable is deprecated. Use __GLIBC__ and
// __GLIBC_MINOR__ now (see below) when you want to test for a specific
// GNU C library version and use the values in <gnu/lib-names.h> to get
// the sonames of the shared libraries.
// Major and minor version number of the GNU C library package. Use
// these macros to test for features in specific releases.
// This is here only because every header file already includes this one.
// Copyright (C) 1992-2023 Free Software Foundation, Inc.
// Copyright The GNU Toolchain Authors.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | true |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/more_linux_mips64le.go | vendor/modernc.org/libc/signal/more_linux_mips64le.go | // Copyright 2020 The Libc Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package signal
const (
// /usr/include/asm-generic/signal-defs.h:24:#define SIG_DFL ((__sighandler_t)0) /* default signal handling */
SIG_DFL = 0
// /usr/include/asm-generic/signal-defs.h:25:#define SIG_IGN ((__sighandler_t)1) /* ignore signal */
SIG_IGN = 1
)
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/more_linux_s390x.go | vendor/modernc.org/libc/signal/more_linux_s390x.go | // Copyright 2020 The Libc Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package signal
const (
// /usr/include/asm-generic/signal-defs.h:24:#define SIG_DFL ((__sighandler_t)0) /* default signal handling */
SIG_DFL = 0
// /usr/include/asm-generic/signal-defs.h:25:#define SIG_IGN ((__sighandler_t)1) /* ignore signal */
SIG_IGN = 1
)
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/more_illumos_amd64.go | vendor/modernc.org/libc/signal/more_illumos_amd64.go | // Copyright 2020 The Libc Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package signal
const (
// /usr/include/asm-generic/signal-defs.h:24:#define SIG_DFL ((__sighandler_t)0) /* default signal handling */
SIG_DFL = 0
// /usr/include/asm-generic/signal-defs.h:25:#define SIG_IGN ((__sighandler_t)1) /* ignore signal */
SIG_IGN = 1
)
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/capi_linux_ppc64le.go | vendor/modernc.org/libc/signal/capi_linux_ppc64le.go | // Code generated by 'ccgo signal/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 signal/signal_linux_ppc64le.go -pkgname signal', DO NOT EDIT.
package signal
var CAPI = map[string]struct{}{}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/signal_linux_riscv64.go | vendor/modernc.org/libc/signal/signal_linux_riscv64.go | // Code generated by 'ccgo signal/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o signal/signal_linux_riscv64.go -pkgname signal', DO NOT EDIT.
package signal
import (
"math"
"reflect"
"sync/atomic"
"unsafe"
)
var _ = math.Pi
var _ reflect.Kind
var _ atomic.Value
var _ unsafe.Pointer
const (
MINSIGSTKSZ = 2048
NGREG = 32
NSIG = 65
REG_A0 = 10
REG_NARGS = 8
REG_PC = 0
REG_RA = 1
REG_S0 = 8
REG_S1 = 9
REG_S2 = 18
REG_SP = 2
REG_TP = 4
SA_INTERRUPT = 0x20000000
SA_NOCLDSTOP = 1
SA_NOCLDWAIT = 2
SA_NODEFER = 0x40000000
SA_NOMASK = 1073741824
SA_ONESHOT = 2147483648
SA_ONSTACK = 0x08000000
SA_RESETHAND = 0x80000000
SA_RESTART = 0x10000000
SA_SIGINFO = 4
SA_STACK = 134217728
SIGABRT = 6
SIGALRM = 14
SIGBUS = 7
SIGCHLD = 17
SIGCLD = 17
SIGCONT = 18
SIGFPE = 8
SIGHUP = 1
SIGILL = 4
SIGINT = 2
SIGIO = 29
SIGIOT = 6
SIGKILL = 9
SIGPIPE = 13
SIGPOLL = 29
SIGPROF = 27
SIGPWR = 30
SIGQUIT = 3
SIGSEGV = 11
SIGSTKFLT = 16
SIGSTKSZ = 8192
SIGSTOP = 19
SIGSYS = 31
SIGTERM = 15
SIGTRAP = 5
SIGTSTP = 20
SIGTTIN = 21
SIGTTOU = 22
SIGURG = 23
SIGUSR1 = 10
SIGUSR2 = 12
SIGVTALRM = 26
SIGWINCH = 28
SIGXCPU = 24
SIGXFSZ = 25
SIG_BLOCK = 0
SIG_SETMASK = 2
SIG_UNBLOCK = 1
X_ATFILE_SOURCE = 1
X_BITS_ENDIANNESS_H = 1
X_BITS_ENDIAN_H = 1
X_BITS_PTHREADTYPES_ARCH_H = 1
X_BITS_PTHREADTYPES_COMMON_H = 1
X_BITS_SIGACTION_H = 1
X_BITS_SIGCONTEXT_H = 1
X_BITS_SIGEVENT_CONSTS_H = 1
X_BITS_SIGINFO_ARCH_H = 1
X_BITS_SIGINFO_CONSTS_H = 1
X_BITS_SIGNUM_ARCH_H = 1
X_BITS_SIGNUM_GENERIC_H = 1
X_BITS_SIGSTACK_H = 1
X_BITS_SIGTHREAD_H = 1
X_BITS_SS_FLAGS_H = 1
X_BITS_TIME64_H = 1
X_BITS_TYPESIZES_H = 1
X_BITS_TYPES_H = 1
X_BSD_SIZE_T_ = 0
X_BSD_SIZE_T_DEFINED_ = 0
X_DEFAULT_SOURCE = 1
X_FEATURES_H = 1
X_FILE_OFFSET_BITS = 64
X_GCC_SIZE_T = 0
X_LP64 = 1
X_NSIG = 65
X_POSIX_C_SOURCE = 200809
X_POSIX_SOURCE = 1
X_RWLOCK_INTERNAL_H = 0
X_SIGNAL_H = 0
X_SIZET_ = 0
X_SIZE_T = 0
X_SIZE_T_ = 0
X_SIZE_T_DECLARED = 0
X_SIZE_T_DEFINED = 0
X_SIZE_T_DEFINED_ = 0
X_STDC_PREDEF_H = 1
X_STRUCT_TIMESPEC = 1
X_SYS_CDEFS_H = 1
X_SYS_SIZE_T_H = 0
X_SYS_UCONTEXT_H = 1
X_THREAD_MUTEX_INTERNAL_H = 1
X_THREAD_SHARED_TYPES_H = 1
X_T_SIZE = 0
X_T_SIZE_ = 0
Linux = 1
Unix = 1
)
// POSIX names to access some of the members.
// sigevent constants. Linux version.
// Copyright (C) 1997-2021 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// `sigev_notify' values.
const ( /* sigevent-consts.h:27:1: */
SIGEV_SIGNAL = 0 // Notify via signal.
SIGEV_NONE = 1 // Other notification: meaningless.
SIGEV_THREAD = 2 // Deliver via thread creation.
SIGEV_THREAD_ID = 4
)
// `si_code' values for SIGSEGV signal.
const ( /* siginfo-consts.h:119:1: */
SEGV_MAPERR = 1 // Address not mapped to object.
SEGV_ACCERR = 2 // Invalid permissions for mapped object.
SEGV_BNDERR = 3 // Bounds checking failure.
SEGV_PKUERR = 4 // Protection key checking failure.
SEGV_ACCADI = 5 // ADI not enabled for mapped object.
SEGV_ADIDERR = 6 // Disrupting MCD error.
SEGV_ADIPERR = 7 // Precise MCD exception.
SEGV_MTEAERR = 8 // Asynchronous ARM MTE error.
SEGV_MTESERR = 9
)
// `si_code' values for SIGBUS signal.
const ( /* siginfo-consts.h:142:1: */
BUS_ADRALN = 1 // Invalid address alignment.
BUS_ADRERR = 2 // Non-existant physical address.
BUS_OBJERR = 3 // Object specific hardware error.
BUS_MCEERR_AR = 4 // Hardware memory error: action required.
BUS_MCEERR_AO = 5
)
// `si_code' values for SIGCHLD signal.
const ( /* siginfo-consts.h:176:1: */
CLD_EXITED = 1 // Child has exited.
CLD_KILLED = 2 // Child was killed.
CLD_DUMPED = 3 // Child terminated abnormally.
CLD_TRAPPED = 4 // Traced child has trapped.
CLD_STOPPED = 5 // Child has stopped.
CLD_CONTINUED = 6
)
// `si_code' values for SIGPOLL signal.
const ( /* siginfo-consts.h:193:1: */
POLL_IN = 1 // Data input available.
POLL_OUT = 2 // Output buffers available.
POLL_MSG = 3 // Input message available.
POLL_ERR = 4 // I/O error.
POLL_PRI = 5 // High priority input available.
POLL_HUP = 6
)
// X/Open requires some more fields with fixed names.
// siginfo constants. Linux version.
// Copyright (C) 1997-2021 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// Most of these constants are uniform across all architectures, but there
// is one exception.
// Architecture-specific adjustments to siginfo_t.
// Values for `si_code'. Positive values are reserved for kernel-generated
//
// signals.
const ( /* siginfo-consts.h:35:1: */
SI_ASYNCNL = -60 // Sent by asynch name lookup completion.
SI_DETHREAD = -7 // Sent by execve killing subsidiary
// threads.
SI_TKILL = -6 // Sent by tkill.
SI_SIGIO = -5 // Sent by queued SIGIO.
SI_ASYNCIO = -4 // Sent by AIO completion.
SI_MESGQ = -3 // Sent by real time mesq state change.
SI_TIMER = -2 // Sent by timer expiration.
SI_QUEUE = -1 // Sent by sigqueue.
SI_USER = 0 // Sent by kill, sigsend.
SI_KERNEL = 128
)
// `si_code' values for SIGILL signal.
const ( /* siginfo-consts.h:71:1: */
ILL_ILLOPC = 1 // Illegal opcode.
ILL_ILLOPN = 2 // Illegal operand.
ILL_ILLADR = 3 // Illegal addressing mode.
ILL_ILLTRP = 4 // Illegal trap.
ILL_PRVOPC = 5 // Privileged opcode.
ILL_PRVREG = 6 // Privileged register.
ILL_COPROC = 7 // Coprocessor error.
ILL_BADSTK = 8 // Internal stack error.
ILL_BADIADDR = 9
)
// `si_code' values for SIGFPE signal.
const ( /* siginfo-consts.h:94:1: */
FPE_INTDIV = 1 // Integer divide by zero.
FPE_INTOVF = 2 // Integer overflow.
FPE_FLTDIV = 3 // Floating point divide by zero.
FPE_FLTOVF = 4 // Floating point overflow.
FPE_FLTUND = 5 // Floating point underflow.
FPE_FLTRES = 6 // Floating point inexact result.
FPE_FLTINV = 7 // Floating point invalid operation.
FPE_FLTSUB = 8 // Subscript out of range.
FPE_FLTUNK = 14 // Undiagnosed floating-point exception.
FPE_CONDTRAP = 15
)
// sigstack, sigaltstack definitions.
// Copyright (C) 1998-2021 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// Minimum stack size for a signal handler.
// System default stack size.
// Definition of MINSIGSTKSZ and SIGSTKSZ. Linux version.
// Copyright (C) 2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// ss_flags values for stack_t. Linux version.
// Copyright (C) 1998-2021 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// Possible values for `ss_flags'.
const ( /* ss_flags.h:27:1: */
SS_ONSTACK = 1
SS_DISABLE = 2
)
type Ptrdiff_t = int64 /* <builtin>:3:26 */
type Size_t = uint64 /* <builtin>:9:23 */
type Wchar_t = int32 /* <builtin>:15:24 */
type X__int128_t = struct {
Flo int64
Fhi int64
} /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
type X__uint128_t = struct {
Flo uint64
Fhi uint64
} /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
type X__float128 = float64 /* <builtin>:47:21 */
// Copyright (C) 1991-2021 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// ISO C99 Standard: 7.14 Signal handling <signal.h>
// Copyright (C) 1991-2021 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// These are defined by the user (or the compiler)
// to specify the desired environment:
//
// __STRICT_ANSI__ ISO Standard C.
// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99.
// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11.
// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X.
// __STDC_WANT_LIB_EXT2__
// Extensions to ISO C99 from TR 27431-2:2010.
// __STDC_WANT_IEC_60559_BFP_EXT__
// Extensions to ISO C11 from TS 18661-1:2014.
// __STDC_WANT_IEC_60559_FUNCS_EXT__
// Extensions to ISO C11 from TS 18661-4:2015.
// __STDC_WANT_IEC_60559_TYPES_EXT__
// Extensions to ISO C11 from TS 18661-3:2015.
// __STDC_WANT_IEC_60559_EXT__
// ISO C2X interfaces defined only in Annex F.
//
// _POSIX_SOURCE IEEE Std 1003.1.
// _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2;
// if >=199309L, add IEEE Std 1003.1b-1993;
// if >=199506L, add IEEE Std 1003.1c-1995;
// if >=200112L, all of IEEE 1003.1-2004
// if >=200809L, all of IEEE 1003.1-2008
// _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if
// Single Unix conformance is wanted, to 600 for the
// sixth revision, to 700 for the seventh revision.
// _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions.
// _LARGEFILE_SOURCE Some more functions for correct standard I/O.
// _LARGEFILE64_SOURCE Additional functionality from LFS for large files.
// _FILE_OFFSET_BITS=N Select default filesystem interface.
// _ATFILE_SOURCE Additional *at interfaces.
// _DYNAMIC_STACK_SIZE_SOURCE Select correct (but non compile-time constant)
// MINSIGSTKSZ, SIGSTKSZ and PTHREAD_STACK_MIN.
// _GNU_SOURCE All of the above, plus GNU extensions.
// _DEFAULT_SOURCE The default set of features (taking precedence over
// __STRICT_ANSI__).
//
// _FORTIFY_SOURCE Add security hardening to many library functions.
// Set to 1 or 2; 2 performs stricter checks than 1.
//
// _REENTRANT, _THREAD_SAFE
// Obsolete; equivalent to _POSIX_C_SOURCE=199506L.
//
// The `-ansi' switch to the GNU C compiler, and standards conformance
// options such as `-std=c99', define __STRICT_ANSI__. If none of
// these are defined, or if _DEFAULT_SOURCE is defined, the default is
// to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to
// 200809L, as well as enabling miscellaneous functions from BSD and
// SVID. If more than one of these are defined, they accumulate. For
// example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together
// give you ISO C, 1003.1, and 1003.2, but nothing else.
//
// These are defined by this file and are used by the
// header files to decide what to declare or define:
//
// __GLIBC_USE (F) Define things from feature set F. This is defined
// to 1 or 0; the subsequent macros are either defined
// or undefined, and those tests should be moved to
// __GLIBC_USE.
// __USE_ISOC11 Define ISO C11 things.
// __USE_ISOC99 Define ISO C99 things.
// __USE_ISOC95 Define ISO C90 AMD1 (C95) things.
// __USE_ISOCXX11 Define ISO C++11 things.
// __USE_POSIX Define IEEE Std 1003.1 things.
// __USE_POSIX2 Define IEEE Std 1003.2 things.
// __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things.
// __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things.
// __USE_XOPEN Define XPG things.
// __USE_XOPEN_EXTENDED Define X/Open Unix things.
// __USE_UNIX98 Define Single Unix V2 things.
// __USE_XOPEN2K Define XPG6 things.
// __USE_XOPEN2KXSI Define XPG6 XSI things.
// __USE_XOPEN2K8 Define XPG7 things.
// __USE_XOPEN2K8XSI Define XPG7 XSI things.
// __USE_LARGEFILE Define correct standard I/O things.
// __USE_LARGEFILE64 Define LFS things with separate names.
// __USE_FILE_OFFSET64 Define 64bit interface as default.
// __USE_MISC Define things from 4.3BSD or System V Unix.
// __USE_ATFILE Define *at interfaces and AT_* constants for them.
// __USE_DYNAMIC_STACK_SIZE Define correct (but non compile-time constant)
// MINSIGSTKSZ, SIGSTKSZ and PTHREAD_STACK_MIN.
// __USE_GNU Define GNU extensions.
// __USE_FORTIFY_LEVEL Additional security measures used, according to level.
//
// The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are
// defined by this file unconditionally. `__GNU_LIBRARY__' is provided
// only for compatibility. All new code should use the other symbols
// to test for features.
//
// All macros listed above as possibly being defined by this file are
// explicitly undefined if they are not explicitly defined.
// Feature-test macros that are not defined by the user or compiler
// but are implied by the other feature-test macros defined (or by the
// lack of any definitions) are defined by the file.
//
// ISO C feature test macros depend on the definition of the macro
// when an affected header is included, not when the first system
// header is included, and so they are handled in
// <bits/libc-header-start.h>, which does not have a multiple include
// guard. Feature test macros that can be handled from the first
// system header included are handled here.
// Undefine everything, so we get a clean slate.
// Suppress kernel-name space pollution unless user expressedly asks
// for it.
// Convenience macro to test the version of gcc.
// Use like this:
// #if __GNUC_PREREQ (2,8)
// ... code requiring gcc 2.8 or later ...
// #endif
// Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was
// added in 2.0.
// Similarly for clang. Features added to GCC after version 4.2 may
// or may not also be available in clang, and clang's definitions of
// __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such
// features can be queried via __has_extension/__has_feature.
// Whether to use feature set F.
// _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for
// _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not
// issue a warning; the expectation is that the source is being
// transitioned to use the new macro.
// If _GNU_SOURCE was defined by the user, turn on all the other features.
// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined,
// define _DEFAULT_SOURCE.
// This is to enable the ISO C2X extension.
// This is to enable the ISO C11 extension.
// This is to enable the ISO C99 extension.
// This is to enable the ISO C90 Amendment 1:1995 extension.
// If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE
// is defined, use POSIX.1-2008 (or another version depending on
// _XOPEN_SOURCE).
// Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be
// defined in all multithreaded code. GNU libc has not required this
// for many years. We now treat them as compatibility synonyms for
// _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with
// comprehensive support for multithreaded code. Using them never
// lowers the selected level of POSIX conformance, only raises it.
// Features part to handle 64-bit time_t support.
// Copyright (C) 2021 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// We need to know the word size in order to check the time size.
// Determine the wordsize from the preprocessor defines. RISC-V version.
// Copyright (C) 2002-2021 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library. If not, see
// <https://www.gnu.org/licenses/>.
// Bit size of the time_t type at glibc build time, RISC-V case.
// Copyright (C) 2020-2021 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// Determine the wordsize from the preprocessor defines. RISC-V version.
// Copyright (C) 2002-2021 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library. If not, see
// <https://www.gnu.org/licenses/>.
// RV32 and RV64 both use 64-bit time_t
// The function 'gets' existed in C89, but is impossible to use
// safely. It has been removed from ISO C11 and ISO C++14. Note: for
// compatibility with various implementations of <cstdio>, this test
// must consider only the value of __cplusplus when compiling C++.
// GNU formerly extended the scanf functions with modified format
// specifiers %as, %aS, and %a[...] that allocate a buffer for the
// input using malloc. This extension conflicts with ISO C99, which
// defines %a as a standalone format specifier that reads a floating-
// point number; moreover, POSIX.1-2008 provides the same feature
// using the modifier letter 'm' instead (%ms, %mS, %m[...]).
//
// We now follow C99 unless GNU extensions are active and the compiler
// is specifically in C89 or C++98 mode (strict or not). For
// instance, with GCC, -std=gnu11 will have C99-compliant scanf with
// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the
// old extension.
// Get definitions of __STDC_* predefined macros, if the compiler has
// not preincluded this header automatically.
// Copyright (C) 1991-2021 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// This macro indicates that the installed library is the GNU C Library.
// For historic reasons the value now is 6 and this will stay from now
// on. The use of this variable is deprecated. Use __GLIBC__ and
// __GLIBC_MINOR__ now (see below) when you want to test for a specific
// GNU C library version and use the values in <gnu/lib-names.h> to get
// the sonames of the shared libraries.
// Major and minor version number of the GNU C library package. Use
// these macros to test for features in specific releases.
// This is here only because every header file already includes this one.
// Copyright (C) 1992-2021 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// We are almost always included from features.h.
// The GNU libc does not support any K&R compilers or the traditional mode
// of ISO C compilers anymore. Check for some of the combinations not
// supported anymore.
// Some user header file might have defined this before.
// Compilers that lack __has_attribute may object to
// #if defined __has_attribute && __has_attribute (...)
// even though they do not need to evaluate the right-hand side of the &&.
// Similarly for __has_builtin, etc.
// All functions, except those with callbacks or those that
// synchronize memory, are leaf functions.
// GCC can always grok prototypes. For C++ programs we add throw()
// to help it optimize the function calls. But this only works with
// gcc 2.8.x and egcs. For gcc 3.4 and up we even mark C functions
// as non-throwing using a function attribute since programs can use
// the -fexceptions options for C code as well.
// These two macros are not used in glibc anymore. They are kept here
// only because some other projects expect the macros to be defined.
// For these things, GCC behaves the ANSI way normally,
// and the non-ANSI way under -traditional.
// This is not a typedef so `const __ptr_t' does the right thing.
// C++ needs to know that types and declarations are C, not C++.
// Fortify support.
// Use __builtin_dynamic_object_size at _FORTIFY_SOURCE=3 when available.
// Support for flexible arrays.
// Headers that should use flexible arrays only if they're "real"
// (e.g. only if they won't affect sizeof()) should test
// #if __glibc_c99_flexarr_available.
// __asm__ ("xyz") is used throughout the headers to rename functions
// at the assembly language level. This is wrapped by the __REDIRECT
// macro, in order to support compilers that can do this some other
// way. When compilers don't support asm-names at all, we have to do
// preprocessor tricks instead (which don't have exactly the right
// semantics, but it's the best we can do).
//
// Example:
// int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid);
//
// #elif __SOME_OTHER_COMPILER__
//
// # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias)
// GCC and clang have various useful declarations that can be made with
// the '__attribute__' syntax. All of the ways we use this do fine if
// they are omitted for compilers that don't understand it.
// At some point during the gcc 2.96 development the `malloc' attribute
// for functions was introduced. We don't want to use it unconditionally
// (although this would be possible) since it generates warnings.
// Tell the compiler which arguments to an allocation function
// indicate the size of the allocation.
// At some point during the gcc 2.96 development the `pure' attribute
// for functions was introduced. We don't want to use it unconditionally
// (although this would be possible) since it generates warnings.
// This declaration tells the compiler that the value is constant.
// At some point during the gcc 3.1 development the `used' attribute
// for functions was introduced. We don't want to use it unconditionally
// (although this would be possible) since it generates warnings.
// Since version 3.2, gcc allows marking deprecated functions.
// Since version 4.5, gcc also allows one to specify the message printed
// when a deprecated function is used. clang claims to be gcc 4.2, but
// may also support this feature.
// At some point during the gcc 2.8 development the `format_arg' attribute
// for functions was introduced. We don't want to use it unconditionally
// (although this would be possible) since it generates warnings.
// If several `format_arg' attributes are given for the same function, in
// gcc-3.0 and older, all but the last one are ignored. In newer gccs,
// all designated arguments are considered.
// At some point during the gcc 2.97 development the `strfmon' format
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | true |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/capi_netbsd_amd64.go | vendor/modernc.org/libc/signal/capi_netbsd_amd64.go | // Code generated by 'ccgo signal/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 signal/signal_netbsd_amd64.go -pkgname signal', DO NOT EDIT.
package signal
var CAPI = map[string]struct{}{}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/more_linux_arm.go | vendor/modernc.org/libc/signal/more_linux_arm.go | // Copyright 2020 The Libc Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package signal
const (
// /usr/include/asm-generic/signal-defs.h:24:#define SIG_DFL ((__sighandler_t)0) /* default signal handling */
SIG_DFL = 0
// /usr/include/asm-generic/signal-defs.h:25:#define SIG_IGN ((__sighandler_t)1) /* ignore signal */
SIG_IGN = 1
)
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/more_linux_loong64.go | vendor/modernc.org/libc/signal/more_linux_loong64.go | // Copyright 2020 The Libc Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package signal
const (
// /usr/include/asm-generic/signal-defs.h:24:#define SIG_DFL ((__sighandler_t)0) /* default signal handling */
SIG_DFL = 0
// /usr/include/asm-generic/signal-defs.h:25:#define SIG_IGN ((__sighandler_t)1) /* ignore signal */
SIG_IGN = 1
)
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/capi_freebsd_arm64.go | vendor/modernc.org/libc/signal/capi_freebsd_arm64.go | // Code generated by 'ccgo signal/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 signal/signal_freebsd_amd64.go -pkgname signal', DO NOT EDIT.
package signal
var CAPI = map[string]struct{}{}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/more_darwin_amd64.go | vendor/modernc.org/libc/signal/more_darwin_amd64.go | // Copyright 2020 The Libc Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package signal
const (
// /usr/include/asm-generic/signal-defs.h:24:#define SIG_DFL ((__sighandler_t)0) /* default signal handling */
SIG_DFL = 0
// /usr/include/asm-generic/signal-defs.h:25:#define SIG_IGN ((__sighandler_t)1) /* ignore signal */
SIG_IGN = 1
)
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/capi_linux_riscv64.go | vendor/modernc.org/libc/signal/capi_linux_riscv64.go | // Code generated by 'ccgo signal/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o signal/signal_linux_riscv64.go -pkgname signal', DO NOT EDIT.
package signal
var CAPI = map[string]struct{}{}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/signal_freebsd_arm.go | vendor/modernc.org/libc/signal/signal_freebsd_arm.go | // Code generated by 'ccgo signal/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 signal/signal_freebsd_arm.go -pkgname signal', DO NOT EDIT.
package signal
import (
"math"
"reflect"
"sync/atomic"
"unsafe"
)
var _ = math.Pi
var _ reflect.Kind
var _ atomic.Value
var _ unsafe.Pointer
const (
BUS_ADRALN = 1 // signal.h:315:1:
BUS_ADRERR = 2 // signal.h:316:1:
BUS_OBJERR = 3 // signal.h:317:1:
BUS_OOMERR = 100 // signal.h:318:1:
CLD_CONTINUED = 6 // signal.h:350:1:
CLD_DUMPED = 3 // signal.h:346:1:
CLD_EXITED = 1 // signal.h:343:1:
CLD_KILLED = 2 // signal.h:344:1:
CLD_STOPPED = 5 // signal.h:349:1:
CLD_TRAPPED = 4 // signal.h:348:1:
FPE_FLTDIV = 3 // signal.h:329:1:
FPE_FLTINV = 7 // signal.h:333:1:
FPE_FLTOVF = 4 // signal.h:330:1:
FPE_FLTRES = 6 // signal.h:332:1:
FPE_FLTSUB = 8 // signal.h:334:1:
FPE_FLTUND = 5 // signal.h:331:1:
FPE_INTDIV = 2 // signal.h:328:1:
FPE_INTOVF = 1 // signal.h:327:1:
ILL_BADSTK = 8 // signal.h:312:1:
ILL_COPROC = 7 // signal.h:311:1:
ILL_ILLADR = 3 // signal.h:307:1:
ILL_ILLOPC = 1 // signal.h:305:1:
ILL_ILLOPN = 2 // signal.h:306:1:
ILL_ILLTRP = 4 // signal.h:308:1:
ILL_PRVOPC = 5 // signal.h:309:1:
ILL_PRVREG = 6 // signal.h:310:1:
MINSIGSTKSZ = 4096 // signal.h:432:1:
NSIG = 32 // signal.h:399:1:
POLL_ERR = 4 // signal.h:356:1:
POLL_HUP = 6 // signal.h:358:1:
POLL_IN = 1 // signal.h:353:1:
POLL_MSG = 3 // signal.h:355:1:
POLL_OUT = 2 // signal.h:354:1:
POLL_PRI = 5 // signal.h:357:1:
SA_NOCLDSTOP = 0x0008 // signal.h:386:1:
SA_NOCLDWAIT = 0x0020 // signal.h:394:1:
SA_NODEFER = 0x0010 // signal.h:393:1:
SA_ONSTACK = 0x0001 // signal.h:390:1:
SA_RESETHAND = 0x0004 // signal.h:392:1:
SA_RESTART = 0x0002 // signal.h:391:1:
SA_SIGINFO = 0x0040 // signal.h:395:1:
SEGV_ACCERR = 2 // signal.h:322:1:
SEGV_MAPERR = 1 // signal.h:321:1:
SEGV_PKUERR = 100 // signal.h:324:1:
SIGABRT = 6 // signal.h:81:1:
SIGALRM = 14 // signal.h:99:1:
SIGBUS = 10 // signal.h:91:1:
SIGCHLD = 20 // signal.h:109:1:
SIGCONT = 19 // signal.h:108:1:
SIGEMT = 7 // signal.h:84:1:
SIGEV_KEVENT = 3 // signal.h:222:1:
SIGEV_NONE = 0 // signal.h:218:1:
SIGEV_SIGNAL = 1 // signal.h:219:1:
SIGEV_THREAD = 2 // signal.h:220:1:
SIGEV_THREAD_ID = 4 // signal.h:223:1:
SIGFPE = 8 // signal.h:86:1:
SIGHUP = 1 // signal.h:71:1:
SIGILL = 4 // signal.h:77:1:
SIGINFO = 29 // signal.h:124:1:
SIGINT = 2 // signal.h:73:1:
SIGIO = 23 // signal.h:114:1:
SIGIOT = 6 // signal.h:83:1:
SIGKILL = 9 // signal.h:88:1:
SIGLIBRT = 33 // signal.h:133:1:
SIGLWP = 32 // signal.h:132:1:
SIGPIPE = 13 // signal.h:98:1:
SIGPROF = 27 // signal.h:120:1:
SIGQUIT = 3 // signal.h:75:1:
SIGRTMAX = 126 // signal.h:137:1:
SIGRTMIN = 65 // signal.h:136:1:
SIGSEGV = 11 // signal.h:93:1:
SIGSTKSZ = 36864 // signal.h:433:1:
SIGSTOP = 17 // signal.h:106:1:
SIGSYS = 12 // signal.h:95:1:
SIGTERM = 15 // signal.h:101:1:
SIGTHR = 32 // signal.h:131:1:
SIGTRAP = 5 // signal.h:79:1:
SIGTSTP = 18 // signal.h:107:1:
SIGTTIN = 21 // signal.h:110:1:
SIGTTOU = 22 // signal.h:111:1:
SIGURG = 16 // signal.h:103:1:
SIGUSR1 = 30 // signal.h:127:1:
SIGUSR2 = 31 // signal.h:128:1:
SIGVTALRM = 26 // signal.h:119:1:
SIGWINCH = 28 // signal.h:123:1:
SIGXCPU = 24 // signal.h:117:1:
SIGXFSZ = 25 // signal.h:118:1:
SIG_BLOCK = 1 // signal.h:501:1:
SIG_SETMASK = 3 // signal.h:503:1:
SIG_UNBLOCK = 2 // signal.h:502:1:
SI_ASYNCIO = 0x10004 // signal.h:408:1:
SI_KERNEL = 0x10006 // signal.h:412:1:
SI_LWP = 0x10007 // signal.h:413:1:
SI_MESGQ = 0x10005 // signal.h:410:1:
SI_NOINFO = 0 // signal.h:403:1:
SI_QUEUE = 0x10002 // signal.h:405:1:
SI_TIMER = 0x10003 // signal.h:406:1:
SI_UNDEFINED = 0 // signal.h:416:1:
SI_USER = 0x10001 // signal.h:404:1:
SS_DISABLE = 0x0004 // signal.h:431:1:
SS_ONSTACK = 0x0001 // signal.h:430:1:
SV_INTERRUPT = 2 // signal.h:459:1:
SV_NOCLDSTOP = 8 // signal.h:462:1:
SV_NODEFER = 16 // signal.h:461:1:
SV_ONSTACK = 1 // signal.h:458:1:
SV_RESETHAND = 4 // signal.h:460:1:
SV_SIGINFO = 64 // signal.h:463:1:
TRAP_BRKPT = 1 // signal.h:337:1:
TRAP_CAP = 4 // signal.h:340:1:
TRAP_DTRACE = 3 // signal.h:339:1:
TRAP_TRACE = 2 // signal.h:338:1:
UC_ = 0 // ucontext.h:88:1:
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_ILP32 = 1 // <predefined>:1:1:
X_MACHINE_MCONTEXT_H_ = 0 // ucontext.h:37:1:
X_MACHINE_SIGNAL_H_ = 0 // signal.h:38:1:
X_MACHINE__LIMITS_H_ = 0 // _limits.h:36:1:
X_MACHINE__TYPES_H_ = 0 // _types.h:42:1:
X_NGREG = 17 // ucontext.h:41:1:
X_Nonnull = 0 // cdefs.h:790:1:
X_Null_unspecified = 0 // cdefs.h:792:1:
X_Nullable = 0 // cdefs.h:791:1:
X_PID_T_DECLARED = 0 // signal.h:61:1:
X_PTHREAD_T_DECLARED = 0 // _pthreadtypes.h:68:1:
X_REG_CPSR = 16 // ucontext.h:61:1:
X_REG_FP = 11 // ucontext.h:63:1:
X_REG_LR = 14 // ucontext.h:65:1:
X_REG_PC = 15 // ucontext.h:66:1:
X_REG_R0 = 0 // ucontext.h:45:1:
X_REG_R1 = 1 // ucontext.h:46:1:
X_REG_R10 = 10 // ucontext.h:55:1:
X_REG_R11 = 11 // ucontext.h:56:1:
X_REG_R12 = 12 // ucontext.h:57:1:
X_REG_R13 = 13 // ucontext.h:58:1:
X_REG_R14 = 14 // ucontext.h:59:1:
X_REG_R15 = 15 // ucontext.h:60:1:
X_REG_R2 = 2 // ucontext.h:47:1:
X_REG_R3 = 3 // ucontext.h:48:1:
X_REG_R4 = 4 // ucontext.h:49:1:
X_REG_R5 = 5 // ucontext.h:50:1:
X_REG_R6 = 6 // ucontext.h:51:1:
X_REG_R7 = 7 // ucontext.h:52:1:
X_REG_R8 = 8 // ucontext.h:53:1:
X_REG_R9 = 9 // ucontext.h:54:1:
X_REG_SP = 13 // ucontext.h:64:1:
X_SIGNAL_H_ = 0 // signal.h:36:1:
X_SIGSET_T_DECLARED = 0 // signal.h:165:1:
X_SIG_MAXSIG = 128 // _sigset.h:47:1:
X_SIG_WORDS = 4 // _sigset.h:46:1:
X_SIZE_T_DECLARED = 0 // signal.h:57:1:
X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1:
X_SYS_SIGNAL_H_ = 0 // signal.h:41:1:
X_SYS__PTHREADTYPES_H_ = 0 // _pthreadtypes.h:39:1:
X_SYS__SIGSET_H_ = 0 // _sigset.h:41:1:
X_SYS__TIMESPEC_H_ = 0 // _timespec.h:37:1:
X_SYS__TYPES_H_ = 0 // _types.h:32:1:
X_SYS__UCONTEXT_H_ = 0 // _ucontext.h:34:1:
X_TIME_T_DECLARED = 0 // _timespec.h:43:1:
X_UID_T_DECLARED = 0 // signal.h:62:1:
Unix = 1 // <predefined>:367:1:
)
type Ptrdiff_t = int32 /* <builtin>:3:26 */
type Size_t = uint32 /* <builtin>:9:23 */
type Wchar_t = uint32 /* <builtin>:15:24 */
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
type X__float128 = float64 /* <builtin>:47:21 */
// -
// SPDX-License-Identifier: BSD-3-Clause
//
// Copyright (c) 1991, 1993
// The Regents of the University of California. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// @(#)signal.h 8.3 (Berkeley) 3/30/94
// $FreeBSD$
// -
// SPDX-License-Identifier: BSD-3-Clause
//
// Copyright (c) 1991, 1993
// The Regents of the University of California. All rights reserved.
//
// This code is derived from software contributed to Berkeley by
// Berkeley Software Design, Inc.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// @(#)cdefs.h 8.8 (Berkeley) 1/9/95
// $FreeBSD$
// Testing against Clang-specific extensions.
// This code has been put in place to help reduce the addition of
// compiler specific defines in FreeBSD code. It helps to aid in
// having a compiler-agnostic source tree.
// Compiler memory barriers, specific to gcc and clang.
// XXX: if __GNUC__ >= 2: not tested everywhere originally, where replaced
// Macro to test if we're using a specific version of gcc or later.
// The __CONCAT macro is used to concatenate parts of symbol names, e.g.
// with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo.
// The __CONCAT macro is a bit tricky to use if it must work in non-ANSI
// mode -- there must be no spaces between its arguments, and for nested
// __CONCAT's, all the __CONCAT's must be at the left. __CONCAT can also
// concatenate double-quoted strings produced by the __STRING macro, but
// this only works with ANSI C.
//
// __XSTRING is like __STRING, but it expands any macros in its argument
// first. It is only available with ANSI C.
// Compiler-dependent macros to help declare dead (non-returning) and
// pure (no side effects) functions, and unused variables. They are
// null except for versions of gcc that are known to support the features
// properly (old versions of gcc-2 supported the dead and pure features
// in a different (wrong) way). If we do not provide an implementation
// for a given compiler, let the compile fail if it is told to use
// a feature that we cannot live without.
// Keywords added in C11.
// Emulation of C11 _Generic(). Unlike the previously defined C11
// keywords, it is not possible to implement this using exactly the same
// syntax. Therefore implement something similar under the name
// __generic(). Unlike _Generic(), this macro can only distinguish
// between a single type, so it requires nested invocations to
// distinguish multiple cases.
// C99 Static array indices in function parameter declarations. Syntax such as:
// void bar(int myArray[static 10]);
// is allowed in C99 but not in C++. Define __min_size appropriately so
// headers using it can be compiled in either language. Use like this:
// void bar(int myArray[__min_size(10)]);
// XXX: should use `#if __STDC_VERSION__ < 199901'.
// C++11 exposes a load of C99 stuff
// GCC 2.95 provides `__restrict' as an extension to C90 to support the
// C99-specific `restrict' type qualifier. We happen to use `__restrict' as
// a way to define the `restrict' type qualifier without disturbing older
// software that is unaware of C99 keywords.
// GNU C version 2.96 adds explicit branch prediction so that
// the CPU back-end can hint the processor and also so that
// code blocks can be reordered such that the predicted path
// sees a more linear flow, thus improving cache behavior, etc.
//
// The following two macros provide us with a way to utilize this
// compiler feature. Use __predict_true() if you expect the expression
// to evaluate to true, and __predict_false() if you expect the
// expression to evaluate to false.
//
// A few notes about usage:
//
// * Generally, __predict_false() error condition checks (unless
// you have some _strong_ reason to do otherwise, in which case
// document it), and/or __predict_true() `no-error' condition
// checks, assuming you want to optimize for the no-error case.
//
// * Other than that, if you don't know the likelihood of a test
// succeeding from empirical or other `hard' evidence, don't
// make predictions.
//
// * These are meant to be used in places that are run `a lot'.
// It is wasteful to make predictions in code that is run
// seldomly (e.g. at subsystem initialization time) as the
// basic block reordering that this affects can often generate
// larger code.
// We define this here since <stddef.h>, <sys/queue.h>, and <sys/types.h>
// require it.
// Given the pointer x to the member m of the struct s, return
// a pointer to the containing structure. When using GCC, we first
// assign pointer x to a local variable, to check that its type is
// compatible with member m.
// Compiler-dependent macros to declare that functions take printf-like
// or scanf-like arguments. They are null except for versions of gcc
// that are known to support the features properly (old versions of gcc-2
// didn't permit keeping the keywords out of the application namespace).
// Compiler-dependent macros that rely on FreeBSD-specific extensions.
// Embed the rcs id of a source file in the resulting library. Note that in
// more recent ELF binutils, we use .ident allowing the ID to be stripped.
// Usage:
// __FBSDID("$FreeBSD$");
// -
// The following definitions are an extension of the behavior originally
// implemented in <sys/_posix.h>, but with a different level of granularity.
// POSIX.1 requires that the macros we test be defined before any standard
// header file is included.
//
// Here's a quick run-down of the versions:
// defined(_POSIX_SOURCE) 1003.1-1988
// _POSIX_C_SOURCE == 1 1003.1-1990
// _POSIX_C_SOURCE == 2 1003.2-1992 C Language Binding Option
// _POSIX_C_SOURCE == 199309 1003.1b-1993
// _POSIX_C_SOURCE == 199506 1003.1c-1995, 1003.1i-1995,
// and the omnibus ISO/IEC 9945-1: 1996
// _POSIX_C_SOURCE == 200112 1003.1-2001
// _POSIX_C_SOURCE == 200809 1003.1-2008
//
// In addition, the X/Open Portability Guide, which is now the Single UNIX
// Specification, defines a feature-test macro which indicates the version of
// that specification, and which subsumes _POSIX_C_SOURCE.
//
// Our macros begin with two underscores to avoid namespace screwage.
// Deal with IEEE Std. 1003.1-1990, in which _POSIX_C_SOURCE == 1.
// Deal with IEEE Std. 1003.2-1992, in which _POSIX_C_SOURCE == 2.
// Deal with various X/Open Portability Guides and Single UNIX Spec.
// Deal with all versions of POSIX. The ordering relative to the tests above is
// important.
// -
// Deal with _ANSI_SOURCE:
// If it is defined, and no other compilation environment is explicitly
// requested, then define our internal feature-test macros to zero. This
// makes no difference to the preprocessor (undefined symbols in preprocessing
// expressions are defined to have value zero), but makes it more convenient for
// a test program to print out the values.
//
// If a program mistakenly defines _ANSI_SOURCE and some other macro such as
// _POSIX_C_SOURCE, we will assume that it wants the broader compilation
// environment (and in fact we will never get here).
// User override __EXT1_VISIBLE
// Old versions of GCC use non-standard ARM arch symbols; acle-compat.h
// translates them to __ARM_ARCH and the modern feature symbols defined by ARM.
// Nullability qualifiers: currently only supported by Clang.
// Type Safety Checking
//
// Clang provides additional attributes to enable checking type safety
// properties that cannot be enforced by the C type system.
// Lock annotations.
//
// Clang provides support for doing basic thread-safety tests at
// compile-time, by marking which locks will/should be held when
// entering/leaving a functions.
//
// Furthermore, it is also possible to annotate variables and structure
// members to enforce that they are only accessed when certain locks are
// held.
// Structure implements a lock.
// Function acquires an exclusive or shared lock.
// Function attempts to acquire an exclusive or shared lock.
// Function releases a lock.
// Function asserts that an exclusive or shared lock is held.
// Function requires that an exclusive or shared lock is or is not held.
// Function should not be analyzed.
// Function or variable should not be sanitized, e.g., by AddressSanitizer.
// GCC has the nosanitize attribute, but as a function attribute only, and
// warns on use as a variable attribute.
// Guard variables and structure members by lock.
// Alignment builtins for better type checking and improved code generation.
// Provide fallback versions for other compilers (GCC/Clang < 10):
// -
// SPDX-License-Identifier: BSD-2-Clause-FreeBSD
//
// Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
//
// THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// $FreeBSD$
// -
// SPDX-License-Identifier: BSD-3-Clause
//
// Copyright (c) 1991, 1993
// The Regents of the University of California. All rights reserved.
//
// This code is derived from software contributed to Berkeley by
// Berkeley Software Design, Inc.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// @(#)cdefs.h 8.8 (Berkeley) 1/9/95
// $FreeBSD$
// -
// SPDX-License-Identifier: BSD-4-Clause
//
// Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
// Copyright (c) 1990, 1993
// The Regents of the University of California. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. All advertising materials mentioning features or use of this software
// must display the following acknowledgement:
// This product includes software developed by the University of
// California, Berkeley and its contributors.
// 4. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// From: @(#)ansi.h 8.2 (Berkeley) 1/4/94
// From: @(#)types.h 8.3 (Berkeley) 1/5/94
// $FreeBSD$
// Basic types upon which most other types are built.
type X__int8_t = int8 /* _types.h:51:22 */
type X__uint8_t = uint8 /* _types.h:52:24 */
type X__int16_t = int16 /* _types.h:53:17 */
type X__uint16_t = uint16 /* _types.h:54:25 */
type X__int32_t = int32 /* _types.h:55:15 */
type X__uint32_t = uint32 /* _types.h:56:23 */
// LONGLONG
type X__int64_t = int64 /* _types.h:61:20 */
// LONGLONG
type X__uint64_t = uint64 /* _types.h:66:28 */
// Standard type definitions.
type X__clock_t = X__uint32_t /* _types.h:71:20 */ // clock()...
type X__critical_t = X__int32_t /* _types.h:72:19 */
type X__double_t = float64 /* _types.h:74:17 */
type X__float_t = float32 /* _types.h:75:16 */
type X__intfptr_t = X__int32_t /* _types.h:77:19 */
type X__intmax_t = X__int64_t /* _types.h:78:19 */
type X__intptr_t = X__int32_t /* _types.h:79:19 */
type X__int_fast8_t = X__int32_t /* _types.h:80:19 */
type X__int_fast16_t = X__int32_t /* _types.h:81:19 */
type X__int_fast32_t = X__int32_t /* _types.h:82:19 */
type X__int_fast64_t = X__int64_t /* _types.h:83:19 */
type X__int_least8_t = X__int8_t /* _types.h:84:18 */
type X__int_least16_t = X__int16_t /* _types.h:85:19 */
type X__int_least32_t = X__int32_t /* _types.h:86:19 */
type X__int_least64_t = X__int64_t /* _types.h:87:19 */
type X__ptrdiff_t = X__int32_t /* _types.h:88:19 */ // ptr1 - ptr2
type X__register_t = X__int32_t /* _types.h:89:19 */
type X__segsz_t = X__int32_t /* _types.h:90:19 */ // segment size (in pages)
type X__size_t = X__uint32_t /* _types.h:91:20 */ // sizeof()
type X__ssize_t = X__int32_t /* _types.h:92:19 */ // byte count or error
type X__time_t = X__int64_t /* _types.h:93:19 */ // time()...
type X__uintfptr_t = X__uint32_t /* _types.h:94:20 */
type X__uintmax_t = X__uint64_t /* _types.h:95:20 */
type X__uintptr_t = X__uint32_t /* _types.h:96:20 */
type X__uint_fast8_t = X__uint32_t /* _types.h:97:20 */
type X__uint_fast16_t = X__uint32_t /* _types.h:98:20 */
type X__uint_fast32_t = X__uint32_t /* _types.h:99:20 */
type X__uint_fast64_t = X__uint64_t /* _types.h:100:20 */
type X__uint_least8_t = X__uint8_t /* _types.h:101:19 */
type X__uint_least16_t = X__uint16_t /* _types.h:102:20 */
type X__uint_least32_t = X__uint32_t /* _types.h:103:20 */
type X__uint_least64_t = X__uint64_t /* _types.h:104:20 */
type X__u_register_t = X__uint32_t /* _types.h:105:20 */
type X__vm_offset_t = X__uint32_t /* _types.h:106:20 */
type X__vm_paddr_t = X__uint32_t /* _types.h:107:20 */
type X__vm_size_t = X__uint32_t /* _types.h:108:20 */
type X___wchar_t = uint32 /* _types.h:110:22 */
// Standard type definitions.
type X__blksize_t = X__int32_t /* _types.h:40:19 */ // file block size
type X__blkcnt_t = X__int64_t /* _types.h:41:19 */ // file block count
type X__clockid_t = X__int32_t /* _types.h:42:19 */ // clock_gettime()...
type X__fflags_t = X__uint32_t /* _types.h:43:20 */ // file flags
type X__fsblkcnt_t = X__uint64_t /* _types.h:44:20 */
type X__fsfilcnt_t = X__uint64_t /* _types.h:45:20 */
type X__gid_t = X__uint32_t /* _types.h:46:20 */
type X__id_t = X__int64_t /* _types.h:47:19 */ // can hold a gid_t, pid_t, or uid_t
type X__ino_t = X__uint64_t /* _types.h:48:20 */ // inode number
type X__key_t = int32 /* _types.h:49:15 */ // IPC key (for Sys V IPC)
type X__lwpid_t = X__int32_t /* _types.h:50:19 */ // Thread ID (a.k.a. LWP)
type X__mode_t = X__uint16_t /* _types.h:51:20 */ // permissions
type X__accmode_t = int32 /* _types.h:52:14 */ // access permissions
type X__nl_item = int32 /* _types.h:53:14 */
type X__nlink_t = X__uint64_t /* _types.h:54:20 */ // link count
type X__off_t = X__int64_t /* _types.h:55:19 */ // file offset
type X__off64_t = X__int64_t /* _types.h:56:19 */ // file offset (alias)
type X__pid_t = X__int32_t /* _types.h:57:19 */ // process [group]
type X__rlim_t = X__int64_t /* _types.h:58:19 */ // resource limit - intentionally
// signed, because of legacy code
// that uses -1 for RLIM_INFINITY
type X__sa_family_t = X__uint8_t /* _types.h:61:19 */
type X__socklen_t = X__uint32_t /* _types.h:62:20 */
type X__suseconds_t = int32 /* _types.h:63:15 */ // microseconds (signed)
type X__timer_t = uintptr /* _types.h:64:24 */ // timer_gettime()...
type X__mqd_t = uintptr /* _types.h:65:21 */ // mq_open()...
type X__uid_t = X__uint32_t /* _types.h:66:20 */
type X__useconds_t = uint32 /* _types.h:67:22 */ // microseconds (unsigned)
type X__cpuwhich_t = int32 /* _types.h:68:14 */ // which parameter for cpuset.
type X__cpulevel_t = int32 /* _types.h:69:14 */ // level parameter for cpuset.
type X__cpusetid_t = int32 /* _types.h:70:14 */ // cpuset identifier.
type X__daddr_t = X__int64_t /* _types.h:71:19 */ // bwrite(3), FIOBMAP2, etc
// Unusual type definitions.
// rune_t is declared to be an “int” instead of the more natural
// “unsigned long” or “long”. Two things are happening here. It is not
// unsigned so that EOF (-1) can be naturally assigned to it and used. Also,
// it looks like 10646 will be a 31 bit standard. This means that if your
// ints cannot hold 32 bits, you will be in trouble. The reason an int was
// chosen over a long is that the is*() and to*() routines take ints (says
// ANSI C), but they use __ct_rune_t instead of int.
//
// NOTE: rune_t is not covered by ANSI nor other standards, and should not
// be instantiated outside of lib/libc/locale. Use wchar_t. wint_t and
// rune_t must be the same type. Also, wint_t should be able to hold all
// members of the largest character set plus one extra value (WEOF), and
// must be at least 16 bits.
type X__ct_rune_t = int32 /* _types.h:91:14 */ // arg type for ctype funcs
type X__rune_t = X__ct_rune_t /* _types.h:92:21 */ // rune_t (see above)
type X__wint_t = X__ct_rune_t /* _types.h:93:21 */ // wint_t (see above)
// Clang already provides these types as built-ins, but only in C++ mode.
type X__char16_t = X__uint_least16_t /* _types.h:97:26 */
type X__char32_t = X__uint_least32_t /* _types.h:98:26 */
// In C++11, char16_t and char32_t are built-in types.
type X__max_align_t = struct {
F__max_align1 int64
F__max_align2 float64
} /* _types.h:111:3 */
type X__dev_t = X__uint64_t /* _types.h:113:20 */ // device number
type X__fixpt_t = X__uint32_t /* _types.h:115:20 */ // fixed point number
// mbstate_t is an opaque object to keep conversion state during multibyte
// stream conversions.
type X__mbstate_t = struct {
F__ccgo_pad1 [0]uint64
F__mbstate8 [128]uint8
} /* _types.h:124:3 */
type X__rman_res_t = X__uintmax_t /* _types.h:126:25 */
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | true |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/signal_windows_amd64.go | vendor/modernc.org/libc/signal/signal_windows_amd64.go | // Code generated by 'ccgo signal\gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o signal\signal_windows_amd64.go -pkgname signal', DO NOT EDIT.
package signal
import (
"math"
"reflect"
"sync/atomic"
"unsafe"
)
var _ = math.Pi
var _ reflect.Kind
var _ atomic.Value
var _ unsafe.Pointer
const (
DUMMYSTRUCTNAME = 0
DUMMYSTRUCTNAME1 = 0
DUMMYSTRUCTNAME2 = 0
DUMMYSTRUCTNAME3 = 0
DUMMYSTRUCTNAME4 = 0
DUMMYSTRUCTNAME5 = 0
DUMMYUNIONNAME = 0
DUMMYUNIONNAME1 = 0
DUMMYUNIONNAME2 = 0
DUMMYUNIONNAME3 = 0
DUMMYUNIONNAME4 = 0
DUMMYUNIONNAME5 = 0
DUMMYUNIONNAME6 = 0
DUMMYUNIONNAME7 = 0
DUMMYUNIONNAME8 = 0
DUMMYUNIONNAME9 = 0
MINGW_DDK_H = 0
MINGW_DDRAW_VERSION = 7
MINGW_HAS_DDK_H = 1
MINGW_HAS_DDRAW_H = 1
MINGW_HAS_SECURE_API = 1
MINGW_SDK_INIT = 0
NSIG = 23
SIGABRT = 22
SIGABRT2 = 22
SIGABRT_COMPAT = 6
SIGBREAK = 21
SIGFPE = 8
SIGILL = 4
SIGINT = 2
SIGSEGV = 11
SIGTERM = 15
UNALIGNED = 0
USE___UUIDOF = 0
WIN32 = 1
WIN64 = 1
WINNT = 1
WIN_PTHREADS_SIGNAL_H = 0
X_AGLOBAL = 0
X_ANONYMOUS_STRUCT = 0
X_ANONYMOUS_UNION = 0
X_ARGMAX = 100
X_CONST_RETURN = 0
X_CRTNOALIAS = 0
X_CRTRESTRICT = 0
X_CRT_ALTERNATIVE_IMPORTED = 0
X_CRT_MANAGED_HEAP_DEPRECATE = 0
X_CRT_PACKING = 8
X_CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES = 0
X_CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES_MEMORY = 0
X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES = 0
X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT = 0
X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_MEMORY = 0
X_DLL = 0
X_ERRCODE_DEFINED = 0
X_FILE_OFFSET_BITS = 64
X_INC_CRTDEFS = 0
X_INC_CRTDEFS_MACRO = 0
X_INC_MINGW_SECAPI = 0
X_INC_SIGNAL = 0
X_INC_VADEFS = 0
X_INC__MINGW_H = 0
X_INT128_DEFINED = 0
X_INTEGRAL_MAX_BITS = 64
X_INTPTR_T_DEFINED = 0
X_MT = 0
X_M_AMD64 = 100
X_M_X64 = 100
X_PGLOBAL = 0
X_PTRDIFF_T_ = 0
X_PTRDIFF_T_DEFINED = 0
X_REENTRANT = 1
X_RSIZE_T_DEFINED = 0
X_SECURECRT_FILL_BUFFER_PATTERN = 0xFD
X_SIG_ATOMIC_T_DEFINED = 0
X_SIZE_T_DEFINED = 0
X_SSIZE_T_DEFINED = 0
X_TAGLC_ID_DEFINED = 0
X_THREADLOCALEINFO = 0
X_TIME32_T_DEFINED = 0
X_TIME64_T_DEFINED = 0
X_TIME_T_DEFINED = 0
X_UINTPTR_T_DEFINED = 0
X_VA_LIST_DEFINED = 0
X_W64 = 0
X_WCHAR_T_DEFINED = 0
X_WCTYPE_T_DEFINED = 0
X_WIN32 = 1
X_WIN32_WINNT = 0x502
X_WIN64 = 1
X_WINT_T = 0
)
type Ptrdiff_t = int64 /* <builtin>:3:26 */
type Size_t = uint64 /* <builtin>:9:23 */
type Wchar_t = uint16 /* <builtin>:15:24 */
type X__int128_t = struct {
Flo int64
Fhi int64
} /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
type X__uint128_t = struct {
Flo uint64
Fhi uint64
} /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
type X__float128 = float64 /* <builtin>:47:21 */
type Va_list = X__builtin_va_list /* <builtin>:50:27 */
// *
// This file has no copyright assigned and is placed in the Public Domain.
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
// *
// This file has no copyright assigned and is placed in the Public Domain.
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
// *
// This file has no copyright assigned and is placed in the Public Domain.
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
// *
// This file has no copyright assigned and is placed in the Public Domain.
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
// This macro holds an monotonic increasing value, which indicates
// a specific fix/patch is present on trunk. This value isn't related to
// minor/major version-macros. It is increased on demand, if a big
// fix was applied to trunk. This macro gets just increased on trunk. For
// other branches its value won't be modified.
// mingw.org's version macros: these make gcc to define
// MINGW32_SUPPORTS_MT_EH and to use the _CRT_MT global
// and the __mingwthr_key_dtor() function from the MinGW
// CRT in its private gthr-win32.h header.
// Set VC specific compiler target macros.
// MS does not prefix symbols by underscores for 64-bit.
// As we have to support older gcc version, which are using underscores
// as symbol prefix for x64, we have to check here for the user label
// prefix defined by gcc.
// Special case nameless struct/union.
// MinGW-w64 has some additional C99 printf/scanf feature support.
// So we add some helper macros to ease recognition of them.
// *
// This file has no copyright assigned and is placed in the Public Domain.
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
// http://msdn.microsoft.com/en-us/library/ms175759%28v=VS.100%29.aspx
// Templates won't work in C, will break if secure API is not enabled, disabled
// https://blogs.msdn.com/b/sdl/archive/2010/02/16/vc-2010-and-memcpy.aspx?Redirected=true
// fallback on default implementation if we can't know the size of the destination
// Include _cygwin.h if we're building a Cygwin application.
// Target specific macro replacement for type "long". In the Windows API,
// the type long is always 32 bit, even if the target is 64 bit (LLP64).
// On 64 bit Cygwin, the type long is 64 bit (LP64). So, to get the right
// sized definitions and declarations, all usage of type long in the Windows
// headers have to be replaced by the below defined macro __LONG32.
// C/C++ specific language defines.
// Note the extern. This is needed to work around GCC's
// limitations in handling dllimport attribute.
// Attribute `nonnull' was valid as of gcc 3.3. We don't use GCC's
// variadiac macro facility, because variadic macros cause syntax
// errors with --traditional-cpp.
// High byte is the major version, low byte is the minor.
// *
// This file has no copyright assigned and is placed in the Public Domain.
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
// *
// This file has no copyright assigned and is placed in the Public Domain.
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
type X__gnuc_va_list = X__builtin_va_list /* vadefs.h:24:29 */
type Ssize_t = int64 /* crtdefs.h:45:35 */
type Rsize_t = Size_t /* crtdefs.h:52:16 */
type Intptr_t = int64 /* crtdefs.h:62:35 */
type Uintptr_t = uint64 /* crtdefs.h:75:44 */
type Wint_t = uint16 /* crtdefs.h:106:24 */
type Wctype_t = uint16 /* crtdefs.h:107:24 */
type Errno_t = int32 /* crtdefs.h:113:13 */
type X__time32_t = int32 /* crtdefs.h:118:14 */
type X__time64_t = int64 /* crtdefs.h:123:35 */
type Time_t = X__time64_t /* crtdefs.h:138:20 */
type Threadlocaleinfostruct = struct {
Frefcount int32
Flc_codepage uint32
Flc_collate_cp uint32
Flc_handle [6]uint32
Flc_id [6]LC_ID
Flc_category [6]struct {
Flocale uintptr
Fwlocale uintptr
Frefcount uintptr
Fwrefcount uintptr
}
Flc_clike int32
Fmb_cur_max int32
Flconv_intl_refcount uintptr
Flconv_num_refcount uintptr
Flconv_mon_refcount uintptr
Flconv uintptr
Fctype1_refcount uintptr
Fctype1 uintptr
Fpctype uintptr
Fpclmap uintptr
Fpcumap uintptr
Flc_time_curr uintptr
} /* crtdefs.h:422:1 */
type Pthreadlocinfo = uintptr /* crtdefs.h:424:39 */
type Pthreadmbcinfo = uintptr /* crtdefs.h:425:36 */
type Localeinfo_struct = struct {
Flocinfo Pthreadlocinfo
Fmbcinfo Pthreadmbcinfo
} /* crtdefs.h:428:9 */
type X_locale_tstruct = Localeinfo_struct /* crtdefs.h:431:3 */
type X_locale_t = uintptr /* crtdefs.h:431:19 */
type TagLC_ID = struct {
FwLanguage uint16
FwCountry uint16
FwCodePage uint16
} /* crtdefs.h:422:1 */
type LC_ID = TagLC_ID /* crtdefs.h:439:3 */
type LPLC_ID = uintptr /* crtdefs.h:439:9 */
type Threadlocinfo = Threadlocaleinfostruct /* crtdefs.h:468:3 */
//
// Copyright (c) 2013-2016 mingw-w64 project
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
// and/or sell copies of the Software, and to permit persons to whom the
// Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
// Windows has rudimentary signals support.
type Sig_atomic_t = int32 /* signal.h:18:15 */
type X__p_sig_fn_t = uintptr /* signal.h:48:16 */
var _ int8 /* gen.c:2:13: */
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/signal_openbsd_amd64.go | vendor/modernc.org/libc/signal/signal_openbsd_amd64.go | // Code generated by 'ccgo signal/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 signal/signal_openbsd_amd64.go -pkgname signal', DO NOT EDIT.
package signal
import (
"math"
"reflect"
"sync/atomic"
"unsafe"
)
var _ = math.Pi
var _ reflect.Kind
var _ atomic.Value
var _ unsafe.Pointer
const (
BIG_ENDIAN = 4321 // endian.h:45:1:
BUS_ADRALN = 1 // siginfo.h:83:1:
BUS_ADRERR = 2 // siginfo.h:84:1:
BUS_OBJERR = 3 // siginfo.h:85:1:
BYTE_ORDER = 1234 // endian.h:47:1:
CLD_CONTINUED = 6 // siginfo.h:105:1:
CLD_DUMPED = 3 // siginfo.h:102:1:
CLD_EXITED = 1 // siginfo.h:100:1:
CLD_KILLED = 2 // siginfo.h:101:1:
CLD_STOPPED = 5 // siginfo.h:104:1:
CLD_TRAPPED = 4 // siginfo.h:103:1:
CLK_TCK = 100 // time.h:68:1:
CLOCKS_PER_SEC = 100 // time.h:71:1:
CLOCK_BOOTTIME = 6 // _time.h:40:1:
CLOCK_MONOTONIC = 3 // _time.h:37:1:
CLOCK_PROCESS_CPUTIME_ID = 2 // _time.h:36:1:
CLOCK_REALTIME = 0 // _time.h:35:1:
CLOCK_THREAD_CPUTIME_ID = 4 // _time.h:38:1:
CLOCK_UPTIME = 5 // _time.h:39:1:
DST_AUST = 2 // time.h:78:1:
DST_CAN = 6 // time.h:82:1:
DST_EET = 5 // time.h:81:1:
DST_MET = 4 // time.h:80:1:
DST_NONE = 0 // time.h:76:1:
DST_USA = 1 // time.h:77:1:
DST_WET = 3 // time.h:79:1:
EMT_TAGOVF = 1 // siginfo.h:66:1:
FD_SETSIZE = 1024 // select.h:62:1:
FPE_FLTDIV = 3 // siginfo.h:71:1:
FPE_FLTINV = 7 // siginfo.h:75:1:
FPE_FLTOVF = 4 // siginfo.h:72:1:
FPE_FLTRES = 6 // siginfo.h:74:1:
FPE_FLTSUB = 8 // siginfo.h:76:1:
FPE_FLTUND = 5 // siginfo.h:73:1:
FPE_INTDIV = 1 // siginfo.h:69:1:
FPE_INTOVF = 2 // siginfo.h:70:1:
ILL_BADSTK = 8 // siginfo.h:63:1:
ILL_COPROC = 7 // siginfo.h:62:1:
ILL_ILLADR = 3 // siginfo.h:58:1:
ILL_ILLOPC = 1 // siginfo.h:56:1:
ILL_ILLOPN = 2 // siginfo.h:57:1:
ILL_ILLTRP = 4 // siginfo.h:59:1:
ILL_PRVOPC = 5 // siginfo.h:60:1:
ILL_PRVREG = 6 // siginfo.h:61:1:
ITIMER_PROF = 2 // time.h:146:1:
ITIMER_REAL = 0 // time.h:144:1:
ITIMER_VIRTUAL = 1 // time.h:145:1:
LITTLE_ENDIAN = 1234 // endian.h:44:1:
MINSIGSTKSZ = 12288 // signal.h:183:1:
NBBY = 8 // select.h:111:1:
NSIG = 33 // signal.h:48:1:
NSIGBUS = 3 // siginfo.h:86:1:
NSIGCLD = 6 // siginfo.h:106:1:
NSIGEMT = 1 // siginfo.h:67:1:
NSIGFPE = 8 // siginfo.h:77:1:
NSIGILL = 8 // siginfo.h:64:1:
NSIGSEGV = 2 // siginfo.h:81:1:
NSIGTRAP = 2 // siginfo.h:95:1:
PDP_ENDIAN = 3412 // endian.h:46:1:
SA_NOCLDSTOP = 0x0008 // signal.h:132:1:
SA_NOCLDWAIT = 0x0020 // signal.h:130:1:
SA_NODEFER = 0x0010 // signal.h:129:1:
SA_ONSTACK = 0x0001 // signal.h:126:1:
SA_RESETHAND = 0x0004 // signal.h:128:1:
SA_RESTART = 0x0002 // signal.h:127:1:
SA_SIGINFO = 0x0040 // signal.h:134:1:
SEGV_ACCERR = 2 // siginfo.h:80:1:
SEGV_MAPERR = 1 // siginfo.h:79:1:
SIGABRT = 6 // signal.h:56:1:
SIGALRM = 14 // signal.h:67:1:
SIGBUS = 10 // signal.h:63:1:
SIGCHLD = 20 // signal.h:73:1:
SIGCONT = 19 // signal.h:72:1:
SIGEMT = 7 // signal.h:59:1:
SIGFPE = 8 // signal.h:61:1:
SIGHUP = 1 // signal.h:51:1:
SIGILL = 4 // signal.h:54:1:
SIGINFO = 29 // signal.h:85:1:
SIGINT = 2 // signal.h:52:1:
SIGIO = 23 // signal.h:77:1:
SIGIOT = 6 // signal.h:58:1:
SIGKILL = 9 // signal.h:62:1:
SIGPIPE = 13 // signal.h:66:1:
SIGPROF = 27 // signal.h:82:1:
SIGQUIT = 3 // signal.h:53:1:
SIGSEGV = 11 // signal.h:64:1:
SIGSTKSZ = 28672 // signal.h:185:1:
SIGSTOP = 17 // signal.h:70:1:
SIGSYS = 12 // signal.h:65:1:
SIGTERM = 15 // signal.h:68:1:
SIGTHR = 32 // signal.h:90:1:
SIGTRAP = 5 // signal.h:55:1:
SIGTSTP = 18 // signal.h:71:1:
SIGTTIN = 21 // signal.h:74:1:
SIGTTOU = 22 // signal.h:75:1:
SIGURG = 16 // signal.h:69:1:
SIGUSR1 = 30 // signal.h:87:1:
SIGUSR2 = 31 // signal.h:88:1:
SIGVTALRM = 26 // signal.h:81:1:
SIGWINCH = 28 // signal.h:84:1:
SIGXCPU = 24 // signal.h:79:1:
SIGXFSZ = 25 // signal.h:80:1:
SIG_BLOCK = 1 // signal.h:140:1:
SIG_SETMASK = 3 // signal.h:142:1:
SIG_UNBLOCK = 2 // signal.h:141:1:
SI_LWP = -1 // siginfo.h:47:1:
SI_MAXSZ = 128 // siginfo.h:127:1:
SI_NOINFO = 32767 // siginfo.h:45:1:
SI_QUEUE = -2 // siginfo.h:48:1:
SI_TIMER = -3 // siginfo.h:49:1:
SI_USER = 0 // siginfo.h:46:1:
SS_DISABLE = 0x0004 // signal.h:182:1:
SS_ONSTACK = 0x0001 // signal.h:181:1:
SV_INTERRUPT = 2 // signal.h:158:1:
SV_ONSTACK = 1 // signal.h:157:1:
SV_RESETHAND = 4 // signal.h:159:1:
TIMER_ABSTIME = 0x1 // _time.h:62:1:
TIMER_RELTIME = 0x0 // _time.h:61:1:
TIME_UTC = 1 // time.h:179:1:
TRAP_BRKPT = 1 // siginfo.h:93:1:
TRAP_TRACE = 2 // siginfo.h:94:1:
X_BIG_ENDIAN = 4321 // _endian.h:43:1:
X_BYTE_ORDER = 1234 // endian.h:58:1:
X_CLOCKID_T_DEFINED_ = 0 // types.h:162:1:
X_CLOCK_T_DEFINED_ = 0 // types.h:157:1:
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_INT16_T_DEFINED_ = 0 // types.h:84:1:
X_INT32_T_DEFINED_ = 0 // types.h:94:1:
X_INT64_T_DEFINED_ = 0 // types.h:104:1:
X_INT8_T_DEFINED_ = 0 // types.h:74:1:
X_LITTLE_ENDIAN = 1234 // _endian.h:42:1:
X_LOCALE_T_DEFINED_ = 0 // time.h:106:1:
X_LP64 = 1 // <predefined>:1:1:
X_MACHINE_CDEFS_H_ = 0 // cdefs.h:9:1:
X_MACHINE_ENDIAN_H_ = 0 // endian.h:28:1:
X_MACHINE_SIGNAL_H_ = 0 // signal.h:36:1:
X_MACHINE__TYPES_H_ = 0 // _types.h:36:1:
X_MAX_PAGE_SHIFT = 12 // _types.h:52:1:
X_NSIG = 33 // signal.h:45:1:
X_OFF_T_DEFINED_ = 0 // types.h:192:1:
X_PDP_ENDIAN = 3412 // _endian.h:44:1:
X_PID_T_DEFINED_ = 0 // types.h:167:1:
X_QUAD_HIGHWORD = 1 // _endian.h:95:1:
X_QUAD_LOWWORD = 0 // _endian.h:96:1:
X_RET_PROTECTOR = 1 // <predefined>:2:1:
X_SELECT_DEFINED_ = 0 // select.h:126:1:
X_SIGSET_T_DEFINED_ = 0 // signal.h:103:1:
X_SIZE_T_DEFINED_ = 0 // types.h:172:1:
X_SSIZE_T_DEFINED_ = 0 // types.h:177:1:
X_STACKALIGNBYTES = 15 // _types.h:49:1:
X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1:
X_SYS_ENDIAN_H_ = 0 // endian.h:38:1:
X_SYS_SELECT_H_ = 0 // select.h:35:1:
X_SYS_SIGINFO_H = 0 // siginfo.h:29:1:
X_SYS_SIGNAL_H_ = 0 // signal.h:41:1:
X_SYS_TIME_H_ = 0 // time.h:36:1:
X_SYS_TYPES_H_ = 0 // types.h:41:1:
X_SYS__ENDIAN_H_ = 0 // _endian.h:34:1:
X_SYS__TIME_H_ = 0 // _time.h:33:1:
X_SYS__TYPES_H_ = 0 // _types.h:35:1:
X_TIMER_T_DEFINED_ = 0 // types.h:187:1:
X_TIMESPEC_DECLARED = 0 // select.h:48:1:
X_TIMEVAL_DECLARED = 0 // select.h:40:1:
X_TIME_H_ = 0 // time.h:42:1:
X_TIME_T_DEFINED_ = 0 // types.h:182:1:
X_UINT16_T_DEFINED_ = 0 // types.h:89:1:
X_UINT32_T_DEFINED_ = 0 // types.h:99:1:
X_UINT64_T_DEFINED_ = 0 // types.h:109:1:
X_UINT8_T_DEFINED_ = 0 // types.h:79:1:
X_USER_SIGNAL_H = 0 // signal.h:36:1:
Unix = 1 // <predefined>:344:1:
)
type Ptrdiff_t = int64 /* <builtin>:3:26 */
type Size_t = uint64 /* <builtin>:9:23 */
type Wchar_t = int32 /* <builtin>:15:24 */
type X__int128_t = struct {
Flo int64
Fhi int64
} /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
type X__uint128_t = struct {
Flo uint64
Fhi uint64
} /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
type X__float128 = float64 /* <builtin>:47:21 */
// $OpenBSD: signal.h,v 1.26 2018/05/30 13:20:38 bluhm Exp $
// $NetBSD: signal.h,v 1.8 1996/02/29 00:04:57 jtc Exp $
// -
// Copyright (c) 1991, 1993
// The Regents of the University of California. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// @(#)signal.h 8.3 (Berkeley) 3/30/94
// $OpenBSD: signal.h,v 1.29 2018/04/18 16:05:20 deraadt Exp $
// $NetBSD: signal.h,v 1.21 1996/02/09 18:25:32 christos Exp $
// Copyright (c) 1982, 1986, 1989, 1991, 1993
// The Regents of the University of California. All rights reserved.
// (c) UNIX System Laboratories, Inc.
// All or some portions of this file are derived from material licensed
// to the University of California by American Telephone and Telegraph
// Co. or Unix System Laboratories, Inc. and are reproduced herein with
// the permission of UNIX System Laboratories, Inc.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// @(#)signal.h 8.2 (Berkeley) 1/21/94
// $OpenBSD: signal.h,v 1.9 2016/05/10 18:39:42 deraadt Exp $
// $NetBSD: signal.h,v 1.2 2003/04/28 23:16:17 bjh21 Exp $
// Copyright (c) 1982, 1986, 1989, 1991 Regents of the University of California.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// @(#)signal.h 7.16 (Berkeley) 3/17/91
// $OpenBSD: cdefs.h,v 1.43 2018/10/29 17:10:40 guenther Exp $
// $NetBSD: cdefs.h,v 1.16 1996/04/03 20:46:39 christos Exp $
// Copyright (c) 1991, 1993
// The Regents of the University of California. All rights reserved.
//
// This code is derived from software contributed to Berkeley by
// Berkeley Software Design, Inc.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// @(#)cdefs.h 8.7 (Berkeley) 1/21/94
// $OpenBSD: cdefs.h,v 1.3 2013/03/28 17:30:45 martynas Exp $
// Written by J.T. Conklin <jtc@wimsey.com> 01/17/95.
// Public domain.
// Macro to test if we're using a specific version of gcc or later.
// The __CONCAT macro is used to concatenate parts of symbol names, e.g.
// with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo.
// The __CONCAT macro is a bit tricky -- make sure you don't put spaces
// in between its arguments. Do not use __CONCAT on double-quoted strings,
// such as those from the __STRING macro: to concatenate strings just put
// them next to each other.
// GCC1 and some versions of GCC2 declare dead (non-returning) and
// pure (no side effects) functions using "volatile" and "const";
// unfortunately, these then cause warnings under "-ansi -pedantic".
// GCC >= 2.5 uses the __attribute__((attrs)) style. All of these
// work for GNU C++ (modulo a slight glitch in the C++ grammar in
// the distribution version of 2.5.5).
// __returns_twice makes the compiler not assume the function
// only returns once. This affects registerisation of variables:
// even local variables need to be in memory across such a call.
// Example: setjmp()
// __only_inline makes the compiler only use this function definition
// for inlining; references that can't be inlined will be left as
// external references instead of generating a local copy. The
// matching library should include a simple extern definition for
// the function to handle those references. c.f. ctype.h
// GNU C version 2.96 adds explicit branch prediction so that
// the CPU back-end can hint the processor and also so that
// code blocks can be reordered such that the predicted path
// sees a more linear flow, thus improving cache behavior, etc.
//
// The following two macros provide us with a way to utilize this
// compiler feature. Use __predict_true() if you expect the expression
// to evaluate to true, and __predict_false() if you expect the
// expression to evaluate to false.
//
// A few notes about usage:
//
// * Generally, __predict_false() error condition checks (unless
// you have some _strong_ reason to do otherwise, in which case
// document it), and/or __predict_true() `no-error' condition
// checks, assuming you want to optimize for the no-error case.
//
// * Other than that, if you don't know the likelihood of a test
// succeeding from empirical or other `hard' evidence, don't
// make predictions.
//
// * These are meant to be used in places that are run `a lot'.
// It is wasteful to make predictions in code that is run
// seldomly (e.g. at subsystem initialization time) as the
// basic block reordering that this affects can often generate
// larger code.
// Delete pseudo-keywords wherever they are not available or needed.
// The __packed macro indicates that a variable or structure members
// should have the smallest possible alignment, despite any host CPU
// alignment requirements.
//
// The __aligned(x) macro specifies the minimum alignment of a
// variable or structure.
//
// These macros together are useful for describing the layout and
// alignment of messages exchanged with hardware or other systems.
// "The nice thing about standards is that there are so many to choose from."
// There are a number of "feature test macros" specified by (different)
// standards that determine which interfaces and types the header files
// should expose.
//
// Because of inconsistencies in these macros, we define our own
// set in the private name space that end in _VISIBLE. These are
// always defined and so headers can test their values easily.
// Things can get tricky when multiple feature macros are defined.
// We try to take the union of all the features requested.
//
// The following macros are guaranteed to have a value after cdefs.h
// has been included:
// __POSIX_VISIBLE
// __XPG_VISIBLE
// __ISO_C_VISIBLE
// __BSD_VISIBLE
// X/Open Portability Guides and Single Unix Specifications.
// _XOPEN_SOURCE XPG3
// _XOPEN_SOURCE && _XOPEN_VERSION = 4 XPG4
// _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED = 1 XPG4v2
// _XOPEN_SOURCE == 500 XPG5
// _XOPEN_SOURCE == 520 XPG5v2
// _XOPEN_SOURCE == 600 POSIX 1003.1-2001 with XSI
// _XOPEN_SOURCE == 700 POSIX 1003.1-2008 with XSI
//
// The XPG spec implies a specific value for _POSIX_C_SOURCE.
// POSIX macros, these checks must follow the XOPEN ones above.
//
// _POSIX_SOURCE == 1 1003.1-1988 (superseded by _POSIX_C_SOURCE)
// _POSIX_C_SOURCE == 1 1003.1-1990
// _POSIX_C_SOURCE == 2 1003.2-1992
// _POSIX_C_SOURCE == 199309L 1003.1b-1993
// _POSIX_C_SOURCE == 199506L 1003.1c-1995, 1003.1i-1995,
// and the omnibus ISO/IEC 9945-1:1996
// _POSIX_C_SOURCE == 200112L 1003.1-2001
// _POSIX_C_SOURCE == 200809L 1003.1-2008
//
// The POSIX spec implies a specific value for __ISO_C_VISIBLE, though
// this may be overridden by the _ISOC99_SOURCE macro later.
// _ANSI_SOURCE means to expose ANSI C89 interfaces only.
// If the user defines it in addition to one of the POSIX or XOPEN
// macros, assume the POSIX/XOPEN macro(s) should take precedence.
// _ISOC99_SOURCE, _ISOC11_SOURCE, __STDC_VERSION__, and __cplusplus
// override any of the other macros since they are non-exclusive.
// Finally deal with BSD-specific interfaces that are not covered
// by any standards. We expose these when none of the POSIX or XPG
// macros is defined or if the user explicitly asks for them.
// Default values.
type Sig_atomic_t = int32 /* signal.h:40:13 */
// Information pushed on stack when a signal is delivered.
// This is used by the kernel to restore state following
// execution of the signal handler. It is also made available
// to the handler to allow it to restore state properly if
// a non-standard exit is performed.
type Sigcontext = struct {
Fsc_rdi int64
Fsc_rsi int64
Fsc_rdx int64
Fsc_rcx int64
Fsc_r8 int64
Fsc_r9 int64
Fsc_r10 int64
Fsc_r11 int64
Fsc_r12 int64
Fsc_r13 int64
Fsc_r14 int64
Fsc_r15 int64
Fsc_rbp int64
Fsc_rbx int64
Fsc_rax int64
Fsc_gs int64
Fsc_fs int64
Fsc_es int64
Fsc_ds int64
Fsc_trapno int64
Fsc_err int64
Fsc_rip int64
Fsc_cs int64
Fsc_rflags int64
Fsc_rsp int64
Fsc_ss int64
Fsc_fpstate uintptr
F__sc_unused int32
Fsc_mask int32
Fsc_cookie int64
} /* signal.h:54:1 */
// Language spec says we must list exactly one parameter, even though we
// actually supply three. Ugh!
type Sigset_t = uint32 /* signal.h:104:22 */
// $OpenBSD: siginfo.h,v 1.12 2017/04/07 04:48:44 guenther Exp $
// Copyright (c) 1997 Theo de Raadt
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
//
// THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
// OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
// IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
// NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
// THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// $OpenBSD: cdefs.h,v 1.43 2018/10/29 17:10:40 guenther Exp $
// $NetBSD: cdefs.h,v 1.16 1996/04/03 20:46:39 christos Exp $
// Copyright (c) 1991, 1993
// The Regents of the University of California. All rights reserved.
//
// This code is derived from software contributed to Berkeley by
// Berkeley Software Design, Inc.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// @(#)cdefs.h 8.7 (Berkeley) 1/21/94
type Sigval = struct {
F__ccgo_pad1 [0]uint64
Fsival_int int32
F__ccgo_pad2 [4]byte
} /* siginfo.h:33:1 */
// Negative signal codes are reserved for future use for
// user generated signals.
// The machine dependent signal codes (SIGILL, SIGFPE,
// SIGSEGV, and SIGBUS)
// SIGTRAP signal codes
// SIGCHLD signal codes
// $OpenBSD: time.h,v 1.62 2022/07/23 22:58:51 cheloha Exp $
// $NetBSD: time.h,v 1.18 1996/04/23 10:29:33 mycroft Exp $
// Copyright (c) 1982, 1986, 1993
// The Regents of the University of California. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// @(#)time.h 8.2 (Berkeley) 7/10/94
// $OpenBSD: select.h,v 1.17 2016/09/12 19:41:20 guenther Exp $
// -
// Copyright (c) 1992, 1993
// The Regents of the University of California. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// @(#)select.h 8.2 (Berkeley) 1/4/94
// $OpenBSD: types.h,v 1.49 2022/08/06 13:31:13 semarie Exp $
// $NetBSD: types.h,v 1.29 1996/11/15 22:48:25 jtc Exp $
// -
// Copyright (c) 1982, 1986, 1991, 1993
// The Regents of the University of California. All rights reserved.
// (c) UNIX System Laboratories, Inc.
// All or some portions of this file are derived from material licensed
// to the University of California by American Telephone and Telegraph
// Co. or Unix System Laboratories, Inc. and are reproduced herein with
// the permission of UNIX System Laboratories, Inc.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | true |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/signal_openbsd_386.go | vendor/modernc.org/libc/signal/signal_openbsd_386.go | // Code generated by 'ccgo signal/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 signal/signal_openbsd_386.go -pkgname signal', DO NOT EDIT.
package signal
import (
"math"
"reflect"
"sync/atomic"
"unsafe"
)
var _ = math.Pi
var _ reflect.Kind
var _ atomic.Value
var _ unsafe.Pointer
const (
BIG_ENDIAN = 4321 // endian.h:45:1:
BUS_ADRALN = 1 // siginfo.h:83:1:
BUS_ADRERR = 2 // siginfo.h:84:1:
BUS_OBJERR = 3 // siginfo.h:85:1:
BYTE_ORDER = 1234 // endian.h:47:1:
CLD_CONTINUED = 6 // siginfo.h:105:1:
CLD_DUMPED = 3 // siginfo.h:102:1:
CLD_EXITED = 1 // siginfo.h:100:1:
CLD_KILLED = 2 // siginfo.h:101:1:
CLD_STOPPED = 5 // siginfo.h:104:1:
CLD_TRAPPED = 4 // siginfo.h:103:1:
CLK_TCK = 100 // time.h:68:1:
CLOCKS_PER_SEC = 100 // time.h:71:1:
CLOCK_BOOTTIME = 6 // _time.h:40:1:
CLOCK_MONOTONIC = 3 // _time.h:37:1:
CLOCK_PROCESS_CPUTIME_ID = 2 // _time.h:36:1:
CLOCK_REALTIME = 0 // _time.h:35:1:
CLOCK_THREAD_CPUTIME_ID = 4 // _time.h:38:1:
CLOCK_UPTIME = 5 // _time.h:39:1:
DST_AUST = 2 // time.h:78:1:
DST_CAN = 6 // time.h:82:1:
DST_EET = 5 // time.h:81:1:
DST_MET = 4 // time.h:80:1:
DST_NONE = 0 // time.h:76:1:
DST_USA = 1 // time.h:77:1:
DST_WET = 3 // time.h:79:1:
EMT_TAGOVF = 1 // siginfo.h:66:1:
FD_SETSIZE = 1024 // select.h:62:1:
FPE_FLTDIV = 3 // siginfo.h:71:1:
FPE_FLTINV = 7 // siginfo.h:75:1:
FPE_FLTOVF = 4 // siginfo.h:72:1:
FPE_FLTRES = 6 // siginfo.h:74:1:
FPE_FLTSUB = 8 // siginfo.h:76:1:
FPE_FLTUND = 5 // siginfo.h:73:1:
FPE_INTDIV = 1 // siginfo.h:69:1:
FPE_INTOVF = 2 // siginfo.h:70:1:
ILL_BADSTK = 8 // siginfo.h:63:1:
ILL_COPROC = 7 // siginfo.h:62:1:
ILL_ILLADR = 3 // siginfo.h:58:1:
ILL_ILLOPC = 1 // siginfo.h:56:1:
ILL_ILLOPN = 2 // siginfo.h:57:1:
ILL_ILLTRP = 4 // siginfo.h:59:1:
ILL_PRVOPC = 5 // siginfo.h:60:1:
ILL_PRVREG = 6 // siginfo.h:61:1:
ITIMER_PROF = 2 // time.h:146:1:
ITIMER_REAL = 0 // time.h:144:1:
ITIMER_VIRTUAL = 1 // time.h:145:1:
LITTLE_ENDIAN = 1234 // endian.h:44:1:
MINSIGSTKSZ = 12288 // signal.h:183:1:
NBBY = 8 // select.h:111:1:
NSIG = 33 // signal.h:48:1:
NSIGBUS = 3 // siginfo.h:86:1:
NSIGCLD = 6 // siginfo.h:106:1:
NSIGEMT = 1 // siginfo.h:67:1:
NSIGFPE = 8 // siginfo.h:77:1:
NSIGILL = 8 // siginfo.h:64:1:
NSIGSEGV = 2 // siginfo.h:81:1:
NSIGTRAP = 2 // siginfo.h:95:1:
PDP_ENDIAN = 3412 // endian.h:46:1:
SA_NOCLDSTOP = 0x0008 // signal.h:132:1:
SA_NOCLDWAIT = 0x0020 // signal.h:130:1:
SA_NODEFER = 0x0010 // signal.h:129:1:
SA_ONSTACK = 0x0001 // signal.h:126:1:
SA_RESETHAND = 0x0004 // signal.h:128:1:
SA_RESTART = 0x0002 // signal.h:127:1:
SA_SIGINFO = 0x0040 // signal.h:134:1:
SEGV_ACCERR = 2 // siginfo.h:80:1:
SEGV_MAPERR = 1 // siginfo.h:79:1:
SIGABRT = 6 // signal.h:56:1:
SIGALRM = 14 // signal.h:67:1:
SIGBUS = 10 // signal.h:63:1:
SIGCHLD = 20 // signal.h:73:1:
SIGCONT = 19 // signal.h:72:1:
SIGEMT = 7 // signal.h:59:1:
SIGFPE = 8 // signal.h:61:1:
SIGHUP = 1 // signal.h:51:1:
SIGILL = 4 // signal.h:54:1:
SIGINFO = 29 // signal.h:85:1:
SIGINT = 2 // signal.h:52:1:
SIGIO = 23 // signal.h:77:1:
SIGIOT = 6 // signal.h:58:1:
SIGKILL = 9 // signal.h:62:1:
SIGPIPE = 13 // signal.h:66:1:
SIGPROF = 27 // signal.h:82:1:
SIGQUIT = 3 // signal.h:53:1:
SIGSEGV = 11 // signal.h:64:1:
SIGSTKSZ = 28672 // signal.h:185:1:
SIGSTOP = 17 // signal.h:70:1:
SIGSYS = 12 // signal.h:65:1:
SIGTERM = 15 // signal.h:68:1:
SIGTHR = 32 // signal.h:90:1:
SIGTRAP = 5 // signal.h:55:1:
SIGTSTP = 18 // signal.h:71:1:
SIGTTIN = 21 // signal.h:74:1:
SIGTTOU = 22 // signal.h:75:1:
SIGURG = 16 // signal.h:69:1:
SIGUSR1 = 30 // signal.h:87:1:
SIGUSR2 = 31 // signal.h:88:1:
SIGVTALRM = 26 // signal.h:81:1:
SIGWINCH = 28 // signal.h:84:1:
SIGXCPU = 24 // signal.h:79:1:
SIGXFSZ = 25 // signal.h:80:1:
SIG_BLOCK = 1 // signal.h:140:1:
SIG_SETMASK = 3 // signal.h:142:1:
SIG_UNBLOCK = 2 // signal.h:141:1:
SI_LWP = -1 // siginfo.h:47:1:
SI_MAXSZ = 128 // siginfo.h:127:1:
SI_NOINFO = 32767 // siginfo.h:45:1:
SI_QUEUE = -2 // siginfo.h:48:1:
SI_TIMER = -3 // siginfo.h:49:1:
SI_USER = 0 // siginfo.h:46:1:
SS_DISABLE = 0x0004 // signal.h:182:1:
SS_ONSTACK = 0x0001 // signal.h:181:1:
SV_INTERRUPT = 2 // signal.h:158:1:
SV_ONSTACK = 1 // signal.h:157:1:
SV_RESETHAND = 4 // signal.h:159:1:
TIMER_ABSTIME = 0x1 // _time.h:62:1:
TIMER_RELTIME = 0x0 // _time.h:61:1:
TIME_UTC = 1 // time.h:179:1:
TRAP_BRKPT = 1 // siginfo.h:93:1:
TRAP_TRACE = 2 // siginfo.h:94:1:
X_BIG_ENDIAN = 4321 // _endian.h:43:1:
X_BYTE_ORDER = 1234 // endian.h:58:1:
X_CLOCKID_T_DEFINED_ = 0 // types.h:162:1:
X_CLOCK_T_DEFINED_ = 0 // types.h:157:1:
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_ILP32 = 1 // <predefined>:1:1:
X_INT16_T_DEFINED_ = 0 // types.h:84:1:
X_INT32_T_DEFINED_ = 0 // types.h:94:1:
X_INT64_T_DEFINED_ = 0 // types.h:104:1:
X_INT8_T_DEFINED_ = 0 // types.h:74:1:
X_LITTLE_ENDIAN = 1234 // _endian.h:42:1:
X_LOCALE_T_DEFINED_ = 0 // time.h:106:1:
X_MACHINE_CDEFS_H_ = 0 // cdefs.h:9:1:
X_MACHINE_ENDIAN_H_ = 0 // endian.h:28:1:
X_MACHINE_SIGNAL_H_ = 0 // signal.h:36:1:
X_MACHINE__TYPES_H_ = 0 // _types.h:36:1:
X_MAX_PAGE_SHIFT = 12 // _types.h:52:1:
X_NSIG = 33 // signal.h:45:1:
X_OFF_T_DEFINED_ = 0 // types.h:192:1:
X_PDP_ENDIAN = 3412 // _endian.h:44:1:
X_PID_T_DEFINED_ = 0 // types.h:167:1:
X_QUAD_HIGHWORD = 1 // _endian.h:95:1:
X_QUAD_LOWWORD = 0 // _endian.h:96:1:
X_SELECT_DEFINED_ = 0 // select.h:126:1:
X_SIGSET_T_DEFINED_ = 0 // signal.h:103:1:
X_SIZE_T_DEFINED_ = 0 // types.h:172:1:
X_SSIZE_T_DEFINED_ = 0 // types.h:177:1:
X_STACKALIGNBYTES = 15 // _types.h:49:1:
X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1:
X_SYS_ENDIAN_H_ = 0 // endian.h:38:1:
X_SYS_SELECT_H_ = 0 // select.h:35:1:
X_SYS_SIGINFO_H = 0 // siginfo.h:29:1:
X_SYS_SIGNAL_H_ = 0 // signal.h:41:1:
X_SYS_TIME_H_ = 0 // time.h:36:1:
X_SYS_TYPES_H_ = 0 // types.h:41:1:
X_SYS__ENDIAN_H_ = 0 // _endian.h:34:1:
X_SYS__TIME_H_ = 0 // _time.h:33:1:
X_SYS__TYPES_H_ = 0 // _types.h:35:1:
X_TIMER_T_DEFINED_ = 0 // types.h:187:1:
X_TIMESPEC_DECLARED = 0 // select.h:48:1:
X_TIMEVAL_DECLARED = 0 // select.h:40:1:
X_TIME_H_ = 0 // time.h:42:1:
X_TIME_T_DEFINED_ = 0 // types.h:182:1:
X_UINT16_T_DEFINED_ = 0 // types.h:89:1:
X_UINT32_T_DEFINED_ = 0 // types.h:99:1:
X_UINT64_T_DEFINED_ = 0 // types.h:109:1:
X_UINT8_T_DEFINED_ = 0 // types.h:79:1:
X_USER_SIGNAL_H = 0 // signal.h:36:1:
I386 = 1 // <predefined>:339:1:
Unix = 1 // <predefined>:340:1:
)
type Ptrdiff_t = int32 /* <builtin>:3:26 */
type Size_t = uint32 /* <builtin>:9:23 */
type Wchar_t = int32 /* <builtin>:15:24 */
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
type X__float128 = float64 /* <builtin>:47:21 */
// $OpenBSD: signal.h,v 1.26 2018/05/30 13:20:38 bluhm Exp $
// $NetBSD: signal.h,v 1.8 1996/02/29 00:04:57 jtc Exp $
// -
// Copyright (c) 1991, 1993
// The Regents of the University of California. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// @(#)signal.h 8.3 (Berkeley) 3/30/94
// $OpenBSD: signal.h,v 1.29 2018/04/18 16:05:20 deraadt Exp $
// $NetBSD: signal.h,v 1.21 1996/02/09 18:25:32 christos Exp $
// Copyright (c) 1982, 1986, 1989, 1991, 1993
// The Regents of the University of California. All rights reserved.
// (c) UNIX System Laboratories, Inc.
// All or some portions of this file are derived from material licensed
// to the University of California by American Telephone and Telegraph
// Co. or Unix System Laboratories, Inc. and are reproduced herein with
// the permission of UNIX System Laboratories, Inc.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// @(#)signal.h 8.2 (Berkeley) 1/21/94
// $OpenBSD: signal.h,v 1.11 2016/05/10 18:39:45 deraadt Exp $
// $NetBSD: signal.h,v 1.6 1996/01/08 13:51:43 mycroft Exp $
// Copyright (c) 1982, 1986, 1989, 1991 Regents of the University of California.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// @(#)signal.h 7.16 (Berkeley) 3/17/91
// $OpenBSD: cdefs.h,v 1.43 2018/10/29 17:10:40 guenther Exp $
// $NetBSD: cdefs.h,v 1.16 1996/04/03 20:46:39 christos Exp $
// Copyright (c) 1991, 1993
// The Regents of the University of California. All rights reserved.
//
// This code is derived from software contributed to Berkeley by
// Berkeley Software Design, Inc.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// @(#)cdefs.h 8.7 (Berkeley) 1/21/94
// $OpenBSD: cdefs.h,v 1.10 2013/03/28 17:30:45 martynas Exp $
// Written by J.T. Conklin <jtc@wimsey.com> 01/17/95.
// Public domain.
// Macro to test if we're using a specific version of gcc or later.
// The __CONCAT macro is used to concatenate parts of symbol names, e.g.
// with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo.
// The __CONCAT macro is a bit tricky -- make sure you don't put spaces
// in between its arguments. Do not use __CONCAT on double-quoted strings,
// such as those from the __STRING macro: to concatenate strings just put
// them next to each other.
// GCC1 and some versions of GCC2 declare dead (non-returning) and
// pure (no side effects) functions using "volatile" and "const";
// unfortunately, these then cause warnings under "-ansi -pedantic".
// GCC >= 2.5 uses the __attribute__((attrs)) style. All of these
// work for GNU C++ (modulo a slight glitch in the C++ grammar in
// the distribution version of 2.5.5).
// __returns_twice makes the compiler not assume the function
// only returns once. This affects registerisation of variables:
// even local variables need to be in memory across such a call.
// Example: setjmp()
// __only_inline makes the compiler only use this function definition
// for inlining; references that can't be inlined will be left as
// external references instead of generating a local copy. The
// matching library should include a simple extern definition for
// the function to handle those references. c.f. ctype.h
// GNU C version 2.96 adds explicit branch prediction so that
// the CPU back-end can hint the processor and also so that
// code blocks can be reordered such that the predicted path
// sees a more linear flow, thus improving cache behavior, etc.
//
// The following two macros provide us with a way to utilize this
// compiler feature. Use __predict_true() if you expect the expression
// to evaluate to true, and __predict_false() if you expect the
// expression to evaluate to false.
//
// A few notes about usage:
//
// * Generally, __predict_false() error condition checks (unless
// you have some _strong_ reason to do otherwise, in which case
// document it), and/or __predict_true() `no-error' condition
// checks, assuming you want to optimize for the no-error case.
//
// * Other than that, if you don't know the likelihood of a test
// succeeding from empirical or other `hard' evidence, don't
// make predictions.
//
// * These are meant to be used in places that are run `a lot'.
// It is wasteful to make predictions in code that is run
// seldomly (e.g. at subsystem initialization time) as the
// basic block reordering that this affects can often generate
// larger code.
// Delete pseudo-keywords wherever they are not available or needed.
// The __packed macro indicates that a variable or structure members
// should have the smallest possible alignment, despite any host CPU
// alignment requirements.
//
// The __aligned(x) macro specifies the minimum alignment of a
// variable or structure.
//
// These macros together are useful for describing the layout and
// alignment of messages exchanged with hardware or other systems.
// "The nice thing about standards is that there are so many to choose from."
// There are a number of "feature test macros" specified by (different)
// standards that determine which interfaces and types the header files
// should expose.
//
// Because of inconsistencies in these macros, we define our own
// set in the private name space that end in _VISIBLE. These are
// always defined and so headers can test their values easily.
// Things can get tricky when multiple feature macros are defined.
// We try to take the union of all the features requested.
//
// The following macros are guaranteed to have a value after cdefs.h
// has been included:
// __POSIX_VISIBLE
// __XPG_VISIBLE
// __ISO_C_VISIBLE
// __BSD_VISIBLE
// X/Open Portability Guides and Single Unix Specifications.
// _XOPEN_SOURCE XPG3
// _XOPEN_SOURCE && _XOPEN_VERSION = 4 XPG4
// _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED = 1 XPG4v2
// _XOPEN_SOURCE == 500 XPG5
// _XOPEN_SOURCE == 520 XPG5v2
// _XOPEN_SOURCE == 600 POSIX 1003.1-2001 with XSI
// _XOPEN_SOURCE == 700 POSIX 1003.1-2008 with XSI
//
// The XPG spec implies a specific value for _POSIX_C_SOURCE.
// POSIX macros, these checks must follow the XOPEN ones above.
//
// _POSIX_SOURCE == 1 1003.1-1988 (superseded by _POSIX_C_SOURCE)
// _POSIX_C_SOURCE == 1 1003.1-1990
// _POSIX_C_SOURCE == 2 1003.2-1992
// _POSIX_C_SOURCE == 199309L 1003.1b-1993
// _POSIX_C_SOURCE == 199506L 1003.1c-1995, 1003.1i-1995,
// and the omnibus ISO/IEC 9945-1:1996
// _POSIX_C_SOURCE == 200112L 1003.1-2001
// _POSIX_C_SOURCE == 200809L 1003.1-2008
//
// The POSIX spec implies a specific value for __ISO_C_VISIBLE, though
// this may be overridden by the _ISOC99_SOURCE macro later.
// _ANSI_SOURCE means to expose ANSI C89 interfaces only.
// If the user defines it in addition to one of the POSIX or XOPEN
// macros, assume the POSIX/XOPEN macro(s) should take precedence.
// _ISOC99_SOURCE, _ISOC11_SOURCE, __STDC_VERSION__, and __cplusplus
// override any of the other macros since they are non-exclusive.
// Finally deal with BSD-specific interfaces that are not covered
// by any standards. We expose these when none of the POSIX or XPG
// macros is defined or if the user explicitly asks for them.
// Default values.
type Sig_atomic_t = int32 /* signal.h:40:13 */
// Information pushed on stack when a signal is delivered.
// This is used by the kernel to restore state following
// execution of the signal handler. It is also made available
// to the handler to allow it to restore state properly if
// a non-standard exit is performed.
type Sigcontext = struct {
Fsc_gs int32
Fsc_fs int32
Fsc_es int32
Fsc_ds int32
Fsc_edi int32
Fsc_esi int32
Fsc_ebp int32
Fsc_ebx int32
Fsc_edx int32
Fsc_ecx int32
Fsc_eax int32
Fsc_eip int32
Fsc_cs int32
Fsc_eflags int32
Fsc_esp int32
Fsc_ss int32
Fsc_cookie int32
Fsc_mask int32
Fsc_trapno int32
Fsc_err int32
Fsc_fpstate uintptr
} /* signal.h:54:1 */
// Language spec says we must list exactly one parameter, even though we
// actually supply three. Ugh!
type Sigset_t = uint32 /* signal.h:104:22 */
// $OpenBSD: siginfo.h,v 1.12 2017/04/07 04:48:44 guenther Exp $
// Copyright (c) 1997 Theo de Raadt
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
//
// THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
// OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
// IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
// NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
// THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// $OpenBSD: cdefs.h,v 1.43 2018/10/29 17:10:40 guenther Exp $
// $NetBSD: cdefs.h,v 1.16 1996/04/03 20:46:39 christos Exp $
// Copyright (c) 1991, 1993
// The Regents of the University of California. All rights reserved.
//
// This code is derived from software contributed to Berkeley by
// Berkeley Software Design, Inc.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// @(#)cdefs.h 8.7 (Berkeley) 1/21/94
type Sigval = struct{ Fsival_int int32 } /* siginfo.h:33:1 */
// Negative signal codes are reserved for future use for
// user generated signals.
// The machine dependent signal codes (SIGILL, SIGFPE,
// SIGSEGV, and SIGBUS)
// SIGTRAP signal codes
// SIGCHLD signal codes
// $OpenBSD: time.h,v 1.62 2022/07/23 22:58:51 cheloha Exp $
// $NetBSD: time.h,v 1.18 1996/04/23 10:29:33 mycroft Exp $
// Copyright (c) 1982, 1986, 1993
// The Regents of the University of California. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// @(#)time.h 8.2 (Berkeley) 7/10/94
// $OpenBSD: select.h,v 1.17 2016/09/12 19:41:20 guenther Exp $
// -
// Copyright (c) 1992, 1993
// The Regents of the University of California. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// @(#)select.h 8.2 (Berkeley) 1/4/94
// $OpenBSD: types.h,v 1.49 2022/08/06 13:31:13 semarie Exp $
// $NetBSD: types.h,v 1.29 1996/11/15 22:48:25 jtc Exp $
// -
// Copyright (c) 1982, 1986, 1991, 1993
// The Regents of the University of California. All rights reserved.
// (c) UNIX System Laboratories, Inc.
// All or some portions of this file are derived from material licensed
// to the University of California by American Telephone and Telegraph
// Co. or Unix System Laboratories, Inc. and are reproduced herein with
// the permission of UNIX System Laboratories, Inc.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// @(#)types.h 8.4 (Berkeley) 1/21/94
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | true |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/signal_linux_arm64.go | vendor/modernc.org/libc/signal/signal_linux_arm64.go | // Code generated by 'ccgo signal/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o signal/signal_linux_arm64.go -pkgname signal', DO NOT EDIT.
package signal
import (
"math"
"reflect"
"sync/atomic"
"unsafe"
)
var _ = math.Pi
var _ reflect.Kind
var _ atomic.Value
var _ unsafe.Pointer
const (
BIG_ENDIAN = 4321
BYTE_ORDER = 1234
ELF_PRARGSZ = 80
ESR_MAGIC = 0x45535201
EXTRA_MAGIC = 0x45585401
FD_SETSIZE = 1024
FPSIMD_MAGIC = 0x46508001
LITTLE_ENDIAN = 1234
MINSIGSTKSZ = 5120
NSIG = 65
PDP_ENDIAN = 3412
SA_INTERRUPT = 0x20000000
SA_NOCLDSTOP = 1
SA_NOCLDWAIT = 2
SA_NODEFER = 0x40000000
SA_NOMASK = 1073741824
SA_ONESHOT = 2147483648
SA_ONSTACK = 0x08000000
SA_RESETHAND = 0x80000000
SA_RESTART = 0x10000000
SA_SIGINFO = 4
SA_STACK = 134217728
SIGABRT = 6
SIGALRM = 14
SIGBUS = 7
SIGCHLD = 17
SIGCLD = 17
SIGCONT = 18
SIGFPE = 8
SIGHUP = 1
SIGILL = 4
SIGINT = 2
SIGIO = 29
SIGIOT = 6
SIGKILL = 9
SIGPIPE = 13
SIGPOLL = 29
SIGPROF = 27
SIGPWR = 30
SIGQUIT = 3
SIGSEGV = 11
SIGSTKFLT = 16
SIGSTKSZ = 16384
SIGSTOP = 19
SIGSYS = 31
SIGTERM = 15
SIGTRAP = 5
SIGTSTP = 20
SIGTTIN = 21
SIGTTOU = 22
SIGURG = 23
SIGUSR1 = 10
SIGUSR2 = 12
SIGVTALRM = 26
SIGWINCH = 28
SIGXCPU = 24
SIGXFSZ = 25
SIG_BLOCK = 0
SIG_SETMASK = 2
SIG_UNBLOCK = 1
SVE_MAGIC = 0x53564501
SVE_NUM_PREGS = 16
SVE_NUM_ZREGS = 32
SVE_VL_MAX = 8192
SVE_VL_MIN = 16
SVE_VQ_BYTES = 16
SVE_VQ_MAX = 512
SVE_VQ_MIN = 1
X_ASM_GENERIC_INT_LL64_H = 0
X_ASM_GENERIC_TYPES_H = 0
X_ATFILE_SOURCE = 1
X_BITS_BYTESWAP_H = 1
X_BITS_ENDIANNESS_H = 1
X_BITS_ENDIAN_H = 1
X_BITS_PTHREADTYPES_ARCH_H = 1
X_BITS_PTHREADTYPES_COMMON_H = 1
X_BITS_SIGACTION_H = 1
X_BITS_SIGCONTEXT_H = 1
X_BITS_SIGEVENT_CONSTS_H = 1
X_BITS_SIGINFO_ARCH_H = 1
X_BITS_SIGINFO_CONSTS_H = 1
X_BITS_SIGNUM_GENERIC_H = 1
X_BITS_SIGNUM_H = 1
X_BITS_SIGSTACK_H = 1
X_BITS_SIGTHREAD_H = 1
X_BITS_SS_FLAGS_H = 1
X_BITS_STDINT_INTN_H = 1
X_BITS_TIME64_H = 1
X_BITS_TYPESIZES_H = 1
X_BITS_TYPES_H = 1
X_BITS_UINTN_IDENTITY_H = 1
X_BSD_SIZE_T_ = 0
X_BSD_SIZE_T_DEFINED_ = 0
X_DEFAULT_SOURCE = 1
X_ENDIAN_H = 1
X_FEATURES_H = 1
X_FILE_OFFSET_BITS = 64
X_GCC_SIZE_T = 0
X_LINUX_POSIX_TYPES_H = 0
X_LINUX_TYPES_H = 0
X_LP64 = 1
X_NSIG = 65
X_POSIX_C_SOURCE = 200809
X_POSIX_SOURCE = 1
X_RWLOCK_INTERNAL_H = 0
X_SIGNAL_H = 0
X_SIZET_ = 0
X_SIZE_T = 0
X_SIZE_T_ = 0
X_SIZE_T_DECLARED = 0
X_SIZE_T_DEFINED = 0
X_SIZE_T_DEFINED_ = 0
X_STDC_PREDEF_H = 1
X_STRUCT_TIMESPEC = 1
X_SYS_CDEFS_H = 1
X_SYS_PROCFS_H = 1
X_SYS_SELECT_H = 1
X_SYS_SIZE_T_H = 0
X_SYS_TIME_H = 1
X_SYS_TYPES_H = 1
X_SYS_UCONTEXT_H = 1
X_SYS_USER_H = 1
X_THREAD_MUTEX_INTERNAL_H = 1
X_THREAD_SHARED_TYPES_H = 1
X_T_SIZE = 0
X_T_SIZE_ = 0
Linux = 1
Unix = 1
)
// POSIX names to access some of the members.
// sigevent constants. Linux version.
// Copyright (C) 1997-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// `sigev_notify' values.
const ( /* sigevent-consts.h:27:1: */
SIGEV_SIGNAL = 0 // Notify via signal.
SIGEV_NONE = 1 // Other notification: meaningless.
SIGEV_THREAD = 2 // Deliver via thread creation.
SIGEV_THREAD_ID = 4
)
// `si_code' values for SIGSEGV signal.
const ( /* siginfo-consts.h:119:1: */
SEGV_MAPERR = 1 // Address not mapped to object.
SEGV_ACCERR = 2 // Invalid permissions for mapped object.
SEGV_BNDERR = 3 // Bounds checking failure.
SEGV_PKUERR = 4 // Protection key checking failure.
SEGV_ACCADI = 5 // ADI not enabled for mapped object.
SEGV_ADIDERR = 6 // Disrupting MCD error.
SEGV_ADIPERR = 7
)
// `si_code' values for SIGBUS signal.
const ( /* siginfo-consts.h:138:1: */
BUS_ADRALN = 1 // Invalid address alignment.
BUS_ADRERR = 2 // Non-existant physical address.
BUS_OBJERR = 3 // Object specific hardware error.
BUS_MCEERR_AR = 4 // Hardware memory error: action required.
BUS_MCEERR_AO = 5
)
// `si_code' values for SIGCHLD signal.
const ( /* siginfo-consts.h:172:1: */
CLD_EXITED = 1 // Child has exited.
CLD_KILLED = 2 // Child was killed.
CLD_DUMPED = 3 // Child terminated abnormally.
CLD_TRAPPED = 4 // Traced child has trapped.
CLD_STOPPED = 5 // Child has stopped.
CLD_CONTINUED = 6
)
// `si_code' values for SIGPOLL signal.
const ( /* siginfo-consts.h:189:1: */
POLL_IN = 1 // Data input available.
POLL_OUT = 2 // Output buffers available.
POLL_MSG = 3 // Input message available.
POLL_ERR = 4 // I/O error.
POLL_PRI = 5 // High priority input available.
POLL_HUP = 6
)
// X/Open requires some more fields with fixed names.
// siginfo constants. Linux version.
// Copyright (C) 1997-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// Most of these constants are uniform across all architectures, but there
// is one exception.
// Architecture-specific adjustments to siginfo_t.
// Values for `si_code'. Positive values are reserved for kernel-generated
//
// signals.
const ( /* siginfo-consts.h:35:1: */
SI_ASYNCNL = -60 // Sent by asynch name lookup completion.
SI_DETHREAD = -7 // Sent by execve killing subsidiary
// threads.
SI_TKILL = -6 // Sent by tkill.
SI_SIGIO = -5 // Sent by queued SIGIO.
SI_ASYNCIO = -4 // Sent by AIO completion.
SI_MESGQ = -3 // Sent by real time mesq state change.
SI_TIMER = -2 // Sent by timer expiration.
SI_QUEUE = -1 // Sent by sigqueue.
SI_USER = 0 // Sent by kill, sigsend.
SI_KERNEL = 128
)
// `si_code' values for SIGILL signal.
const ( /* siginfo-consts.h:71:1: */
ILL_ILLOPC = 1 // Illegal opcode.
ILL_ILLOPN = 2 // Illegal operand.
ILL_ILLADR = 3 // Illegal addressing mode.
ILL_ILLTRP = 4 // Illegal trap.
ILL_PRVOPC = 5 // Privileged opcode.
ILL_PRVREG = 6 // Privileged register.
ILL_COPROC = 7 // Coprocessor error.
ILL_BADSTK = 8 // Internal stack error.
ILL_BADIADDR = 9
)
// `si_code' values for SIGFPE signal.
const ( /* siginfo-consts.h:94:1: */
FPE_INTDIV = 1 // Integer divide by zero.
FPE_INTOVF = 2 // Integer overflow.
FPE_FLTDIV = 3 // Floating point divide by zero.
FPE_FLTOVF = 4 // Floating point overflow.
FPE_FLTUND = 5 // Floating point underflow.
FPE_FLTRES = 6 // Floating point inexact result.
FPE_FLTINV = 7 // Floating point invalid operation.
FPE_FLTSUB = 8 // Subscript out of range.
FPE_FLTUNK = 14 // Undiagnosed floating-point exception.
FPE_CONDTRAP = 15
)
// sigstack, sigaltstack definitions.
// Copyright (C) 2015-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// Minimum stack size for a signal handler.
// System default stack size.
// ss_flags values for stack_t. Linux version.
// Copyright (C) 1998-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// Possible values for `ss_flags'.
const ( /* ss_flags.h:27:1: */
SS_ONSTACK = 1
SS_DISABLE = 2
)
// Values for the first argument to `getitimer' and `setitimer'.
const ( /* time.h:89:1: */
// Timers run in real time.
ITIMER_REAL = 0
// Timers run only when the process is executing.
ITIMER_VIRTUAL = 1
// Timers run when the process is executing and when
// the system is executing on behalf of the process.
ITIMER_PROF = 2
)
type Ptrdiff_t = int64 /* <builtin>:3:26 */
type Size_t = uint64 /* <builtin>:9:23 */
type Wchar_t = uint32 /* <builtin>:15:24 */
type X__int128_t = struct {
Flo int64
Fhi int64
} /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
type X__uint128_t = struct {
Flo uint64
Fhi uint64
} /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
type X__float128 = float64 /* <builtin>:47:21 */
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// ISO C99 Standard: 7.14 Signal handling <signal.h>
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// These are defined by the user (or the compiler)
// to specify the desired environment:
//
// __STRICT_ANSI__ ISO Standard C.
// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99.
// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11.
// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X.
// __STDC_WANT_LIB_EXT2__
// Extensions to ISO C99 from TR 27431-2:2010.
// __STDC_WANT_IEC_60559_BFP_EXT__
// Extensions to ISO C11 from TS 18661-1:2014.
// __STDC_WANT_IEC_60559_FUNCS_EXT__
// Extensions to ISO C11 from TS 18661-4:2015.
// __STDC_WANT_IEC_60559_TYPES_EXT__
// Extensions to ISO C11 from TS 18661-3:2015.
//
// _POSIX_SOURCE IEEE Std 1003.1.
// _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2;
// if >=199309L, add IEEE Std 1003.1b-1993;
// if >=199506L, add IEEE Std 1003.1c-1995;
// if >=200112L, all of IEEE 1003.1-2004
// if >=200809L, all of IEEE 1003.1-2008
// _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if
// Single Unix conformance is wanted, to 600 for the
// sixth revision, to 700 for the seventh revision.
// _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions.
// _LARGEFILE_SOURCE Some more functions for correct standard I/O.
// _LARGEFILE64_SOURCE Additional functionality from LFS for large files.
// _FILE_OFFSET_BITS=N Select default filesystem interface.
// _ATFILE_SOURCE Additional *at interfaces.
// _GNU_SOURCE All of the above, plus GNU extensions.
// _DEFAULT_SOURCE The default set of features (taking precedence over
// __STRICT_ANSI__).
//
// _FORTIFY_SOURCE Add security hardening to many library functions.
// Set to 1 or 2; 2 performs stricter checks than 1.
//
// _REENTRANT, _THREAD_SAFE
// Obsolete; equivalent to _POSIX_C_SOURCE=199506L.
//
// The `-ansi' switch to the GNU C compiler, and standards conformance
// options such as `-std=c99', define __STRICT_ANSI__. If none of
// these are defined, or if _DEFAULT_SOURCE is defined, the default is
// to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to
// 200809L, as well as enabling miscellaneous functions from BSD and
// SVID. If more than one of these are defined, they accumulate. For
// example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together
// give you ISO C, 1003.1, and 1003.2, but nothing else.
//
// These are defined by this file and are used by the
// header files to decide what to declare or define:
//
// __GLIBC_USE (F) Define things from feature set F. This is defined
// to 1 or 0; the subsequent macros are either defined
// or undefined, and those tests should be moved to
// __GLIBC_USE.
// __USE_ISOC11 Define ISO C11 things.
// __USE_ISOC99 Define ISO C99 things.
// __USE_ISOC95 Define ISO C90 AMD1 (C95) things.
// __USE_ISOCXX11 Define ISO C++11 things.
// __USE_POSIX Define IEEE Std 1003.1 things.
// __USE_POSIX2 Define IEEE Std 1003.2 things.
// __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things.
// __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things.
// __USE_XOPEN Define XPG things.
// __USE_XOPEN_EXTENDED Define X/Open Unix things.
// __USE_UNIX98 Define Single Unix V2 things.
// __USE_XOPEN2K Define XPG6 things.
// __USE_XOPEN2KXSI Define XPG6 XSI things.
// __USE_XOPEN2K8 Define XPG7 things.
// __USE_XOPEN2K8XSI Define XPG7 XSI things.
// __USE_LARGEFILE Define correct standard I/O things.
// __USE_LARGEFILE64 Define LFS things with separate names.
// __USE_FILE_OFFSET64 Define 64bit interface as default.
// __USE_MISC Define things from 4.3BSD or System V Unix.
// __USE_ATFILE Define *at interfaces and AT_* constants for them.
// __USE_GNU Define GNU extensions.
// __USE_FORTIFY_LEVEL Additional security measures used, according to level.
//
// The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are
// defined by this file unconditionally. `__GNU_LIBRARY__' is provided
// only for compatibility. All new code should use the other symbols
// to test for features.
//
// All macros listed above as possibly being defined by this file are
// explicitly undefined if they are not explicitly defined.
// Feature-test macros that are not defined by the user or compiler
// but are implied by the other feature-test macros defined (or by the
// lack of any definitions) are defined by the file.
//
// ISO C feature test macros depend on the definition of the macro
// when an affected header is included, not when the first system
// header is included, and so they are handled in
// <bits/libc-header-start.h>, which does not have a multiple include
// guard. Feature test macros that can be handled from the first
// system header included are handled here.
// Undefine everything, so we get a clean slate.
// Suppress kernel-name space pollution unless user expressedly asks
// for it.
// Convenience macro to test the version of gcc.
// Use like this:
// #if __GNUC_PREREQ (2,8)
// ... code requiring gcc 2.8 or later ...
// #endif
// Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was
// added in 2.0.
// Similarly for clang. Features added to GCC after version 4.2 may
// or may not also be available in clang, and clang's definitions of
// __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such
// features can be queried via __has_extension/__has_feature.
// Whether to use feature set F.
// _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for
// _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not
// issue a warning; the expectation is that the source is being
// transitioned to use the new macro.
// If _GNU_SOURCE was defined by the user, turn on all the other features.
// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined,
// define _DEFAULT_SOURCE.
// This is to enable the ISO C2X extension.
// This is to enable the ISO C11 extension.
// This is to enable the ISO C99 extension.
// This is to enable the ISO C90 Amendment 1:1995 extension.
// If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE
// is defined, use POSIX.1-2008 (or another version depending on
// _XOPEN_SOURCE).
// Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be
// defined in all multithreaded code. GNU libc has not required this
// for many years. We now treat them as compatibility synonyms for
// _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with
// comprehensive support for multithreaded code. Using them never
// lowers the selected level of POSIX conformance, only raises it.
// The function 'gets' existed in C89, but is impossible to use
// safely. It has been removed from ISO C11 and ISO C++14. Note: for
// compatibility with various implementations of <cstdio>, this test
// must consider only the value of __cplusplus when compiling C++.
// GNU formerly extended the scanf functions with modified format
// specifiers %as, %aS, and %a[...] that allocate a buffer for the
// input using malloc. This extension conflicts with ISO C99, which
// defines %a as a standalone format specifier that reads a floating-
// point number; moreover, POSIX.1-2008 provides the same feature
// using the modifier letter 'm' instead (%ms, %mS, %m[...]).
//
// We now follow C99 unless GNU extensions are active and the compiler
// is specifically in C89 or C++98 mode (strict or not). For
// instance, with GCC, -std=gnu11 will have C99-compliant scanf with
// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the
// old extension.
// Get definitions of __STDC_* predefined macros, if the compiler has
// not preincluded this header automatically.
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// This macro indicates that the installed library is the GNU C Library.
// For historic reasons the value now is 6 and this will stay from now
// on. The use of this variable is deprecated. Use __GLIBC__ and
// __GLIBC_MINOR__ now (see below) when you want to test for a specific
// GNU C library version and use the values in <gnu/lib-names.h> to get
// the sonames of the shared libraries.
// Major and minor version number of the GNU C library package. Use
// these macros to test for features in specific releases.
// This is here only because every header file already includes this one.
// Copyright (C) 1992-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// We are almost always included from features.h.
// The GNU libc does not support any K&R compilers or the traditional mode
// of ISO C compilers anymore. Check for some of the combinations not
// anymore supported.
// Some user header file might have defined this before.
// All functions, except those with callbacks or those that
// synchronize memory, are leaf functions.
// GCC can always grok prototypes. For C++ programs we add throw()
// to help it optimize the function calls. But this works only with
// gcc 2.8.x and egcs. For gcc 3.2 and up we even mark C functions
// as non-throwing using a function attribute since programs can use
// the -fexceptions options for C code as well.
// Compilers that are not clang may object to
// #if defined __clang__ && __has_extension(...)
// even though they do not need to evaluate the right-hand side of the &&.
// These two macros are not used in glibc anymore. They are kept here
// only because some other projects expect the macros to be defined.
// For these things, GCC behaves the ANSI way normally,
// and the non-ANSI way under -traditional.
// This is not a typedef so `const __ptr_t' does the right thing.
// C++ needs to know that types and declarations are C, not C++.
// Fortify support.
// Support for flexible arrays.
// Headers that should use flexible arrays only if they're "real"
// (e.g. only if they won't affect sizeof()) should test
// #if __glibc_c99_flexarr_available.
// __asm__ ("xyz") is used throughout the headers to rename functions
// at the assembly language level. This is wrapped by the __REDIRECT
// macro, in order to support compilers that can do this some other
// way. When compilers don't support asm-names at all, we have to do
// preprocessor tricks instead (which don't have exactly the right
// semantics, but it's the best we can do).
//
// Example:
// int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid);
//
// #elif __SOME_OTHER_COMPILER__
//
// # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias)
// GCC has various useful declarations that can be made with the
// `__attribute__' syntax. All of the ways we use this do fine if
// they are omitted for compilers that don't understand it.
// At some point during the gcc 2.96 development the `malloc' attribute
// for functions was introduced. We don't want to use it unconditionally
// (although this would be possible) since it generates warnings.
// Tell the compiler which arguments to an allocation function
// indicate the size of the allocation.
// At some point during the gcc 2.96 development the `pure' attribute
// for functions was introduced. We don't want to use it unconditionally
// (although this would be possible) since it generates warnings.
// This declaration tells the compiler that the value is constant.
// At some point during the gcc 3.1 development the `used' attribute
// for functions was introduced. We don't want to use it unconditionally
// (although this would be possible) since it generates warnings.
// Since version 3.2, gcc allows marking deprecated functions.
// Since version 4.5, gcc also allows one to specify the message printed
// when a deprecated function is used. clang claims to be gcc 4.2, but
// may also support this feature.
// At some point during the gcc 2.8 development the `format_arg' attribute
// for functions was introduced. We don't want to use it unconditionally
// (although this would be possible) since it generates warnings.
// If several `format_arg' attributes are given for the same function, in
// gcc-3.0 and older, all but the last one are ignored. In newer gccs,
// all designated arguments are considered.
// At some point during the gcc 2.97 development the `strfmon' format
// attribute for functions was introduced. We don't want to use it
// unconditionally (although this would be possible) since it
// generates warnings.
// The nonull function attribute allows to mark pointer parameters which
// must not be NULL.
// If fortification mode, we warn about unused results of certain
// function calls which can lead to problems.
// Forces a function to be always inlined.
// The Linux kernel defines __always_inline in stddef.h (283d7573), and
// it conflicts with this definition. Therefore undefine it first to
// allow either header to be included first.
// Associate error messages with the source location of the call site rather
// than with the source location inside the function.
// GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99
// inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__
// or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions
// older than 4.3 may define these macros and still not guarantee GNU inlining
// semantics.
//
// clang++ identifies itself as gcc-4.2, but has support for GNU inlining
// semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and
// __GNUC_GNU_INLINE__ macro definitions.
// GCC 4.3 and above allow passing all anonymous arguments of an
// __extern_always_inline function to some other vararg function.
// It is possible to compile containing GCC extensions even if GCC is
// run in pedantic mode if the uses are carefully marked using the
// `__extension__' keyword. But this is not generally available before
// version 2.8.
// __restrict is known in EGCS 1.2 and above.
// ISO C99 also allows to declare arrays as non-overlapping. The syntax is
// array_name[restrict]
// GCC 3.1 supports this.
// Describes a char array whose address can safely be passed as the first
// argument to strncpy and strncat, as the char array is not necessarily
// a NUL-terminated string.
// Undefine (also defined in libc-symbols.h).
// Copies attributes from the declaration or type referenced by
// the argument.
// Determine the wordsize from the preprocessor defines.
//
// Copyright (C) 2016-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// Properties of long double type. ldbl-128 version.
// Copyright (C) 2016-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// long double is distinct from double, so there is nothing to
// define here.
// __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | true |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/capi_freebsd_amd64.go | vendor/modernc.org/libc/signal/capi_freebsd_amd64.go | // Code generated by 'ccgo signal/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 signal/signal_freebsd_amd64.go -pkgname signal', DO NOT EDIT.
package signal
var CAPI = map[string]struct{}{}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/signal_freebsd_amd64.go | vendor/modernc.org/libc/signal/signal_freebsd_amd64.go | // Code generated by 'ccgo signal/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 signal/signal_freebsd_amd64.go -pkgname signal', DO NOT EDIT.
package signal
import (
"math"
"reflect"
"sync/atomic"
"unsafe"
)
var _ = math.Pi
var _ reflect.Kind
var _ atomic.Value
var _ unsafe.Pointer
const (
BUS_ADRALN = 1 // signal.h:315:1:
BUS_ADRERR = 2 // signal.h:316:1:
BUS_OBJERR = 3 // signal.h:317:1:
BUS_OOMERR = 100 // signal.h:318:1:
CLD_CONTINUED = 6 // signal.h:350:1:
CLD_DUMPED = 3 // signal.h:346:1:
CLD_EXITED = 1 // signal.h:343:1:
CLD_KILLED = 2 // signal.h:344:1:
CLD_STOPPED = 5 // signal.h:349:1:
CLD_TRAPPED = 4 // signal.h:348:1:
FPE_FLTDIV = 3 // signal.h:329:1:
FPE_FLTINV = 7 // signal.h:333:1:
FPE_FLTOVF = 4 // signal.h:330:1:
FPE_FLTRES = 6 // signal.h:332:1:
FPE_FLTSUB = 8 // signal.h:334:1:
FPE_FLTUND = 5 // signal.h:331:1:
FPE_INTDIV = 2 // signal.h:328:1:
FPE_INTOVF = 1 // signal.h:327:1:
ILL_BADSTK = 8 // signal.h:312:1:
ILL_COPROC = 7 // signal.h:311:1:
ILL_ILLADR = 3 // signal.h:307:1:
ILL_ILLOPC = 1 // signal.h:305:1:
ILL_ILLOPN = 2 // signal.h:306:1:
ILL_ILLTRP = 4 // signal.h:308:1:
ILL_PRVOPC = 5 // signal.h:309:1:
ILL_PRVREG = 6 // signal.h:310:1:
MINSIGSTKSZ = 2048 // signal.h:432:1:
NSIG = 32 // signal.h:399:1:
POLL_ERR = 4 // signal.h:356:1:
POLL_HUP = 6 // signal.h:358:1:
POLL_IN = 1 // signal.h:353:1:
POLL_MSG = 3 // signal.h:355:1:
POLL_OUT = 2 // signal.h:354:1:
POLL_PRI = 5 // signal.h:357:1:
SA_NOCLDSTOP = 0x0008 // signal.h:386:1:
SA_NOCLDWAIT = 0x0020 // signal.h:394:1:
SA_NODEFER = 0x0010 // signal.h:393:1:
SA_ONSTACK = 0x0001 // signal.h:390:1:
SA_RESETHAND = 0x0004 // signal.h:392:1:
SA_RESTART = 0x0002 // signal.h:391:1:
SA_SIGINFO = 0x0040 // signal.h:395:1:
SEGV_ACCERR = 2 // signal.h:322:1:
SEGV_MAPERR = 1 // signal.h:321:1:
SEGV_PKUERR = 100 // signal.h:324:1:
SIGABRT = 6 // signal.h:81:1:
SIGALRM = 14 // signal.h:99:1:
SIGBUS = 10 // signal.h:91:1:
SIGCHLD = 20 // signal.h:109:1:
SIGCONT = 19 // signal.h:108:1:
SIGEMT = 7 // signal.h:84:1:
SIGEV_KEVENT = 3 // signal.h:222:1:
SIGEV_NONE = 0 // signal.h:218:1:
SIGEV_SIGNAL = 1 // signal.h:219:1:
SIGEV_THREAD = 2 // signal.h:220:1:
SIGEV_THREAD_ID = 4 // signal.h:223:1:
SIGFPE = 8 // signal.h:86:1:
SIGHUP = 1 // signal.h:71:1:
SIGILL = 4 // signal.h:77:1:
SIGINFO = 29 // signal.h:124:1:
SIGINT = 2 // signal.h:73:1:
SIGIO = 23 // signal.h:114:1:
SIGIOT = 6 // signal.h:83:1:
SIGKILL = 9 // signal.h:88:1:
SIGLIBRT = 33 // signal.h:133:1:
SIGLWP = 32 // signal.h:132:1:
SIGPIPE = 13 // signal.h:98:1:
SIGPROF = 27 // signal.h:120:1:
SIGQUIT = 3 // signal.h:75:1:
SIGRTMAX = 126 // signal.h:137:1:
SIGRTMIN = 65 // signal.h:136:1:
SIGSEGV = 11 // signal.h:93:1:
SIGSTKSZ = 34816 // signal.h:433:1:
SIGSTOP = 17 // signal.h:106:1:
SIGSYS = 12 // signal.h:95:1:
SIGTERM = 15 // signal.h:101:1:
SIGTHR = 32 // signal.h:131:1:
SIGTRAP = 5 // signal.h:79:1:
SIGTSTP = 18 // signal.h:107:1:
SIGTTIN = 21 // signal.h:110:1:
SIGTTOU = 22 // signal.h:111:1:
SIGURG = 16 // signal.h:103:1:
SIGUSR1 = 30 // signal.h:127:1:
SIGUSR2 = 31 // signal.h:128:1:
SIGVTALRM = 26 // signal.h:119:1:
SIGWINCH = 28 // signal.h:123:1:
SIGXCPU = 24 // signal.h:117:1:
SIGXFSZ = 25 // signal.h:118:1:
SIG_BLOCK = 1 // signal.h:501:1:
SIG_SETMASK = 3 // signal.h:503:1:
SIG_UNBLOCK = 2 // signal.h:502:1:
SI_ASYNCIO = 0x10004 // signal.h:408:1:
SI_KERNEL = 0x10006 // signal.h:412:1:
SI_LWP = 0x10007 // signal.h:413:1:
SI_MESGQ = 0x10005 // signal.h:410:1:
SI_NOINFO = 0 // signal.h:403:1:
SI_QUEUE = 0x10002 // signal.h:405:1:
SI_TIMER = 0x10003 // signal.h:406:1:
SI_UNDEFINED = 0 // signal.h:416:1:
SI_USER = 0x10001 // signal.h:404:1:
SS_DISABLE = 0x0004 // signal.h:431:1:
SS_ONSTACK = 0x0001 // signal.h:430:1:
SV_INTERRUPT = 2 // signal.h:459:1:
SV_NOCLDSTOP = 8 // signal.h:462:1:
SV_NODEFER = 16 // signal.h:461:1:
SV_ONSTACK = 1 // signal.h:458:1:
SV_RESETHAND = 4 // signal.h:460:1:
SV_SIGINFO = 64 // signal.h:463:1:
TRAP_BRKPT = 1 // signal.h:337:1:
TRAP_CAP = 4 // signal.h:340:1:
TRAP_DTRACE = 3 // signal.h:339:1:
TRAP_TRACE = 2 // signal.h:338:1:
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_LP64 = 1 // <predefined>:1:1:
X_MACHINE__LIMITS_H_ = 0 // _limits.h:36:1:
X_MACHINE__TYPES_H_ = 0 // _types.h:42:1:
X_MC_FLAG_MASK = 7 // ucontext.h:104:1:
X_MC_FPFMT_NODEV = 0x10000 // ucontext.h:145:1:
X_MC_FPFMT_XMM = 0x10002 // ucontext.h:146:1:
X_MC_FPOWNED_FPU = 0x20001 // ucontext.h:149:1:
X_MC_FPOWNED_NONE = 0x20000 // ucontext.h:148:1:
X_MC_FPOWNED_PCB = 0x20002 // ucontext.h:150:1:
X_MC_HASBASES = 0x2 // ucontext.h:102:1:
X_MC_HASFPXSTATE = 0x4 // ucontext.h:103:1:
X_MC_HASSEGS = 0x1 // ucontext.h:101:1:
X_Nonnull = 0 // cdefs.h:790:1:
X_Null_unspecified = 0 // cdefs.h:792:1:
X_Nullable = 0 // cdefs.h:791:1:
X_PID_T_DECLARED = 0 // signal.h:61:1:
X_PTHREAD_T_DECLARED = 0 // _pthreadtypes.h:68:1:
X_SIGNAL_H_ = 0 // signal.h:36:1:
X_SIGSET_T_DECLARED = 0 // signal.h:165:1:
X_SIG_MAXSIG = 128 // _sigset.h:47:1:
X_SIG_WORDS = 4 // _sigset.h:46:1:
X_SIZE_T_DECLARED = 0 // signal.h:57:1:
X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1:
X_SYS_SIGNAL_H_ = 0 // signal.h:41:1:
X_SYS__PTHREADTYPES_H_ = 0 // _pthreadtypes.h:39:1:
X_SYS__SIGSET_H_ = 0 // _sigset.h:41:1:
X_SYS__TIMESPEC_H_ = 0 // _timespec.h:37:1:
X_SYS__TYPES_H_ = 0 // _types.h:32:1:
X_SYS__UCONTEXT_H_ = 0 // _ucontext.h:34:1:
X_TIME_T_DECLARED = 0 // _timespec.h:43:1:
X_UID_T_DECLARED = 0 // signal.h:62:1:
X_X86_SIGNAL_H = 1 // signal.h:37:1:
X_X86_UCONTEXT_H_ = 0 // ucontext.h:35:1:
Unix = 1 // <predefined>:340:1:
)
type Ptrdiff_t = int64 /* <builtin>:3:26 */
type Size_t = uint64 /* <builtin>:9:23 */
type Wchar_t = int32 /* <builtin>:15:24 */
type X__int128_t = struct {
Flo int64
Fhi int64
} /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
type X__uint128_t = struct {
Flo uint64
Fhi uint64
} /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
type X__float128 = float64 /* <builtin>:47:21 */
// -
// SPDX-License-Identifier: BSD-3-Clause
//
// Copyright (c) 1991, 1993
// The Regents of the University of California. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// @(#)signal.h 8.3 (Berkeley) 3/30/94
// $FreeBSD$
// -
// SPDX-License-Identifier: BSD-3-Clause
//
// Copyright (c) 1991, 1993
// The Regents of the University of California. All rights reserved.
//
// This code is derived from software contributed to Berkeley by
// Berkeley Software Design, Inc.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// @(#)cdefs.h 8.8 (Berkeley) 1/9/95
// $FreeBSD$
// Testing against Clang-specific extensions.
// This code has been put in place to help reduce the addition of
// compiler specific defines in FreeBSD code. It helps to aid in
// having a compiler-agnostic source tree.
// Compiler memory barriers, specific to gcc and clang.
// XXX: if __GNUC__ >= 2: not tested everywhere originally, where replaced
// Macro to test if we're using a specific version of gcc or later.
// The __CONCAT macro is used to concatenate parts of symbol names, e.g.
// with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo.
// The __CONCAT macro is a bit tricky to use if it must work in non-ANSI
// mode -- there must be no spaces between its arguments, and for nested
// __CONCAT's, all the __CONCAT's must be at the left. __CONCAT can also
// concatenate double-quoted strings produced by the __STRING macro, but
// this only works with ANSI C.
//
// __XSTRING is like __STRING, but it expands any macros in its argument
// first. It is only available with ANSI C.
// Compiler-dependent macros to help declare dead (non-returning) and
// pure (no side effects) functions, and unused variables. They are
// null except for versions of gcc that are known to support the features
// properly (old versions of gcc-2 supported the dead and pure features
// in a different (wrong) way). If we do not provide an implementation
// for a given compiler, let the compile fail if it is told to use
// a feature that we cannot live without.
// Keywords added in C11.
// Emulation of C11 _Generic(). Unlike the previously defined C11
// keywords, it is not possible to implement this using exactly the same
// syntax. Therefore implement something similar under the name
// __generic(). Unlike _Generic(), this macro can only distinguish
// between a single type, so it requires nested invocations to
// distinguish multiple cases.
// C99 Static array indices in function parameter declarations. Syntax such as:
// void bar(int myArray[static 10]);
// is allowed in C99 but not in C++. Define __min_size appropriately so
// headers using it can be compiled in either language. Use like this:
// void bar(int myArray[__min_size(10)]);
// XXX: should use `#if __STDC_VERSION__ < 199901'.
// C++11 exposes a load of C99 stuff
// GCC 2.95 provides `__restrict' as an extension to C90 to support the
// C99-specific `restrict' type qualifier. We happen to use `__restrict' as
// a way to define the `restrict' type qualifier without disturbing older
// software that is unaware of C99 keywords.
// GNU C version 2.96 adds explicit branch prediction so that
// the CPU back-end can hint the processor and also so that
// code blocks can be reordered such that the predicted path
// sees a more linear flow, thus improving cache behavior, etc.
//
// The following two macros provide us with a way to utilize this
// compiler feature. Use __predict_true() if you expect the expression
// to evaluate to true, and __predict_false() if you expect the
// expression to evaluate to false.
//
// A few notes about usage:
//
// * Generally, __predict_false() error condition checks (unless
// you have some _strong_ reason to do otherwise, in which case
// document it), and/or __predict_true() `no-error' condition
// checks, assuming you want to optimize for the no-error case.
//
// * Other than that, if you don't know the likelihood of a test
// succeeding from empirical or other `hard' evidence, don't
// make predictions.
//
// * These are meant to be used in places that are run `a lot'.
// It is wasteful to make predictions in code that is run
// seldomly (e.g. at subsystem initialization time) as the
// basic block reordering that this affects can often generate
// larger code.
// We define this here since <stddef.h>, <sys/queue.h>, and <sys/types.h>
// require it.
// Given the pointer x to the member m of the struct s, return
// a pointer to the containing structure. When using GCC, we first
// assign pointer x to a local variable, to check that its type is
// compatible with member m.
// Compiler-dependent macros to declare that functions take printf-like
// or scanf-like arguments. They are null except for versions of gcc
// that are known to support the features properly (old versions of gcc-2
// didn't permit keeping the keywords out of the application namespace).
// Compiler-dependent macros that rely on FreeBSD-specific extensions.
// Embed the rcs id of a source file in the resulting library. Note that in
// more recent ELF binutils, we use .ident allowing the ID to be stripped.
// Usage:
// __FBSDID("$FreeBSD$");
// -
// The following definitions are an extension of the behavior originally
// implemented in <sys/_posix.h>, but with a different level of granularity.
// POSIX.1 requires that the macros we test be defined before any standard
// header file is included.
//
// Here's a quick run-down of the versions:
// defined(_POSIX_SOURCE) 1003.1-1988
// _POSIX_C_SOURCE == 1 1003.1-1990
// _POSIX_C_SOURCE == 2 1003.2-1992 C Language Binding Option
// _POSIX_C_SOURCE == 199309 1003.1b-1993
// _POSIX_C_SOURCE == 199506 1003.1c-1995, 1003.1i-1995,
// and the omnibus ISO/IEC 9945-1: 1996
// _POSIX_C_SOURCE == 200112 1003.1-2001
// _POSIX_C_SOURCE == 200809 1003.1-2008
//
// In addition, the X/Open Portability Guide, which is now the Single UNIX
// Specification, defines a feature-test macro which indicates the version of
// that specification, and which subsumes _POSIX_C_SOURCE.
//
// Our macros begin with two underscores to avoid namespace screwage.
// Deal with IEEE Std. 1003.1-1990, in which _POSIX_C_SOURCE == 1.
// Deal with IEEE Std. 1003.2-1992, in which _POSIX_C_SOURCE == 2.
// Deal with various X/Open Portability Guides and Single UNIX Spec.
// Deal with all versions of POSIX. The ordering relative to the tests above is
// important.
// -
// Deal with _ANSI_SOURCE:
// If it is defined, and no other compilation environment is explicitly
// requested, then define our internal feature-test macros to zero. This
// makes no difference to the preprocessor (undefined symbols in preprocessing
// expressions are defined to have value zero), but makes it more convenient for
// a test program to print out the values.
//
// If a program mistakenly defines _ANSI_SOURCE and some other macro such as
// _POSIX_C_SOURCE, we will assume that it wants the broader compilation
// environment (and in fact we will never get here).
// User override __EXT1_VISIBLE
// Old versions of GCC use non-standard ARM arch symbols; acle-compat.h
// translates them to __ARM_ARCH and the modern feature symbols defined by ARM.
// Nullability qualifiers: currently only supported by Clang.
// Type Safety Checking
//
// Clang provides additional attributes to enable checking type safety
// properties that cannot be enforced by the C type system.
// Lock annotations.
//
// Clang provides support for doing basic thread-safety tests at
// compile-time, by marking which locks will/should be held when
// entering/leaving a functions.
//
// Furthermore, it is also possible to annotate variables and structure
// members to enforce that they are only accessed when certain locks are
// held.
// Structure implements a lock.
// Function acquires an exclusive or shared lock.
// Function attempts to acquire an exclusive or shared lock.
// Function releases a lock.
// Function asserts that an exclusive or shared lock is held.
// Function requires that an exclusive or shared lock is or is not held.
// Function should not be analyzed.
// Function or variable should not be sanitized, e.g., by AddressSanitizer.
// GCC has the nosanitize attribute, but as a function attribute only, and
// warns on use as a variable attribute.
// Guard variables and structure members by lock.
// Alignment builtins for better type checking and improved code generation.
// Provide fallback versions for other compilers (GCC/Clang < 10):
// -
// SPDX-License-Identifier: BSD-2-Clause-FreeBSD
//
// Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
//
// THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// $FreeBSD$
// -
// SPDX-License-Identifier: BSD-3-Clause
//
// Copyright (c) 1991, 1993
// The Regents of the University of California. All rights reserved.
//
// This code is derived from software contributed to Berkeley by
// Berkeley Software Design, Inc.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// @(#)cdefs.h 8.8 (Berkeley) 1/9/95
// $FreeBSD$
// -
// This file is in the public domain.
// $FreeBSD$
// -
// SPDX-License-Identifier: BSD-4-Clause
//
// Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
// Copyright (c) 1990, 1993
// The Regents of the University of California. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. All advertising materials mentioning features or use of this software
// must display the following acknowledgement:
// This product includes software developed by the University of
// California, Berkeley and its contributors.
// 4. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// From: @(#)ansi.h 8.2 (Berkeley) 1/4/94
// From: @(#)types.h 8.3 (Berkeley) 1/5/94
// $FreeBSD$
// -
// This file is in the public domain.
// $FreeBSD$
// -
// SPDX-License-Identifier: BSD-3-Clause
//
// Copyright (c) 1988, 1993
// The Regents of the University of California. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// @(#)limits.h 8.3 (Berkeley) 1/4/94
// $FreeBSD$
// According to ANSI (section 2.2.4.2), the values below must be usable by
// #if preprocessing directives. Additionally, the expression must have the
// same type as would an expression that is an object of the corresponding
// type converted according to the integral promotions. The subtraction for
// INT_MIN, etc., is so the value is not unsigned; e.g., 0x80000000 is an
// unsigned int for 32-bit two's complement ANSI compilers (section 3.1.3.2).
// max value for an unsigned long long
// Quads and longs are the same on the amd64. Ensure they stay in sync.
// Minimum signal stack size.
// Basic types upon which most other types are built.
type X__int8_t = int8 /* _types.h:55:22 */
type X__uint8_t = uint8 /* _types.h:56:24 */
type X__int16_t = int16 /* _types.h:57:17 */
type X__uint16_t = uint16 /* _types.h:58:25 */
type X__int32_t = int32 /* _types.h:59:15 */
type X__uint32_t = uint32 /* _types.h:60:23 */
type X__int64_t = int64 /* _types.h:62:16 */
type X__uint64_t = uint64 /* _types.h:63:24 */
// Standard type definitions.
type X__clock_t = X__int32_t /* _types.h:75:19 */ // clock()...
type X__critical_t = X__int64_t /* _types.h:76:19 */
type X__double_t = float64 /* _types.h:78:17 */
type X__float_t = float32 /* _types.h:79:16 */
type X__intfptr_t = X__int64_t /* _types.h:81:19 */
type X__intptr_t = X__int64_t /* _types.h:82:19 */
type X__intmax_t = X__int64_t /* _types.h:93:19 */
type X__int_fast8_t = X__int32_t /* _types.h:94:19 */
type X__int_fast16_t = X__int32_t /* _types.h:95:19 */
type X__int_fast32_t = X__int32_t /* _types.h:96:19 */
type X__int_fast64_t = X__int64_t /* _types.h:97:19 */
type X__int_least8_t = X__int8_t /* _types.h:98:18 */
type X__int_least16_t = X__int16_t /* _types.h:99:19 */
type X__int_least32_t = X__int32_t /* _types.h:100:19 */
type X__int_least64_t = X__int64_t /* _types.h:101:19 */
type X__ptrdiff_t = X__int64_t /* _types.h:103:19 */ // ptr1 - ptr2
type X__register_t = X__int64_t /* _types.h:104:19 */
type X__segsz_t = X__int64_t /* _types.h:105:19 */ // segment size (in pages)
type X__size_t = X__uint64_t /* _types.h:106:20 */ // sizeof()
type X__ssize_t = X__int64_t /* _types.h:107:19 */ // byte count or error
type X__time_t = X__int64_t /* _types.h:108:19 */ // time()...
type X__uintfptr_t = X__uint64_t /* _types.h:109:20 */
type X__uintptr_t = X__uint64_t /* _types.h:110:20 */
type X__uintmax_t = X__uint64_t /* _types.h:121:20 */
type X__uint_fast8_t = X__uint32_t /* _types.h:122:20 */
type X__uint_fast16_t = X__uint32_t /* _types.h:123:20 */
type X__uint_fast32_t = X__uint32_t /* _types.h:124:20 */
type X__uint_fast64_t = X__uint64_t /* _types.h:125:20 */
type X__uint_least8_t = X__uint8_t /* _types.h:126:19 */
type X__uint_least16_t = X__uint16_t /* _types.h:127:20 */
type X__uint_least32_t = X__uint32_t /* _types.h:128:20 */
type X__uint_least64_t = X__uint64_t /* _types.h:129:20 */
type X__u_register_t = X__uint64_t /* _types.h:131:20 */
type X__vm_offset_t = X__uint64_t /* _types.h:132:20 */
type X__vm_paddr_t = X__uint64_t /* _types.h:133:20 */
type X__vm_size_t = X__uint64_t /* _types.h:134:20 */
type X___wchar_t = int32 /* _types.h:141:14 */
// Standard type definitions.
type X__blksize_t = X__int32_t /* _types.h:40:19 */ // file block size
type X__blkcnt_t = X__int64_t /* _types.h:41:19 */ // file block count
type X__clockid_t = X__int32_t /* _types.h:42:19 */ // clock_gettime()...
type X__fflags_t = X__uint32_t /* _types.h:43:20 */ // file flags
type X__fsblkcnt_t = X__uint64_t /* _types.h:44:20 */
type X__fsfilcnt_t = X__uint64_t /* _types.h:45:20 */
type X__gid_t = X__uint32_t /* _types.h:46:20 */
type X__id_t = X__int64_t /* _types.h:47:19 */ // can hold a gid_t, pid_t, or uid_t
type X__ino_t = X__uint64_t /* _types.h:48:20 */ // inode number
type X__key_t = int64 /* _types.h:49:15 */ // IPC key (for Sys V IPC)
type X__lwpid_t = X__int32_t /* _types.h:50:19 */ // Thread ID (a.k.a. LWP)
type X__mode_t = X__uint16_t /* _types.h:51:20 */ // permissions
type X__accmode_t = int32 /* _types.h:52:14 */ // access permissions
type X__nl_item = int32 /* _types.h:53:14 */
type X__nlink_t = X__uint64_t /* _types.h:54:20 */ // link count
type X__off_t = X__int64_t /* _types.h:55:19 */ // file offset
type X__off64_t = X__int64_t /* _types.h:56:19 */ // file offset (alias)
type X__pid_t = X__int32_t /* _types.h:57:19 */ // process [group]
type X__rlim_t = X__int64_t /* _types.h:58:19 */ // resource limit - intentionally
// signed, because of legacy code
// that uses -1 for RLIM_INFINITY
type X__sa_family_t = X__uint8_t /* _types.h:61:19 */
type X__socklen_t = X__uint32_t /* _types.h:62:20 */
type X__suseconds_t = int64 /* _types.h:63:15 */ // microseconds (signed)
type X__timer_t = uintptr /* _types.h:64:24 */ // timer_gettime()...
type X__mqd_t = uintptr /* _types.h:65:21 */ // mq_open()...
type X__uid_t = X__uint32_t /* _types.h:66:20 */
type X__useconds_t = uint32 /* _types.h:67:22 */ // microseconds (unsigned)
type X__cpuwhich_t = int32 /* _types.h:68:14 */ // which parameter for cpuset.
type X__cpulevel_t = int32 /* _types.h:69:14 */ // level parameter for cpuset.
type X__cpusetid_t = int32 /* _types.h:70:14 */ // cpuset identifier.
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | true |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/signal_linux_amd64.go | vendor/modernc.org/libc/signal/signal_linux_amd64.go | // Code generated by 'ccgo signal/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 signal/signal_linux_amd64.go -pkgname signal', DO NOT EDIT.
package signal
import (
"math"
"reflect"
"sync/atomic"
"unsafe"
)
var _ = math.Pi
var _ reflect.Kind
var _ atomic.Value
var _ unsafe.Pointer
const (
FP_XSTATE_MAGIC1 = 0x46505853 // sigcontext.h:27:1:
FP_XSTATE_MAGIC2 = 0x46505845 // sigcontext.h:28:1:
MINSIGSTKSZ = 2048 // sigstack.h:27:1:
NGREG = 23 // ucontext.h:42:1:
NSIG = 65 // signal.h:181:1:
SA_INTERRUPT = 0x20000000 // sigaction.h:70:1:
SA_NOCLDSTOP = 1 // sigaction.h:56:1:
SA_NOCLDWAIT = 2 // sigaction.h:57:1:
SA_NODEFER = 0x40000000 // sigaction.h:65:1:
SA_NOMASK = 1073741824 // sigaction.h:73:1:
SA_ONESHOT = 2147483648 // sigaction.h:74:1:
SA_ONSTACK = 0x08000000 // sigaction.h:61:1:
SA_RESETHAND = 0x80000000 // sigaction.h:67:1:
SA_RESTART = 0x10000000 // sigaction.h:64:1:
SA_SIGINFO = 4 // sigaction.h:58:1:
SA_STACK = 134217728 // sigaction.h:75:1:
SIGABRT = 6 // signum-generic.h:50:1:
SIGALRM = 14 // signum-generic.h:63:1:
SIGBUS = 7 // signum.h:35:1:
SIGCHLD = 17 // signum.h:41:1:
SIGCLD = 17 // signum-generic.h:88:1:
SIGCONT = 18 // signum.h:43:1:
SIGFPE = 8 // signum-generic.h:51:1:
SIGHUP = 1 // signum-generic.h:56:1:
SIGILL = 4 // signum-generic.h:49:1:
SIGINT = 2 // signum-generic.h:48:1:
SIGIO = 29 // signum-generic.h:86:1:
SIGIOT = 6 // signum-generic.h:87:1:
SIGKILL = 9 // signum-generic.h:59:1:
SIGPIPE = 13 // signum-generic.h:62:1:
SIGPOLL = 29 // signum.h:51:1:
SIGPROF = 27 // signum-generic.h:77:1:
SIGPWR = 30 // signum.h:32:1:
SIGQUIT = 3 // signum-generic.h:57:1:
SIGSEGV = 11 // signum-generic.h:52:1:
SIGSTKFLT = 16 // signum.h:31:1:
SIGSTKSZ = 8192 // sigstack.h:30:1:
SIGSTOP = 19 // signum.h:45:1:
SIGSYS = 31 // signum.h:53:1:
SIGTERM = 15 // signum-generic.h:53:1:
SIGTRAP = 5 // signum-generic.h:58:1:
SIGTSTP = 20 // signum.h:47:1:
SIGTTIN = 21 // signum-generic.h:71:1:
SIGTTOU = 22 // signum-generic.h:72:1:
SIGURG = 23 // signum.h:49:1:
SIGUSR1 = 10 // signum.h:37:1:
SIGUSR2 = 12 // signum.h:39:1:
SIGVTALRM = 26 // signum-generic.h:76:1:
SIGWINCH = 28 // signum-generic.h:83:1:
SIGXCPU = 24 // signum-generic.h:74:1:
SIGXFSZ = 25 // signum-generic.h:75:1:
SIG_BLOCK = 0 // sigaction.h:79:1:
SIG_SETMASK = 2 // sigaction.h:81:1:
SIG_UNBLOCK = 1 // sigaction.h:80:1:
X_ATFILE_SOURCE = 1 // features.h:342:1:
X_BITS_ENDIANNESS_H = 1 // endianness.h:2:1:
X_BITS_ENDIAN_H = 1 // endian.h:20:1:
X_BITS_PTHREADTYPES_ARCH_H = 1 // pthreadtypes-arch.h:19:1:
X_BITS_PTHREADTYPES_COMMON_H = 1 // pthreadtypes.h:20:1:
X_BITS_SIGACTION_H = 1 // sigaction.h:20:1:
X_BITS_SIGCONTEXT_H = 1 // sigcontext.h:19:1:
X_BITS_SIGEVENT_CONSTS_H = 1 // sigevent-consts.h:20:1:
X_BITS_SIGINFO_ARCH_H = 1 // siginfo-arch.h:3:1:
X_BITS_SIGINFO_CONSTS_H = 1 // siginfo-consts.h:20:1:
X_BITS_SIGNUM_GENERIC_H = 1 // signum-generic.h:20:1:
X_BITS_SIGNUM_H = 1 // signum.h:20:1:
X_BITS_SIGSTACK_H = 1 // sigstack.h:20:1:
X_BITS_SIGTHREAD_H = 1 // sigthread.h:20:1:
X_BITS_SS_FLAGS_H = 1 // ss_flags.h:20:1:
X_BITS_TIME64_H = 1 // time64.h:24:1:
X_BITS_TYPESIZES_H = 1 // typesizes.h:24:1:
X_BITS_TYPES_H = 1 // types.h:24:1:
X_BSD_SIZE_T_ = 0 // stddef.h:189:1:
X_BSD_SIZE_T_DEFINED_ = 0 // stddef.h:192:1:
X_DEFAULT_SOURCE = 1 // features.h:227:1:
X_FEATURES_H = 1 // features.h:19:1:
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_GCC_SIZE_T = 0 // stddef.h:195:1:
X_LP64 = 1 // <predefined>:284:1:
X_NSIG = 65 // signum-generic.h:100:1:
X_POSIX_C_SOURCE = 200809 // features.h:281:1:
X_POSIX_SOURCE = 1 // features.h:279:1:
X_RWLOCK_INTERNAL_H = 0 // struct_rwlock.h:21:1:
X_SIGNAL_H = 0 // signal.h:23:1:
X_SIZET_ = 0 // stddef.h:196:1:
X_SIZE_T = 0 // stddef.h:183:1:
X_SIZE_T_ = 0 // stddef.h:188:1:
X_SIZE_T_DECLARED = 0 // stddef.h:193:1:
X_SIZE_T_DEFINED = 0 // stddef.h:191:1:
X_SIZE_T_DEFINED_ = 0 // stddef.h:190:1:
X_STDC_PREDEF_H = 1 // <predefined>:162:1:
X_STRUCT_TIMESPEC = 1 // struct_timespec.h:3:1:
X_SYS_CDEFS_H = 1 // cdefs.h:19:1:
X_SYS_SIZE_T_H = 0 // stddef.h:184:1:
X_SYS_UCONTEXT_H = 1 // ucontext.h:19:1:
X_THREAD_MUTEX_INTERNAL_H = 1 // struct_mutex.h:20:1:
X_THREAD_SHARED_TYPES_H = 1 // thread-shared-types.h:20:1:
X_T_SIZE = 0 // stddef.h:186:1:
X_T_SIZE_ = 0 // stddef.h:185:1:
Linux = 1 // <predefined>:231:1:
Unix = 1 // <predefined>:177:1:
)
// POSIX names to access some of the members.
// sigevent constants. Linux version.
// Copyright (C) 1997-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// `sigev_notify' values.
const ( /* sigevent-consts.h:27:1: */
SIGEV_SIGNAL = 0 // Notify via signal.
SIGEV_NONE = 1 // Other notification: meaningless.
SIGEV_THREAD = 2 // Deliver via thread creation.
SIGEV_THREAD_ID = 4
)
// `si_code' values for SIGSEGV signal.
const ( /* siginfo-consts.h:119:1: */
SEGV_MAPERR = 1 // Address not mapped to object.
SEGV_ACCERR = 2 // Invalid permissions for mapped object.
SEGV_BNDERR = 3 // Bounds checking failure.
SEGV_PKUERR = 4 // Protection key checking failure.
SEGV_ACCADI = 5 // ADI not enabled for mapped object.
SEGV_ADIDERR = 6 // Disrupting MCD error.
SEGV_ADIPERR = 7
)
// `si_code' values for SIGBUS signal.
const ( /* siginfo-consts.h:138:1: */
BUS_ADRALN = 1 // Invalid address alignment.
BUS_ADRERR = 2 // Non-existant physical address.
BUS_OBJERR = 3 // Object specific hardware error.
BUS_MCEERR_AR = 4 // Hardware memory error: action required.
BUS_MCEERR_AO = 5
)
// `si_code' values for SIGCHLD signal.
const ( /* siginfo-consts.h:172:1: */
CLD_EXITED = 1 // Child has exited.
CLD_KILLED = 2 // Child was killed.
CLD_DUMPED = 3 // Child terminated abnormally.
CLD_TRAPPED = 4 // Traced child has trapped.
CLD_STOPPED = 5 // Child has stopped.
CLD_CONTINUED = 6
)
// `si_code' values for SIGPOLL signal.
const ( /* siginfo-consts.h:189:1: */
POLL_IN = 1 // Data input available.
POLL_OUT = 2 // Output buffers available.
POLL_MSG = 3 // Input message available.
POLL_ERR = 4 // I/O error.
POLL_PRI = 5 // High priority input available.
POLL_HUP = 6
)
// X/Open requires some more fields with fixed names.
// siginfo constants. Linux version.
// Copyright (C) 1997-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// Most of these constants are uniform across all architectures, but there
// is one exception.
// Architecture-specific adjustments to siginfo_t. x86 version.
// Values for `si_code'. Positive values are reserved for kernel-generated
//
// signals.
const ( /* siginfo-consts.h:35:1: */
SI_ASYNCNL = -60 // Sent by asynch name lookup completion.
SI_DETHREAD = -7 // Sent by execve killing subsidiary
// threads.
SI_TKILL = -6 // Sent by tkill.
SI_SIGIO = -5 // Sent by queued SIGIO.
SI_ASYNCIO = -4 // Sent by AIO completion.
SI_MESGQ = -3 // Sent by real time mesq state change.
SI_TIMER = -2 // Sent by timer expiration.
SI_QUEUE = -1 // Sent by sigqueue.
SI_USER = 0 // Sent by kill, sigsend.
SI_KERNEL = 128
)
// `si_code' values for SIGILL signal.
const ( /* siginfo-consts.h:71:1: */
ILL_ILLOPC = 1 // Illegal opcode.
ILL_ILLOPN = 2 // Illegal operand.
ILL_ILLADR = 3 // Illegal addressing mode.
ILL_ILLTRP = 4 // Illegal trap.
ILL_PRVOPC = 5 // Privileged opcode.
ILL_PRVREG = 6 // Privileged register.
ILL_COPROC = 7 // Coprocessor error.
ILL_BADSTK = 8 // Internal stack error.
ILL_BADIADDR = 9
)
// `si_code' values for SIGFPE signal.
const ( /* siginfo-consts.h:94:1: */
FPE_INTDIV = 1 // Integer divide by zero.
FPE_INTOVF = 2 // Integer overflow.
FPE_FLTDIV = 3 // Floating point divide by zero.
FPE_FLTOVF = 4 // Floating point overflow.
FPE_FLTUND = 5 // Floating point underflow.
FPE_FLTRES = 6 // Floating point inexact result.
FPE_FLTINV = 7 // Floating point invalid operation.
FPE_FLTSUB = 8 // Subscript out of range.
FPE_FLTUNK = 14 // Undiagnosed floating-point exception.
FPE_CONDTRAP = 15
)
// sigstack, sigaltstack definitions.
// Copyright (C) 1998-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// Minimum stack size for a signal handler.
// System default stack size.
// ss_flags values for stack_t. Linux version.
// Copyright (C) 1998-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// Possible values for `ss_flags'.
const ( /* ss_flags.h:27:1: */
SS_ONSTACK = 1
SS_DISABLE = 2
)
type Ptrdiff_t = int64 /* <builtin>:3:26 */
type Size_t = uint64 /* <builtin>:9:23 */
type Wchar_t = int32 /* <builtin>:15:24 */
type X__int128_t = struct {
Flo int64
Fhi int64
} /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
type X__uint128_t = struct {
Flo uint64
Fhi uint64
} /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
type X__float128 = float64 /* <builtin>:47:21 */
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// ISO C99 Standard: 7.14 Signal handling <signal.h>
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// These are defined by the user (or the compiler)
// to specify the desired environment:
//
// __STRICT_ANSI__ ISO Standard C.
// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99.
// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11.
// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X.
// __STDC_WANT_LIB_EXT2__
// Extensions to ISO C99 from TR 27431-2:2010.
// __STDC_WANT_IEC_60559_BFP_EXT__
// Extensions to ISO C11 from TS 18661-1:2014.
// __STDC_WANT_IEC_60559_FUNCS_EXT__
// Extensions to ISO C11 from TS 18661-4:2015.
// __STDC_WANT_IEC_60559_TYPES_EXT__
// Extensions to ISO C11 from TS 18661-3:2015.
//
// _POSIX_SOURCE IEEE Std 1003.1.
// _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2;
// if >=199309L, add IEEE Std 1003.1b-1993;
// if >=199506L, add IEEE Std 1003.1c-1995;
// if >=200112L, all of IEEE 1003.1-2004
// if >=200809L, all of IEEE 1003.1-2008
// _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if
// Single Unix conformance is wanted, to 600 for the
// sixth revision, to 700 for the seventh revision.
// _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions.
// _LARGEFILE_SOURCE Some more functions for correct standard I/O.
// _LARGEFILE64_SOURCE Additional functionality from LFS for large files.
// _FILE_OFFSET_BITS=N Select default filesystem interface.
// _ATFILE_SOURCE Additional *at interfaces.
// _GNU_SOURCE All of the above, plus GNU extensions.
// _DEFAULT_SOURCE The default set of features (taking precedence over
// __STRICT_ANSI__).
//
// _FORTIFY_SOURCE Add security hardening to many library functions.
// Set to 1 or 2; 2 performs stricter checks than 1.
//
// _REENTRANT, _THREAD_SAFE
// Obsolete; equivalent to _POSIX_C_SOURCE=199506L.
//
// The `-ansi' switch to the GNU C compiler, and standards conformance
// options such as `-std=c99', define __STRICT_ANSI__. If none of
// these are defined, or if _DEFAULT_SOURCE is defined, the default is
// to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to
// 200809L, as well as enabling miscellaneous functions from BSD and
// SVID. If more than one of these are defined, they accumulate. For
// example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together
// give you ISO C, 1003.1, and 1003.2, but nothing else.
//
// These are defined by this file and are used by the
// header files to decide what to declare or define:
//
// __GLIBC_USE (F) Define things from feature set F. This is defined
// to 1 or 0; the subsequent macros are either defined
// or undefined, and those tests should be moved to
// __GLIBC_USE.
// __USE_ISOC11 Define ISO C11 things.
// __USE_ISOC99 Define ISO C99 things.
// __USE_ISOC95 Define ISO C90 AMD1 (C95) things.
// __USE_ISOCXX11 Define ISO C++11 things.
// __USE_POSIX Define IEEE Std 1003.1 things.
// __USE_POSIX2 Define IEEE Std 1003.2 things.
// __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things.
// __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things.
// __USE_XOPEN Define XPG things.
// __USE_XOPEN_EXTENDED Define X/Open Unix things.
// __USE_UNIX98 Define Single Unix V2 things.
// __USE_XOPEN2K Define XPG6 things.
// __USE_XOPEN2KXSI Define XPG6 XSI things.
// __USE_XOPEN2K8 Define XPG7 things.
// __USE_XOPEN2K8XSI Define XPG7 XSI things.
// __USE_LARGEFILE Define correct standard I/O things.
// __USE_LARGEFILE64 Define LFS things with separate names.
// __USE_FILE_OFFSET64 Define 64bit interface as default.
// __USE_MISC Define things from 4.3BSD or System V Unix.
// __USE_ATFILE Define *at interfaces and AT_* constants for them.
// __USE_GNU Define GNU extensions.
// __USE_FORTIFY_LEVEL Additional security measures used, according to level.
//
// The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are
// defined by this file unconditionally. `__GNU_LIBRARY__' is provided
// only for compatibility. All new code should use the other symbols
// to test for features.
//
// All macros listed above as possibly being defined by this file are
// explicitly undefined if they are not explicitly defined.
// Feature-test macros that are not defined by the user or compiler
// but are implied by the other feature-test macros defined (or by the
// lack of any definitions) are defined by the file.
//
// ISO C feature test macros depend on the definition of the macro
// when an affected header is included, not when the first system
// header is included, and so they are handled in
// <bits/libc-header-start.h>, which does not have a multiple include
// guard. Feature test macros that can be handled from the first
// system header included are handled here.
// Undefine everything, so we get a clean slate.
// Suppress kernel-name space pollution unless user expressedly asks
// for it.
// Convenience macro to test the version of gcc.
// Use like this:
// #if __GNUC_PREREQ (2,8)
// ... code requiring gcc 2.8 or later ...
// #endif
// Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was
// added in 2.0.
// Similarly for clang. Features added to GCC after version 4.2 may
// or may not also be available in clang, and clang's definitions of
// __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such
// features can be queried via __has_extension/__has_feature.
// Whether to use feature set F.
// _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for
// _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not
// issue a warning; the expectation is that the source is being
// transitioned to use the new macro.
// If _GNU_SOURCE was defined by the user, turn on all the other features.
// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined,
// define _DEFAULT_SOURCE.
// This is to enable the ISO C2X extension.
// This is to enable the ISO C11 extension.
// This is to enable the ISO C99 extension.
// This is to enable the ISO C90 Amendment 1:1995 extension.
// If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE
// is defined, use POSIX.1-2008 (or another version depending on
// _XOPEN_SOURCE).
// Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be
// defined in all multithreaded code. GNU libc has not required this
// for many years. We now treat them as compatibility synonyms for
// _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with
// comprehensive support for multithreaded code. Using them never
// lowers the selected level of POSIX conformance, only raises it.
// The function 'gets' existed in C89, but is impossible to use
// safely. It has been removed from ISO C11 and ISO C++14. Note: for
// compatibility with various implementations of <cstdio>, this test
// must consider only the value of __cplusplus when compiling C++.
// GNU formerly extended the scanf functions with modified format
// specifiers %as, %aS, and %a[...] that allocate a buffer for the
// input using malloc. This extension conflicts with ISO C99, which
// defines %a as a standalone format specifier that reads a floating-
// point number; moreover, POSIX.1-2008 provides the same feature
// using the modifier letter 'm' instead (%ms, %mS, %m[...]).
//
// We now follow C99 unless GNU extensions are active and the compiler
// is specifically in C89 or C++98 mode (strict or not). For
// instance, with GCC, -std=gnu11 will have C99-compliant scanf with
// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the
// old extension.
// Get definitions of __STDC_* predefined macros, if the compiler has
// not preincluded this header automatically.
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// This macro indicates that the installed library is the GNU C Library.
// For historic reasons the value now is 6 and this will stay from now
// on. The use of this variable is deprecated. Use __GLIBC__ and
// __GLIBC_MINOR__ now (see below) when you want to test for a specific
// GNU C library version and use the values in <gnu/lib-names.h> to get
// the sonames of the shared libraries.
// Major and minor version number of the GNU C library package. Use
// these macros to test for features in specific releases.
// This is here only because every header file already includes this one.
// Copyright (C) 1992-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// We are almost always included from features.h.
// The GNU libc does not support any K&R compilers or the traditional mode
// of ISO C compilers anymore. Check for some of the combinations not
// anymore supported.
// Some user header file might have defined this before.
// All functions, except those with callbacks or those that
// synchronize memory, are leaf functions.
// GCC can always grok prototypes. For C++ programs we add throw()
// to help it optimize the function calls. But this works only with
// gcc 2.8.x and egcs. For gcc 3.2 and up we even mark C functions
// as non-throwing using a function attribute since programs can use
// the -fexceptions options for C code as well.
// Compilers that are not clang may object to
// #if defined __clang__ && __has_extension(...)
// even though they do not need to evaluate the right-hand side of the &&.
// These two macros are not used in glibc anymore. They are kept here
// only because some other projects expect the macros to be defined.
// For these things, GCC behaves the ANSI way normally,
// and the non-ANSI way under -traditional.
// This is not a typedef so `const __ptr_t' does the right thing.
// C++ needs to know that types and declarations are C, not C++.
// Fortify support.
// Support for flexible arrays.
// Headers that should use flexible arrays only if they're "real"
// (e.g. only if they won't affect sizeof()) should test
// #if __glibc_c99_flexarr_available.
// __asm__ ("xyz") is used throughout the headers to rename functions
// at the assembly language level. This is wrapped by the __REDIRECT
// macro, in order to support compilers that can do this some other
// way. When compilers don't support asm-names at all, we have to do
// preprocessor tricks instead (which don't have exactly the right
// semantics, but it's the best we can do).
//
// Example:
// int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid);
//
// #elif __SOME_OTHER_COMPILER__
//
// # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias)
// GCC has various useful declarations that can be made with the
// `__attribute__' syntax. All of the ways we use this do fine if
// they are omitted for compilers that don't understand it.
// At some point during the gcc 2.96 development the `malloc' attribute
// for functions was introduced. We don't want to use it unconditionally
// (although this would be possible) since it generates warnings.
// Tell the compiler which arguments to an allocation function
// indicate the size of the allocation.
// At some point during the gcc 2.96 development the `pure' attribute
// for functions was introduced. We don't want to use it unconditionally
// (although this would be possible) since it generates warnings.
// This declaration tells the compiler that the value is constant.
// At some point during the gcc 3.1 development the `used' attribute
// for functions was introduced. We don't want to use it unconditionally
// (although this would be possible) since it generates warnings.
// Since version 3.2, gcc allows marking deprecated functions.
// Since version 4.5, gcc also allows one to specify the message printed
// when a deprecated function is used. clang claims to be gcc 4.2, but
// may also support this feature.
// At some point during the gcc 2.8 development the `format_arg' attribute
// for functions was introduced. We don't want to use it unconditionally
// (although this would be possible) since it generates warnings.
// If several `format_arg' attributes are given for the same function, in
// gcc-3.0 and older, all but the last one are ignored. In newer gccs,
// all designated arguments are considered.
// At some point during the gcc 2.97 development the `strfmon' format
// attribute for functions was introduced. We don't want to use it
// unconditionally (although this would be possible) since it
// generates warnings.
// The nonull function attribute allows to mark pointer parameters which
// must not be NULL.
// If fortification mode, we warn about unused results of certain
// function calls which can lead to problems.
// Forces a function to be always inlined.
// The Linux kernel defines __always_inline in stddef.h (283d7573), and
// it conflicts with this definition. Therefore undefine it first to
// allow either header to be included first.
// Associate error messages with the source location of the call site rather
// than with the source location inside the function.
// GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99
// inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__
// or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions
// older than 4.3 may define these macros and still not guarantee GNU inlining
// semantics.
//
// clang++ identifies itself as gcc-4.2, but has support for GNU inlining
// semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and
// __GNUC_GNU_INLINE__ macro definitions.
// GCC 4.3 and above allow passing all anonymous arguments of an
// __extern_always_inline function to some other vararg function.
// It is possible to compile containing GCC extensions even if GCC is
// run in pedantic mode if the uses are carefully marked using the
// `__extension__' keyword. But this is not generally available before
// version 2.8.
// __restrict is known in EGCS 1.2 and above.
// ISO C99 also allows to declare arrays as non-overlapping. The syntax is
// array_name[restrict]
// GCC 3.1 supports this.
// Describes a char array whose address can safely be passed as the first
// argument to strncpy and strncat, as the char array is not necessarily
// a NUL-terminated string.
// Undefine (also defined in libc-symbols.h).
// Copies attributes from the declaration or type referenced by
// the argument.
// Determine the wordsize from the preprocessor defines.
// Both x86-64 and x32 use the 64-bit system call interface.
// Properties of long double type. ldbl-96 version.
// Copyright (C) 2016-2020 Free Software Foundation, Inc.
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | true |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/capi_openbsd_amd64.go | vendor/modernc.org/libc/signal/capi_openbsd_amd64.go | // Code generated by 'ccgo signal/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 signal/signal_openbsd_amd64.go -pkgname signal', DO NOT EDIT.
package signal
var CAPI = map[string]struct{}{}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/more_openbsd_386.go | vendor/modernc.org/libc/signal/more_openbsd_386.go | // Copyright 2020 The Libc Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package signal
const (
// sys/sys/signal.h:139:#define SIG_DFL ((__sighandler_t *)0)
SIG_DFL = 0
// sys/sys/signal.h:140:#define SIG_IGN ((__sighandler_t *)1)
SIG_IGN = 1
)
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/capi_illumos_amd64.go | vendor/modernc.org/libc/signal/capi_illumos_amd64.go | // Code generated by 'ccgo signal/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 signal/signal_illumos_amd64.go -pkgname signal', DO NOT EDIT.
package signal
var CAPI = map[string]struct{}{}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/more_linux_riscv64.go | vendor/modernc.org/libc/signal/more_linux_riscv64.go | // Copyright 2020 The Libc Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package signal
const (
// /usr/include/asm-generic/signal-defs.h:24:#define SIG_DFL ((__sighandler_t)0) /* default signal handling */
SIG_DFL = 0
// /usr/include/asm-generic/signal-defs.h:25:#define SIG_IGN ((__sighandler_t)1) /* ignore signal */
SIG_IGN = 1
)
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/signal_openbsd_arm64.go | vendor/modernc.org/libc/signal/signal_openbsd_arm64.go | // Code generated by 'ccgo signal/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 signal/signal_openbsd_arm64.go -pkgname signal', DO NOT EDIT.
package signal
import (
"math"
"reflect"
"sync/atomic"
"unsafe"
)
var _ = math.Pi
var _ reflect.Kind
var _ atomic.Value
var _ unsafe.Pointer
const (
BIG_ENDIAN = 4321 // endian.h:45:1:
BUS_ADRALN = 1 // siginfo.h:83:1:
BUS_ADRERR = 2 // siginfo.h:84:1:
BUS_OBJERR = 3 // siginfo.h:85:1:
BYTE_ORDER = 1234 // endian.h:47:1:
CLD_CONTINUED = 6 // siginfo.h:105:1:
CLD_DUMPED = 3 // siginfo.h:102:1:
CLD_EXITED = 1 // siginfo.h:100:1:
CLD_KILLED = 2 // siginfo.h:101:1:
CLD_STOPPED = 5 // siginfo.h:104:1:
CLD_TRAPPED = 4 // siginfo.h:103:1:
CLK_TCK = 100 // time.h:68:1:
CLOCKS_PER_SEC = 100 // time.h:71:1:
CLOCK_BOOTTIME = 6 // _time.h:40:1:
CLOCK_MONOTONIC = 3 // _time.h:37:1:
CLOCK_PROCESS_CPUTIME_ID = 2 // _time.h:36:1:
CLOCK_REALTIME = 0 // _time.h:35:1:
CLOCK_THREAD_CPUTIME_ID = 4 // _time.h:38:1:
CLOCK_UPTIME = 5 // _time.h:39:1:
DST_AUST = 2 // time.h:78:1:
DST_CAN = 6 // time.h:82:1:
DST_EET = 5 // time.h:81:1:
DST_MET = 4 // time.h:80:1:
DST_NONE = 0 // time.h:76:1:
DST_USA = 1 // time.h:77:1:
DST_WET = 3 // time.h:79:1:
EMT_TAGOVF = 1 // siginfo.h:66:1:
FD_SETSIZE = 1024 // select.h:62:1:
FPE_FLTDIV = 3 // siginfo.h:71:1:
FPE_FLTINV = 7 // siginfo.h:75:1:
FPE_FLTOVF = 4 // siginfo.h:72:1:
FPE_FLTRES = 6 // siginfo.h:74:1:
FPE_FLTSUB = 8 // siginfo.h:76:1:
FPE_FLTUND = 5 // siginfo.h:73:1:
FPE_INTDIV = 1 // siginfo.h:69:1:
FPE_INTOVF = 2 // siginfo.h:70:1:
ILL_BADSTK = 8 // siginfo.h:63:1:
ILL_COPROC = 7 // siginfo.h:62:1:
ILL_ILLADR = 3 // siginfo.h:58:1:
ILL_ILLOPC = 1 // siginfo.h:56:1:
ILL_ILLOPN = 2 // siginfo.h:57:1:
ILL_ILLTRP = 4 // siginfo.h:59:1:
ILL_PRVOPC = 5 // siginfo.h:60:1:
ILL_PRVREG = 6 // siginfo.h:61:1:
ITIMER_PROF = 2 // time.h:146:1:
ITIMER_REAL = 0 // time.h:144:1:
ITIMER_VIRTUAL = 1 // time.h:145:1:
LITTLE_ENDIAN = 1234 // endian.h:44:1:
MINSIGSTKSZ = 12288 // signal.h:183:1:
NBBY = 8 // select.h:111:1:
NSIG = 33 // signal.h:48:1:
NSIGBUS = 3 // siginfo.h:86:1:
NSIGCLD = 6 // siginfo.h:106:1:
NSIGEMT = 1 // siginfo.h:67:1:
NSIGFPE = 8 // siginfo.h:77:1:
NSIGILL = 8 // siginfo.h:64:1:
NSIGSEGV = 2 // siginfo.h:81:1:
NSIGTRAP = 2 // siginfo.h:95:1:
PDP_ENDIAN = 3412 // endian.h:46:1:
SA_NOCLDSTOP = 0x0008 // signal.h:132:1:
SA_NOCLDWAIT = 0x0020 // signal.h:130:1:
SA_NODEFER = 0x0010 // signal.h:129:1:
SA_ONSTACK = 0x0001 // signal.h:126:1:
SA_RESETHAND = 0x0004 // signal.h:128:1:
SA_RESTART = 0x0002 // signal.h:127:1:
SA_SIGINFO = 0x0040 // signal.h:134:1:
SEGV_ACCERR = 2 // siginfo.h:80:1:
SEGV_MAPERR = 1 // siginfo.h:79:1:
SIGABRT = 6 // signal.h:56:1:
SIGALRM = 14 // signal.h:67:1:
SIGBUS = 10 // signal.h:63:1:
SIGCHLD = 20 // signal.h:73:1:
SIGCONT = 19 // signal.h:72:1:
SIGEMT = 7 // signal.h:59:1:
SIGFPE = 8 // signal.h:61:1:
SIGHUP = 1 // signal.h:51:1:
SIGILL = 4 // signal.h:54:1:
SIGINFO = 29 // signal.h:85:1:
SIGINT = 2 // signal.h:52:1:
SIGIO = 23 // signal.h:77:1:
SIGIOT = 6 // signal.h:58:1:
SIGKILL = 9 // signal.h:62:1:
SIGPIPE = 13 // signal.h:66:1:
SIGPROF = 27 // signal.h:82:1:
SIGQUIT = 3 // signal.h:53:1:
SIGSEGV = 11 // signal.h:64:1:
SIGSTKSZ = 28672 // signal.h:185:1:
SIGSTOP = 17 // signal.h:70:1:
SIGSYS = 12 // signal.h:65:1:
SIGTERM = 15 // signal.h:68:1:
SIGTHR = 32 // signal.h:90:1:
SIGTRAP = 5 // signal.h:55:1:
SIGTSTP = 18 // signal.h:71:1:
SIGTTIN = 21 // signal.h:74:1:
SIGTTOU = 22 // signal.h:75:1:
SIGURG = 16 // signal.h:69:1:
SIGUSR1 = 30 // signal.h:87:1:
SIGUSR2 = 31 // signal.h:88:1:
SIGVTALRM = 26 // signal.h:81:1:
SIGWINCH = 28 // signal.h:84:1:
SIGXCPU = 24 // signal.h:79:1:
SIGXFSZ = 25 // signal.h:80:1:
SIG_BLOCK = 1 // signal.h:140:1:
SIG_SETMASK = 3 // signal.h:142:1:
SIG_UNBLOCK = 2 // signal.h:141:1:
SI_LWP = -1 // siginfo.h:47:1:
SI_MAXSZ = 128 // siginfo.h:127:1:
SI_NOINFO = 32767 // siginfo.h:45:1:
SI_QUEUE = -2 // siginfo.h:48:1:
SI_TIMER = -3 // siginfo.h:49:1:
SI_USER = 0 // siginfo.h:46:1:
SS_DISABLE = 0x0004 // signal.h:182:1:
SS_ONSTACK = 0x0001 // signal.h:181:1:
SV_INTERRUPT = 2 // signal.h:158:1:
SV_ONSTACK = 1 // signal.h:157:1:
SV_RESETHAND = 4 // signal.h:159:1:
TIMER_ABSTIME = 0x1 // _time.h:62:1:
TIMER_RELTIME = 0x0 // _time.h:61:1:
TIME_UTC = 1 // time.h:179:1:
TRAP_BRKPT = 1 // siginfo.h:93:1:
TRAP_TRACE = 2 // siginfo.h:94:1:
X_BIG_ENDIAN = 4321 // _endian.h:43:1:
X_BYTE_ORDER = 1234 // endian.h:60:1:
X_CLOCKID_T_DEFINED_ = 0 // types.h:162:1:
X_CLOCK_T_DEFINED_ = 0 // types.h:157:1:
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_INT16_T_DEFINED_ = 0 // types.h:84:1:
X_INT32_T_DEFINED_ = 0 // types.h:94:1:
X_INT64_T_DEFINED_ = 0 // types.h:104:1:
X_INT8_T_DEFINED_ = 0 // types.h:74:1:
X_LITTLE_ENDIAN = 1234 // _endian.h:42:1:
X_LOCALE_T_DEFINED_ = 0 // time.h:106:1:
X_LP64 = 1 // <predefined>:1:1:
X_MACHINE_CDEFS_H_ = 0 // cdefs.h:4:1:
X_MACHINE_ENDIAN_H_ = 0 // endian.h:20:1:
X_MACHINE_SIGNAL_H_ = 0 // signal.h:37:1:
X_MACHINE__TYPES_H_ = 0 // _types.h:35:1:
X_MAX_PAGE_SHIFT = 12 // _types.h:57:1:
X_NSIG = 33 // signal.h:45:1:
X_OFF_T_DEFINED_ = 0 // types.h:192:1:
X_PDP_ENDIAN = 3412 // _endian.h:44:1:
X_PID_T_DEFINED_ = 0 // types.h:167:1:
X_QUAD_HIGHWORD = 1 // _endian.h:95:1:
X_QUAD_LOWWORD = 0 // _endian.h:96:1:
X_RET_PROTECTOR = 1 // <predefined>:2:1:
X_SELECT_DEFINED_ = 0 // select.h:126:1:
X_SIGSET_T_DEFINED_ = 0 // signal.h:103:1:
X_SIZE_T_DEFINED_ = 0 // types.h:172:1:
X_SSIZE_T_DEFINED_ = 0 // types.h:177:1:
X_STACKALIGNBYTES = 15 // _types.h:54:1:
X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1:
X_SYS_ENDIAN_H_ = 0 // endian.h:38:1:
X_SYS_SELECT_H_ = 0 // select.h:35:1:
X_SYS_SIGINFO_H = 0 // siginfo.h:29:1:
X_SYS_SIGNAL_H_ = 0 // signal.h:41:1:
X_SYS_TIME_H_ = 0 // time.h:36:1:
X_SYS_TYPES_H_ = 0 // types.h:41:1:
X_SYS__ENDIAN_H_ = 0 // _endian.h:34:1:
X_SYS__TIME_H_ = 0 // _time.h:33:1:
X_SYS__TYPES_H_ = 0 // _types.h:35:1:
X_TIMER_T_DEFINED_ = 0 // types.h:187:1:
X_TIMESPEC_DECLARED = 0 // select.h:48:1:
X_TIMEVAL_DECLARED = 0 // select.h:40:1:
X_TIME_H_ = 0 // time.h:42:1:
X_TIME_T_DEFINED_ = 0 // types.h:182:1:
X_UINT16_T_DEFINED_ = 0 // types.h:89:1:
X_UINT32_T_DEFINED_ = 0 // types.h:99:1:
X_UINT64_T_DEFINED_ = 0 // types.h:109:1:
X_UINT8_T_DEFINED_ = 0 // types.h:79:1:
X_USER_SIGNAL_H = 0 // signal.h:36:1:
Unix = 1 // <predefined>:360:1:
)
type Ptrdiff_t = int64 /* <builtin>:3:26 */
type Size_t = uint64 /* <builtin>:9:23 */
type Wchar_t = int32 /* <builtin>:15:24 */
type X__int128_t = struct {
Flo int64
Fhi int64
} /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
type X__uint128_t = struct {
Flo uint64
Fhi uint64
} /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
type X__float128 = float64 /* <builtin>:47:21 */
// $OpenBSD: signal.h,v 1.26 2018/05/30 13:20:38 bluhm Exp $
// $NetBSD: signal.h,v 1.8 1996/02/29 00:04:57 jtc Exp $
// -
// Copyright (c) 1991, 1993
// The Regents of the University of California. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// @(#)signal.h 8.3 (Berkeley) 3/30/94
// $OpenBSD: signal.h,v 1.29 2018/04/18 16:05:20 deraadt Exp $
// $NetBSD: signal.h,v 1.21 1996/02/09 18:25:32 christos Exp $
// Copyright (c) 1982, 1986, 1989, 1991, 1993
// The Regents of the University of California. All rights reserved.
// (c) UNIX System Laboratories, Inc.
// All or some portions of this file are derived from material licensed
// to the University of California by American Telephone and Telegraph
// Co. or Unix System Laboratories, Inc. and are reproduced herein with
// the permission of UNIX System Laboratories, Inc.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// @(#)signal.h 8.2 (Berkeley) 1/21/94
// $OpenBSD: signal.h,v 1.2 2017/03/12 17:57:12 kettenis Exp $
// Copyright (c) 1992, 1993
// The Regents of the University of California. All rights reserved.
//
// This code is derived from software contributed to Berkeley by
// Ralph Campbell.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// @(#)signal.h 8.1 (Berkeley) 6/10/93
// $OpenBSD: cdefs.h,v 1.43 2018/10/29 17:10:40 guenther Exp $
// $NetBSD: cdefs.h,v 1.16 1996/04/03 20:46:39 christos Exp $
// Copyright (c) 1991, 1993
// The Regents of the University of California. All rights reserved.
//
// This code is derived from software contributed to Berkeley by
// Berkeley Software Design, Inc.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// @(#)cdefs.h 8.7 (Berkeley) 1/21/94
// $OpenBSD: cdefs.h,v 1.1 2016/12/17 23:38:33 patrick Exp $
// Macro to test if we're using a specific version of gcc or later.
// The __CONCAT macro is used to concatenate parts of symbol names, e.g.
// with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo.
// The __CONCAT macro is a bit tricky -- make sure you don't put spaces
// in between its arguments. Do not use __CONCAT on double-quoted strings,
// such as those from the __STRING macro: to concatenate strings just put
// them next to each other.
// GCC1 and some versions of GCC2 declare dead (non-returning) and
// pure (no side effects) functions using "volatile" and "const";
// unfortunately, these then cause warnings under "-ansi -pedantic".
// GCC >= 2.5 uses the __attribute__((attrs)) style. All of these
// work for GNU C++ (modulo a slight glitch in the C++ grammar in
// the distribution version of 2.5.5).
// __returns_twice makes the compiler not assume the function
// only returns once. This affects registerisation of variables:
// even local variables need to be in memory across such a call.
// Example: setjmp()
// __only_inline makes the compiler only use this function definition
// for inlining; references that can't be inlined will be left as
// external references instead of generating a local copy. The
// matching library should include a simple extern definition for
// the function to handle those references. c.f. ctype.h
// GNU C version 2.96 adds explicit branch prediction so that
// the CPU back-end can hint the processor and also so that
// code blocks can be reordered such that the predicted path
// sees a more linear flow, thus improving cache behavior, etc.
//
// The following two macros provide us with a way to utilize this
// compiler feature. Use __predict_true() if you expect the expression
// to evaluate to true, and __predict_false() if you expect the
// expression to evaluate to false.
//
// A few notes about usage:
//
// * Generally, __predict_false() error condition checks (unless
// you have some _strong_ reason to do otherwise, in which case
// document it), and/or __predict_true() `no-error' condition
// checks, assuming you want to optimize for the no-error case.
//
// * Other than that, if you don't know the likelihood of a test
// succeeding from empirical or other `hard' evidence, don't
// make predictions.
//
// * These are meant to be used in places that are run `a lot'.
// It is wasteful to make predictions in code that is run
// seldomly (e.g. at subsystem initialization time) as the
// basic block reordering that this affects can often generate
// larger code.
// Delete pseudo-keywords wherever they are not available or needed.
// The __packed macro indicates that a variable or structure members
// should have the smallest possible alignment, despite any host CPU
// alignment requirements.
//
// The __aligned(x) macro specifies the minimum alignment of a
// variable or structure.
//
// These macros together are useful for describing the layout and
// alignment of messages exchanged with hardware or other systems.
// "The nice thing about standards is that there are so many to choose from."
// There are a number of "feature test macros" specified by (different)
// standards that determine which interfaces and types the header files
// should expose.
//
// Because of inconsistencies in these macros, we define our own
// set in the private name space that end in _VISIBLE. These are
// always defined and so headers can test their values easily.
// Things can get tricky when multiple feature macros are defined.
// We try to take the union of all the features requested.
//
// The following macros are guaranteed to have a value after cdefs.h
// has been included:
// __POSIX_VISIBLE
// __XPG_VISIBLE
// __ISO_C_VISIBLE
// __BSD_VISIBLE
// X/Open Portability Guides and Single Unix Specifications.
// _XOPEN_SOURCE XPG3
// _XOPEN_SOURCE && _XOPEN_VERSION = 4 XPG4
// _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED = 1 XPG4v2
// _XOPEN_SOURCE == 500 XPG5
// _XOPEN_SOURCE == 520 XPG5v2
// _XOPEN_SOURCE == 600 POSIX 1003.1-2001 with XSI
// _XOPEN_SOURCE == 700 POSIX 1003.1-2008 with XSI
//
// The XPG spec implies a specific value for _POSIX_C_SOURCE.
// POSIX macros, these checks must follow the XOPEN ones above.
//
// _POSIX_SOURCE == 1 1003.1-1988 (superseded by _POSIX_C_SOURCE)
// _POSIX_C_SOURCE == 1 1003.1-1990
// _POSIX_C_SOURCE == 2 1003.2-1992
// _POSIX_C_SOURCE == 199309L 1003.1b-1993
// _POSIX_C_SOURCE == 199506L 1003.1c-1995, 1003.1i-1995,
// and the omnibus ISO/IEC 9945-1:1996
// _POSIX_C_SOURCE == 200112L 1003.1-2001
// _POSIX_C_SOURCE == 200809L 1003.1-2008
//
// The POSIX spec implies a specific value for __ISO_C_VISIBLE, though
// this may be overridden by the _ISOC99_SOURCE macro later.
// _ANSI_SOURCE means to expose ANSI C89 interfaces only.
// If the user defines it in addition to one of the POSIX or XOPEN
// macros, assume the POSIX/XOPEN macro(s) should take precedence.
// _ISOC99_SOURCE, _ISOC11_SOURCE, __STDC_VERSION__, and __cplusplus
// override any of the other macros since they are non-exclusive.
// Finally deal with BSD-specific interfaces that are not covered
// by any standards. We expose these when none of the POSIX or XPG
// macros is defined or if the user explicitly asks for them.
// Default values.
type Sig_atomic_t = int32 /* signal.h:41:13 */
// Information pushed on stack when a signal is delivered.
// This is used by the kernel to restore state following
// execution of the signal handler. It is also made available
// to the handler to allow it to restore state properly if
// a non-standard exit is performed.
type Sigcontext = struct {
F__sc_unused int32
Fsc_mask int32
Fsc_sp uint64
Fsc_lr uint64
Fsc_elr uint64
Fsc_spsr uint64
Fsc_x [30]uint64
Fsc_cookie int64
} /* signal.h:51:1 */
// Language spec says we must list exactly one parameter, even though we
// actually supply three. Ugh!
type Sigset_t = uint32 /* signal.h:104:22 */
// $OpenBSD: siginfo.h,v 1.12 2017/04/07 04:48:44 guenther Exp $
// Copyright (c) 1997 Theo de Raadt
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
//
// THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
// OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
// IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
// NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
// THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// $OpenBSD: cdefs.h,v 1.43 2018/10/29 17:10:40 guenther Exp $
// $NetBSD: cdefs.h,v 1.16 1996/04/03 20:46:39 christos Exp $
// Copyright (c) 1991, 1993
// The Regents of the University of California. All rights reserved.
//
// This code is derived from software contributed to Berkeley by
// Berkeley Software Design, Inc.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// @(#)cdefs.h 8.7 (Berkeley) 1/21/94
type Sigval = struct {
F__ccgo_pad1 [0]uint64
Fsival_int int32
F__ccgo_pad2 [4]byte
} /* siginfo.h:33:1 */
// Negative signal codes are reserved for future use for
// user generated signals.
// The machine dependent signal codes (SIGILL, SIGFPE,
// SIGSEGV, and SIGBUS)
// SIGTRAP signal codes
// SIGCHLD signal codes
// $OpenBSD: time.h,v 1.62 2022/07/23 22:58:51 cheloha Exp $
// $NetBSD: time.h,v 1.18 1996/04/23 10:29:33 mycroft Exp $
// Copyright (c) 1982, 1986, 1993
// The Regents of the University of California. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// @(#)time.h 8.2 (Berkeley) 7/10/94
// $OpenBSD: select.h,v 1.17 2016/09/12 19:41:20 guenther Exp $
// -
// Copyright (c) 1992, 1993
// The Regents of the University of California. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// @(#)select.h 8.2 (Berkeley) 1/4/94
// $OpenBSD: types.h,v 1.49 2022/08/06 13:31:13 semarie Exp $
// $NetBSD: types.h,v 1.29 1996/11/15 22:48:25 jtc Exp $
// -
// Copyright (c) 1982, 1986, 1991, 1993
// The Regents of the University of California. All rights reserved.
// (c) UNIX System Laboratories, Inc.
// All or some portions of this file are derived from material licensed
// to the University of California by American Telephone and Telegraph
// Co. or Unix System Laboratories, Inc. and are reproduced herein with
// the permission of UNIX System Laboratories, Inc.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// @(#)types.h 8.4 (Berkeley) 1/21/94
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | true |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/capi_darwin_arm64.go | vendor/modernc.org/libc/signal/capi_darwin_arm64.go | // Code generated by 'ccgo signal/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 signal/signal_darwin_arm64.go -pkgname signal', DO NOT EDIT.
package signal
var CAPI = map[string]struct{}{
"__darwin_check_fd_set_overflow": {},
"__sigbits": {},
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/capi_linux_arm.go | vendor/modernc.org/libc/signal/capi_linux_arm.go | // Code generated by 'ccgo signal/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o signal/signal_linux_arm.go -pkgname signal', DO NOT EDIT.
package signal
var CAPI = map[string]struct{}{}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/more_freebsd_386.go | vendor/modernc.org/libc/signal/more_freebsd_386.go | // Copyright 2020 The Libc Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package signal
const (
// sys/sys/signal.h:139:#define SIG_DFL ((__sighandler_t *)0)
SIG_DFL = 0
// sys/sys/signal.h:140:#define SIG_IGN ((__sighandler_t *)1)
SIG_IGN = 1
)
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/capi_freebsd_arm.go | vendor/modernc.org/libc/signal/capi_freebsd_arm.go | // Code generated by 'ccgo signal/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 signal/signal_freebsd_arm.go -pkgname signal', DO NOT EDIT.
package signal
var CAPI = map[string]struct{}{}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/signal_netbsd_arm.go | vendor/modernc.org/libc/signal/signal_netbsd_arm.go | // Code generated by 'ccgo signal/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 signal/signal_netbsd_arm.go -pkgname signal', DO NOT EDIT.
package signal
import (
"math"
"reflect"
"sync/atomic"
"unsafe"
)
var _ = math.Pi
var _ reflect.Kind
var _ atomic.Value
var _ unsafe.Pointer
const (
BIG_ENDIAN = 4321 // endian.h:101:1:
BUS_ADRALN = 1 // siginfo.h:239:1:
BUS_ADRERR = 2 // siginfo.h:240:1:
BUS_OBJERR = 3 // siginfo.h:241:1:
BYTE_ORDER = 1234 // endian.h:103:1:
CLD_CONTINUED = 6 // siginfo.h:261:1:
CLD_DUMPED = 3 // siginfo.h:257:1:
CLD_EXITED = 1 // siginfo.h:254:1:
CLD_KILLED = 2 // siginfo.h:255:1:
CLD_STOPPED = 5 // siginfo.h:260:1:
CLD_TRAPPED = 4 // siginfo.h:259:1:
FD_SETSIZE = 256 // fd_set.h:59:1:
FPE_FLTDIV = 3 // siginfo.h:227:1:
FPE_FLTINV = 7 // siginfo.h:231:1:
FPE_FLTOVF = 4 // siginfo.h:228:1:
FPE_FLTRES = 6 // siginfo.h:230:1:
FPE_FLTSUB = 8 // siginfo.h:232:1:
FPE_FLTUND = 5 // siginfo.h:229:1:
FPE_INTDIV = 1 // siginfo.h:225:1:
FPE_INTOVF = 2 // siginfo.h:226:1:
ILL_BADSTK = 8 // siginfo.h:222:1:
ILL_COPROC = 7 // siginfo.h:221:1:
ILL_ILLADR = 3 // siginfo.h:217:1:
ILL_ILLOPC = 1 // siginfo.h:215:1:
ILL_ILLOPN = 2 // siginfo.h:216:1:
ILL_ILLTRP = 4 // siginfo.h:218:1:
ILL_PRVOPC = 5 // siginfo.h:219:1:
ILL_PRVREG = 6 // siginfo.h:220:1:
INT16_MAX = 32767 // common_int_limits.h:53:1:
INT16_MIN = -32768 // common_int_limits.h:47:1:
INT32_MAX = 2147483647 // common_int_limits.h:54:1:
INT32_MIN = -2147483648 // common_int_limits.h:48:1:
INT64_MAX = 9223372036854775807 // common_int_limits.h:55:1:
INT64_MIN = -9223372036854775808 // common_int_limits.h:49:1:
INT8_MAX = 127 // common_int_limits.h:52:1:
INT8_MIN = -128 // common_int_limits.h:46:1:
INTMAX_MAX = 9223372036854775807 // common_int_limits.h:111:1:
INTMAX_MIN = -9223372036854775808 // common_int_limits.h:110:1:
INTPTR_MAX = 2147483647 // common_int_limits.h:105:1:
INTPTR_MIN = -2147483648 // common_int_limits.h:104:1:
INT_FAST16_MAX = 2147483647 // common_int_limits.h:93:1:
INT_FAST16_MIN = -2147483648 // common_int_limits.h:87:1:
INT_FAST32_MAX = 2147483647 // common_int_limits.h:94:1:
INT_FAST32_MIN = -2147483648 // common_int_limits.h:88:1:
INT_FAST64_MAX = 9223372036854775807 // common_int_limits.h:95:1:
INT_FAST64_MIN = -9223372036854775808 // common_int_limits.h:89:1:
INT_FAST8_MAX = 2147483647 // common_int_limits.h:92:1:
INT_FAST8_MIN = -2147483648 // common_int_limits.h:86:1:
INT_LEAST16_MAX = 32767 // common_int_limits.h:73:1:
INT_LEAST16_MIN = -32768 // common_int_limits.h:67:1:
INT_LEAST32_MAX = 2147483647 // common_int_limits.h:74:1:
INT_LEAST32_MIN = -2147483648 // common_int_limits.h:68:1:
INT_LEAST64_MAX = 9223372036854775807 // common_int_limits.h:75:1:
INT_LEAST64_MIN = -9223372036854775808 // common_int_limits.h:69:1:
INT_LEAST8_MAX = 127 // common_int_limits.h:72:1:
INT_LEAST8_MIN = -128 // common_int_limits.h:66:1:
LITTLE_ENDIAN = 1234 // endian.h:100:1:
MINSIGSTKSZ = 8192 // signal.h:189:1:
NBBY = 8 // types.h:316:1:
NFDBITS = 32 // fd_set.h:93:1:
NODEVMAJOR = -1 // types.h:258:1:
NSIG = 64 // signal.h:48:1:
PDP_ENDIAN = 3412 // endian.h:102:1:
POLL_ERR = 4 // siginfo.h:267:1:
POLL_HUP = 6 // siginfo.h:269:1:
POLL_IN = 1 // siginfo.h:264:1:
POLL_MSG = 3 // siginfo.h:266:1:
POLL_OUT = 2 // siginfo.h:265:1:
POLL_PRI = 5 // siginfo.h:268:1:
PTRDIFF_MAX = 2147483647 // common_int_limits.h:121:1:
PTRDIFF_MIN = -2147483648 // common_int_limits.h:120:1:
SA_NOCLDSTOP = 0x0008 // signal.h:151:1:
SA_NOCLDWAIT = 0x0020 // signal.h:152:1:
SA_NODEFER = 0x0010 // signal.h:148:1:
SA_NOKERNINFO = 0x0080 // signal.h:158:1:
SA_ONSTACK = 0x0001 // signal.h:145:1:
SA_RESETHAND = 0x0004 // signal.h:147:1:
SA_RESTART = 0x0002 // signal.h:146:1:
SA_SIGINFO = 0x0040 // signal.h:155:1:
SEGV_ACCERR = 2 // siginfo.h:236:1:
SEGV_MAPERR = 1 // siginfo.h:235:1:
SIGABRT = 6 // signal.h:57:1:
SIGALRM = 14 // signal.h:66:1:
SIGBUS = 10 // signal.h:62:1:
SIGCHLD = 20 // signal.h:72:1:
SIGCONT = 19 // signal.h:71:1:
SIGEMT = 7 // signal.h:59:1:
SIGEV_NONE = 0 // signal.h:224:1:
SIGEV_SA = 3 // signal.h:228:1:
SIGEV_SIGNAL = 1 // signal.h:225:1:
SIGEV_THREAD = 2 // signal.h:226:1:
SIGFPE = 8 // signal.h:60:1:
SIGHUP = 1 // signal.h:52:1:
SIGILL = 4 // signal.h:55:1:
SIGINFO = 29 // signal.h:81:1:
SIGINT = 2 // signal.h:53:1:
SIGIO = 23 // signal.h:75:1:
SIGIOT = 6 // signal.h:58:1:
SIGKILL = 9 // signal.h:61:1:
SIGPIPE = 13 // signal.h:65:1:
SIGPROF = 27 // signal.h:79:1:
SIGPWR = 32 // signal.h:84:1:
SIGQUIT = 3 // signal.h:54:1:
SIGRTMAX = 63 // signal.h:86:1:
SIGRTMIN = 33 // signal.h:85:1:
SIGSEGV = 11 // signal.h:63:1:
SIGSTKSZ = 40960 // signal.h:190:1:
SIGSTOP = 17 // signal.h:69:1:
SIGSYS = 12 // signal.h:64:1:
SIGTERM = 15 // signal.h:67:1:
SIGTRAP = 5 // signal.h:56:1:
SIGTSTP = 18 // signal.h:70:1:
SIGTTIN = 21 // signal.h:73:1:
SIGTTOU = 22 // signal.h:74:1:
SIGURG = 16 // signal.h:68:1:
SIGUSR1 = 30 // signal.h:82:1:
SIGUSR2 = 31 // signal.h:83:1:
SIGVTALRM = 26 // signal.h:78:1:
SIGWINCH = 28 // signal.h:80:1:
SIGXCPU = 24 // signal.h:76:1:
SIGXFSZ = 25 // signal.h:77:1:
SIG_ATOMIC_MAX = 2147483647 // common_int_limits.h:125:1:
SIG_ATOMIC_MIN = -2147483648 // common_int_limits.h:124:1:
SIG_BLOCK = 1 // signal.h:167:1:
SIG_CODE_BUS_ADDR_MASK = 0xfffffff0 // signal.h:154:1:
SIG_CODE_BUS_TYPE_MASK = 0x0000000f // signal.h:155:1:
SIG_CODE_FPE_CODE_MASK = 0x00000f00 // signal.h:131:1:
SIG_CODE_FPE_CODE_SHIFT = 8 // signal.h:132:1:
SIG_CODE_FPE_TYPE_MASK = 0x000000ff // signal.h:133:1:
SIG_CODE_SEGV_ADDR_MASK = 4294967280 // signal.h:156:1:
SIG_CODE_SEGV_TYPE_MASK = 15 // signal.h:157:1:
SIG_SETMASK = 3 // signal.h:169:1:
SIG_UNBLOCK = 2 // signal.h:168:1:
SIZE_MAX = 4294967295 // common_int_limits.h:128:1:
SI_ASYNCIO = -3 // siginfo.h:277:1:
SI_LWP = -5 // siginfo.h:282:1:
SI_MESGQ = -4 // siginfo.h:279:1:
SI_NOINFO = 32767 // siginfo.h:283:1:
SI_QUEUE = -1 // siginfo.h:274:1:
SI_TIMER = -2 // siginfo.h:275:1:
SI_USER = 0 // siginfo.h:273:1:
SS_DISABLE = 0x0004 // signal.h:185:1:
SS_ONSTACK = 0x0001 // signal.h:184:1:
TRAP_BRKPT = 1 // siginfo.h:244:1:
TRAP_CHLD = 4 // siginfo.h:247:1:
TRAP_DBREG = 6 // siginfo.h:249:1:
TRAP_EXEC = 3 // siginfo.h:246:1:
TRAP_LWP = 5 // siginfo.h:248:1:
TRAP_SCE = 7 // siginfo.h:250:1:
TRAP_SCX = 8 // siginfo.h:251:1:
TRAP_TRACE = 2 // siginfo.h:245:1:
UINT16_MAX = 65535 // common_int_limits.h:59:1:
UINT32_MAX = 4294967295 // common_int_limits.h:60:1:
UINT64_MAX = 18446744073709551615 // common_int_limits.h:61:1:
UINT8_MAX = 255 // common_int_limits.h:58:1:
UINTMAX_MAX = 18446744073709551615 // common_int_limits.h:112:1:
UINTPTR_MAX = 4294967295 // common_int_limits.h:106:1:
UINT_FAST16_MAX = 4294967295 // common_int_limits.h:99:1:
UINT_FAST32_MAX = 4294967295 // common_int_limits.h:100:1:
UINT_FAST64_MAX = 18446744073709551615 // common_int_limits.h:101:1:
UINT_FAST8_MAX = 4294967295 // common_int_limits.h:98:1:
UINT_LEAST16_MAX = 65535 // common_int_limits.h:79:1:
UINT_LEAST32_MAX = 4294967295 // common_int_limits.h:80:1:
UINT_LEAST64_MAX = 18446744073709551615 // common_int_limits.h:81:1:
UINT_LEAST8_MAX = 255 // common_int_limits.h:78:1:
WCHAR_MAX = 2147483647 // wchar_limits.h:50:1:
WCHAR_MIN = -2147483648 // wchar_limits.h:42:1:
WINT_MAX = 2147483647 // wchar_limits.h:68:1:
WINT_MIN = -2147483648 // wchar_limits.h:60:1:
X_ARM_ARCH_4T = 0 // cdefs.h:44:1:
X_ARM_ARCH_5 = 0 // cdefs.h:40:1:
X_ARM_ARCH_5T = 0 // cdefs.h:36:1:
X_ARM_ARCH_6 = 0 // cdefs.h:31:1:
X_ARM_ARCH_7 = 0 // cdefs.h:20:1:
X_ARM_ARCH_DWORD_OK = 0 // cdefs.h:51:1:
X_ARM_ARCH_T2 = 0 // cdefs.h:24:1:
X_ARM_BSWAP_H_ = 0 // bswap.h:4:1:
X_ARM_BYTE_SWAP_H_ = 0 // byte_swap.h:33:1:
X_ARM_CDEFS_H_ = 0 // cdefs.h:4:1:
X_ARM_INT_CONST_H_ = 0 // int_const.h:33:1:
X_ARM_INT_LIMITS_H_ = 0 // int_limits.h:33:1:
X_ARM_INT_MWGWTYPES_H_ = 0 // int_mwgwtypes.h:33:1:
X_ARM_INT_TYPES_H_ = 0 // int_types.h:33:1:
X_ARM_MCONTEXT_H_ = 0 // mcontext.h:33:1:
X_ARM_SIGNAL_H_ = 0 // signal.h:47:1:
X_ARM_TYPES_H_ = 0 // types.h:35:1:
X_ARM_WCHAR_LIMITS_H_ = 0 // wchar_limits.h:33:1:
X_BIG_ENDIAN = 4321 // endian.h:44:1:
X_BSD_INT16_T_ = 0 // types.h:65:1:
X_BSD_INT32_T_ = 0 // types.h:75:1:
X_BSD_INT64_T_ = 0 // types.h:85:1:
X_BSD_INT8_T_ = 0 // types.h:55:1:
X_BSD_INTPTR_T_ = 0 // stdint.h:80:1:
X_BSD_UINT16_T_ = 0 // types.h:70:1:
X_BSD_UINT32_T_ = 0 // types.h:80:1:
X_BSD_UINT64_T_ = 0 // types.h:90:1:
X_BSD_UINT8_T_ = 0 // types.h:60:1:
X_BSD_UINTPTR_T_ = 0 // stdint.h:85:1:
X_BYTE_ORDER = 1234 // endian_machdep.h:7:1:
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_LIB_PTHREAD_TYPES_H = 0 // pthread_types.h:33:1:
X_LITTLE_ENDIAN = 1234 // endian.h:43:1:
X_NETBSD_SOURCE = 1 // featuretest.h:70:1:
X_NGREG = 17 // mcontext.h:48:1:
X_NSIG = 64 // signal.h:45:1:
X_PDP_ENDIAN = 3412 // endian.h:45:1:
X_PT_BARRIERATTR_DEAD = 0xDEAD0808 // pthread_types.h:278:1:
X_PT_BARRIERATTR_MAGIC = 0x88880808 // pthread_types.h:277:1:
X_PT_BARRIER_DEAD = 0xDEAD0008 // pthread_types.h:270:1:
X_PT_BARRIER_MAGIC = 0x88880008 // pthread_types.h:269:1:
X_PT_CONDATTR_DEAD = 0xDEAD0006 // pthread_types.h:197:1:
X_PT_CONDATTR_MAGIC = 0x66660006 // pthread_types.h:196:1:
X_PT_COND_DEAD = 0xDEAD0005 // pthread_types.h:182:1:
X_PT_COND_MAGIC = 0x55550005 // pthread_types.h:181:1:
X_PT_MUTEXATTR_DEAD = 0xDEAD0004 // pthread_types.h:167:1:
X_PT_MUTEXATTR_MAGIC = 0x44440004 // pthread_types.h:166:1:
X_PT_MUTEX_DEAD = 0xDEAD0003 // pthread_types.h:139:1:
X_PT_MUTEX_MAGIC = 0x33330003 // pthread_types.h:138:1:
X_PT_RWLOCKATTR_DEAD = 0xDEAD0909 // pthread_types.h:253:1:
X_PT_RWLOCKATTR_MAGIC = 0x99990909 // pthread_types.h:252:1:
X_PT_RWLOCK_DEAD = 0xDEAD0009 // pthread_types.h:236:1:
X_PT_RWLOCK_MAGIC = 0x99990009 // pthread_types.h:235:1:
X_PT_SPINLOCK_DEAD = 0xDEAD0007 // pthread_types.h:213:1:
X_PT_SPINLOCK_MAGIC = 0x77770007 // pthread_types.h:212:1:
X_PT_SPINLOCK_PSHARED = 0x00000001 // pthread_types.h:214:1:
X_QUAD_HIGHWORD = 1 // endian.h:84:1:
X_QUAD_LOWWORD = 0 // endian.h:85:1:
X_REG_CPSR = 16 // mcontext.h:70:1:
X_REG_ELR = 32 // mcontext.h:104:1:
X_REG_FP = 11 // mcontext.h:118:1:
X_REG_LR = 14 // mcontext.h:120:1:
X_REG_PC = 15 // mcontext.h:121:1:
X_REG_R0 = 0 // mcontext.h:54:1:
X_REG_R1 = 1 // mcontext.h:55:1:
X_REG_R10 = 10 // mcontext.h:64:1:
X_REG_R11 = 11 // mcontext.h:65:1:
X_REG_R12 = 12 // mcontext.h:66:1:
X_REG_R13 = 13 // mcontext.h:67:1:
X_REG_R14 = 14 // mcontext.h:68:1:
X_REG_R15 = 15 // mcontext.h:69:1:
X_REG_R2 = 2 // mcontext.h:56:1:
X_REG_R3 = 3 // mcontext.h:57:1:
X_REG_R4 = 4 // mcontext.h:58:1:
X_REG_R5 = 5 // mcontext.h:59:1:
X_REG_R6 = 6 // mcontext.h:60:1:
X_REG_R7 = 7 // mcontext.h:61:1:
X_REG_R8 = 8 // mcontext.h:62:1:
X_REG_R9 = 9 // mcontext.h:63:1:
X_REG_RV = 0 // mcontext.h:117:1:
X_REG_SP = 13 // mcontext.h:119:1:
X_REG_SPSR = 33 // mcontext.h:105:1:
X_REG_TPIDR = 34 // mcontext.h:106:1:
X_REG_X0 = 0 // mcontext.h:72:1:
X_REG_X1 = 1 // mcontext.h:73:1:
X_REG_X10 = 10 // mcontext.h:82:1:
X_REG_X11 = 11 // mcontext.h:83:1:
X_REG_X12 = 12 // mcontext.h:84:1:
X_REG_X13 = 13 // mcontext.h:85:1:
X_REG_X14 = 14 // mcontext.h:86:1:
X_REG_X15 = 15 // mcontext.h:87:1:
X_REG_X16 = 16 // mcontext.h:88:1:
X_REG_X17 = 17 // mcontext.h:89:1:
X_REG_X18 = 18 // mcontext.h:90:1:
X_REG_X19 = 19 // mcontext.h:91:1:
X_REG_X2 = 2 // mcontext.h:74:1:
X_REG_X20 = 20 // mcontext.h:92:1:
X_REG_X21 = 21 // mcontext.h:93:1:
X_REG_X22 = 22 // mcontext.h:94:1:
X_REG_X23 = 23 // mcontext.h:95:1:
X_REG_X24 = 24 // mcontext.h:96:1:
X_REG_X25 = 25 // mcontext.h:97:1:
X_REG_X26 = 26 // mcontext.h:98:1:
X_REG_X27 = 27 // mcontext.h:99:1:
X_REG_X28 = 28 // mcontext.h:100:1:
X_REG_X29 = 29 // mcontext.h:101:1:
X_REG_X3 = 3 // mcontext.h:75:1:
X_REG_X30 = 30 // mcontext.h:102:1:
X_REG_X31 = 31 // mcontext.h:103:1:
X_REG_X4 = 4 // mcontext.h:76:1:
X_REG_X5 = 5 // mcontext.h:77:1:
X_REG_X6 = 6 // mcontext.h:78:1:
X_REG_X7 = 7 // mcontext.h:79:1:
X_REG_X8 = 8 // mcontext.h:80:1:
X_REG_X9 = 9 // mcontext.h:81:1:
X_SIGNAL_H_ = 0 // signal.h:35:1:
X_SIZE_T = 0 // types.h:279:1:
X_SYS_ANSI_H_ = 0 // ansi.h:33:1:
X_SYS_BSWAP_H_ = 0 // bswap.h:6:1:
X_SYS_CDEFS_ELF_H_ = 0 // cdefs_elf.h:31:1:
X_SYS_CDEFS_H_ = 0 // cdefs.h:37:1:
X_SYS_COMMON_ANSI_H_ = 0 // common_ansi.h:33:1:
X_SYS_COMMON_INT_LIMITS_H_ = 0 // common_int_limits.h:33:1:
X_SYS_COMMON_INT_MWGWTYPES_H_ = 0 // common_int_mwgwtypes.h:33:1:
X_SYS_COMMON_INT_TYPES_H_ = 0 // common_int_types.h:33:1:
X_SYS_ENDIAN_H_ = 0 // endian.h:35:1:
X_SYS_FD_SET_H_ = 0 // fd_set.h:35:1:
X_SYS_SIGINFO_H_ = 0 // siginfo.h:33:1:
X_SYS_SIGNAL_H_ = 0 // signal.h:40:1:
X_SYS_SIGTYPES_H_ = 0 // sigtypes.h:40:1:
X_SYS_STDINT_H_ = 0 // stdint.h:33:1:
X_SYS_TIMESPEC_H_ = 0 // timespec.h:38:1:
X_SYS_TYPES_H_ = 0 // types.h:40:1:
X_SYS_UCONTEXT_H_ = 0 // ucontext.h:33:1:
X_UC_ARM_VFP = 0x00010000 // mcontext.h:263:1:
X_UC_CLRSTACK = 0x00040000 // mcontext.h:267:1:
X_UC_CPU = 0x04 // ucontext.h:58:1:
X_UC_FPU = 0x08 // ucontext.h:59:1:
X_UC_MACHINE_PAD = 1 // mcontext.h:203:1:
X_UC_MD = 0x400f0020 // ucontext.h:60:1:
X_UC_SETSTACK = 0x00020000 // mcontext.h:266:1:
X_UC_SIGMASK = 0x01 // ucontext.h:56:1:
X_UC_STACK = 0x02 // ucontext.h:57:1:
X_UC_TLSBASE = 0x00080000 // mcontext.h:260:1:
X_UC_UCONTEXT_ALIGN = -1 // ucontext.h:52:1:
)
type Ptrdiff_t = int32 /* <builtin>:3:26 */
type Size_t = uint32 /* <builtin>:9:23 */
type Wchar_t = int32 /* <builtin>:15:24 */
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
type X__float128 = float64 /* <builtin>:47:21 */
// return true if value 'a' fits in type 't'
// $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
// Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
// Public domain.
//
// NOTE: Do not protect this header against multiple inclusion. Doing
// so can have subtle side-effects due to header file inclusion order
// and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead,
// protect each CPP macro that we want to supply.
// Feature-test macros are defined by several standards, and allow an
// application to specify what symbols they want the system headers to
// expose, and hence what standard they want them to conform to.
// There are two classes of feature-test macros. The first class
// specify complete standards, and if one of these is defined, header
// files will try to conform to the relevant standard. They are:
//
// ANSI macros:
// _ANSI_SOURCE ANSI C89
//
// POSIX macros:
// _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?)
// _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990
// _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992
// _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993
// _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996
// _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001
// _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008
//
// X/Open macros:
// _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2
// _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions
// _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5
// _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2
// _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option
// _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option
//
// NetBSD macros:
// _NETBSD_SOURCE == 1 Make all NetBSD features available.
//
// If more than one of these "major" feature-test macros is defined,
// then the set of facilities provided (and namespace used) is the
// union of that specified by the relevant standards, and in case of
// conflict, the earlier standard in the above list has precedence (so
// if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
// of rename() that's used is the POSIX one). If none of the "major"
// feature-test macros is defined, _NETBSD_SOURCE is assumed.
//
// There are also "minor" feature-test macros, which enable extra
// functionality in addition to some base standard. They should be
// defined along with one of the "major" macros. The "minor" macros
// are:
//
// _REENTRANT
// _ISOC99_SOURCE
// _ISOC11_SOURCE
// _LARGEFILE_SOURCE Large File Support
// <http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
// $NetBSD: types.h,v 1.102 2018/11/06 16:26:44 maya Exp $
// -
// Copyright (c) 1982, 1986, 1991, 1993, 1994
// The Regents of the University of California. All rights reserved.
// (c) UNIX System Laboratories, Inc.
// All or some portions of this file are derived from material licensed
// to the University of California by American Telephone and Telegraph
// Co. or Unix System Laboratories, Inc. and are reproduced herein with
// the permission of UNIX System Laboratories, Inc.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// @(#)types.h 8.4 (Berkeley) 1/21/94
// $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
// Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
// Public domain.
//
// NOTE: Do not protect this header against multiple inclusion. Doing
// so can have subtle side-effects due to header file inclusion order
// and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead,
// protect each CPP macro that we want to supply.
// Feature-test macros are defined by several standards, and allow an
// application to specify what symbols they want the system headers to
// expose, and hence what standard they want them to conform to.
// There are two classes of feature-test macros. The first class
// specify complete standards, and if one of these is defined, header
// files will try to conform to the relevant standard. They are:
//
// ANSI macros:
// _ANSI_SOURCE ANSI C89
//
// POSIX macros:
// _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?)
// _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990
// _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992
// _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993
// _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996
// _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001
// _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008
//
// X/Open macros:
// _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2
// _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions
// _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5
// _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2
// _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option
// _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option
//
// NetBSD macros:
// _NETBSD_SOURCE == 1 Make all NetBSD features available.
//
// If more than one of these "major" feature-test macros is defined,
// then the set of facilities provided (and namespace used) is the
// union of that specified by the relevant standards, and in case of
// conflict, the earlier standard in the above list has precedence (so
// if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
// of rename() that's used is the POSIX one). If none of the "major"
// feature-test macros is defined, _NETBSD_SOURCE is assumed.
//
// There are also "minor" feature-test macros, which enable extra
// functionality in addition to some base standard. They should be
// defined along with one of the "major" macros. The "minor" macros
// are:
//
// _REENTRANT
// _ISOC99_SOURCE
// _ISOC11_SOURCE
// _LARGEFILE_SOURCE Large File Support
// <http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
// Machine type dependent parameters.
// $NetBSD: types.h,v 1.38 2019/04/06 03:06:25 thorpej Exp $
// Copyright (c) 1990 The Regents of the University of California.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | true |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/signal_linux_386.go | vendor/modernc.org/libc/signal/signal_linux_386.go | // Code generated by 'ccgo signal/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o signal/signal_linux_386.go -pkgname signal', DO NOT EDIT.
package signal
import (
"math"
"reflect"
"sync/atomic"
"unsafe"
)
var _ = math.Pi
var _ reflect.Kind
var _ atomic.Value
var _ unsafe.Pointer
const (
FP_XSTATE_MAGIC1 = 0x46505853
FP_XSTATE_MAGIC2 = 0x46505845
MINSIGSTKSZ = 2048
NGREG = 19
NSIG = 65
SA_INTERRUPT = 0x20000000
SA_NOCLDSTOP = 1
SA_NOCLDWAIT = 2
SA_NODEFER = 0x40000000
SA_NOMASK = 1073741824
SA_ONESHOT = 2147483648
SA_ONSTACK = 0x08000000
SA_RESETHAND = 0x80000000
SA_RESTART = 0x10000000
SA_SIGINFO = 4
SA_STACK = 134217728
SIGABRT = 6
SIGALRM = 14
SIGBUS = 7
SIGCHLD = 17
SIGCLD = 17
SIGCONT = 18
SIGFPE = 8
SIGHUP = 1
SIGILL = 4
SIGINT = 2
SIGIO = 29
SIGIOT = 6
SIGKILL = 9
SIGPIPE = 13
SIGPOLL = 29
SIGPROF = 27
SIGPWR = 30
SIGQUIT = 3
SIGSEGV = 11
SIGSTKFLT = 16
SIGSTKSZ = 8192
SIGSTOP = 19
SIGSYS = 31
SIGTERM = 15
SIGTRAP = 5
SIGTSTP = 20
SIGTTIN = 21
SIGTTOU = 22
SIGURG = 23
SIGUSR1 = 10
SIGUSR2 = 12
SIGVTALRM = 26
SIGWINCH = 28
SIGXCPU = 24
SIGXFSZ = 25
SIG_BLOCK = 0
SIG_SETMASK = 2
SIG_UNBLOCK = 1
X86_FXSR_MAGIC = 0x0000
X_ATFILE_SOURCE = 1
X_BITS_ENDIANNESS_H = 1
X_BITS_ENDIAN_H = 1
X_BITS_PTHREADTYPES_ARCH_H = 1
X_BITS_PTHREADTYPES_COMMON_H = 1
X_BITS_SIGACTION_H = 1
X_BITS_SIGCONTEXT_H = 1
X_BITS_SIGEVENT_CONSTS_H = 1
X_BITS_SIGINFO_ARCH_H = 1
X_BITS_SIGINFO_CONSTS_H = 1
X_BITS_SIGNUM_GENERIC_H = 1
X_BITS_SIGNUM_H = 1
X_BITS_SIGSTACK_H = 1
X_BITS_SIGTHREAD_H = 1
X_BITS_SS_FLAGS_H = 1
X_BITS_TIME64_H = 1
X_BITS_TYPESIZES_H = 1
X_BITS_TYPES_H = 1
X_BSD_SIZE_T_ = 0
X_BSD_SIZE_T_DEFINED_ = 0
X_DEFAULT_SOURCE = 1
X_FEATURES_H = 1
X_FILE_OFFSET_BITS = 64
X_GCC_SIZE_T = 0
X_ILP32 = 1
X_NSIG = 65
X_POSIX_C_SOURCE = 200809
X_POSIX_SOURCE = 1
X_RWLOCK_INTERNAL_H = 0
X_SIGNAL_H = 0
X_SIZET_ = 0
X_SIZE_T = 0
X_SIZE_T_ = 0
X_SIZE_T_DECLARED = 0
X_SIZE_T_DEFINED = 0
X_SIZE_T_DEFINED_ = 0
X_STDC_PREDEF_H = 1
X_STRUCT_TIMESPEC = 1
X_SYS_CDEFS_H = 1
X_SYS_SIZE_T_H = 0
X_SYS_UCONTEXT_H = 1
X_THREAD_MUTEX_INTERNAL_H = 1
X_THREAD_SHARED_TYPES_H = 1
X_T_SIZE = 0
X_T_SIZE_ = 0
I386 = 1
Linux = 1
Unix = 1
)
// POSIX names to access some of the members.
// sigevent constants. Linux version.
// Copyright (C) 1997-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// `sigev_notify' values.
const ( /* sigevent-consts.h:27:1: */
SIGEV_SIGNAL = 0 // Notify via signal.
SIGEV_NONE = 1 // Other notification: meaningless.
SIGEV_THREAD = 2 // Deliver via thread creation.
SIGEV_THREAD_ID = 4
)
// `si_code' values for SIGSEGV signal.
const ( /* siginfo-consts.h:119:1: */
SEGV_MAPERR = 1 // Address not mapped to object.
SEGV_ACCERR = 2 // Invalid permissions for mapped object.
SEGV_BNDERR = 3 // Bounds checking failure.
SEGV_PKUERR = 4 // Protection key checking failure.
SEGV_ACCADI = 5 // ADI not enabled for mapped object.
SEGV_ADIDERR = 6 // Disrupting MCD error.
SEGV_ADIPERR = 7
)
// `si_code' values for SIGBUS signal.
const ( /* siginfo-consts.h:138:1: */
BUS_ADRALN = 1 // Invalid address alignment.
BUS_ADRERR = 2 // Non-existant physical address.
BUS_OBJERR = 3 // Object specific hardware error.
BUS_MCEERR_AR = 4 // Hardware memory error: action required.
BUS_MCEERR_AO = 5
)
// `si_code' values for SIGCHLD signal.
const ( /* siginfo-consts.h:172:1: */
CLD_EXITED = 1 // Child has exited.
CLD_KILLED = 2 // Child was killed.
CLD_DUMPED = 3 // Child terminated abnormally.
CLD_TRAPPED = 4 // Traced child has trapped.
CLD_STOPPED = 5 // Child has stopped.
CLD_CONTINUED = 6
)
// `si_code' values for SIGPOLL signal.
const ( /* siginfo-consts.h:189:1: */
POLL_IN = 1 // Data input available.
POLL_OUT = 2 // Output buffers available.
POLL_MSG = 3 // Input message available.
POLL_ERR = 4 // I/O error.
POLL_PRI = 5 // High priority input available.
POLL_HUP = 6
)
// X/Open requires some more fields with fixed names.
// siginfo constants. Linux version.
// Copyright (C) 1997-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// Most of these constants are uniform across all architectures, but there
// is one exception.
// Architecture-specific adjustments to siginfo_t. x86 version.
// Values for `si_code'. Positive values are reserved for kernel-generated
//
// signals.
const ( /* siginfo-consts.h:35:1: */
SI_ASYNCNL = -60 // Sent by asynch name lookup completion.
SI_DETHREAD = -7 // Sent by execve killing subsidiary
// threads.
SI_TKILL = -6 // Sent by tkill.
SI_SIGIO = -5 // Sent by queued SIGIO.
SI_ASYNCIO = -4 // Sent by AIO completion.
SI_MESGQ = -3 // Sent by real time mesq state change.
SI_TIMER = -2 // Sent by timer expiration.
SI_QUEUE = -1 // Sent by sigqueue.
SI_USER = 0 // Sent by kill, sigsend.
SI_KERNEL = 128
)
// `si_code' values for SIGILL signal.
const ( /* siginfo-consts.h:71:1: */
ILL_ILLOPC = 1 // Illegal opcode.
ILL_ILLOPN = 2 // Illegal operand.
ILL_ILLADR = 3 // Illegal addressing mode.
ILL_ILLTRP = 4 // Illegal trap.
ILL_PRVOPC = 5 // Privileged opcode.
ILL_PRVREG = 6 // Privileged register.
ILL_COPROC = 7 // Coprocessor error.
ILL_BADSTK = 8 // Internal stack error.
ILL_BADIADDR = 9
)
// `si_code' values for SIGFPE signal.
const ( /* siginfo-consts.h:94:1: */
FPE_INTDIV = 1 // Integer divide by zero.
FPE_INTOVF = 2 // Integer overflow.
FPE_FLTDIV = 3 // Floating point divide by zero.
FPE_FLTOVF = 4 // Floating point overflow.
FPE_FLTUND = 5 // Floating point underflow.
FPE_FLTRES = 6 // Floating point inexact result.
FPE_FLTINV = 7 // Floating point invalid operation.
FPE_FLTSUB = 8 // Subscript out of range.
FPE_FLTUNK = 14 // Undiagnosed floating-point exception.
FPE_CONDTRAP = 15
)
// sigstack, sigaltstack definitions.
// Copyright (C) 1998-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// Minimum stack size for a signal handler.
// System default stack size.
// ss_flags values for stack_t. Linux version.
// Copyright (C) 1998-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// Possible values for `ss_flags'.
const ( /* ss_flags.h:27:1: */
SS_ONSTACK = 1
SS_DISABLE = 2
)
type Ptrdiff_t = int32 /* <builtin>:3:26 */
type Size_t = uint32 /* <builtin>:9:23 */
type Wchar_t = int32 /* <builtin>:15:24 */
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
type X__float128 = float64 /* <builtin>:47:21 */
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// ISO C99 Standard: 7.14 Signal handling <signal.h>
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// These are defined by the user (or the compiler)
// to specify the desired environment:
//
// __STRICT_ANSI__ ISO Standard C.
// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99.
// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11.
// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X.
// __STDC_WANT_LIB_EXT2__
// Extensions to ISO C99 from TR 27431-2:2010.
// __STDC_WANT_IEC_60559_BFP_EXT__
// Extensions to ISO C11 from TS 18661-1:2014.
// __STDC_WANT_IEC_60559_FUNCS_EXT__
// Extensions to ISO C11 from TS 18661-4:2015.
// __STDC_WANT_IEC_60559_TYPES_EXT__
// Extensions to ISO C11 from TS 18661-3:2015.
//
// _POSIX_SOURCE IEEE Std 1003.1.
// _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2;
// if >=199309L, add IEEE Std 1003.1b-1993;
// if >=199506L, add IEEE Std 1003.1c-1995;
// if >=200112L, all of IEEE 1003.1-2004
// if >=200809L, all of IEEE 1003.1-2008
// _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if
// Single Unix conformance is wanted, to 600 for the
// sixth revision, to 700 for the seventh revision.
// _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions.
// _LARGEFILE_SOURCE Some more functions for correct standard I/O.
// _LARGEFILE64_SOURCE Additional functionality from LFS for large files.
// _FILE_OFFSET_BITS=N Select default filesystem interface.
// _ATFILE_SOURCE Additional *at interfaces.
// _GNU_SOURCE All of the above, plus GNU extensions.
// _DEFAULT_SOURCE The default set of features (taking precedence over
// __STRICT_ANSI__).
//
// _FORTIFY_SOURCE Add security hardening to many library functions.
// Set to 1 or 2; 2 performs stricter checks than 1.
//
// _REENTRANT, _THREAD_SAFE
// Obsolete; equivalent to _POSIX_C_SOURCE=199506L.
//
// The `-ansi' switch to the GNU C compiler, and standards conformance
// options such as `-std=c99', define __STRICT_ANSI__. If none of
// these are defined, or if _DEFAULT_SOURCE is defined, the default is
// to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to
// 200809L, as well as enabling miscellaneous functions from BSD and
// SVID. If more than one of these are defined, they accumulate. For
// example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together
// give you ISO C, 1003.1, and 1003.2, but nothing else.
//
// These are defined by this file and are used by the
// header files to decide what to declare or define:
//
// __GLIBC_USE (F) Define things from feature set F. This is defined
// to 1 or 0; the subsequent macros are either defined
// or undefined, and those tests should be moved to
// __GLIBC_USE.
// __USE_ISOC11 Define ISO C11 things.
// __USE_ISOC99 Define ISO C99 things.
// __USE_ISOC95 Define ISO C90 AMD1 (C95) things.
// __USE_ISOCXX11 Define ISO C++11 things.
// __USE_POSIX Define IEEE Std 1003.1 things.
// __USE_POSIX2 Define IEEE Std 1003.2 things.
// __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things.
// __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things.
// __USE_XOPEN Define XPG things.
// __USE_XOPEN_EXTENDED Define X/Open Unix things.
// __USE_UNIX98 Define Single Unix V2 things.
// __USE_XOPEN2K Define XPG6 things.
// __USE_XOPEN2KXSI Define XPG6 XSI things.
// __USE_XOPEN2K8 Define XPG7 things.
// __USE_XOPEN2K8XSI Define XPG7 XSI things.
// __USE_LARGEFILE Define correct standard I/O things.
// __USE_LARGEFILE64 Define LFS things with separate names.
// __USE_FILE_OFFSET64 Define 64bit interface as default.
// __USE_MISC Define things from 4.3BSD or System V Unix.
// __USE_ATFILE Define *at interfaces and AT_* constants for them.
// __USE_GNU Define GNU extensions.
// __USE_FORTIFY_LEVEL Additional security measures used, according to level.
//
// The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are
// defined by this file unconditionally. `__GNU_LIBRARY__' is provided
// only for compatibility. All new code should use the other symbols
// to test for features.
//
// All macros listed above as possibly being defined by this file are
// explicitly undefined if they are not explicitly defined.
// Feature-test macros that are not defined by the user or compiler
// but are implied by the other feature-test macros defined (or by the
// lack of any definitions) are defined by the file.
//
// ISO C feature test macros depend on the definition of the macro
// when an affected header is included, not when the first system
// header is included, and so they are handled in
// <bits/libc-header-start.h>, which does not have a multiple include
// guard. Feature test macros that can be handled from the first
// system header included are handled here.
// Undefine everything, so we get a clean slate.
// Suppress kernel-name space pollution unless user expressedly asks
// for it.
// Convenience macro to test the version of gcc.
// Use like this:
// #if __GNUC_PREREQ (2,8)
// ... code requiring gcc 2.8 or later ...
// #endif
// Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was
// added in 2.0.
// Similarly for clang. Features added to GCC after version 4.2 may
// or may not also be available in clang, and clang's definitions of
// __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such
// features can be queried via __has_extension/__has_feature.
// Whether to use feature set F.
// _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for
// _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not
// issue a warning; the expectation is that the source is being
// transitioned to use the new macro.
// If _GNU_SOURCE was defined by the user, turn on all the other features.
// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined,
// define _DEFAULT_SOURCE.
// This is to enable the ISO C2X extension.
// This is to enable the ISO C11 extension.
// This is to enable the ISO C99 extension.
// This is to enable the ISO C90 Amendment 1:1995 extension.
// If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE
// is defined, use POSIX.1-2008 (or another version depending on
// _XOPEN_SOURCE).
// Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be
// defined in all multithreaded code. GNU libc has not required this
// for many years. We now treat them as compatibility synonyms for
// _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with
// comprehensive support for multithreaded code. Using them never
// lowers the selected level of POSIX conformance, only raises it.
// The function 'gets' existed in C89, but is impossible to use
// safely. It has been removed from ISO C11 and ISO C++14. Note: for
// compatibility with various implementations of <cstdio>, this test
// must consider only the value of __cplusplus when compiling C++.
// GNU formerly extended the scanf functions with modified format
// specifiers %as, %aS, and %a[...] that allocate a buffer for the
// input using malloc. This extension conflicts with ISO C99, which
// defines %a as a standalone format specifier that reads a floating-
// point number; moreover, POSIX.1-2008 provides the same feature
// using the modifier letter 'm' instead (%ms, %mS, %m[...]).
//
// We now follow C99 unless GNU extensions are active and the compiler
// is specifically in C89 or C++98 mode (strict or not). For
// instance, with GCC, -std=gnu11 will have C99-compliant scanf with
// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the
// old extension.
// Get definitions of __STDC_* predefined macros, if the compiler has
// not preincluded this header automatically.
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// This macro indicates that the installed library is the GNU C Library.
// For historic reasons the value now is 6 and this will stay from now
// on. The use of this variable is deprecated. Use __GLIBC__ and
// __GLIBC_MINOR__ now (see below) when you want to test for a specific
// GNU C library version and use the values in <gnu/lib-names.h> to get
// the sonames of the shared libraries.
// Major and minor version number of the GNU C library package. Use
// these macros to test for features in specific releases.
// This is here only because every header file already includes this one.
// Copyright (C) 1992-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// We are almost always included from features.h.
// The GNU libc does not support any K&R compilers or the traditional mode
// of ISO C compilers anymore. Check for some of the combinations not
// anymore supported.
// Some user header file might have defined this before.
// All functions, except those with callbacks or those that
// synchronize memory, are leaf functions.
// GCC can always grok prototypes. For C++ programs we add throw()
// to help it optimize the function calls. But this works only with
// gcc 2.8.x and egcs. For gcc 3.2 and up we even mark C functions
// as non-throwing using a function attribute since programs can use
// the -fexceptions options for C code as well.
// Compilers that are not clang may object to
// #if defined __clang__ && __has_extension(...)
// even though they do not need to evaluate the right-hand side of the &&.
// These two macros are not used in glibc anymore. They are kept here
// only because some other projects expect the macros to be defined.
// For these things, GCC behaves the ANSI way normally,
// and the non-ANSI way under -traditional.
// This is not a typedef so `const __ptr_t' does the right thing.
// C++ needs to know that types and declarations are C, not C++.
// Fortify support.
// Support for flexible arrays.
// Headers that should use flexible arrays only if they're "real"
// (e.g. only if they won't affect sizeof()) should test
// #if __glibc_c99_flexarr_available.
// __asm__ ("xyz") is used throughout the headers to rename functions
// at the assembly language level. This is wrapped by the __REDIRECT
// macro, in order to support compilers that can do this some other
// way. When compilers don't support asm-names at all, we have to do
// preprocessor tricks instead (which don't have exactly the right
// semantics, but it's the best we can do).
//
// Example:
// int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid);
//
// #elif __SOME_OTHER_COMPILER__
//
// # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias)
// GCC has various useful declarations that can be made with the
// `__attribute__' syntax. All of the ways we use this do fine if
// they are omitted for compilers that don't understand it.
// At some point during the gcc 2.96 development the `malloc' attribute
// for functions was introduced. We don't want to use it unconditionally
// (although this would be possible) since it generates warnings.
// Tell the compiler which arguments to an allocation function
// indicate the size of the allocation.
// At some point during the gcc 2.96 development the `pure' attribute
// for functions was introduced. We don't want to use it unconditionally
// (although this would be possible) since it generates warnings.
// This declaration tells the compiler that the value is constant.
// At some point during the gcc 3.1 development the `used' attribute
// for functions was introduced. We don't want to use it unconditionally
// (although this would be possible) since it generates warnings.
// Since version 3.2, gcc allows marking deprecated functions.
// Since version 4.5, gcc also allows one to specify the message printed
// when a deprecated function is used. clang claims to be gcc 4.2, but
// may also support this feature.
// At some point during the gcc 2.8 development the `format_arg' attribute
// for functions was introduced. We don't want to use it unconditionally
// (although this would be possible) since it generates warnings.
// If several `format_arg' attributes are given for the same function, in
// gcc-3.0 and older, all but the last one are ignored. In newer gccs,
// all designated arguments are considered.
// At some point during the gcc 2.97 development the `strfmon' format
// attribute for functions was introduced. We don't want to use it
// unconditionally (although this would be possible) since it
// generates warnings.
// The nonull function attribute allows to mark pointer parameters which
// must not be NULL.
// If fortification mode, we warn about unused results of certain
// function calls which can lead to problems.
// Forces a function to be always inlined.
// The Linux kernel defines __always_inline in stddef.h (283d7573), and
// it conflicts with this definition. Therefore undefine it first to
// allow either header to be included first.
// Associate error messages with the source location of the call site rather
// than with the source location inside the function.
// GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99
// inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__
// or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions
// older than 4.3 may define these macros and still not guarantee GNU inlining
// semantics.
//
// clang++ identifies itself as gcc-4.2, but has support for GNU inlining
// semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and
// __GNUC_GNU_INLINE__ macro definitions.
// GCC 4.3 and above allow passing all anonymous arguments of an
// __extern_always_inline function to some other vararg function.
// It is possible to compile containing GCC extensions even if GCC is
// run in pedantic mode if the uses are carefully marked using the
// `__extension__' keyword. But this is not generally available before
// version 2.8.
// __restrict is known in EGCS 1.2 and above.
// ISO C99 also allows to declare arrays as non-overlapping. The syntax is
// array_name[restrict]
// GCC 3.1 supports this.
// Describes a char array whose address can safely be passed as the first
// argument to strncpy and strncat, as the char array is not necessarily
// a NUL-terminated string.
// Undefine (also defined in libc-symbols.h).
// Copies attributes from the declaration or type referenced by
// the argument.
// Determine the wordsize from the preprocessor defines.
// Properties of long double type. ldbl-96 version.
// Copyright (C) 2016-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// long double is distinct from double, so there is nothing to
// define here.
// __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is
// intended for use in preprocessor macros.
//
// Note: MESSAGE must be a _single_ string; concatenation of string
// literals is not supported.
// Generic selection (ISO C11) is a C-only feature, available in GCC
// since version 4.9. Previous versions do not provide generic
// selection, even though they might set __STDC_VERSION__ to 201112L,
// when in -std=c11 mode. Thus, we must check for !defined __GNUC__
// when testing __STDC_VERSION__ for generic selection support.
// On the other hand, Clang also defines __GNUC__, so a clang-specific
// check is required to enable the use of generic selection.
// If we don't have __REDIRECT, prototypes will be missing if
// __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64].
// Decide whether we can define 'extern inline' functions in headers.
// This is here only because every header file already includes this one.
// Get the definitions of all the appropriate `__stub_FUNCTION' symbols.
// <gnu/stubs.h> contains `#define __stub_FUNCTION' when FUNCTION is a stub
// that will always return failure (and set errno to ENOSYS).
// This file is automatically generated.
// This file selects the right generated file of `__stub_FUNCTION' macros
// based on the architecture being compiled for.
// This file is automatically generated.
// It defines a symbol `__stub_FUNCTION' for each function
// in the C library which is a stub, meaning it will fail
// every time called, usually setting errno to ENOSYS.
// bits/types.h -- definitions of __*_t types underlying *_t types.
// Copyright (C) 2002-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | true |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/signal/more_linux_ppc64le.go | vendor/modernc.org/libc/signal/more_linux_ppc64le.go | // Copyright 2020 The Libc Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package signal
const (
// /usr/include/asm-generic/signal-defs.h:24:#define SIG_DFL ((__sighandler_t)0) /* default signal handling */
SIG_DFL = 0
// /usr/include/asm-generic/signal-defs.h:25:#define SIG_IGN ((__sighandler_t)1) /* ignore signal */
SIG_IGN = 1
)
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/unistd/unistd_netbsd_arm.go | vendor/modernc.org/libc/unistd/unistd_netbsd_arm.go | // 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_netbsd_arm.go -pkgname unistd', DO NOT EDIT.
package unistd
import (
"math"
"reflect"
"sync/atomic"
"unsafe"
)
var _ = math.Pi
var _ reflect.Kind
var _ atomic.Value
var _ unsafe.Pointer
const (
BIG_ENDIAN = 4321 // endian.h:101:1:
BYTE_ORDER = 1234 // endian.h:103:1:
FDATASYNC = 0x0010 // unistd.h:196:1:
FDISKSYNC = 0x0040 // unistd.h:198:1:
FD_SETSIZE = 256 // fd_set.h:59:1:
FFILESYNC = 0x0020 // unistd.h:197:1:
F_LOCK = 1 // unistd.h:253:1:
F_OK = 0 // unistd.h:172:1:
F_TEST = 3 // unistd.h:255:1:
F_TLOCK = 2 // unistd.h:254:1:
F_ULOCK = 0 // unistd.h:252:1:
GETPASS_7BIT = 0x080 // unistd.h:351:1:
GETPASS_BUF_LIMIT = 0x004 // unistd.h:346:1:
GETPASS_ECHO = 0x020 // unistd.h:349:1:
GETPASS_ECHO_NL = 0x400 // unistd.h:354:1:
GETPASS_ECHO_STAR = 0x040 // unistd.h:350:1:
GETPASS_FAIL_EOF = 0x002 // unistd.h:345:1:
GETPASS_FORCE_LOWER = 0x100 // unistd.h:352:1:
GETPASS_FORCE_UPPER = 0x200 // unistd.h:353:1:
GETPASS_NEED_TTY = 0x001 // unistd.h:344:1:
GETPASS_NO_BEEP = 0x010 // unistd.h:348:1:
GETPASS_NO_SIGNAL = 0x008 // unistd.h:347:1:
INT16_MAX = 32767 // common_int_limits.h:53:1:
INT16_MIN = -32768 // common_int_limits.h:47:1:
INT32_MAX = 2147483647 // common_int_limits.h:54:1:
INT32_MIN = -2147483648 // common_int_limits.h:48:1:
INT64_MAX = 9223372036854775807 // common_int_limits.h:55:1:
INT64_MIN = -9223372036854775808 // common_int_limits.h:49:1:
INT8_MAX = 127 // common_int_limits.h:52:1:
INT8_MIN = -128 // common_int_limits.h:46:1:
INTMAX_MAX = 9223372036854775807 // common_int_limits.h:111:1:
INTMAX_MIN = -9223372036854775808 // common_int_limits.h:110:1:
INTPTR_MAX = 2147483647 // common_int_limits.h:105:1:
INTPTR_MIN = -2147483648 // common_int_limits.h:104:1:
INT_FAST16_MAX = 2147483647 // common_int_limits.h:93:1:
INT_FAST16_MIN = -2147483648 // common_int_limits.h:87:1:
INT_FAST32_MAX = 2147483647 // common_int_limits.h:94:1:
INT_FAST32_MIN = -2147483648 // common_int_limits.h:88:1:
INT_FAST64_MAX = 9223372036854775807 // common_int_limits.h:95:1:
INT_FAST64_MIN = -9223372036854775808 // common_int_limits.h:89:1:
INT_FAST8_MAX = 2147483647 // common_int_limits.h:92:1:
INT_FAST8_MIN = -2147483648 // common_int_limits.h:86:1:
INT_LEAST16_MAX = 32767 // common_int_limits.h:73:1:
INT_LEAST16_MIN = -32768 // common_int_limits.h:67:1:
INT_LEAST32_MAX = 2147483647 // common_int_limits.h:74:1:
INT_LEAST32_MIN = -2147483648 // common_int_limits.h:68:1:
INT_LEAST64_MAX = 9223372036854775807 // common_int_limits.h:75:1:
INT_LEAST64_MIN = -9223372036854775808 // common_int_limits.h:69:1:
INT_LEAST8_MAX = 127 // common_int_limits.h:72:1:
INT_LEAST8_MIN = -128 // common_int_limits.h:66:1:
LITTLE_ENDIAN = 1234 // endian.h:100:1:
L_INCR = 1 // unistd.h:185:1:
L_SET = 0 // unistd.h:184:1:
L_XTND = 2 // unistd.h:186:1:
NBBY = 8 // types.h:316:1:
NFDBITS = 32 // fd_set.h:93:1:
NODEVMAJOR = -1 // types.h:258:1:
PDP_ENDIAN = 3412 // endian.h:102:1:
PTRDIFF_MAX = 2147483647 // common_int_limits.h:121:1:
PTRDIFF_MIN = -2147483648 // common_int_limits.h:120:1:
R_OK = 0x04 // unistd.h:175:1:
SEEK_CUR = 1 // unistd.h:179:1:
SEEK_END = 2 // unistd.h:180:1:
SEEK_SET = 0 // unistd.h:178:1:
SIG_ATOMIC_MAX = 2147483647 // common_int_limits.h:125:1:
SIG_ATOMIC_MIN = -2147483648 // common_int_limits.h:124:1:
SIZE_MAX = 4294967295 // common_int_limits.h:128:1:
STDERR_FILENO = 2 // unistd.h:82:1:
STDIN_FILENO = 0 // unistd.h:80:1:
STDOUT_FILENO = 1 // unistd.h:81:1:
UINT16_MAX = 65535 // common_int_limits.h:59:1:
UINT32_MAX = 4294967295 // common_int_limits.h:60:1:
UINT64_MAX = 18446744073709551615 // common_int_limits.h:61:1:
UINT8_MAX = 255 // common_int_limits.h:58:1:
UINTMAX_MAX = 18446744073709551615 // common_int_limits.h:112:1:
UINTPTR_MAX = 4294967295 // common_int_limits.h:106:1:
UINT_FAST16_MAX = 4294967295 // common_int_limits.h:99:1:
UINT_FAST32_MAX = 4294967295 // common_int_limits.h:100:1:
UINT_FAST64_MAX = 18446744073709551615 // common_int_limits.h:101:1:
UINT_FAST8_MAX = 4294967295 // common_int_limits.h:98:1:
UINT_LEAST16_MAX = 65535 // common_int_limits.h:79:1:
UINT_LEAST32_MAX = 4294967295 // common_int_limits.h:80:1:
UINT_LEAST64_MAX = 18446744073709551615 // common_int_limits.h:81:1:
UINT_LEAST8_MAX = 255 // common_int_limits.h:78:1:
WCHAR_MAX = 2147483647 // wchar_limits.h:50:1:
WCHAR_MIN = -2147483648 // wchar_limits.h:42:1:
WINT_MAX = 2147483647 // wchar_limits.h:68:1:
WINT_MIN = -2147483648 // wchar_limits.h:60:1:
W_OK = 0x02 // unistd.h:174:1:
X_OK = 0x01 // unistd.h:173:1:
X_ARM_ARCH_4T = 0 // cdefs.h:44:1:
X_ARM_ARCH_5 = 0 // cdefs.h:40:1:
X_ARM_ARCH_5T = 0 // cdefs.h:36:1:
X_ARM_ARCH_6 = 0 // cdefs.h:31:1:
X_ARM_ARCH_7 = 0 // cdefs.h:20:1:
X_ARM_ARCH_DWORD_OK = 0 // cdefs.h:51:1:
X_ARM_ARCH_T2 = 0 // cdefs.h:24:1:
X_ARM_BSWAP_H_ = 0 // bswap.h:4:1:
X_ARM_BYTE_SWAP_H_ = 0 // byte_swap.h:33:1:
X_ARM_CDEFS_H_ = 0 // cdefs.h:4:1:
X_ARM_INT_CONST_H_ = 0 // int_const.h:33:1:
X_ARM_INT_LIMITS_H_ = 0 // int_limits.h:33:1:
X_ARM_INT_MWGWTYPES_H_ = 0 // int_mwgwtypes.h:33:1:
X_ARM_INT_TYPES_H_ = 0 // int_types.h:33:1:
X_ARM_TYPES_H_ = 0 // types.h:35:1:
X_ARM_WCHAR_LIMITS_H_ = 0 // wchar_limits.h:33:1:
X_BIG_ENDIAN = 4321 // endian.h:44:1:
X_BSD_INT16_T_ = 0 // types.h:65:1:
X_BSD_INT32_T_ = 0 // types.h:75:1:
X_BSD_INT64_T_ = 0 // types.h:85:1:
X_BSD_INT8_T_ = 0 // types.h:55:1:
X_BSD_INTPTR_T_ = 0 // stdint.h:80:1:
X_BSD_UINT16_T_ = 0 // types.h:70:1:
X_BSD_UINT32_T_ = 0 // types.h:80:1:
X_BSD_UINT64_T_ = 0 // types.h:90:1:
X_BSD_UINT8_T_ = 0 // types.h:60:1:
X_BSD_UINTPTR_T_ = 0 // stdint.h:85:1:
X_BYTE_ORDER = 1234 // endian_machdep.h:7:1:
X_CS_PATH = 1 // unistd.h:338:1:
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_LIB_PTHREAD_TYPES_H = 0 // pthread_types.h:33:1:
X_LITTLE_ENDIAN = 1234 // endian.h:43:1:
X_NETBSD_SOURCE = 1 // featuretest.h:70:1:
X_O_SC_CLK_TCK = 3 // unistd.h:227:1:
X_PC_2_SYMLINKS = 13 // unistd.h:214:1:
X_PC_ACL_EXTENDED = 14 // unistd.h:215:1:
X_PC_CHOWN_RESTRICTED = 7 // unistd.h:208:1:
X_PC_FILESIZEBITS = 11 // unistd.h:212:1:
X_PC_LINK_MAX = 1 // unistd.h:202:1:
X_PC_MAX_CANON = 2 // unistd.h:203:1:
X_PC_MAX_INPUT = 3 // unistd.h:204:1:
X_PC_MIN_HOLE_SIZE = 15 // unistd.h:218:1:
X_PC_NAME_MAX = 4 // unistd.h:205:1:
X_PC_NO_TRUNC = 8 // unistd.h:209:1:
X_PC_PATH_MAX = 5 // unistd.h:206:1:
X_PC_PIPE_BUF = 6 // unistd.h:207:1:
X_PC_SYMLINK_MAX = 12 // unistd.h:213:1:
X_PC_SYNC_IO = 10 // unistd.h:211:1:
X_PC_VDISABLE = 9 // unistd.h:210:1:
X_PDP_ENDIAN = 3412 // endian.h:45:1:
X_POSIX2_C_BIND = 200112 // unistd.h:166:1:
X_POSIX2_VERSION = 200112 // unistd.h:63:1:
X_POSIX_ASYNCHRONOUS_IO = 200112 // unistd.h:89:1:
X_POSIX_BARRIERS = 200112 // unistd.h:91:1:
X_POSIX_CHOWN_RESTRICTED = 1 // unistd.h:93:1:
X_POSIX_CLOCK_SELECTION = -1 // unistd.h:95:1:
X_POSIX_CPUTIME = 200112 // unistd.h:97:1:
X_POSIX_FSYNC = 1 // unistd.h:101:1:
X_POSIX_IPV6 = 0 // unistd.h:103:1:
X_POSIX_JOB_CONTROL = 1 // unistd.h:105:1:
X_POSIX_MAPPED_FILES = 1 // unistd.h:107:1:
X_POSIX_MEMLOCK = 1 // unistd.h:109:1:
X_POSIX_MEMLOCK_RANGE = 1 // unistd.h:111:1:
X_POSIX_MEMORY_PROTECTION = 1 // unistd.h:113:1:
X_POSIX_MESSAGE_PASSING = 200112 // unistd.h:115:1:
X_POSIX_MONOTONIC_CLOCK = 200112 // unistd.h:117:1:
X_POSIX_NO_TRUNC = 1 // unistd.h:119:1:
X_POSIX_PRIORITIZED_IO = -1 // unistd.h:121:1:
X_POSIX_PRIORITY_SCHEDULING = 200112 // unistd.h:123:1:
X_POSIX_RAW_SOCKETS = 200112 // unistd.h:125:1:
X_POSIX_READER_WRITER_LOCKS = 200112 // unistd.h:127:1:
X_POSIX_REGEXP = 1 // unistd.h:131:1:
X_POSIX_SEMAPHORES = 0 // unistd.h:133:1:
X_POSIX_SHARED_MEMORY_OBJECTS = 0 // unistd.h:135:1:
X_POSIX_SHELL = 1 // unistd.h:137:1:
X_POSIX_SPAWN = 200809 // unistd.h:68:1:
X_POSIX_SPIN_LOCKS = 200112 // unistd.h:139:1:
X_POSIX_SYNCHRONIZED_IO = 1 // unistd.h:143:1:
X_POSIX_THREADS = 200112 // unistd.h:145:1:
X_POSIX_THREAD_ATTR_STACKADDR = 200112 // unistd.h:149:1:
X_POSIX_THREAD_ATTR_STACKSIZE = 200112 // unistd.h:147:1:
X_POSIX_THREAD_CPUTIME = 200112 // unistd.h:151:1:
X_POSIX_THREAD_PRIO_PROTECT = 200112 // unistd.h:153:1:
X_POSIX_THREAD_SAFE_FUNCTIONS = 200112 // unistd.h:155:1:
X_POSIX_TIMERS = 200112 // unistd.h:159:1:
X_POSIX_VERSION = 200112 // unistd.h:62:1:
X_PT_BARRIERATTR_DEAD = 0xDEAD0808 // pthread_types.h:278:1:
X_PT_BARRIERATTR_MAGIC = 0x88880808 // pthread_types.h:277:1:
X_PT_BARRIER_DEAD = 0xDEAD0008 // pthread_types.h:270:1:
X_PT_BARRIER_MAGIC = 0x88880008 // pthread_types.h:269:1:
X_PT_CONDATTR_DEAD = 0xDEAD0006 // pthread_types.h:197:1:
X_PT_CONDATTR_MAGIC = 0x66660006 // pthread_types.h:196:1:
X_PT_COND_DEAD = 0xDEAD0005 // pthread_types.h:182:1:
X_PT_COND_MAGIC = 0x55550005 // pthread_types.h:181:1:
X_PT_MUTEXATTR_DEAD = 0xDEAD0004 // pthread_types.h:167:1:
X_PT_MUTEXATTR_MAGIC = 0x44440004 // pthread_types.h:166:1:
X_PT_MUTEX_DEAD = 0xDEAD0003 // pthread_types.h:139:1:
X_PT_MUTEX_MAGIC = 0x33330003 // pthread_types.h:138:1:
X_PT_RWLOCKATTR_DEAD = 0xDEAD0909 // pthread_types.h:253:1:
X_PT_RWLOCKATTR_MAGIC = 0x99990909 // pthread_types.h:252:1:
X_PT_RWLOCK_DEAD = 0xDEAD0009 // pthread_types.h:236:1:
X_PT_RWLOCK_MAGIC = 0x99990009 // pthread_types.h:235:1:
X_PT_SPINLOCK_DEAD = 0xDEAD0007 // pthread_types.h:213:1:
X_PT_SPINLOCK_MAGIC = 0x77770007 // pthread_types.h:212:1:
X_PT_SPINLOCK_PSHARED = 0x00000001 // pthread_types.h:214:1:
X_QUAD_HIGHWORD = 1 // endian.h:84:1:
X_QUAD_LOWWORD = 0 // endian.h:85:1:
X_SC_2_CHAR_TERM = 20 // unistd.h:244:1:
X_SC_2_C_BIND = 18 // unistd.h:242:1:
X_SC_2_C_DEV = 19 // unistd.h:243:1:
X_SC_2_FORT_DEV = 21 // unistd.h:245:1:
X_SC_2_FORT_RUN = 22 // unistd.h:246:1:
X_SC_2_LOCALEDEF = 23 // unistd.h:247:1:
X_SC_2_PBS = 80 // unistd.h:305:1:
X_SC_2_PBS_ACCOUNTING = 81 // unistd.h:306:1:
X_SC_2_PBS_CHECKPOINT = 82 // unistd.h:307:1:
X_SC_2_PBS_LOCATE = 83 // unistd.h:308:1:
X_SC_2_PBS_MESSAGE = 84 // unistd.h:309:1:
X_SC_2_PBS_TRACK = 85 // unistd.h:310:1:
X_SC_2_SW_DEV = 24 // unistd.h:248:1:
X_SC_2_UPE = 25 // unistd.h:249:1:
X_SC_2_VERSION = 17 // unistd.h:241:1:
X_SC_AIO_LISTIO_MAX = 51 // unistd.h:276:1:
X_SC_AIO_MAX = 52 // unistd.h:277:1:
X_SC_ARG_MAX = 1 // unistd.h:225:1:
X_SC_ASYNCHRONOUS_IO = 50 // unistd.h:275:1:
X_SC_ATEXIT_MAX = 40 // unistd.h:265:1:
X_SC_BARRIERS = 43 // unistd.h:268:1:
X_SC_BC_BASE_MAX = 9 // unistd.h:233:1:
X_SC_BC_DIM_MAX = 10 // unistd.h:234:1:
X_SC_BC_SCALE_MAX = 11 // unistd.h:235:1:
X_SC_BC_STRING_MAX = 12 // unistd.h:236:1:
X_SC_CHILD_MAX = 2 // unistd.h:226:1:
X_SC_CLK_TCK = 39 // unistd.h:264:1:
X_SC_CLOCK_SELECTION = 49 // unistd.h:274:1:
X_SC_COLL_WEIGHTS_MAX = 13 // unistd.h:237:1:
X_SC_CPUTIME = 90 // unistd.h:318:1:
X_SC_DELAYTIMER_MAX = 92 // unistd.h:320:1:
X_SC_EXPR_NEST_MAX = 14 // unistd.h:238:1:
X_SC_FSYNC = 29 // unistd.h:254:1:
X_SC_GETGR_R_SIZE_MAX = 47 // unistd.h:272:1:
X_SC_GETPW_R_SIZE_MAX = 48 // unistd.h:273:1:
X_SC_HOST_NAME_MAX = 69 // unistd.h:294:1:
X_SC_IOV_MAX = 32 // unistd.h:257:1:
X_SC_JOB_CONTROL = 6 // unistd.h:230:1:
X_SC_LINE_MAX = 15 // unistd.h:239:1:
X_SC_LOGIN_NAME_MAX = 37 // unistd.h:262:1:
X_SC_MAPPED_FILES = 33 // unistd.h:258:1:
X_SC_MEMLOCK = 34 // unistd.h:259:1:
X_SC_MEMLOCK_RANGE = 35 // unistd.h:260:1:
X_SC_MEMORY_PROTECTION = 36 // unistd.h:261:1:
X_SC_MESSAGE_PASSING = 53 // unistd.h:278:1:
X_SC_MONOTONIC_CLOCK = 38 // unistd.h:263:1:
X_SC_MQ_OPEN_MAX = 54 // unistd.h:279:1:
X_SC_MQ_PRIO_MAX = 55 // unistd.h:280:1:
X_SC_NGROUPS_MAX = 4 // unistd.h:228:1:
X_SC_NPROCESSORS_CONF = 1001 // unistd.h:329:1:
X_SC_NPROCESSORS_ONLN = 1002 // unistd.h:330:1:
X_SC_OPEN_MAX = 5 // unistd.h:229:1:
X_SC_PAGESIZE = 28 // unistd.h:252:1:
X_SC_PAGE_SIZE = 28 // unistd.h:253:1:
X_SC_PASS_MAX = 70 // unistd.h:295:1:
X_SC_PHYS_PAGES = 121 // unistd.h:325:1:
X_SC_PRIORITY_SCHEDULING = 56 // unistd.h:281:1:
X_SC_READER_WRITER_LOCKS = 46 // unistd.h:271:1:
X_SC_REALTIME_SIGNALS = 94 // unistd.h:322:1:
X_SC_REGEXP = 71 // unistd.h:296:1:
X_SC_RE_DUP_MAX = 16 // unistd.h:240:1:
X_SC_SAVED_IDS = 7 // unistd.h:231:1:
X_SC_SCHED_PRI_MAX = 2003 // unistd.h:334:1:
X_SC_SCHED_PRI_MIN = 2002 // unistd.h:333:1:
X_SC_SCHED_RT_TS = 2001 // unistd.h:332:1:
X_SC_SEMAPHORES = 42 // unistd.h:267:1:
X_SC_SEM_NSEMS_MAX = 89 // unistd.h:317:1:
X_SC_SHARED_MEMORY_OBJECTS = 87 // unistd.h:314:1:
X_SC_SHELL = 72 // unistd.h:297:1:
X_SC_SIGQUEUE_MAX = 93 // unistd.h:321:1:
X_SC_SPAWN = 86 // unistd.h:313:1:
X_SC_SPIN_LOCKS = 45 // unistd.h:270:1:
X_SC_STREAM_MAX = 26 // unistd.h:250:1:
X_SC_SYMLOOP_MAX = 73 // unistd.h:298:1:
X_SC_SYNCHRONIZED_IO = 31 // unistd.h:256:1:
X_SC_THREADS = 41 // unistd.h:266:1:
X_SC_THREAD_ATTR_STACKADDR = 61 // unistd.h:286:1:
X_SC_THREAD_ATTR_STACKSIZE = 62 // unistd.h:287:1:
X_SC_THREAD_CPUTIME = 91 // unistd.h:319:1:
X_SC_THREAD_DESTRUCTOR_ITERATIONS = 57 // unistd.h:282:1:
X_SC_THREAD_KEYS_MAX = 58 // unistd.h:283:1:
X_SC_THREAD_PRIORITY_SCHEDULING = 63 // unistd.h:288:1:
X_SC_THREAD_PRIO_INHERIT = 64 // unistd.h:289:1:
X_SC_THREAD_PRIO_PROTECT = 65 // unistd.h:290:1:
X_SC_THREAD_PROCESS_SHARED = 66 // unistd.h:291:1:
X_SC_THREAD_SAFE_FUNCTIONS = 67 // unistd.h:292:1:
X_SC_THREAD_STACK_MIN = 59 // unistd.h:284:1:
X_SC_THREAD_THREADS_MAX = 60 // unistd.h:285:1:
X_SC_TIMERS = 44 // unistd.h:269:1:
X_SC_TIMER_MAX = 88 // unistd.h:316:1:
X_SC_TTY_NAME_MAX = 68 // unistd.h:293:1:
X_SC_TZNAME_MAX = 27 // unistd.h:251:1:
X_SC_V6_ILP32_OFF32 = 74 // unistd.h:301:1:
X_SC_V6_ILP32_OFFBIG = 75 // unistd.h:302:1:
X_SC_V6_LP64_OFF64 = 76 // unistd.h:303:1:
X_SC_V6_LPBIG_OFFBIG = 77 // unistd.h:304:1:
X_SC_VERSION = 8 // unistd.h:232:1:
X_SC_XOPEN_SHM = 30 // unistd.h:255:1:
X_SIZE_T = 0 // types.h:279:1:
X_SYS_ANSI_H_ = 0 // ansi.h:33:1:
X_SYS_BSWAP_H_ = 0 // bswap.h:6:1:
X_SYS_CDEFS_ELF_H_ = 0 // cdefs_elf.h:31:1:
X_SYS_CDEFS_H_ = 0 // cdefs.h:37:1:
X_SYS_COMMON_ANSI_H_ = 0 // common_ansi.h:33:1:
X_SYS_COMMON_INT_LIMITS_H_ = 0 // common_int_limits.h:33:1:
X_SYS_COMMON_INT_MWGWTYPES_H_ = 0 // common_int_mwgwtypes.h:33:1:
X_SYS_COMMON_INT_TYPES_H_ = 0 // common_int_types.h:33:1:
X_SYS_ENDIAN_H_ = 0 // endian.h:35:1:
X_SYS_FD_SET_H_ = 0 // fd_set.h:35:1:
X_SYS_NULL_H_ = 0 // null.h:9:1:
X_SYS_STDINT_H_ = 0 // stdint.h:33:1:
X_SYS_TYPES_H_ = 0 // types.h:40:1:
X_SYS_UNISTD_H_ = 0 // unistd.h:35:1:
X_UNISTD_H_ = 0 // unistd.h:64:1:
X_XOPEN_SHM = 0 // unistd.h:169:1:
)
type Ptrdiff_t = int32 /* <builtin>:3:26 */
type Size_t = uint32 /* <builtin>:9:23 */
type Wchar_t = int32 /* <builtin>:15:24 */
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
type X__float128 = float64 /* <builtin>:47:21 */
// return true if value 'a' fits in type 't'
// $NetBSD: int_types.h,v 1.17 2014/07/25 21:43:13 joerg Exp $
// -
// Copyright (c) 2014 The NetBSD Foundation, Inc.
// All rights reserved.
//
// This code is derived from software contributed to The NetBSD Foundation
// by Matt Thomas of 3am Software Foundry.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
//
// THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
// ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
// TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
// BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
// $NetBSD: common_int_types.h,v 1.1 2014/07/25 21:43:13 joerg Exp $
// -
// Copyright (c) 2014 The NetBSD Foundation, Inc.
// All rights reserved.
//
// This code is derived from software contributed to The NetBSD Foundation
// by Joerg Sonnenberger.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
//
// THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
// ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
// TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
// BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
// 7.18.1 Integer types
// 7.18.1.1 Exact-width integer types
type X__int8_t = int8 /* common_int_types.h:45:27 */
type X__uint8_t = uint8 /* common_int_types.h:46:27 */
type X__int16_t = int16 /* common_int_types.h:47:27 */
type X__uint16_t = uint16 /* common_int_types.h:48:27 */
type X__int32_t = int32 /* common_int_types.h:49:27 */
type X__uint32_t = uint32 /* common_int_types.h:50:27 */
type X__int64_t = int64 /* common_int_types.h:51:27 */
type X__uint64_t = uint64 /* common_int_types.h:52:27 */
// 7.18.1.4 Integer types capable of holding object pointers
type X__intptr_t = int32 /* common_int_types.h:58:27 */
type X__uintptr_t = uint32 /* common_int_types.h:59:26 */
// Types which are fundamental to the implementation and may appear in
// more than one standard header are defined here. Standard headers
// then use:
// #ifdef _BSD_SIZE_T_
// typedef _BSD_SIZE_T_ size_t;
// #undef _BSD_SIZE_T_
// #endif
// $NetBSD: int_types.h,v 1.17 2014/07/25 21:43:13 joerg Exp $
// -
// Copyright (c) 2014 The NetBSD Foundation, Inc.
// All rights reserved.
//
// This code is derived from software contributed to The NetBSD Foundation
// by Matt Thomas of 3am Software Foundry.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
//
// THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
// ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
// TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
// BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
// $NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $
// * Copyright (c) 1991, 1993
// The Regents of the University of California. All rights reserved.
//
// This code is derived from software contributed to Berkeley by
// Berkeley Software Design, Inc.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | true |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/unistd/capi_openbsd_386.go | vendor/modernc.org/libc/unistd/capi_openbsd_386.go | // 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_openbsd_386.go -pkgname unistd', DO NOT EDIT.
package unistd
var CAPI = map[string]struct{}{}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/unistd/unistd_windows_arm64.go | vendor/modernc.org/libc/unistd/unistd_windows_arm64.go | // 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 -o unistd\unistd_windows_arm64.go -pkgname unistd', DO NOT EDIT.
package unistd
import (
"math"
"reflect"
"sync/atomic"
"unsafe"
)
var _ = math.Pi
var _ reflect.Kind
var _ atomic.Value
var _ unsafe.Pointer
const (
DUMMYSTRUCTNAME = 0
DUMMYSTRUCTNAME1 = 0
DUMMYSTRUCTNAME2 = 0
DUMMYSTRUCTNAME3 = 0
DUMMYSTRUCTNAME4 = 0
DUMMYSTRUCTNAME5 = 0
DUMMYUNIONNAME = 0
DUMMYUNIONNAME1 = 0
DUMMYUNIONNAME2 = 0
DUMMYUNIONNAME3 = 0
DUMMYUNIONNAME4 = 0
DUMMYUNIONNAME5 = 0
DUMMYUNIONNAME6 = 0
DUMMYUNIONNAME7 = 0
DUMMYUNIONNAME8 = 0
DUMMYUNIONNAME9 = 0
FTRUNCATE_DEFINED = 0
F_OK = 0
MINGW_DDK_H = 0
MINGW_HAS_DDK_H = 1
MINGW_HAS_SECURE_API = 1
MINGW_SDK_INIT = 0
OLD_P_OVERLAY = 2
P_DETACH = 4
P_NOWAIT = 1
P_NOWAITO = 3
P_OVERLAY = 2
P_WAIT = 0
R_OK = 4
SEEK_CUR = 1
SEEK_END = 2
SEEK_SET = 0
STDERR_FILENO = 2
STDIN_FILENO = 0
STDOUT_FILENO = 1
UNALIGNED = 0
USE___UUIDOF = 0
WAIT_CHILD = 0
WAIT_GRANDCHILD = 1
WIN32 = 1
WIN64 = 1
WINNT = 1
WIN_PTHREADS_UNISTD_H = 0
W_OK = 2
X_OK = 1
X_AGLOBAL = 0
X_ANONYMOUS_STRUCT = 0
X_ANONYMOUS_UNION = 0
X_ARGMAX = 100
X_ARM64_ = 1
X_A_ARCH = 0x20
X_A_HIDDEN = 0x02
X_A_NORMAL = 0x00
X_A_RDONLY = 0x01
X_A_SUBDIR = 0x10
X_A_SYSTEM = 0x04
X_CONST_RETURN = 0
X_CRTNOALIAS = 0
X_CRTRESTRICT = 0
X_CRT_ALTERNATIVE_IMPORTED = 0
X_CRT_DIRECTORY_DEFINED = 0
X_CRT_GETPID_DEFINED = 0
X_CRT_MANAGED_HEAP_DEPRECATE = 0
X_CRT_MEMORY_DEFINED = 0
X_CRT_PACKING = 8
X_CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES = 0
X_CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES_MEMORY = 0
X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES = 0
X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT = 0
X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_MEMORY = 0
X_CRT_SWAB_DEFINED = 0
X_CRT_SYSTEM_DEFINED = 0
X_CRT_TERMINATE_DEFINED = 0
X_CRT_USE_WINAPI_FAMILY_DESKTOP_APP = 0
X_CRT_WSYSTEM_DEFINED = 0
X_DEV_T_DEFINED = 0
X_DLL = 0
X_ERRCODE_DEFINED = 0
X_FILE_OFFSET_BITS = 64
X_FILE_OFFSET_BITS_SET_FTRUNCATE = 0
X_FILE_OFFSET_BITS_SET_LSEEK = 0
X_FILE_OFFSET_BITS_SET_OFFT = 0
X_FINDDATA_T_DEFINED = 0
X_FSIZE_T_DEFINED = 0
X_INC_CORECRT = 0
X_INC_CORECRT_STARTUP = 0
X_INC_CRTDEFS = 0
X_INC_CRTDEFS_MACRO = 0
X_INC_MINGW_SECAPI = 0
X_INC_PROCESS = 0
X_INC_STRING = 0
X_INC_STRING_S = 0
X_INC_TYPES = 0
X_INC_VADEFS = 0
X_INC__MINGW_H = 0
X_INO_T_DEFINED = 0
X_INT128_DEFINED = 0
X_INTPTR_T_DEFINED = 0
X_IO_H_ = 0
X_MODE_T_ = 0
X_MT = 0
X_M_ARM64 = 1
X_NLSCMPERROR = 2147483647
X_NLSCMP_DEFINED = 0
X_OFF64_T_DEFINED = 0
X_OFF_T_ = 0
X_OFF_T_DEFINED = 0
X_OLD_P_OVERLAY = 2
X_PGLOBAL = 0
X_PID_T_ = 0
X_POSIX_BARRIERS = 200112
X_POSIX_CLOCK_SELECTION = 200112
X_POSIX_READER_WRITER_LOCKS = 200112
X_POSIX_SEMAPHORES = 200112
X_POSIX_SPIN_LOCKS = 200112
X_POSIX_THREADS = 200112
X_POSIX_TIMEOUTS = 200112
X_PTRDIFF_T_ = 0
X_PTRDIFF_T_DEFINED = 0
X_P_DETACH = 4
X_P_NOWAIT = 1
X_P_NOWAITO = 3
X_P_OVERLAY = 2
X_P_WAIT = 0
X_RSIZE_T_DEFINED = 0
X_SECURECRT_FILL_BUFFER_PATTERN = 0xFD
X_SIGSET_T_ = 0
X_SIZE_T_DEFINED = 0
X_SPAWNV_DEFINED = 0
X_SSIZE_T_DEFINED = 0
X_TAGLC_ID_DEFINED = 0
X_THREADLOCALEINFO = 0
X_TIME32_T_DEFINED = 0
X_TIME64_T_DEFINED = 0
X_TIMESPEC_DEFINED = 0
X_TIME_T_DEFINED = 0
X_UCRT = 0
X_UINTPTR_T_DEFINED = 0
X_UNISTD_H = 0
X_VA_LIST_DEFINED = 0
X_W64 = 0
X_WAIT_CHILD = 0
X_WAIT_GRANDCHILD = 1
X_WCHAR_T_DEFINED = 0
X_WCTYPE_T_DEFINED = 0
X_WConst_return = 0
X_WEXEC_DEFINED = 0
X_WFINDDATA_T_DEFINED = 0
X_WIN32 = 1
X_WIN32_WINNT = 0x601
X_WIN64 = 1
X_WINT_T = 0
X_WIO_DEFINED = 0
X_WSPAWN_DEFINED = 0
X_WSTRING_DEFINED = 0
X_WSTRING_S_DEFINED = 0
)
type Ptrdiff_t = int64 /* <builtin>:3:26 */
type Size_t = uint64 /* <builtin>:9:23 */
type Wchar_t = uint16 /* <builtin>:15:24 */
type X__int128_t = struct {
Flo int64
Fhi int64
} /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
type X__uint128_t = struct {
Flo uint64
Fhi uint64
} /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
type X__float128 = float64 /* <builtin>:47:21 */
type Va_list = X__builtin_va_list /* <builtin>:50:27 */
// *
// This file has no copyright assigned and is placed in the Public Domain.
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
// *
// This file has no copyright assigned and is placed in the Public Domain.
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
// *
// This file has no copyright assigned and is placed in the Public Domain.
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
// *
// This file has no copyright assigned and is placed in the Public Domain.
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
// *
// This file has no copyright assigned and is placed in the Public Domain.
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
// *
// This file has no copyright assigned and is placed in the Public Domain.
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
// This macro holds an monotonic increasing value, which indicates
// a specific fix/patch is present on trunk. This value isn't related to
// minor/major version-macros. It is increased on demand, if a big
// fix was applied to trunk. This macro gets just increased on trunk. For
// other branches its value won't be modified.
// mingw.org's version macros: these make gcc to define
// MINGW32_SUPPORTS_MT_EH and to use the _CRT_MT global
// and the __mingwthr_key_dtor() function from the MinGW
// CRT in its private gthr-win32.h header.
// Set VC specific compiler target macros.
// MS does not prefix symbols by underscores for 64-bit.
// As we have to support older gcc version, which are using underscores
// as symbol prefix for x64, we have to check here for the user label
// prefix defined by gcc.
// Special case nameless struct/union.
// MinGW-w64 has some additional C99 printf/scanf feature support.
// So we add some helper macros to ease recognition of them.
// If _FORTIFY_SOURCE is enabled, some inline functions may use
// __builtin_va_arg_pack(). GCC may report an error if the address
// of such a function is used. Set _FORTIFY_VA_ARG=0 in this case.
// Enable workaround for ABI incompatibility on affected platforms
// *
// This file has no copyright assigned and is placed in the Public Domain.
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
// http://msdn.microsoft.com/en-us/library/ms175759%28v=VS.100%29.aspx
// Templates won't work in C, will break if secure API is not enabled, disabled
// https://blogs.msdn.com/b/sdl/archive/2010/02/16/vc-2010-and-memcpy.aspx?Redirected=true
// fallback on default implementation if we can't know the size of the destination
// Include _cygwin.h if we're building a Cygwin application.
// Target specific macro replacement for type "long". In the Windows API,
// the type long is always 32 bit, even if the target is 64 bit (LLP64).
// On 64 bit Cygwin, the type long is 64 bit (LP64). So, to get the right
// sized definitions and declarations, all usage of type long in the Windows
// headers have to be replaced by the below defined macro __LONG32.
// C/C++ specific language defines.
// Note the extern. This is needed to work around GCC's
// limitations in handling dllimport attribute.
// Attribute `nonnull' was valid as of gcc 3.3. We don't use GCC's
// variadiac macro facility, because variadic macros cause syntax
// errors with --traditional-cpp.
// High byte is the major version, low byte is the minor.
// Allow both 0x1400 and 0xE00 to identify UCRT
// ===-------- vadefs.h ---------------------------------------------------===
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===-----------------------------------------------------------------------===
// Only include this if we are aiming for MSVC compatibility.
// *
// This file has no copyright assigned and is placed in the Public Domain.
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
// *
// This file has no copyright assigned and is placed in the Public Domain.
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
// for backward compatibility
type X__gnuc_va_list = X__builtin_va_list /* vadefs.h:24:29 */
type Ssize_t = int64 /* corecrt.h:45:35 */
type Rsize_t = Size_t /* corecrt.h:52:16 */
type Intptr_t = int64 /* corecrt.h:62:35 */
type Uintptr_t = uint64 /* corecrt.h:75:44 */
type Wint_t = uint16 /* corecrt.h:106:24 */
type Wctype_t = uint16 /* corecrt.h:107:24 */
type Errno_t = int32 /* corecrt.h:113:13 */
type X__time32_t = int32 /* corecrt.h:118:14 */
type X__time64_t = int64 /* corecrt.h:123:35 */
type Time_t = X__time64_t /* corecrt.h:138:20 */
type Threadlocaleinfostruct = struct {
F_locale_pctype uintptr
F_locale_mb_cur_max int32
F_locale_lc_codepage uint32
} /* corecrt.h:430:1 */
type Pthreadlocinfo = uintptr /* corecrt.h:432:39 */
type Pthreadmbcinfo = uintptr /* corecrt.h:433:36 */
type Localeinfo_struct = struct {
Flocinfo Pthreadlocinfo
Fmbcinfo Pthreadmbcinfo
} /* corecrt.h:436:9 */
type X_locale_tstruct = Localeinfo_struct /* corecrt.h:439:3 */
type X_locale_t = uintptr /* corecrt.h:439:19 */
type TagLC_ID = struct {
FwLanguage uint16
FwCountry uint16
FwCodePage uint16
} /* corecrt.h:443:9 */
type LC_ID = TagLC_ID /* corecrt.h:447:3 */
type LPLC_ID = uintptr /* corecrt.h:447:9 */
type Threadlocinfo = Threadlocaleinfostruct /* corecrt.h:482:3 */
type X_fsize_t = uint32 /* io.h:29:25 */
type X_finddata32_t = struct {
Fattrib uint32
Ftime_create X__time32_t
Ftime_access X__time32_t
Ftime_write X__time32_t
Fsize X_fsize_t
Fname [260]int8
} /* io.h:35:3 */
type X_finddata32i64_t = struct {
Fattrib uint32
Ftime_create X__time32_t
Ftime_access X__time32_t
Ftime_write X__time32_t
Fsize int64
Fname [260]int8
F__ccgo_pad1 [4]byte
} /* io.h:44:3 */
type X_finddata64i32_t = struct {
Fattrib uint32
F__ccgo_pad1 [4]byte
Ftime_create X__time64_t
Ftime_access X__time64_t
Ftime_write X__time64_t
Fsize X_fsize_t
Fname [260]int8
} /* io.h:53:3 */
type X__finddata64_t = struct {
Fattrib uint32
F__ccgo_pad1 [4]byte
Ftime_create X__time64_t
Ftime_access X__time64_t
Ftime_write X__time64_t
Fsize int64
Fname [260]int8
F__ccgo_pad2 [4]byte
} /* io.h:62:3 */
type X_wfinddata32_t = struct {
Fattrib uint32
Ftime_create X__time32_t
Ftime_access X__time32_t
Ftime_write X__time32_t
Fsize X_fsize_t
Fname [260]Wchar_t
} /* io.h:94:3 */
type X_wfinddata32i64_t = struct {
Fattrib uint32
Ftime_create X__time32_t
Ftime_access X__time32_t
Ftime_write X__time32_t
Fsize int64
Fname [260]Wchar_t
} /* io.h:103:3 */
type X_wfinddata64i32_t = struct {
Fattrib uint32
F__ccgo_pad1 [4]byte
Ftime_create X__time64_t
Ftime_access X__time64_t
Ftime_write X__time64_t
Fsize X_fsize_t
Fname [260]Wchar_t
F__ccgo_pad2 [4]byte
} /* io.h:112:3 */
type X_wfinddata64_t = struct {
Fattrib uint32
F__ccgo_pad1 [4]byte
Ftime_create X__time64_t
Ftime_access X__time64_t
Ftime_write X__time64_t
Fsize int64
Fname [260]Wchar_t
} /* io.h:121:3 */
type X_off_t = int32 /* _mingw_off_t.h:5:16 */
type Off32_t = int32 /* _mingw_off_t.h:7:16 */
type X_off64_t = int64 /* _mingw_off_t.h:13:39 */
type Off64_t = int64 /* _mingw_off_t.h:15:39 */
type Off_t = Off64_t /* _mingw_off_t.h:24:17 */
type X_PVFV = uintptr /* corecrt_startup.h:20:14 */
type X_PIFV = uintptr /* corecrt_startup.h:21:13 */
type X_PVFI = uintptr /* corecrt_startup.h:22:14 */
type X_onexit_table_t1 = struct {
F_first uintptr
F_last uintptr
F_end uintptr
} /* corecrt_startup.h:24:9 */
type X_onexit_table_t = X_onexit_table_t1 /* corecrt_startup.h:28:3 */
type X_onexit_t = uintptr /* corecrt_startup.h:30:13 */
// Includes a definition of _pid_t and pid_t
// *
// This file has no copyright assigned and is placed in the Public Domain.
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
// *
// This file has no copyright assigned and is placed in the Public Domain.
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
type X_ino_t = uint16 /* types.h:43:24 */
type Ino_t = uint16 /* types.h:45:24 */
type X_dev_t = uint32 /* types.h:51:22 */
type Dev_t = uint32 /* types.h:53:22 */
type X_pid_t = int64 /* types.h:63:17 */
type Pid_t = X_pid_t /* types.h:68:16 */
type X_mode_t = uint16 /* types.h:74:24 */
type Mode_t = X_mode_t /* types.h:77:17 */
type Useconds_t = uint32 /* types.h:84:22 */
type Timespec = struct {
Ftv_sec Time_t
Ftv_nsec int32
F__ccgo_pad1 [4]byte
} /* types.h:89:1 */
type Itimerspec = struct {
Fit_interval struct {
Ftv_sec Time_t
Ftv_nsec int32
F__ccgo_pad1 [4]byte
}
Fit_value struct {
Ftv_sec Time_t
Ftv_nsec int32
F__ccgo_pad1 [4]byte
}
} /* types.h:94:1 */
type X_sigset_t = uint64 /* types.h:104:28 */
type X_beginthread_proc_type = uintptr /* process.h:32:16 */
type X_beginthreadex_proc_type = uintptr /* process.h:33:20 */
type X_tls_callback_type = uintptr /* process.h:64:16 */
//
// Copyright (c) 2011-2016 mingw-w64 project
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
// and/or sell copies of the Software, and to permit persons to whom the
// Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
// Set defines described by the POSIX Threads Extension (1003.1c-1995)
// _SC_THREADS
// Basic support for POSIX threads is available. The functions
//
// pthread_atfork(),
// pthread_attr_destroy(),
// pthread_attr_getdetachstate(),
// pthread_attr_getschedparam(),
// pthread_attr_init(),
// pthread_attr_setdetachstate(),
// pthread_attr_setschedparam(),
// pthread_cancel(),
// pthread_cleanup_push(),
// pthread_cleanup_pop(),
// pthread_cond_broadcast(),
// pthread_cond_destroy(),
// pthread_cond_init(),
// pthread_cond_signal(),
// pthread_cond_timedwait(),
// pthread_cond_wait(),
// pthread_condattr_destroy(),
// pthread_condattr_init(),
// pthread_create(),
// pthread_detach(),
// pthread_equal(),
// pthread_exit(),
// pthread_getspecific(),
// pthread_join(,
// pthread_key_create(),
// pthread_key_delete(),
// pthread_mutex_destroy(),
// pthread_mutex_init(),
// pthread_mutex_lock(),
// pthread_mutex_trylock(),
// pthread_mutex_unlock(),
// pthread_mutexattr_destroy(),
// pthread_mutexattr_init(),
// pthread_once(),
// pthread_rwlock_destroy(),
// pthread_rwlock_init(),
// pthread_rwlock_rdlock(),
// pthread_rwlock_tryrdlock(),
// pthread_rwlock_trywrlock(),
// pthread_rwlock_unlock(),
// pthread_rwlock_wrlock(),
// pthread_rwlockattr_destroy(),
// pthread_rwlockattr_init(),
// pthread_self(),
// pthread_setcancelstate(),
// pthread_setcanceltype(),
// pthread_setspecific(),
// pthread_testcancel()
//
// are present.
// _SC_READER_WRITER_LOCKS
// This option implies the _POSIX_THREADS option. Conversely, under
// POSIX 1003.1-2001 the _POSIX_THREADS option implies this option.
//
// The functions
// pthread_rwlock_destroy(),
// pthread_rwlock_init(),
// pthread_rwlock_rdlock(),
// pthread_rwlock_tryrdlock(),
// pthread_rwlock_trywrlock(),
// pthread_rwlock_unlock(),
// pthread_rwlock_wrlock(),
// pthread_rwlockattr_destroy(),
// pthread_rwlockattr_init()
//
// are present.
// _SC_SPIN_LOCKS
// This option implies the _POSIX_THREADS and _POSIX_THREAD_SAFE_FUNCTIONS
// options. The functions
//
// pthread_spin_destroy(),
// pthread_spin_init(),
// pthread_spin_lock(),
// pthread_spin_trylock(),
// pthread_spin_unlock()
//
// are present.
// _SC_BARRIERS
// This option implies the _POSIX_THREADS and _POSIX_THREAD_SAFE_FUNCTIONS
// options. The functions
//
// pthread_barrier_destroy(),
// pthread_barrier_init(),
// pthread_barrier_wait(),
// pthread_barrierattr_destroy(),
// pthread_barrierattr_init()
//
// are present.
// _SC_TIMEOUTS
// The functions
//
// mq_timedreceive(), - not supported
// mq_timedsend(), - not supported
// posix_trace_timedgetnext_event(), - not supported
// pthread_mutex_timedlock(),
// pthread_rwlock_timedrdlock(),
// pthread_rwlock_timedwrlock(),
// sem_timedwait(),
//
// are present.
// _SC_TIMERS - not supported
// The functions
//
// clock_getres(),
// clock_gettime(),
// clock_settime(),
// nanosleep(),
// timer_create(),
// timer_delete(),
// timer_gettime(),
// timer_getoverrun(),
// timer_settime()
//
// are present.
// #undef _POSIX_TIMERS
// _SC_CLOCK_SELECTION
// This option implies the _POSIX_TIMERS option. The functions
//
// pthread_condattr_getclock(),
// pthread_condattr_setclock(),
// clock_nanosleep()
//
// are present.
// _SC_SEMAPHORES
// The include file <semaphore.h> is present. The functions
//
// sem_close(),
// sem_destroy(),
// sem_getvalue(),
// sem_init(),
// sem_open(),
// sem_post(),
// sem_trywait(),
// sem_unlink(),
// sem_wait()
//
// are present.
var _ int8 /* gen.c:2:13: */
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/unistd/capi_freebsd_386.go | vendor/modernc.org/libc/unistd/capi_freebsd_386.go | // 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_386.go -pkgname unistd', DO NOT EDIT.
package unistd
var CAPI = map[string]struct{}{}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/unistd/unistd_netbsd_amd64.go | vendor/modernc.org/libc/unistd/unistd_netbsd_amd64.go | // 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_netbsd_amd64.go -pkgname unistd', DO NOT EDIT.
package unistd
import (
"math"
"reflect"
"sync/atomic"
"unsafe"
)
var _ = math.Pi
var _ reflect.Kind
var _ atomic.Value
var _ unsafe.Pointer
const (
BIG_ENDIAN = 4321 // endian.h:101:1:
BYTE_ORDER = 1234 // endian.h:103:1:
FDATASYNC = 0x0010 // unistd.h:196:1:
FDISKSYNC = 0x0040 // unistd.h:198:1:
FD_SETSIZE = 256 // fd_set.h:59:1:
FFILESYNC = 0x0020 // unistd.h:197:1:
F_LOCK = 1 // unistd.h:253:1:
F_OK = 0 // unistd.h:172:1:
F_TEST = 3 // unistd.h:255:1:
F_TLOCK = 2 // unistd.h:254:1:
F_ULOCK = 0 // unistd.h:252:1:
GETPASS_7BIT = 0x080 // unistd.h:351:1:
GETPASS_BUF_LIMIT = 0x004 // unistd.h:346:1:
GETPASS_ECHO = 0x020 // unistd.h:349:1:
GETPASS_ECHO_NL = 0x400 // unistd.h:354:1:
GETPASS_ECHO_STAR = 0x040 // unistd.h:350:1:
GETPASS_FAIL_EOF = 0x002 // unistd.h:345:1:
GETPASS_FORCE_LOWER = 0x100 // unistd.h:352:1:
GETPASS_FORCE_UPPER = 0x200 // unistd.h:353:1:
GETPASS_NEED_TTY = 0x001 // unistd.h:344:1:
GETPASS_NO_BEEP = 0x010 // unistd.h:348:1:
GETPASS_NO_SIGNAL = 0x008 // unistd.h:347:1:
INT16_MAX = 32767 // common_int_limits.h:53:1:
INT16_MIN = -32768 // common_int_limits.h:47:1:
INT32_MAX = 2147483647 // common_int_limits.h:54:1:
INT32_MIN = -2147483648 // common_int_limits.h:48:1:
INT64_MAX = 9223372036854775807 // common_int_limits.h:55:1:
INT64_MIN = -9223372036854775808 // common_int_limits.h:49:1:
INT8_MAX = 127 // common_int_limits.h:52:1:
INT8_MIN = -128 // common_int_limits.h:46:1:
INTMAX_MAX = 9223372036854775807 // common_int_limits.h:111:1:
INTMAX_MIN = -9223372036854775808 // common_int_limits.h:110:1:
INTPTR_MAX = 9223372036854775807 // common_int_limits.h:105:1:
INTPTR_MIN = -9223372036854775808 // common_int_limits.h:104:1:
INT_FAST16_MAX = 2147483647 // common_int_limits.h:93:1:
INT_FAST16_MIN = -2147483648 // common_int_limits.h:87:1:
INT_FAST32_MAX = 2147483647 // common_int_limits.h:94:1:
INT_FAST32_MIN = -2147483648 // common_int_limits.h:88:1:
INT_FAST64_MAX = 9223372036854775807 // common_int_limits.h:95:1:
INT_FAST64_MIN = -9223372036854775808 // common_int_limits.h:89:1:
INT_FAST8_MAX = 2147483647 // common_int_limits.h:92:1:
INT_FAST8_MIN = -2147483648 // common_int_limits.h:86:1:
INT_LEAST16_MAX = 32767 // common_int_limits.h:73:1:
INT_LEAST16_MIN = -32768 // common_int_limits.h:67:1:
INT_LEAST32_MAX = 2147483647 // common_int_limits.h:74:1:
INT_LEAST32_MIN = -2147483648 // common_int_limits.h:68:1:
INT_LEAST64_MAX = 9223372036854775807 // common_int_limits.h:75:1:
INT_LEAST64_MIN = -9223372036854775808 // common_int_limits.h:69:1:
INT_LEAST8_MAX = 127 // common_int_limits.h:72:1:
INT_LEAST8_MIN = -128 // common_int_limits.h:66:1:
LITTLE_ENDIAN = 1234 // endian.h:100:1:
L_INCR = 1 // unistd.h:185:1:
L_SET = 0 // unistd.h:184:1:
L_XTND = 2 // unistd.h:186:1:
NBBY = 8 // types.h:316:1:
NFDBITS = 32 // fd_set.h:93:1:
NODEVMAJOR = -1 // types.h:258:1:
PDP_ENDIAN = 3412 // endian.h:102:1:
PTRDIFF_MAX = 9223372036854775807 // common_int_limits.h:121:1:
PTRDIFF_MIN = -9223372036854775808 // common_int_limits.h:120:1:
R_OK = 0x04 // unistd.h:175:1:
SEEK_CUR = 1 // unistd.h:179:1:
SEEK_END = 2 // unistd.h:180:1:
SEEK_SET = 0 // unistd.h:178:1:
SIG_ATOMIC_MAX = 2147483647 // common_int_limits.h:125:1:
SIG_ATOMIC_MIN = -2147483648 // common_int_limits.h:124:1:
SIZE_MAX = 18446744073709551615 // common_int_limits.h:128:1:
STDERR_FILENO = 2 // unistd.h:82:1:
STDIN_FILENO = 0 // unistd.h:80:1:
STDOUT_FILENO = 1 // unistd.h:81:1:
UINT16_MAX = 65535 // common_int_limits.h:59:1:
UINT32_MAX = 4294967295 // common_int_limits.h:60:1:
UINT64_MAX = 18446744073709551615 // common_int_limits.h:61:1:
UINT8_MAX = 255 // common_int_limits.h:58:1:
UINTMAX_MAX = 18446744073709551615 // common_int_limits.h:112:1:
UINTPTR_MAX = 18446744073709551615 // common_int_limits.h:106:1:
UINT_FAST16_MAX = 4294967295 // common_int_limits.h:99:1:
UINT_FAST32_MAX = 4294967295 // common_int_limits.h:100:1:
UINT_FAST64_MAX = 18446744073709551615 // common_int_limits.h:101:1:
UINT_FAST8_MAX = 4294967295 // common_int_limits.h:98:1:
UINT_LEAST16_MAX = 65535 // common_int_limits.h:79:1:
UINT_LEAST32_MAX = 4294967295 // common_int_limits.h:80:1:
UINT_LEAST64_MAX = 18446744073709551615 // common_int_limits.h:81:1:
UINT_LEAST8_MAX = 255 // common_int_limits.h:78:1:
WCHAR_MAX = 0x7fffffff // wchar_limits.h:41:1:
WCHAR_MIN = -2147483648 // wchar_limits.h:40:1:
WINT_MAX = 0x7fffffff // wchar_limits.h:45:1:
WINT_MIN = -2147483648 // wchar_limits.h:44:1:
W_OK = 0x02 // unistd.h:174:1:
X_OK = 0x01 // unistd.h:173:1:
X_AMD64_BYTE_SWAP_H_ = 0 // byte_swap.h:37:1:
X_AMD64_INT_CONST_H_ = 0 // int_const.h:33:1:
X_AMD64_INT_LIMITS_H_ = 0 // int_limits.h:33:1:
X_AMD64_INT_MWGWTYPES_H_ = 0 // int_mwgwtypes.h:33:1:
X_AMD64_INT_TYPES_H_ = 0 // int_types.h:35:1:
X_AMD64_WCHAR_LIMITS_H_ = 0 // wchar_limits.h:33:1:
X_BIG_ENDIAN = 4321 // endian.h:44:1:
X_BSD_INT16_T_ = 0 // types.h:65:1:
X_BSD_INT32_T_ = 0 // types.h:75:1:
X_BSD_INT64_T_ = 0 // types.h:85:1:
X_BSD_INT8_T_ = 0 // types.h:55:1:
X_BSD_INTPTR_T_ = 0 // stdint.h:80:1:
X_BSD_UINT16_T_ = 0 // types.h:70:1:
X_BSD_UINT32_T_ = 0 // types.h:80:1:
X_BSD_UINT64_T_ = 0 // types.h:90:1:
X_BSD_UINT8_T_ = 0 // types.h:60:1:
X_BSD_UINTPTR_T_ = 0 // stdint.h:85:1:
X_BYTE_ORDER = 1234 // endian_machdep.h:3:1:
X_CS_PATH = 1 // unistd.h:338:1:
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_LIB_PTHREAD_TYPES_H = 0 // pthread_types.h:33:1:
X_LITTLE_ENDIAN = 1234 // endian.h:43:1:
X_LP64 = 1 // <predefined>:268:1:
X_NETBSD_SOURCE = 1 // featuretest.h:70:1:
X_O_SC_CLK_TCK = 3 // unistd.h:227:1:
X_PC_2_SYMLINKS = 13 // unistd.h:214:1:
X_PC_ACL_EXTENDED = 14 // unistd.h:215:1:
X_PC_CHOWN_RESTRICTED = 7 // unistd.h:208:1:
X_PC_FILESIZEBITS = 11 // unistd.h:212:1:
X_PC_LINK_MAX = 1 // unistd.h:202:1:
X_PC_MAX_CANON = 2 // unistd.h:203:1:
X_PC_MAX_INPUT = 3 // unistd.h:204:1:
X_PC_MIN_HOLE_SIZE = 15 // unistd.h:218:1:
X_PC_NAME_MAX = 4 // unistd.h:205:1:
X_PC_NO_TRUNC = 8 // unistd.h:209:1:
X_PC_PATH_MAX = 5 // unistd.h:206:1:
X_PC_PIPE_BUF = 6 // unistd.h:207:1:
X_PC_SYMLINK_MAX = 12 // unistd.h:213:1:
X_PC_SYNC_IO = 10 // unistd.h:211:1:
X_PC_VDISABLE = 9 // unistd.h:210:1:
X_PDP_ENDIAN = 3412 // endian.h:45:1:
X_POSIX2_C_BIND = 200112 // unistd.h:166:1:
X_POSIX2_VERSION = 200112 // unistd.h:63:1:
X_POSIX_ASYNCHRONOUS_IO = 200112 // unistd.h:89:1:
X_POSIX_BARRIERS = 200112 // unistd.h:91:1:
X_POSIX_CHOWN_RESTRICTED = 1 // unistd.h:93:1:
X_POSIX_CLOCK_SELECTION = -1 // unistd.h:95:1:
X_POSIX_CPUTIME = 200112 // unistd.h:97:1:
X_POSIX_FSYNC = 1 // unistd.h:101:1:
X_POSIX_IPV6 = 0 // unistd.h:103:1:
X_POSIX_JOB_CONTROL = 1 // unistd.h:105:1:
X_POSIX_MAPPED_FILES = 1 // unistd.h:107:1:
X_POSIX_MEMLOCK = 1 // unistd.h:109:1:
X_POSIX_MEMLOCK_RANGE = 1 // unistd.h:111:1:
X_POSIX_MEMORY_PROTECTION = 1 // unistd.h:113:1:
X_POSIX_MESSAGE_PASSING = 200112 // unistd.h:115:1:
X_POSIX_MONOTONIC_CLOCK = 200112 // unistd.h:117:1:
X_POSIX_NO_TRUNC = 1 // unistd.h:119:1:
X_POSIX_PRIORITIZED_IO = -1 // unistd.h:121:1:
X_POSIX_PRIORITY_SCHEDULING = 200112 // unistd.h:123:1:
X_POSIX_RAW_SOCKETS = 200112 // unistd.h:125:1:
X_POSIX_READER_WRITER_LOCKS = 200112 // unistd.h:127:1:
X_POSIX_REGEXP = 1 // unistd.h:131:1:
X_POSIX_SEMAPHORES = 0 // unistd.h:133:1:
X_POSIX_SHARED_MEMORY_OBJECTS = 0 // unistd.h:135:1:
X_POSIX_SHELL = 1 // unistd.h:137:1:
X_POSIX_SPAWN = 200809 // unistd.h:68:1:
X_POSIX_SPIN_LOCKS = 200112 // unistd.h:139:1:
X_POSIX_SYNCHRONIZED_IO = 1 // unistd.h:143:1:
X_POSIX_THREADS = 200112 // unistd.h:145:1:
X_POSIX_THREAD_ATTR_STACKADDR = 200112 // unistd.h:149:1:
X_POSIX_THREAD_ATTR_STACKSIZE = 200112 // unistd.h:147:1:
X_POSIX_THREAD_CPUTIME = 200112 // unistd.h:151:1:
X_POSIX_THREAD_PRIO_PROTECT = 200112 // unistd.h:153:1:
X_POSIX_THREAD_SAFE_FUNCTIONS = 200112 // unistd.h:155:1:
X_POSIX_TIMERS = 200112 // unistd.h:159:1:
X_POSIX_VERSION = 200112 // unistd.h:62:1:
X_PT_BARRIERATTR_DEAD = 0xDEAD0808 // pthread_types.h:278:1:
X_PT_BARRIERATTR_MAGIC = 0x88880808 // pthread_types.h:277:1:
X_PT_BARRIER_DEAD = 0xDEAD0008 // pthread_types.h:270:1:
X_PT_BARRIER_MAGIC = 0x88880008 // pthread_types.h:269:1:
X_PT_CONDATTR_DEAD = 0xDEAD0006 // pthread_types.h:197:1:
X_PT_CONDATTR_MAGIC = 0x66660006 // pthread_types.h:196:1:
X_PT_COND_DEAD = 0xDEAD0005 // pthread_types.h:182:1:
X_PT_COND_MAGIC = 0x55550005 // pthread_types.h:181:1:
X_PT_MUTEXATTR_DEAD = 0xDEAD0004 // pthread_types.h:167:1:
X_PT_MUTEXATTR_MAGIC = 0x44440004 // pthread_types.h:166:1:
X_PT_MUTEX_DEAD = 0xDEAD0003 // pthread_types.h:139:1:
X_PT_MUTEX_MAGIC = 0x33330003 // pthread_types.h:138:1:
X_PT_RWLOCKATTR_DEAD = 0xDEAD0909 // pthread_types.h:253:1:
X_PT_RWLOCKATTR_MAGIC = 0x99990909 // pthread_types.h:252:1:
X_PT_RWLOCK_DEAD = 0xDEAD0009 // pthread_types.h:236:1:
X_PT_RWLOCK_MAGIC = 0x99990009 // pthread_types.h:235:1:
X_PT_SPINLOCK_DEAD = 0xDEAD0007 // pthread_types.h:213:1:
X_PT_SPINLOCK_MAGIC = 0x77770007 // pthread_types.h:212:1:
X_PT_SPINLOCK_PSHARED = 0x00000001 // pthread_types.h:214:1:
X_QUAD_HIGHWORD = 1 // endian.h:84:1:
X_QUAD_LOWWORD = 0 // endian.h:85:1:
X_SC_2_CHAR_TERM = 20 // unistd.h:244:1:
X_SC_2_C_BIND = 18 // unistd.h:242:1:
X_SC_2_C_DEV = 19 // unistd.h:243:1:
X_SC_2_FORT_DEV = 21 // unistd.h:245:1:
X_SC_2_FORT_RUN = 22 // unistd.h:246:1:
X_SC_2_LOCALEDEF = 23 // unistd.h:247:1:
X_SC_2_PBS = 80 // unistd.h:305:1:
X_SC_2_PBS_ACCOUNTING = 81 // unistd.h:306:1:
X_SC_2_PBS_CHECKPOINT = 82 // unistd.h:307:1:
X_SC_2_PBS_LOCATE = 83 // unistd.h:308:1:
X_SC_2_PBS_MESSAGE = 84 // unistd.h:309:1:
X_SC_2_PBS_TRACK = 85 // unistd.h:310:1:
X_SC_2_SW_DEV = 24 // unistd.h:248:1:
X_SC_2_UPE = 25 // unistd.h:249:1:
X_SC_2_VERSION = 17 // unistd.h:241:1:
X_SC_AIO_LISTIO_MAX = 51 // unistd.h:276:1:
X_SC_AIO_MAX = 52 // unistd.h:277:1:
X_SC_ARG_MAX = 1 // unistd.h:225:1:
X_SC_ASYNCHRONOUS_IO = 50 // unistd.h:275:1:
X_SC_ATEXIT_MAX = 40 // unistd.h:265:1:
X_SC_BARRIERS = 43 // unistd.h:268:1:
X_SC_BC_BASE_MAX = 9 // unistd.h:233:1:
X_SC_BC_DIM_MAX = 10 // unistd.h:234:1:
X_SC_BC_SCALE_MAX = 11 // unistd.h:235:1:
X_SC_BC_STRING_MAX = 12 // unistd.h:236:1:
X_SC_CHILD_MAX = 2 // unistd.h:226:1:
X_SC_CLK_TCK = 39 // unistd.h:264:1:
X_SC_CLOCK_SELECTION = 49 // unistd.h:274:1:
X_SC_COLL_WEIGHTS_MAX = 13 // unistd.h:237:1:
X_SC_CPUTIME = 90 // unistd.h:318:1:
X_SC_DELAYTIMER_MAX = 92 // unistd.h:320:1:
X_SC_EXPR_NEST_MAX = 14 // unistd.h:238:1:
X_SC_FSYNC = 29 // unistd.h:254:1:
X_SC_GETGR_R_SIZE_MAX = 47 // unistd.h:272:1:
X_SC_GETPW_R_SIZE_MAX = 48 // unistd.h:273:1:
X_SC_HOST_NAME_MAX = 69 // unistd.h:294:1:
X_SC_IOV_MAX = 32 // unistd.h:257:1:
X_SC_JOB_CONTROL = 6 // unistd.h:230:1:
X_SC_LINE_MAX = 15 // unistd.h:239:1:
X_SC_LOGIN_NAME_MAX = 37 // unistd.h:262:1:
X_SC_MAPPED_FILES = 33 // unistd.h:258:1:
X_SC_MEMLOCK = 34 // unistd.h:259:1:
X_SC_MEMLOCK_RANGE = 35 // unistd.h:260:1:
X_SC_MEMORY_PROTECTION = 36 // unistd.h:261:1:
X_SC_MESSAGE_PASSING = 53 // unistd.h:278:1:
X_SC_MONOTONIC_CLOCK = 38 // unistd.h:263:1:
X_SC_MQ_OPEN_MAX = 54 // unistd.h:279:1:
X_SC_MQ_PRIO_MAX = 55 // unistd.h:280:1:
X_SC_NGROUPS_MAX = 4 // unistd.h:228:1:
X_SC_NPROCESSORS_CONF = 1001 // unistd.h:329:1:
X_SC_NPROCESSORS_ONLN = 1002 // unistd.h:330:1:
X_SC_OPEN_MAX = 5 // unistd.h:229:1:
X_SC_PAGESIZE = 28 // unistd.h:252:1:
X_SC_PAGE_SIZE = 28 // unistd.h:253:1:
X_SC_PASS_MAX = 70 // unistd.h:295:1:
X_SC_PHYS_PAGES = 121 // unistd.h:325:1:
X_SC_PRIORITY_SCHEDULING = 56 // unistd.h:281:1:
X_SC_READER_WRITER_LOCKS = 46 // unistd.h:271:1:
X_SC_REALTIME_SIGNALS = 94 // unistd.h:322:1:
X_SC_REGEXP = 71 // unistd.h:296:1:
X_SC_RE_DUP_MAX = 16 // unistd.h:240:1:
X_SC_SAVED_IDS = 7 // unistd.h:231:1:
X_SC_SCHED_PRI_MAX = 2003 // unistd.h:334:1:
X_SC_SCHED_PRI_MIN = 2002 // unistd.h:333:1:
X_SC_SCHED_RT_TS = 2001 // unistd.h:332:1:
X_SC_SEMAPHORES = 42 // unistd.h:267:1:
X_SC_SEM_NSEMS_MAX = 89 // unistd.h:317:1:
X_SC_SHARED_MEMORY_OBJECTS = 87 // unistd.h:314:1:
X_SC_SHELL = 72 // unistd.h:297:1:
X_SC_SIGQUEUE_MAX = 93 // unistd.h:321:1:
X_SC_SPAWN = 86 // unistd.h:313:1:
X_SC_SPIN_LOCKS = 45 // unistd.h:270:1:
X_SC_STREAM_MAX = 26 // unistd.h:250:1:
X_SC_SYMLOOP_MAX = 73 // unistd.h:298:1:
X_SC_SYNCHRONIZED_IO = 31 // unistd.h:256:1:
X_SC_THREADS = 41 // unistd.h:266:1:
X_SC_THREAD_ATTR_STACKADDR = 61 // unistd.h:286:1:
X_SC_THREAD_ATTR_STACKSIZE = 62 // unistd.h:287:1:
X_SC_THREAD_CPUTIME = 91 // unistd.h:319:1:
X_SC_THREAD_DESTRUCTOR_ITERATIONS = 57 // unistd.h:282:1:
X_SC_THREAD_KEYS_MAX = 58 // unistd.h:283:1:
X_SC_THREAD_PRIORITY_SCHEDULING = 63 // unistd.h:288:1:
X_SC_THREAD_PRIO_INHERIT = 64 // unistd.h:289:1:
X_SC_THREAD_PRIO_PROTECT = 65 // unistd.h:290:1:
X_SC_THREAD_PROCESS_SHARED = 66 // unistd.h:291:1:
X_SC_THREAD_SAFE_FUNCTIONS = 67 // unistd.h:292:1:
X_SC_THREAD_STACK_MIN = 59 // unistd.h:284:1:
X_SC_THREAD_THREADS_MAX = 60 // unistd.h:285:1:
X_SC_TIMERS = 44 // unistd.h:269:1:
X_SC_TIMER_MAX = 88 // unistd.h:316:1:
X_SC_TTY_NAME_MAX = 68 // unistd.h:293:1:
X_SC_TZNAME_MAX = 27 // unistd.h:251:1:
X_SC_V6_ILP32_OFF32 = 74 // unistd.h:301:1:
X_SC_V6_ILP32_OFFBIG = 75 // unistd.h:302:1:
X_SC_V6_LP64_OFF64 = 76 // unistd.h:303:1:
X_SC_V6_LPBIG_OFFBIG = 77 // unistd.h:304:1:
X_SC_VERSION = 8 // unistd.h:232:1:
X_SC_XOPEN_SHM = 30 // unistd.h:255:1:
X_SIZE_T = 0 // types.h:279:1:
X_SYS_ANSI_H_ = 0 // ansi.h:33:1:
X_SYS_BSWAP_H_ = 0 // bswap.h:6:1:
X_SYS_CDEFS_ELF_H_ = 0 // cdefs_elf.h:31:1:
X_SYS_CDEFS_H_ = 0 // cdefs.h:37:1:
X_SYS_COMMON_ANSI_H_ = 0 // common_ansi.h:33:1:
X_SYS_COMMON_INT_LIMITS_H_ = 0 // common_int_limits.h:33:1:
X_SYS_COMMON_INT_MWGWTYPES_H_ = 0 // common_int_mwgwtypes.h:33:1:
X_SYS_COMMON_INT_TYPES_H_ = 0 // common_int_types.h:33:1:
X_SYS_ENDIAN_H_ = 0 // endian.h:35:1:
X_SYS_FD_SET_H_ = 0 // fd_set.h:35:1:
X_SYS_NULL_H_ = 0 // null.h:9:1:
X_SYS_STDINT_H_ = 0 // stdint.h:33:1:
X_SYS_TYPES_H_ = 0 // types.h:40:1:
X_SYS_UNISTD_H_ = 0 // unistd.h:35:1:
X_UNISTD_H_ = 0 // unistd.h:64:1:
X_X86_64_BSWAP_H_ = 0 // bswap.h:6:1:
X_X86_64_CDEFS_H_ = 0 // cdefs.h:4:1:
X_X86_64_TYPES_H_ = 0 // types.h:35:1:
X_XOPEN_SHM = 0 // unistd.h:169:1:
)
type Ptrdiff_t = int64 /* <builtin>:3:26 */
type Size_t = uint64 /* <builtin>:9:23 */
type Wchar_t = int32 /* <builtin>:15:24 */
type X__int128_t = struct {
Flo int64
Fhi int64
} /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
type X__uint128_t = struct {
Flo uint64
Fhi uint64
} /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
type X__float128 = float64 /* <builtin>:47:21 */
// return true if value 'a' fits in type 't'
// $NetBSD: int_types.h,v 1.7 2014/07/25 21:43:13 joerg Exp $
// -
// Copyright (c) 1990 The Regents of the University of California.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// from: @(#)types.h 7.5 (Berkeley) 3/9/91
// $NetBSD: common_int_types.h,v 1.1 2014/07/25 21:43:13 joerg Exp $
// -
// Copyright (c) 2014 The NetBSD Foundation, Inc.
// All rights reserved.
//
// This code is derived from software contributed to The NetBSD Foundation
// by Joerg Sonnenberger.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
//
// THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
// ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
// TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
// BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
// 7.18.1 Integer types
// 7.18.1.1 Exact-width integer types
type X__int8_t = int8 /* common_int_types.h:45:27 */
type X__uint8_t = uint8 /* common_int_types.h:46:27 */
type X__int16_t = int16 /* common_int_types.h:47:27 */
type X__uint16_t = uint16 /* common_int_types.h:48:27 */
type X__int32_t = int32 /* common_int_types.h:49:27 */
type X__uint32_t = uint32 /* common_int_types.h:50:27 */
type X__int64_t = int64 /* common_int_types.h:51:27 */
type X__uint64_t = uint64 /* common_int_types.h:52:27 */
// 7.18.1.4 Integer types capable of holding object pointers
type X__intptr_t = int64 /* common_int_types.h:58:27 */
type X__uintptr_t = uint64 /* common_int_types.h:59:26 */
// Types which are fundamental to the implementation and may appear in
// more than one standard header are defined here. Standard headers
// then use:
// #ifdef _BSD_SIZE_T_
// typedef _BSD_SIZE_T_ size_t;
// #undef _BSD_SIZE_T_
// #endif
// $NetBSD: int_types.h,v 1.7 2014/07/25 21:43:13 joerg Exp $
// -
// Copyright (c) 1990 The Regents of the University of California.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// from: @(#)types.h 7.5 (Berkeley) 3/9/91
// $NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $
// * Copyright (c) 1991, 1993
// The Regents of the University of California. All rights reserved.
//
// This code is derived from software contributed to Berkeley by
// Berkeley Software Design, Inc.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | true |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/unistd/unistd_illumos_amd64.go | vendor/modernc.org/libc/unistd/unistd_illumos_amd64.go | // 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_illumos_amd64.go -pkgname unistd', DO NOT EDIT.
package unistd
import (
"math"
"reflect"
"sync/atomic"
"unsafe"
)
var _ = math.Pi
var _ reflect.Kind
var _ atomic.Value
var _ unsafe.Pointer
const (
CLOCKS_PER_SEC = 1000000 // time_iso.h:78:1:
CLOCK_HIGHRES = 4 // time_impl.h:126:1:
CLOCK_MONOTONIC = 4 // time_impl.h:124:1:
CLOCK_PROCESS_CPUTIME_ID = 5 // time_impl.h:125:1:
CLOCK_PROF = 2 // time_impl.h:127:1:
CLOCK_REALTIME = 3 // time_impl.h:123:1:
CLOCK_THREAD_CPUTIME_ID = 2 // time_impl.h:122:1:
CLOCK_VIRTUAL = 1 // time_impl.h:121:1:
DST_AUST = 2 // time.h:115:1:
DST_AUSTALT = 10 // time.h:123:1:
DST_CAN = 6 // time.h:119:1:
DST_EET = 5 // time.h:118:1:
DST_GB = 7 // time.h:120:1:
DST_MET = 4 // time.h:117:1:
DST_NONE = 0 // time.h:113:1:
DST_RUM = 8 // time.h:121:1:
DST_TUR = 9 // time.h:122:1:
DST_USA = 1 // time.h:114:1:
DST_WET = 3 // time.h:116:1:
FD_SETSIZE = 65536 // select.h:88:1:
F_LOCK = 1 // unistd.h:56:1:
F_OK = 0 // unistd.h:52:1:
F_TEST = 3 // unistd.h:58:1:
F_TLOCK = 2 // unistd.h:57:1:
F_ULOCK = 0 // unistd.h:55:1:
GF_PATH = "/etc/group" // unistd.h:87:1:
ITIMER_PROF = 2 // time.h:201:1:
ITIMER_REAL = 0 // time.h:199:1:
ITIMER_REALPROF = 3 // time.h:204:1:
ITIMER_VIRTUAL = 1 // time.h:200:1:
MICROSEC = 1000000 // time.h:246:1:
MILLISEC = 1000 // time.h:245:1:
NANOSEC = 1000000000 // time.h:247:1:
NBBY = 8 // select.h:103:1:
PF_PATH = "/etc/passwd" // unistd.h:88:1:
P_MYID = -1 // types.h:632:1:
REG_LABEL_BP = 2 // machtypes.h:44:1:
REG_LABEL_MAX = 8 // machtypes.h:51:1:
REG_LABEL_PC = 0 // machtypes.h:42:1:
REG_LABEL_R12 = 4 // machtypes.h:47:1:
REG_LABEL_R13 = 5 // machtypes.h:48:1:
REG_LABEL_R14 = 6 // machtypes.h:49:1:
REG_LABEL_R15 = 7 // machtypes.h:50:1:
REG_LABEL_RBX = 3 // machtypes.h:46:1:
REG_LABEL_SP = 1 // machtypes.h:43:1:
R_OK = 4 // unistd.h:49:1:
SEC = 1 // time.h:244:1:
SEEK_CUR = 1 // unistd.h:68:1:
SEEK_DATA = 3 // unistd.h:77:1:
SEEK_END = 2 // unistd.h:72:1:
SEEK_HOLE = 4 // unistd.h:81:1:
SEEK_SET = 0 // unistd.h:64:1:
STDERR_FILENO = 2 // unistd.h:185:1:
STDIN_FILENO = 0 // unistd.h:183:1:
STDOUT_FILENO = 1 // unistd.h:184:1:
TIMER_ABSTIME = 0x1 // time_impl.h:134:1:
TIMER_RELTIME = 0x0 // time_impl.h:133:1:
TIME_UTC = 0x1 // time.h:306:1:
W_OK = 2 // unistd.h:50:1:
X_OK = 1 // unistd.h:51:1:
X_ACL_ACE_ENABLED = 0x2 // unistd.h:349:1:
X_ACL_ACLENT_ENABLED = 0x1 // unistd.h:348:1:
X_ALIGNMENT_REQUIRED = 1 // isa_defs.h:262:1:
X_BIT_FIELDS_LTOH = 0 // isa_defs.h:245:1:
X_BOOL_ALIGNMENT = 1 // isa_defs.h:248:1:
X_CASE_INSENSITIVE = 0x2 // unistd.h:342:1:
X_CASE_SENSITIVE = 0x1 // unistd.h:341:1:
X_CHAR_ALIGNMENT = 1 // isa_defs.h:249:1:
X_CHAR_IS_SIGNED = 0 // isa_defs.h:247:1:
X_CLOCKID_T = 0 // types.h:568:1:
X_CLOCK_T = 0 // types.h:563:1:
X_COND_MAGIC = 0x4356 // types.h:426:1:
X_CS_LFS64_CFLAGS = 72 // unistd.h:61:1:
X_CS_LFS64_LDFLAGS = 73 // unistd.h:62:1:
X_CS_LFS64_LIBS = 74 // unistd.h:63:1:
X_CS_LFS64_LINTFLAGS = 75 // unistd.h:64:1:
X_CS_LFS_CFLAGS = 68 // unistd.h:56:1:
X_CS_LFS_LDFLAGS = 69 // unistd.h:57:1:
X_CS_LFS_LIBS = 70 // unistd.h:58:1:
X_CS_LFS_LINTFLAGS = 71 // unistd.h:59:1:
X_CS_PATH = 65 // unistd.h:50:1:
X_CS_POSIX_V6_ILP32_OFF32_CFLAGS = 800 // unistd.h:85:1:
X_CS_POSIX_V6_ILP32_OFF32_LDFLAGS = 801 // unistd.h:86:1:
X_CS_POSIX_V6_ILP32_OFF32_LIBS = 802 // unistd.h:87:1:
X_CS_POSIX_V6_ILP32_OFF32_LINTFLAGS = 803 // unistd.h:88:1:
X_CS_POSIX_V6_ILP32_OFFBIG_CFLAGS = 804 // unistd.h:89:1:
X_CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS = 805 // unistd.h:90:1:
X_CS_POSIX_V6_ILP32_OFFBIG_LIBS = 806 // unistd.h:91:1:
X_CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS = 807 // unistd.h:92:1:
X_CS_POSIX_V6_LP64_OFF64_CFLAGS = 808 // unistd.h:93:1:
X_CS_POSIX_V6_LP64_OFF64_LDFLAGS = 809 // unistd.h:94:1:
X_CS_POSIX_V6_LP64_OFF64_LIBS = 810 // unistd.h:95:1:
X_CS_POSIX_V6_LP64_OFF64_LINTFLAGS = 811 // unistd.h:96:1:
X_CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS = 812 // unistd.h:97:1:
X_CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS = 813 // unistd.h:98:1:
X_CS_POSIX_V6_LPBIG_OFFBIG_LIBS = 814 // unistd.h:99:1:
X_CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS = 815 // unistd.h:100:1:
X_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS = 816 // unistd.h:101:1:
X_CS_XBS5_ILP32_OFF32_CFLAGS = 700 // unistd.h:67:1:
X_CS_XBS5_ILP32_OFF32_LDFLAGS = 701 // unistd.h:68:1:
X_CS_XBS5_ILP32_OFF32_LIBS = 702 // unistd.h:69:1:
X_CS_XBS5_ILP32_OFF32_LINTFLAGS = 703 // unistd.h:70:1:
X_CS_XBS5_ILP32_OFFBIG_CFLAGS = 705 // unistd.h:71:1:
X_CS_XBS5_ILP32_OFFBIG_LDFLAGS = 706 // unistd.h:72:1:
X_CS_XBS5_ILP32_OFFBIG_LIBS = 707 // unistd.h:73:1:
X_CS_XBS5_ILP32_OFFBIG_LINTFLAGS = 708 // unistd.h:74:1:
X_CS_XBS5_LP64_OFF64_CFLAGS = 709 // unistd.h:75:1:
X_CS_XBS5_LP64_OFF64_LDFLAGS = 710 // unistd.h:76:1:
X_CS_XBS5_LP64_OFF64_LIBS = 711 // unistd.h:77:1:
X_CS_XBS5_LP64_OFF64_LINTFLAGS = 712 // unistd.h:78:1:
X_CS_XBS5_LPBIG_OFFBIG_CFLAGS = 713 // unistd.h:79:1:
X_CS_XBS5_LPBIG_OFFBIG_LDFLAGS = 714 // unistd.h:80:1:
X_CS_XBS5_LPBIG_OFFBIG_LIBS = 715 // unistd.h:81:1:
X_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS = 716 // unistd.h:82:1:
X_DMA_USES_PHYSADDR = 0 // isa_defs.h:281:1:
X_DONT_USE_1275_GENERIC_NAMES = 0 // isa_defs.h:287:1:
X_DOUBLE_ALIGNMENT = 8 // isa_defs.h:256:1:
X_DOUBLE_COMPLEX_ALIGNMENT = 8 // isa_defs.h:257:1:
X_DTRACE_VERSION = 1 // feature_tests.h:490:1:
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_FIRMWARE_NEEDS_FDISK = 0 // isa_defs.h:282:1:
X_FLOAT_ALIGNMENT = 4 // isa_defs.h:252:1:
X_FLOAT_COMPLEX_ALIGNMENT = 4 // isa_defs.h:253:1:
X_HAVE_CPUID_INSN = 0 // isa_defs.h:288:1:
X_IEEE_754 = 0 // isa_defs.h:246:1:
X_INT64_TYPE = 0 // int_types.h:82:1:
X_INT_ALIGNMENT = 4 // isa_defs.h:251:1:
X_ISO_CPP_14882_1998 = 0 // feature_tests.h:466:1:
X_ISO_C_9899_1999 = 0 // feature_tests.h:472:1:
X_ISO_C_9899_2011 = 0 // feature_tests.h:478:1:
X_ISO_TIME_ISO_H = 0 // time_iso.h:46:1:
X_LARGEFILE64_SOURCE = 1 // feature_tests.h:231:1:
X_LARGEFILE_SOURCE = 1 // feature_tests.h:235:1:
X_LFS64_ASYNCHRONOUS_IO = 1 // unistd.h:195:1:
X_LFS64_LARGEFILE = 1 // unistd.h:193:1:
X_LFS64_STDIO = 1 // unistd.h:194:1:
X_LFS_LARGEFILE = 1 // unistd.h:192:1:
X_LITTLE_ENDIAN = 0 // isa_defs.h:242:1:
X_LOCALE_T = 0 // time.h:291:1:
X_LONGLONG_TYPE = 0 // feature_tests.h:412:1:
X_LONG_ALIGNMENT = 8 // isa_defs.h:254:1:
X_LONG_DOUBLE_ALIGNMENT = 16 // isa_defs.h:258:1:
X_LONG_DOUBLE_COMPLEX_ALIGNMENT = 16 // isa_defs.h:259:1:
X_LONG_LONG_ALIGNMENT = 8 // isa_defs.h:255:1:
X_LONG_LONG_ALIGNMENT_32 = 4 // isa_defs.h:268:1:
X_LONG_LONG_LTOH = 0 // isa_defs.h:244:1:
X_LP64 = 1 // <predefined>:286:1:
X_MAX_ALIGNMENT = 16 // isa_defs.h:261:1:
X_MULTI_DATAMODEL = 0 // isa_defs.h:279:1:
X_MUTEX_MAGIC = 0x4d58 // types.h:424:1:
X_NBBY = 8 // select.h:100:1:
X_NORETURN_KYWD = 0 // feature_tests.h:448:1:
X_OFF_T = 0 // types.h:142:1:
X_PC_2_SYMLINKS = 19 // unistd.h:309:1:
X_PC_ACCESS_FILTERING = 25 // unistd.h:315:1:
X_PC_ACL_ENABLED = 20 // unistd.h:310:1:
X_PC_ALLOC_SIZE_MIN = 13 // unistd.h:303:1:
X_PC_ASYNC_IO = 10 // unistd.h:299:1:
X_PC_CASE_BEHAVIOR = 22 // unistd.h:312:1:
X_PC_CHOWN_RESTRICTED = 9 // unistd.h:297:1:
X_PC_FILESIZEBITS = 67 // unistd.h:325:1:
X_PC_LAST = 101 // unistd.h:336:1:
X_PC_LINK_MAX = 1 // unistd.h:289:1:
X_PC_MAX_CANON = 2 // unistd.h:290:1:
X_PC_MAX_INPUT = 3 // unistd.h:291:1:
X_PC_MIN_HOLE_SIZE = 21 // unistd.h:311:1:
X_PC_NAME_MAX = 4 // unistd.h:292:1:
X_PC_NO_TRUNC = 7 // unistd.h:295:1:
X_PC_PATH_MAX = 5 // unistd.h:293:1:
X_PC_PIPE_BUF = 6 // unistd.h:294:1:
X_PC_PRIO_IO = 11 // unistd.h:300:1:
X_PC_REC_INCR_XFER_SIZE = 14 // unistd.h:304:1:
X_PC_REC_MAX_XFER_SIZE = 15 // unistd.h:305:1:
X_PC_REC_MIN_XFER_SIZE = 16 // unistd.h:306:1:
X_PC_REC_XFER_ALIGN = 17 // unistd.h:307:1:
X_PC_SATTR_ENABLED = 23 // unistd.h:313:1:
X_PC_SATTR_EXISTS = 24 // unistd.h:314:1:
X_PC_SYMLINK_MAX = 18 // unistd.h:308:1:
X_PC_SYNC_IO = 12 // unistd.h:301:1:
X_PC_TIMESTAMP_RESOLUTION = 26 // unistd.h:317:1:
X_PC_VDISABLE = 8 // unistd.h:296:1:
X_PC_XATTR_ENABLED = 100 // unistd.h:330:1:
X_PC_XATTR_EXISTS = 101 // unistd.h:331:1:
X_POINTER_ALIGNMENT = 8 // isa_defs.h:260:1:
X_POSIX2_CHAR_TERM = 1 // unistd.h:391:1:
X_POSIX2_C_BIND = 1 // unistd.h:401:1:
X_POSIX2_C_DEV = 1 // unistd.h:402:1:
X_POSIX2_C_VERSION = 199209 // unistd.h:376:1:
X_POSIX2_FORT_RUN = 1 // unistd.h:403:1:
X_POSIX2_LOCALEDEF = 1 // unistd.h:404:1:
X_POSIX2_SW_DEV = 1 // unistd.h:405:1:
X_POSIX2_UPE = 1 // unistd.h:406:1:
X_POSIX2_VERSION = 199209 // unistd.h:363:1:
X_POSIX_ADVISORY_INFO = 200112 // unistd.h:156:1:
X_POSIX_ASYNCHRONOUS_IO = 1 // unistd.h:120:1:
X_POSIX_ASYNC_IO = 1 // unistd.h:98:1:
X_POSIX_BARRIERS = 200112 // unistd.h:157:1:
X_POSIX_CLOCK_SELECTION = 200112 // unistd.h:158:1:
X_POSIX_FSYNC = 1 // unistd.h:121:1:
X_POSIX_IPV6 = 200112 // unistd.h:159:1:
X_POSIX_JOB_CONTROL = 1 // unistd.h:99:1:
X_POSIX_MAPPED_FILES = 1 // unistd.h:122:1:
X_POSIX_MEMLOCK = 1 // unistd.h:123:1:
X_POSIX_MEMLOCK_RANGE = 1 // unistd.h:124:1:
X_POSIX_MEMORY_PROTECTION = 1 // unistd.h:125:1:
X_POSIX_MESSAGE_PASSING = 1 // unistd.h:126:1:
X_POSIX_MONOTONIC_CLOCK = 200112 // unistd.h:160:1:
X_POSIX_PRIORITY_SCHEDULING = 1 // unistd.h:127:1:
X_POSIX_RAW_SOCKETS = 200112 // unistd.h:161:1:
X_POSIX_READER_WRITER_LOCKS = 200112 // unistd.h:162:1:
X_POSIX_REALTIME_SIGNALS = 1 // unistd.h:128:1:
X_POSIX_REGEXP = 1 // unistd.h:410:1:
X_POSIX_SAVED_IDS = 1 // unistd.h:100:1:
X_POSIX_SEMAPHORES = 1 // unistd.h:129:1:
X_POSIX_SHARED_MEMORY_OBJECTS = 1 // unistd.h:130:1:
X_POSIX_SHELL = 1 // unistd.h:411:1:
X_POSIX_SPAWN = 200112 // unistd.h:163:1:
X_POSIX_SPIN_LOCKS = 200112 // unistd.h:164:1:
X_POSIX_SYNCHRONIZED_IO = 1 // unistd.h:131:1:
X_POSIX_SYNC_IO = 1 // unistd.h:101:1:
X_POSIX_THREADS = 1 // unistd.h:147:1:
X_POSIX_THREAD_ATTR_STACKADDR = 1 // unistd.h:148:1:
X_POSIX_THREAD_ATTR_STACKSIZE = 1 // unistd.h:149:1:
X_POSIX_THREAD_PRIORITY_SCHEDULING = 1 // unistd.h:151:1:
X_POSIX_THREAD_PRIO_INHERIT = 1 // unistd.h:175:1:
X_POSIX_THREAD_PRIO_PROTECT = 1 // unistd.h:176:1:
X_POSIX_THREAD_PROCESS_SHARED = 1 // unistd.h:150:1:
X_POSIX_THREAD_SAFE_FUNCTIONS = 1 // unistd.h:146:1:
X_POSIX_TIMEOUTS = 200112 // unistd.h:165:1:
X_POSIX_TIMERS = 1 // unistd.h:152:1:
X_POSIX_VDISABLE = 0 // unistd.h:180:1:
X_POSIX_VERSION = 199506 // unistd.h:355:1:
X_PSM_MODULES = 0 // isa_defs.h:284:1:
X_PTRDIFF_T = 0 // types.h:112:1:
X_RESTRICT_KYWD = 0 // feature_tests.h:435:1:
X_RTC_CONFIG = 0 // isa_defs.h:285:1:
X_RWL_MAGIC = 0x5257 // types.h:427:1:
X_SC_2_CHAR_TERM = 66 // unistd.h:175:1:
X_SC_2_C_BIND = 45 // unistd.h:153:1:
X_SC_2_C_DEV = 46 // unistd.h:154:1:
X_SC_2_C_VERSION = 47 // unistd.h:155:1:
X_SC_2_FORT_DEV = 48 // unistd.h:156:1:
X_SC_2_FORT_RUN = 49 // unistd.h:157:1:
X_SC_2_LOCALEDEF = 50 // unistd.h:158:1:
X_SC_2_PBS = 724 // unistd.h:246:1:
X_SC_2_PBS_ACCOUNTING = 725 // unistd.h:247:1:
X_SC_2_PBS_CHECKPOINT = 726 // unistd.h:248:1:
X_SC_2_PBS_LOCATE = 728 // unistd.h:249:1:
X_SC_2_PBS_MESSAGE = 729 // unistd.h:250:1:
X_SC_2_PBS_TRACK = 730 // unistd.h:251:1:
X_SC_2_SW_DEV = 51 // unistd.h:159:1:
X_SC_2_UPE = 52 // unistd.h:160:1:
X_SC_2_VERSION = 53 // unistd.h:161:1:
X_SC_ADVISORY_INFO = 731 // unistd.h:252:1:
X_SC_AIO_LISTIO_MAX = 18 // unistd.h:125:1:
X_SC_AIO_MAX = 19 // unistd.h:126:1:
X_SC_AIO_PRIO_DELTA_MAX = 20 // unistd.h:127:1:
X_SC_ARG_MAX = 1 // unistd.h:106:1:
X_SC_ASYNCHRONOUS_IO = 21 // unistd.h:128:1:
X_SC_ATEXIT_MAX = 76 // unistd.h:179:1:
X_SC_AVPHYS_PAGES = 501 // unistd.h:190:1:
X_SC_BARRIERS = 732 // unistd.h:253:1:
X_SC_BC_BASE_MAX = 54 // unistd.h:162:1:
X_SC_BC_DIM_MAX = 55 // unistd.h:163:1:
X_SC_BC_SCALE_MAX = 56 // unistd.h:164:1:
X_SC_BC_STRING_MAX = 57 // unistd.h:165:1:
X_SC_CHILD_MAX = 2 // unistd.h:107:1:
X_SC_CLK_TCK = 3 // unistd.h:108:1:
X_SC_CLOCK_SELECTION = 733 // unistd.h:254:1:
X_SC_COHER_BLKSZ = 503 // unistd.h:196:1:
X_SC_COLL_WEIGHTS_MAX = 58 // unistd.h:166:1:
X_SC_CPUID_MAX = 517 // unistd.h:211:1:
X_SC_CPUTIME = 734 // unistd.h:255:1:
X_SC_DCACHE_ASSOC = 513 // unistd.h:206:1:
X_SC_DCACHE_BLKSZ = 510 // unistd.h:203:1:
X_SC_DCACHE_LINESZ = 508 // unistd.h:201:1:
X_SC_DCACHE_SZ = 506 // unistd.h:199:1:
X_SC_DCACHE_TBLKSZ = 511 // unistd.h:204:1:
X_SC_DELAYTIMER_MAX = 22 // unistd.h:129:1:
X_SC_EPHID_MAX = 518 // unistd.h:212:1:
X_SC_EXPR_NEST_MAX = 59 // unistd.h:167:1:
X_SC_FSYNC = 23 // unistd.h:130:1:
X_SC_GETGR_R_SIZE_MAX = 569 // unistd.h:220:1:
X_SC_GETPW_R_SIZE_MAX = 570 // unistd.h:221:1:
X_SC_HOST_NAME_MAX = 735 // unistd.h:256:1:
X_SC_ICACHE_ASSOC = 512 // unistd.h:205:1:
X_SC_ICACHE_BLKSZ = 509 // unistd.h:202:1:
X_SC_ICACHE_LINESZ = 507 // unistd.h:200:1:
X_SC_ICACHE_SZ = 505 // unistd.h:198:1:
X_SC_IOV_MAX = 77 // unistd.h:180:1:
X_SC_IPV6 = 762 // unistd.h:283:1:
X_SC_JOB_CONTROL = 6 // unistd.h:111:1:
X_SC_LINE_MAX = 60 // unistd.h:168:1:
X_SC_LOGIN_NAME_MAX = 571 // unistd.h:222:1:
X_SC_LOGNAME_MAX = 10 // unistd.h:116:1:
X_SC_MAPPED_FILES = 24 // unistd.h:131:1:
X_SC_MAXPID = 514 // unistd.h:208:1:
X_SC_MEMLOCK = 25 // unistd.h:132:1:
X_SC_MEMLOCK_RANGE = 26 // unistd.h:133:1:
X_SC_MEMORY_PROTECTION = 27 // unistd.h:134:1:
X_SC_MESSAGE_PASSING = 28 // unistd.h:135:1:
X_SC_MONOTONIC_CLOCK = 736 // unistd.h:257:1:
X_SC_MQ_OPEN_MAX = 29 // unistd.h:136:1:
X_SC_MQ_PRIO_MAX = 30 // unistd.h:137:1:
X_SC_NGROUPS_MAX = 4 // unistd.h:109:1:
X_SC_NPROCESSORS_CONF = 14 // unistd.h:120:1:
X_SC_NPROCESSORS_MAX = 516 // unistd.h:210:1:
X_SC_NPROCESSORS_ONLN = 15 // unistd.h:121:1:
X_SC_OPEN_MAX = 5 // unistd.h:110:1:
X_SC_PAGESIZE = 11 // unistd.h:117:1:
X_SC_PAGE_SIZE = 11 // unistd.h:182:1:
X_SC_PASS_MAX = 9 // unistd.h:115:1:
X_SC_PHYS_PAGES = 500 // unistd.h:189:1:
X_SC_PRIORITIZED_IO = 31 // unistd.h:138:1:
X_SC_PRIORITY_SCHEDULING = 32 // unistd.h:139:1:
X_SC_RAW_SOCKETS = 763 // unistd.h:284:1:
X_SC_READER_WRITER_LOCKS = 737 // unistd.h:258:1:
X_SC_REALTIME_SIGNALS = 33 // unistd.h:140:1:
X_SC_REGEXP = 738 // unistd.h:259:1:
X_SC_RE_DUP_MAX = 61 // unistd.h:169:1:
X_SC_RTSIG_MAX = 34 // unistd.h:141:1:
X_SC_SAVED_IDS = 7 // unistd.h:112:1:
X_SC_SEMAPHORES = 35 // unistd.h:142:1:
X_SC_SEM_NSEMS_MAX = 36 // unistd.h:143:1:
X_SC_SEM_VALUE_MAX = 37 // unistd.h:144:1:
X_SC_SHARED_MEMORY_OBJECTS = 38 // unistd.h:145:1:
X_SC_SHELL = 739 // unistd.h:260:1:
X_SC_SIGQUEUE_MAX = 39 // unistd.h:146:1:
X_SC_SIGRT_MAX = 41 // unistd.h:148:1:
X_SC_SIGRT_MIN = 40 // unistd.h:147:1:
X_SC_SPAWN = 740 // unistd.h:261:1:
X_SC_SPIN_LOCKS = 741 // unistd.h:262:1:
X_SC_SPLIT_CACHE = 504 // unistd.h:197:1:
X_SC_SPORADIC_SERVER = 742 // unistd.h:263:1:
X_SC_SS_REPL_MAX = 743 // unistd.h:264:1:
X_SC_STACK_PROT = 515 // unistd.h:209:1:
X_SC_STREAM_MAX = 16 // unistd.h:122:1:
X_SC_SYMLOOP_MAX = 744 // unistd.h:265:1:
X_SC_SYNCHRONIZED_IO = 42 // unistd.h:149:1:
X_SC_THREADS = 576 // unistd.h:227:1:
X_SC_THREAD_ATTR_STACKADDR = 577 // unistd.h:228:1:
X_SC_THREAD_ATTR_STACKSIZE = 578 // unistd.h:229:1:
X_SC_THREAD_CPUTIME = 745 // unistd.h:266:1:
X_SC_THREAD_DESTRUCTOR_ITERATIONS = 568 // unistd.h:219:1:
X_SC_THREAD_KEYS_MAX = 572 // unistd.h:223:1:
X_SC_THREAD_PRIORITY_SCHEDULING = 579 // unistd.h:230:1:
X_SC_THREAD_PRIO_INHERIT = 580 // unistd.h:231:1:
X_SC_THREAD_PRIO_PROTECT = 581 // unistd.h:232:1:
X_SC_THREAD_PROCESS_SHARED = 582 // unistd.h:233:1:
X_SC_THREAD_SAFE_FUNCTIONS = 583 // unistd.h:234:1:
X_SC_THREAD_SPORADIC_SERVER = 746 // unistd.h:267:1:
X_SC_THREAD_STACK_MIN = 573 // unistd.h:224:1:
X_SC_THREAD_THREADS_MAX = 574 // unistd.h:225:1:
X_SC_TIMEOUTS = 747 // unistd.h:268:1:
X_SC_TIMERS = 43 // unistd.h:150:1:
X_SC_TIMER_MAX = 44 // unistd.h:151:1:
X_SC_TRACE = 748 // unistd.h:269:1:
X_SC_TRACE_EVENT_FILTER = 749 // unistd.h:270:1:
X_SC_TRACE_EVENT_NAME_MAX = 750 // unistd.h:271:1:
X_SC_TRACE_INHERIT = 751 // unistd.h:272:1:
X_SC_TRACE_LOG = 752 // unistd.h:273:1:
X_SC_TRACE_NAME_MAX = 753 // unistd.h:274:1:
X_SC_TRACE_SYS_MAX = 754 // unistd.h:275:1:
X_SC_TRACE_USER_EVENT_MAX = 755 // unistd.h:276:1:
X_SC_TTY_NAME_MAX = 575 // unistd.h:226:1:
X_SC_TYPED_MEMORY_OBJECTS = 756 // unistd.h:277:1:
X_SC_TZNAME_MAX = 17 // unistd.h:123:1:
X_SC_T_IOV_MAX = 79 // unistd.h:186:1:
X_SC_UADDR_MAX = 519 // unistd.h:213:1:
X_SC_V6_ILP32_OFF32 = 757 // unistd.h:278:1:
X_SC_V6_ILP32_OFFBIG = 758 // unistd.h:279:1:
X_SC_V6_LP64_OFF64 = 759 // unistd.h:280:1:
X_SC_V6_LPBIG_OFFBIG = 760 // unistd.h:281:1:
X_SC_VERSION = 8 // unistd.h:113:1:
X_SC_XBS5_ILP32_OFF32 = 720 // unistd.h:240:1:
X_SC_XBS5_ILP32_OFFBIG = 721 // unistd.h:241:1:
X_SC_XBS5_LP64_OFF64 = 722 // unistd.h:242:1:
X_SC_XBS5_LPBIG_OFFBIG = 723 // unistd.h:243:1:
X_SC_XOPEN_CRYPT = 62 // unistd.h:170:1:
X_SC_XOPEN_ENH_I18N = 63 // unistd.h:171:1:
X_SC_XOPEN_LEGACY = 717 // unistd.h:237:1:
X_SC_XOPEN_REALTIME = 718 // unistd.h:238:1:
X_SC_XOPEN_REALTIME_THREADS = 719 // unistd.h:239:1:
X_SC_XOPEN_SHM = 64 // unistd.h:172:1:
X_SC_XOPEN_STREAMS = 761 // unistd.h:282:1:
X_SC_XOPEN_UNIX = 78 // unistd.h:181:1:
X_SC_XOPEN_VERSION = 12 // unistd.h:118:1:
X_SC_XOPEN_XCU_VERSION = 67 // unistd.h:176:1:
X_SEMA_MAGIC = 0x534d // types.h:425:1:
X_SHORT_ALIGNMENT = 2 // isa_defs.h:250:1:
X_SIGEVENT = 0 // time.h:132:1:
X_SIGSET_T = 0 // select.h:73:1:
X_SIGVAL = 0 // time.h:124:1:
X_SIZE_T = 0 // types.h:540:1:
X_SOFT_HOSTID = 0 // isa_defs.h:286:1:
X_SSIZE_T = 0 // types.h:549:1:
X_STACK_GROWS_DOWNWARD = 0 // isa_defs.h:243:1:
X_STDC_C11 = 0 // feature_tests.h:165:1:
X_STDC_C99 = 0 // feature_tests.h:169:1:
X_SUNOS_VTOC_16 = 0 // isa_defs.h:280:1:
X_SUSECONDS_T = 0 // types.h:343:1:
X_SYS_CCOMPILE_H = 0 // ccompile.h:32:1:
X_SYS_FEATURE_TESTS_H = 0 // feature_tests.h:41:1:
X_SYS_INT_TYPES_H = 0 // int_types.h:30:1:
X_SYS_ISA_DEFS_H = 0 // isa_defs.h:30:1:
X_SYS_MACHTYPES_H = 0 // machtypes.h:27:1:
X_SYS_NULL_H = 0 // null.h:17:1:
X_SYS_SELECT_H = 0 // select.h:45:1:
X_SYS_TIME_H = 0 // time.h:27:1:
X_SYS_TIME_IMPL_H = 0 // time_impl.h:38:1:
X_SYS_TYPES_H = 0 // types.h:35:1:
X_SYS_UNISTD_H = 0 // unistd.h:40:1:
X_TIMER_T = 0 // types.h:573:1:
X_TIME_H = 0 // time.h:37:1:
X_TIME_T = 0 // types.h:558:1:
X_UID_T = 0 // types.h:400:1:
X_UNISTD_H = 0 // unistd.h:36:1:
X_XOPEN_ENH_I18N = 1 // unistd.h:389:1:
X_XOPEN_REALTIME = 1 // unistd.h:388:1:
X_XOPEN_SHM = 1 // unistd.h:390:1:
X_XOPEN_STREAMS = 1 // unistd.h:412:1:
X_XOPEN_UNIX = 0 // unistd.h:382:1:
X_XOPEN_VERSION = 3 // feature_tests.h:392:1:
X_XOPEN_XCU_VERSION = 4 // unistd.h:385:1:
X_XOPEN_XPG3 = 0 // unistd.h:380:1:
X_XOPEN_XPG4 = 0 // unistd.h:381:1:
Sun = 1 // <predefined>:172:1:
Unix = 1 // <predefined>:175:1:
)
// used for block sizes
// The boolean_t type has had a varied amount of exposure over the years in
// terms of how its enumeration constants have been exposed. In particular, it
// originally used the __XOPEN_OR_POSIX macro to determine whether to prefix the
// B_TRUE and B_FALSE with an underscore. This check never included the
// question of if we were in a strict ANSI C environment or whether extensions
// were defined.
//
// Compilers such as clang started defaulting to always including an
// XOPEN_SOURCE declaration on behalf of users, but also noted __EXTENSIONS__.
// This would lead most software that had used the non-underscore versions to
// need it. As such, we have adjusted the non-strict XOPEN environment to retain
// its old behavior so as to minimize namespace pollution; however, we instead
// include both variants of the definitions in the generally visible version
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | true |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/unistd/unistd_linux_riscv64.go | vendor/modernc.org/libc/unistd/unistd_linux_riscv64.go | // 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 -o unistd/unistd_linux_riscv64.go -pkgname unistd', DO NOT EDIT.
package unistd
import (
"math"
"reflect"
"sync/atomic"
"unsafe"
)
var _ = math.Pi
var _ reflect.Kind
var _ atomic.Value
var _ unsafe.Pointer
const (
F_LOCK = 1
F_OK = 0
F_TEST = 3
F_TLOCK = 2
F_ULOCK = 0
L_INCR = 1
L_SET = 0
L_XTND = 2
R_OK = 4
SEEK_CUR = 1
SEEK_END = 2
SEEK_SET = 0
STDERR_FILENO = 2
STDIN_FILENO = 0
STDOUT_FILENO = 1
W_OK = 2
X_OK = 1
X_ATFILE_SOURCE = 1
X_BITS_POSIX_OPT_H = 1
X_BITS_TIME64_H = 1
X_BITS_TYPESIZES_H = 1
X_BITS_TYPES_H = 1
X_BSD_SIZE_T_ = 0
X_BSD_SIZE_T_DEFINED_ = 0
X_DEFAULT_SOURCE = 1
X_FEATURES_H = 1
X_FILE_OFFSET_BITS = 64
X_GCC_SIZE_T = 0
X_GETOPT_CORE_H = 1
X_GETOPT_POSIX_H = 1
X_LFS64_ASYNCHRONOUS_IO = 1
X_LFS64_LARGEFILE = 1
X_LFS64_STDIO = 1
X_LFS_ASYNCHRONOUS_IO = 1
X_LFS_LARGEFILE = 1
X_LP64 = 1
X_POSIX2_CHAR_TERM = 200809
X_POSIX2_C_BIND = 200809
X_POSIX2_C_DEV = 200809
X_POSIX2_C_VERSION = 200809
X_POSIX2_LOCALEDEF = 200809
X_POSIX2_SW_DEV = 200809
X_POSIX2_VERSION = 200809
X_POSIX_ADVISORY_INFO = 200809
X_POSIX_ASYNCHRONOUS_IO = 200809
X_POSIX_ASYNC_IO = 1
X_POSIX_BARRIERS = 200809
X_POSIX_CHOWN_RESTRICTED = 0
X_POSIX_CLOCK_SELECTION = 200809
X_POSIX_CPUTIME = 0
X_POSIX_C_SOURCE = 200809
X_POSIX_FSYNC = 200809
X_POSIX_IPV6 = 200809
X_POSIX_JOB_CONTROL = 1
X_POSIX_MAPPED_FILES = 200809
X_POSIX_MEMLOCK = 200809
X_POSIX_MEMLOCK_RANGE = 200809
X_POSIX_MEMORY_PROTECTION = 200809
X_POSIX_MESSAGE_PASSING = 200809
X_POSIX_MONOTONIC_CLOCK = 0
X_POSIX_NO_TRUNC = 1
X_POSIX_PRIORITIZED_IO = 200809
X_POSIX_PRIORITY_SCHEDULING = 200809
X_POSIX_RAW_SOCKETS = 200809
X_POSIX_READER_WRITER_LOCKS = 200809
X_POSIX_REALTIME_SIGNALS = 200809
X_POSIX_REENTRANT_FUNCTIONS = 1
X_POSIX_REGEXP = 1
X_POSIX_SAVED_IDS = 1
X_POSIX_SEMAPHORES = 200809
X_POSIX_SHARED_MEMORY_OBJECTS = 200809
X_POSIX_SHELL = 1
X_POSIX_SOURCE = 1
X_POSIX_SPAWN = 200809
X_POSIX_SPIN_LOCKS = 200809
X_POSIX_SPORADIC_SERVER = -1
X_POSIX_SYNCHRONIZED_IO = 200809
X_POSIX_THREADS = 200809
X_POSIX_THREAD_ATTR_STACKADDR = 200809
X_POSIX_THREAD_ATTR_STACKSIZE = 200809
X_POSIX_THREAD_CPUTIME = 0
X_POSIX_THREAD_PRIORITY_SCHEDULING = 200809
X_POSIX_THREAD_PRIO_INHERIT = 200809
X_POSIX_THREAD_PRIO_PROTECT = 200809
X_POSIX_THREAD_PROCESS_SHARED = 200809
X_POSIX_THREAD_ROBUST_PRIO_INHERIT = 200809
X_POSIX_THREAD_ROBUST_PRIO_PROTECT = -1
X_POSIX_THREAD_SAFE_FUNCTIONS = 200809
X_POSIX_THREAD_SPORADIC_SERVER = -1
X_POSIX_TIMEOUTS = 200809
X_POSIX_TIMERS = 200809
X_POSIX_TRACE = -1
X_POSIX_TRACE_EVENT_FILTER = -1
X_POSIX_TRACE_INHERIT = -1
X_POSIX_TRACE_LOG = -1
X_POSIX_TYPED_MEMORY_OBJECTS = -1
X_POSIX_V6_ILP32_OFF32 = -1
X_POSIX_V6_ILP32_OFFBIG = -1
X_POSIX_V6_LP64_OFF64 = 1
X_POSIX_V6_LPBIG_OFFBIG = -1
X_POSIX_V7_ILP32_OFF32 = -1
X_POSIX_V7_ILP32_OFFBIG = -1
X_POSIX_V7_LP64_OFF64 = 1
X_POSIX_V7_LPBIG_OFFBIG = -1
X_POSIX_VDISABLE = 0
X_POSIX_VERSION = 200809
X_SIZET_ = 0
X_SIZE_T = 0
X_SIZE_T_ = 0
X_SIZE_T_DECLARED = 0
X_SIZE_T_DEFINED = 0
X_SIZE_T_DEFINED_ = 0
X_STDC_PREDEF_H = 1
X_SYS_CDEFS_H = 1
X_SYS_SIZE_T_H = 0
X_T_SIZE = 0
X_T_SIZE_ = 0
X_UNISTD_H = 1
X_XBS5_ILP32_OFF32 = -1
X_XBS5_ILP32_OFFBIG = -1
X_XBS5_LP64_OFF64 = 1
X_XBS5_LPBIG_OFFBIG = -1
X_XOPEN_ENH_I18N = 1
X_XOPEN_LEGACY = 1
X_XOPEN_REALTIME = 1
X_XOPEN_REALTIME_THREADS = 1
X_XOPEN_SHM = 1
X_XOPEN_UNIX = 1
X_XOPEN_VERSION = 700
X_XOPEN_XCU_VERSION = 4
X_XOPEN_XPG2 = 1
X_XOPEN_XPG3 = 1
X_XOPEN_XPG4 = 1
Linux = 1
Unix = 1
)
// Get the `_PC_*' symbols for the NAME argument to `pathconf' and `fpathconf';
// the `_SC_*' symbols for the NAME argument to `sysconf';
// and the `_CS_*' symbols for the NAME argument to `confstr'.
// `sysconf', `pathconf', and `confstr' NAME values. Generic version.
// Copyright (C) 1993-2021 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// Values for the NAME argument to `pathconf' and `fpathconf'.
const ( /* confname.h:24:1: */
X_PC_LINK_MAX = 0
X_PC_MAX_CANON = 1
X_PC_MAX_INPUT = 2
X_PC_NAME_MAX = 3
X_PC_PATH_MAX = 4
X_PC_PIPE_BUF = 5
X_PC_CHOWN_RESTRICTED = 6
X_PC_NO_TRUNC = 7
X_PC_VDISABLE = 8
X_PC_SYNC_IO = 9
X_PC_ASYNC_IO = 10
X_PC_PRIO_IO = 11
X_PC_SOCK_MAXBUF = 12
X_PC_FILESIZEBITS = 13
X_PC_REC_INCR_XFER_SIZE = 14
X_PC_REC_MAX_XFER_SIZE = 15
X_PC_REC_MIN_XFER_SIZE = 16
X_PC_REC_XFER_ALIGN = 17
X_PC_ALLOC_SIZE_MIN = 18
X_PC_SYMLINK_MAX = 19
X_PC_2_SYMLINKS = 20
)
// Values for the NAME argument to `confstr'.
const ( /* confname.h:539:1: */
X_CS_PATH = 0 // The default search path.
X_CS_V6_WIDTH_RESTRICTED_ENVS = 1
X_CS_GNU_LIBC_VERSION = 2
X_CS_GNU_LIBPTHREAD_VERSION = 3
X_CS_V5_WIDTH_RESTRICTED_ENVS = 4
X_CS_V7_WIDTH_RESTRICTED_ENVS = 5
X_CS_LFS_CFLAGS = 1000
X_CS_LFS_LDFLAGS = 1001
X_CS_LFS_LIBS = 1002
X_CS_LFS_LINTFLAGS = 1003
X_CS_LFS64_CFLAGS = 1004
X_CS_LFS64_LDFLAGS = 1005
X_CS_LFS64_LIBS = 1006
X_CS_LFS64_LINTFLAGS = 1007
X_CS_XBS5_ILP32_OFF32_CFLAGS = 1100
X_CS_XBS5_ILP32_OFF32_LDFLAGS = 1101
X_CS_XBS5_ILP32_OFF32_LIBS = 1102
X_CS_XBS5_ILP32_OFF32_LINTFLAGS = 1103
X_CS_XBS5_ILP32_OFFBIG_CFLAGS = 1104
X_CS_XBS5_ILP32_OFFBIG_LDFLAGS = 1105
X_CS_XBS5_ILP32_OFFBIG_LIBS = 1106
X_CS_XBS5_ILP32_OFFBIG_LINTFLAGS = 1107
X_CS_XBS5_LP64_OFF64_CFLAGS = 1108
X_CS_XBS5_LP64_OFF64_LDFLAGS = 1109
X_CS_XBS5_LP64_OFF64_LIBS = 1110
X_CS_XBS5_LP64_OFF64_LINTFLAGS = 1111
X_CS_XBS5_LPBIG_OFFBIG_CFLAGS = 1112
X_CS_XBS5_LPBIG_OFFBIG_LDFLAGS = 1113
X_CS_XBS5_LPBIG_OFFBIG_LIBS = 1114
X_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS = 1115
X_CS_POSIX_V6_ILP32_OFF32_CFLAGS = 1116
X_CS_POSIX_V6_ILP32_OFF32_LDFLAGS = 1117
X_CS_POSIX_V6_ILP32_OFF32_LIBS = 1118
X_CS_POSIX_V6_ILP32_OFF32_LINTFLAGS = 1119
X_CS_POSIX_V6_ILP32_OFFBIG_CFLAGS = 1120
X_CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS = 1121
X_CS_POSIX_V6_ILP32_OFFBIG_LIBS = 1122
X_CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS = 1123
X_CS_POSIX_V6_LP64_OFF64_CFLAGS = 1124
X_CS_POSIX_V6_LP64_OFF64_LDFLAGS = 1125
X_CS_POSIX_V6_LP64_OFF64_LIBS = 1126
X_CS_POSIX_V6_LP64_OFF64_LINTFLAGS = 1127
X_CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS = 1128
X_CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS = 1129
X_CS_POSIX_V6_LPBIG_OFFBIG_LIBS = 1130
X_CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS = 1131
X_CS_POSIX_V7_ILP32_OFF32_CFLAGS = 1132
X_CS_POSIX_V7_ILP32_OFF32_LDFLAGS = 1133
X_CS_POSIX_V7_ILP32_OFF32_LIBS = 1134
X_CS_POSIX_V7_ILP32_OFF32_LINTFLAGS = 1135
X_CS_POSIX_V7_ILP32_OFFBIG_CFLAGS = 1136
X_CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS = 1137
X_CS_POSIX_V7_ILP32_OFFBIG_LIBS = 1138
X_CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS = 1139
X_CS_POSIX_V7_LP64_OFF64_CFLAGS = 1140
X_CS_POSIX_V7_LP64_OFF64_LDFLAGS = 1141
X_CS_POSIX_V7_LP64_OFF64_LIBS = 1142
X_CS_POSIX_V7_LP64_OFF64_LINTFLAGS = 1143
X_CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS = 1144
X_CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS = 1145
X_CS_POSIX_V7_LPBIG_OFFBIG_LIBS = 1146
X_CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS = 1147
X_CS_V6_ENV = 1148
X_CS_V7_ENV = 1149
)
// Values for the argument to `sysconf'.
const ( /* confname.h:71:1: */
X_SC_ARG_MAX = 0
X_SC_CHILD_MAX = 1
X_SC_CLK_TCK = 2
X_SC_NGROUPS_MAX = 3
X_SC_OPEN_MAX = 4
X_SC_STREAM_MAX = 5
X_SC_TZNAME_MAX = 6
X_SC_JOB_CONTROL = 7
X_SC_SAVED_IDS = 8
X_SC_REALTIME_SIGNALS = 9
X_SC_PRIORITY_SCHEDULING = 10
X_SC_TIMERS = 11
X_SC_ASYNCHRONOUS_IO = 12
X_SC_PRIORITIZED_IO = 13
X_SC_SYNCHRONIZED_IO = 14
X_SC_FSYNC = 15
X_SC_MAPPED_FILES = 16
X_SC_MEMLOCK = 17
X_SC_MEMLOCK_RANGE = 18
X_SC_MEMORY_PROTECTION = 19
X_SC_MESSAGE_PASSING = 20
X_SC_SEMAPHORES = 21
X_SC_SHARED_MEMORY_OBJECTS = 22
X_SC_AIO_LISTIO_MAX = 23
X_SC_AIO_MAX = 24
X_SC_AIO_PRIO_DELTA_MAX = 25
X_SC_DELAYTIMER_MAX = 26
X_SC_MQ_OPEN_MAX = 27
X_SC_MQ_PRIO_MAX = 28
X_SC_VERSION = 29
X_SC_PAGESIZE = 30
X_SC_RTSIG_MAX = 31
X_SC_SEM_NSEMS_MAX = 32
X_SC_SEM_VALUE_MAX = 33
X_SC_SIGQUEUE_MAX = 34
X_SC_TIMER_MAX = 35
// Values for the argument to `sysconf'
// corresponding to _POSIX2_* symbols.
X_SC_BC_BASE_MAX = 36
X_SC_BC_DIM_MAX = 37
X_SC_BC_SCALE_MAX = 38
X_SC_BC_STRING_MAX = 39
X_SC_COLL_WEIGHTS_MAX = 40
X_SC_EQUIV_CLASS_MAX = 41
X_SC_EXPR_NEST_MAX = 42
X_SC_LINE_MAX = 43
X_SC_RE_DUP_MAX = 44
X_SC_CHARCLASS_NAME_MAX = 45
X_SC_2_VERSION = 46
X_SC_2_C_BIND = 47
X_SC_2_C_DEV = 48
X_SC_2_FORT_DEV = 49
X_SC_2_FORT_RUN = 50
X_SC_2_SW_DEV = 51
X_SC_2_LOCALEDEF = 52
X_SC_PII = 53
X_SC_PII_XTI = 54
X_SC_PII_SOCKET = 55
X_SC_PII_INTERNET = 56
X_SC_PII_OSI = 57
X_SC_POLL = 58
X_SC_SELECT = 59
X_SC_UIO_MAXIOV = 60
X_SC_IOV_MAX = 60
X_SC_PII_INTERNET_STREAM = 61
X_SC_PII_INTERNET_DGRAM = 62
X_SC_PII_OSI_COTS = 63
X_SC_PII_OSI_CLTS = 64
X_SC_PII_OSI_M = 65
X_SC_T_IOV_MAX = 66
// Values according to POSIX 1003.1c (POSIX threads).
X_SC_THREADS = 67
X_SC_THREAD_SAFE_FUNCTIONS = 68
X_SC_GETGR_R_SIZE_MAX = 69
X_SC_GETPW_R_SIZE_MAX = 70
X_SC_LOGIN_NAME_MAX = 71
X_SC_TTY_NAME_MAX = 72
X_SC_THREAD_DESTRUCTOR_ITERATIONS = 73
X_SC_THREAD_KEYS_MAX = 74
X_SC_THREAD_STACK_MIN = 75
X_SC_THREAD_THREADS_MAX = 76
X_SC_THREAD_ATTR_STACKADDR = 77
X_SC_THREAD_ATTR_STACKSIZE = 78
X_SC_THREAD_PRIORITY_SCHEDULING = 79
X_SC_THREAD_PRIO_INHERIT = 80
X_SC_THREAD_PRIO_PROTECT = 81
X_SC_THREAD_PROCESS_SHARED = 82
X_SC_NPROCESSORS_CONF = 83
X_SC_NPROCESSORS_ONLN = 84
X_SC_PHYS_PAGES = 85
X_SC_AVPHYS_PAGES = 86
X_SC_ATEXIT_MAX = 87
X_SC_PASS_MAX = 88
X_SC_XOPEN_VERSION = 89
X_SC_XOPEN_XCU_VERSION = 90
X_SC_XOPEN_UNIX = 91
X_SC_XOPEN_CRYPT = 92
X_SC_XOPEN_ENH_I18N = 93
X_SC_XOPEN_SHM = 94
X_SC_2_CHAR_TERM = 95
X_SC_2_C_VERSION = 96
X_SC_2_UPE = 97
X_SC_XOPEN_XPG2 = 98
X_SC_XOPEN_XPG3 = 99
X_SC_XOPEN_XPG4 = 100
X_SC_CHAR_BIT = 101
X_SC_CHAR_MAX = 102
X_SC_CHAR_MIN = 103
X_SC_INT_MAX = 104
X_SC_INT_MIN = 105
X_SC_LONG_BIT = 106
X_SC_WORD_BIT = 107
X_SC_MB_LEN_MAX = 108
X_SC_NZERO = 109
X_SC_SSIZE_MAX = 110
X_SC_SCHAR_MAX = 111
X_SC_SCHAR_MIN = 112
X_SC_SHRT_MAX = 113
X_SC_SHRT_MIN = 114
X_SC_UCHAR_MAX = 115
X_SC_UINT_MAX = 116
X_SC_ULONG_MAX = 117
X_SC_USHRT_MAX = 118
X_SC_NL_ARGMAX = 119
X_SC_NL_LANGMAX = 120
X_SC_NL_MSGMAX = 121
X_SC_NL_NMAX = 122
X_SC_NL_SETMAX = 123
X_SC_NL_TEXTMAX = 124
X_SC_XBS5_ILP32_OFF32 = 125
X_SC_XBS5_ILP32_OFFBIG = 126
X_SC_XBS5_LP64_OFF64 = 127
X_SC_XBS5_LPBIG_OFFBIG = 128
X_SC_XOPEN_LEGACY = 129
X_SC_XOPEN_REALTIME = 130
X_SC_XOPEN_REALTIME_THREADS = 131
X_SC_ADVISORY_INFO = 132
X_SC_BARRIERS = 133
X_SC_BASE = 134
X_SC_C_LANG_SUPPORT = 135
X_SC_C_LANG_SUPPORT_R = 136
X_SC_CLOCK_SELECTION = 137
X_SC_CPUTIME = 138
X_SC_THREAD_CPUTIME = 139
X_SC_DEVICE_IO = 140
X_SC_DEVICE_SPECIFIC = 141
X_SC_DEVICE_SPECIFIC_R = 142
X_SC_FD_MGMT = 143
X_SC_FIFO = 144
X_SC_PIPE = 145
X_SC_FILE_ATTRIBUTES = 146
X_SC_FILE_LOCKING = 147
X_SC_FILE_SYSTEM = 148
X_SC_MONOTONIC_CLOCK = 149
X_SC_MULTI_PROCESS = 150
X_SC_SINGLE_PROCESS = 151
X_SC_NETWORKING = 152
X_SC_READER_WRITER_LOCKS = 153
X_SC_SPIN_LOCKS = 154
X_SC_REGEXP = 155
X_SC_REGEX_VERSION = 156
X_SC_SHELL = 157
X_SC_SIGNALS = 158
X_SC_SPAWN = 159
X_SC_SPORADIC_SERVER = 160
X_SC_THREAD_SPORADIC_SERVER = 161
X_SC_SYSTEM_DATABASE = 162
X_SC_SYSTEM_DATABASE_R = 163
X_SC_TIMEOUTS = 164
X_SC_TYPED_MEMORY_OBJECTS = 165
X_SC_USER_GROUPS = 166
X_SC_USER_GROUPS_R = 167
X_SC_2_PBS = 168
X_SC_2_PBS_ACCOUNTING = 169
X_SC_2_PBS_LOCATE = 170
X_SC_2_PBS_MESSAGE = 171
X_SC_2_PBS_TRACK = 172
X_SC_SYMLOOP_MAX = 173
X_SC_STREAMS = 174
X_SC_2_PBS_CHECKPOINT = 175
X_SC_V6_ILP32_OFF32 = 176
X_SC_V6_ILP32_OFFBIG = 177
X_SC_V6_LP64_OFF64 = 178
X_SC_V6_LPBIG_OFFBIG = 179
X_SC_HOST_NAME_MAX = 180
X_SC_TRACE = 181
X_SC_TRACE_EVENT_FILTER = 182
X_SC_TRACE_INHERIT = 183
X_SC_TRACE_LOG = 184
X_SC_LEVEL1_ICACHE_SIZE = 185
X_SC_LEVEL1_ICACHE_ASSOC = 186
X_SC_LEVEL1_ICACHE_LINESIZE = 187
X_SC_LEVEL1_DCACHE_SIZE = 188
X_SC_LEVEL1_DCACHE_ASSOC = 189
X_SC_LEVEL1_DCACHE_LINESIZE = 190
X_SC_LEVEL2_CACHE_SIZE = 191
X_SC_LEVEL2_CACHE_ASSOC = 192
X_SC_LEVEL2_CACHE_LINESIZE = 193
X_SC_LEVEL3_CACHE_SIZE = 194
X_SC_LEVEL3_CACHE_ASSOC = 195
X_SC_LEVEL3_CACHE_LINESIZE = 196
X_SC_LEVEL4_CACHE_SIZE = 197
X_SC_LEVEL4_CACHE_ASSOC = 198
X_SC_LEVEL4_CACHE_LINESIZE = 199
// Leave room here, maybe we need a few more cache levels some day.
X_SC_IPV6 = 235
X_SC_RAW_SOCKETS = 236
X_SC_V7_ILP32_OFF32 = 237
X_SC_V7_ILP32_OFFBIG = 238
X_SC_V7_LP64_OFF64 = 239
X_SC_V7_LPBIG_OFFBIG = 240
X_SC_SS_REPL_MAX = 241
X_SC_TRACE_EVENT_NAME_MAX = 242
X_SC_TRACE_NAME_MAX = 243
X_SC_TRACE_SYS_MAX = 244
X_SC_TRACE_USER_EVENT_MAX = 245
X_SC_XOPEN_STREAMS = 246
X_SC_THREAD_ROBUST_PRIO_INHERIT = 247
X_SC_THREAD_ROBUST_PRIO_PROTECT = 248
X_SC_MINSIGSTKSZ = 249
X_SC_SIGSTKSZ = 250
)
type Ptrdiff_t = int64 /* <builtin>:3:26 */
type Size_t = uint64 /* <builtin>:9:23 */
type Wchar_t = int32 /* <builtin>:15:24 */
type X__int128_t = struct {
Flo int64
Fhi int64
} /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
type X__uint128_t = struct {
Flo uint64
Fhi uint64
} /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
type X__float128 = float64 /* <builtin>:47:21 */
// Copyright (C) 1991-2021 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// POSIX Standard: 2.10 Symbolic Constants <unistd.h>
// Copyright (C) 1991-2021 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// These are defined by the user (or the compiler)
// to specify the desired environment:
//
// __STRICT_ANSI__ ISO Standard C.
// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99.
// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11.
// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X.
// __STDC_WANT_LIB_EXT2__
// Extensions to ISO C99 from TR 27431-2:2010.
// __STDC_WANT_IEC_60559_BFP_EXT__
// Extensions to ISO C11 from TS 18661-1:2014.
// __STDC_WANT_IEC_60559_FUNCS_EXT__
// Extensions to ISO C11 from TS 18661-4:2015.
// __STDC_WANT_IEC_60559_TYPES_EXT__
// Extensions to ISO C11 from TS 18661-3:2015.
// __STDC_WANT_IEC_60559_EXT__
// ISO C2X interfaces defined only in Annex F.
//
// _POSIX_SOURCE IEEE Std 1003.1.
// _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2;
// if >=199309L, add IEEE Std 1003.1b-1993;
// if >=199506L, add IEEE Std 1003.1c-1995;
// if >=200112L, all of IEEE 1003.1-2004
// if >=200809L, all of IEEE 1003.1-2008
// _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if
// Single Unix conformance is wanted, to 600 for the
// sixth revision, to 700 for the seventh revision.
// _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions.
// _LARGEFILE_SOURCE Some more functions for correct standard I/O.
// _LARGEFILE64_SOURCE Additional functionality from LFS for large files.
// _FILE_OFFSET_BITS=N Select default filesystem interface.
// _ATFILE_SOURCE Additional *at interfaces.
// _DYNAMIC_STACK_SIZE_SOURCE Select correct (but non compile-time constant)
// MINSIGSTKSZ, SIGSTKSZ and PTHREAD_STACK_MIN.
// _GNU_SOURCE All of the above, plus GNU extensions.
// _DEFAULT_SOURCE The default set of features (taking precedence over
// __STRICT_ANSI__).
//
// _FORTIFY_SOURCE Add security hardening to many library functions.
// Set to 1 or 2; 2 performs stricter checks than 1.
//
// _REENTRANT, _THREAD_SAFE
// Obsolete; equivalent to _POSIX_C_SOURCE=199506L.
//
// The `-ansi' switch to the GNU C compiler, and standards conformance
// options such as `-std=c99', define __STRICT_ANSI__. If none of
// these are defined, or if _DEFAULT_SOURCE is defined, the default is
// to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to
// 200809L, as well as enabling miscellaneous functions from BSD and
// SVID. If more than one of these are defined, they accumulate. For
// example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together
// give you ISO C, 1003.1, and 1003.2, but nothing else.
//
// These are defined by this file and are used by the
// header files to decide what to declare or define:
//
// __GLIBC_USE (F) Define things from feature set F. This is defined
// to 1 or 0; the subsequent macros are either defined
// or undefined, and those tests should be moved to
// __GLIBC_USE.
// __USE_ISOC11 Define ISO C11 things.
// __USE_ISOC99 Define ISO C99 things.
// __USE_ISOC95 Define ISO C90 AMD1 (C95) things.
// __USE_ISOCXX11 Define ISO C++11 things.
// __USE_POSIX Define IEEE Std 1003.1 things.
// __USE_POSIX2 Define IEEE Std 1003.2 things.
// __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things.
// __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things.
// __USE_XOPEN Define XPG things.
// __USE_XOPEN_EXTENDED Define X/Open Unix things.
// __USE_UNIX98 Define Single Unix V2 things.
// __USE_XOPEN2K Define XPG6 things.
// __USE_XOPEN2KXSI Define XPG6 XSI things.
// __USE_XOPEN2K8 Define XPG7 things.
// __USE_XOPEN2K8XSI Define XPG7 XSI things.
// __USE_LARGEFILE Define correct standard I/O things.
// __USE_LARGEFILE64 Define LFS things with separate names.
// __USE_FILE_OFFSET64 Define 64bit interface as default.
// __USE_MISC Define things from 4.3BSD or System V Unix.
// __USE_ATFILE Define *at interfaces and AT_* constants for them.
// __USE_DYNAMIC_STACK_SIZE Define correct (but non compile-time constant)
// MINSIGSTKSZ, SIGSTKSZ and PTHREAD_STACK_MIN.
// __USE_GNU Define GNU extensions.
// __USE_FORTIFY_LEVEL Additional security measures used, according to level.
//
// The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are
// defined by this file unconditionally. `__GNU_LIBRARY__' is provided
// only for compatibility. All new code should use the other symbols
// to test for features.
//
// All macros listed above as possibly being defined by this file are
// explicitly undefined if they are not explicitly defined.
// Feature-test macros that are not defined by the user or compiler
// but are implied by the other feature-test macros defined (or by the
// lack of any definitions) are defined by the file.
//
// ISO C feature test macros depend on the definition of the macro
// when an affected header is included, not when the first system
// header is included, and so they are handled in
// <bits/libc-header-start.h>, which does not have a multiple include
// guard. Feature test macros that can be handled from the first
// system header included are handled here.
// Undefine everything, so we get a clean slate.
// Suppress kernel-name space pollution unless user expressedly asks
// for it.
// Convenience macro to test the version of gcc.
// Use like this:
// #if __GNUC_PREREQ (2,8)
// ... code requiring gcc 2.8 or later ...
// #endif
// Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was
// added in 2.0.
// Similarly for clang. Features added to GCC after version 4.2 may
// or may not also be available in clang, and clang's definitions of
// __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such
// features can be queried via __has_extension/__has_feature.
// Whether to use feature set F.
// _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for
// _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not
// issue a warning; the expectation is that the source is being
// transitioned to use the new macro.
// If _GNU_SOURCE was defined by the user, turn on all the other features.
// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined,
// define _DEFAULT_SOURCE.
// This is to enable the ISO C2X extension.
// This is to enable the ISO C11 extension.
// This is to enable the ISO C99 extension.
// This is to enable the ISO C90 Amendment 1:1995 extension.
// If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE
// is defined, use POSIX.1-2008 (or another version depending on
// _XOPEN_SOURCE).
// Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be
// defined in all multithreaded code. GNU libc has not required this
// for many years. We now treat them as compatibility synonyms for
// _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with
// comprehensive support for multithreaded code. Using them never
// lowers the selected level of POSIX conformance, only raises it.
// Features part to handle 64-bit time_t support.
// Copyright (C) 2021 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// We need to know the word size in order to check the time size.
// Determine the wordsize from the preprocessor defines. RISC-V version.
// Copyright (C) 2002-2021 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library. If not, see
// <https://www.gnu.org/licenses/>.
// Bit size of the time_t type at glibc build time, RISC-V case.
// Copyright (C) 2020-2021 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// Determine the wordsize from the preprocessor defines. RISC-V version.
// Copyright (C) 2002-2021 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library. If not, see
// <https://www.gnu.org/licenses/>.
// RV32 and RV64 both use 64-bit time_t
// The function 'gets' existed in C89, but is impossible to use
// safely. It has been removed from ISO C11 and ISO C++14. Note: for
// compatibility with various implementations of <cstdio>, this test
// must consider only the value of __cplusplus when compiling C++.
// GNU formerly extended the scanf functions with modified format
// specifiers %as, %aS, and %a[...] that allocate a buffer for the
// input using malloc. This extension conflicts with ISO C99, which
// defines %a as a standalone format specifier that reads a floating-
// point number; moreover, POSIX.1-2008 provides the same feature
// using the modifier letter 'm' instead (%ms, %mS, %m[...]).
//
// We now follow C99 unless GNU extensions are active and the compiler
// is specifically in C89 or C++98 mode (strict or not). For
// instance, with GCC, -std=gnu11 will have C99-compliant scanf with
// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the
// old extension.
// Get definitions of __STDC_* predefined macros, if the compiler has
// not preincluded this header automatically.
// Copyright (C) 1991-2021 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// This macro indicates that the installed library is the GNU C Library.
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | true |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/unistd/capi_openbsd_arm64.go | vendor/modernc.org/libc/unistd/capi_openbsd_arm64.go | // 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_openbsd_arm64.go -pkgname unistd', DO NOT EDIT.
package unistd
var CAPI = map[string]struct{}{}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/unistd/unistd_freebsd_386.go | vendor/modernc.org/libc/unistd/unistd_freebsd_386.go | // 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_386.go -pkgname unistd', DO NOT EDIT.
package unistd
import (
"math"
"reflect"
"sync/atomic"
"unsafe"
)
var _ = math.Pi
var _ reflect.Kind
var _ atomic.Value
var _ unsafe.Pointer
const (
BIG_ENDIAN = 4321 // _endian.h:70:1:
BYTE_ORDER = 1234 // _endian.h:72:1:
CLOSE_RANGE_CLOEXEC = 4 // unistd.h:205:1:
FD_SETSIZE = 1024 // select.h:61:1:
F_LOCK = 1 // unistd.h:85:1:
F_OK = 0 // unistd.h:102:1:
F_TEST = 3 // unistd.h:87:1:
F_TLOCK = 2 // unistd.h:86:1:
F_ULOCK = 0 // unistd.h:84:1:
LITTLE_ENDIAN = 1234 // _endian.h:69:1:
L_INCR = 1 // unistd.h:121:1:
L_SET = 0 // unistd.h:120:1:
L_XTND = 2 // unistd.h:122:1:
PDP_ENDIAN = 3412 // _endian.h:71:1:
RFCENVG = 2048 // unistd.h:178:1:
RFCFDG = 4096 // unistd.h:179:1:
RFCNAMEG = 1024 // unistd.h:177:1:
RFENVG = 2 // unistd.h:171:1:
RFFDG = 4 // unistd.h:172:1:
RFFLAGS = 2416930932 // unistd.h:195:1:
RFHIGHPID = 262144 // unistd.h:184:1:
RFKERNELONLY = 268828672 // unistd.h:198:1:
RFLINUXTHPN = 65536 // unistd.h:182:1:
RFMEM = 32 // unistd.h:175:1:
RFNAMEG = 1 // unistd.h:170:1:
RFNOTEG = 8 // unistd.h:173:1:
RFNOWAIT = 64 // unistd.h:176:1:
RFPPWAIT = 2147483648 // unistd.h:192:1:
RFPROC = 16 // unistd.h:174:1:
RFPROCDESC = 268435456 // unistd.h:190:1:
RFSIGSHARE = 16384 // unistd.h:181:1:
RFSPAWN = 2147483648 // unistd.h:194:1:
RFSTOPPED = 131072 // unistd.h:183:1:
RFTHREAD = 8192 // unistd.h:180:1:
RFTSIGMASK = 0xFF // unistd.h:187:1:
RFTSIGSHIFT = 20 // unistd.h:186:1:
RFTSIGZMB = 524288 // unistd.h:185:1:
R_OK = 0x04 // unistd.h:105:1:
SEEK_CUR = 1 // unistd.h:110:1:
SEEK_DATA = 3 // unistd.h:114:1:
SEEK_END = 2 // unistd.h:111:1:
SEEK_HOLE = 4 // unistd.h:115:1:
SEEK_SET = 0 // unistd.h:109:1:
STDERR_FILENO = 2 // unistd.h:81:1:
STDIN_FILENO = 0 // unistd.h:79:1:
STDOUT_FILENO = 1 // unistd.h:80:1:
SWAPOFF_FORCE = 0x00000001 // unistd.h:200:1:
W_OK = 0x02 // unistd.h:104:1:
X_OK = 0x01 // unistd.h:103:1:
X_ACCMODE_T_DECLARED = 0 // types.h:166:1:
X_BIG_ENDIAN = 4321 // _endian.h:47:1:
X_BLKCNT_T_DECLARED = 0 // types.h:90:1:
X_BLKSIZE_T_DECLARED = 0 // types.h:81:1:
X_BYTE_ORDER = 1234 // _endian.h:40:1:
X_CAP_IOCTL_T_DECLARED = 0 // types.h:243:1:
X_CAP_RIGHTS_T_DECLARED = 0 // types.h:248:1:
X_CLOCKID_T_DECLARED = 0 // types.h:100:1:
X_CLOCK_T_DECLARED = 0 // types.h:95:1:
X_CS_PATH = 1 // unistd.h:302:1:
X_CS_POSIX_V6_ILP32_OFF32_CFLAGS = 2 // unistd.h:306:1:
X_CS_POSIX_V6_ILP32_OFF32_LDFLAGS = 3 // unistd.h:307:1:
X_CS_POSIX_V6_ILP32_OFF32_LIBS = 4 // unistd.h:308:1:
X_CS_POSIX_V6_ILP32_OFFBIG_CFLAGS = 5 // unistd.h:309:1:
X_CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS = 6 // unistd.h:310:1:
X_CS_POSIX_V6_ILP32_OFFBIG_LIBS = 7 // unistd.h:311:1:
X_CS_POSIX_V6_LP64_OFF64_CFLAGS = 8 // unistd.h:312:1:
X_CS_POSIX_V6_LP64_OFF64_LDFLAGS = 9 // unistd.h:313:1:
X_CS_POSIX_V6_LP64_OFF64_LIBS = 10 // unistd.h:314:1:
X_CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS = 11 // unistd.h:315:1:
X_CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS = 12 // unistd.h:316:1:
X_CS_POSIX_V6_LPBIG_OFFBIG_LIBS = 13 // unistd.h:317:1:
X_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS = 14 // unistd.h:318:1:
X_DEV_T_DECLARED = 0 // types.h:108:1:
X_FFLAGS_T_DECLARED = 0 // types.h:113:1:
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_FSBLKCNT_T_DECLARED = 0 // types.h:121:1:
X_FTRUNCATE_DECLARED = 0 // types.h:417:1:
X_GETOPT_DECLARED = 0 // unistd.h:378:1:
X_GID_T_DECLARED = 0 // types.h:126:1:
X_ID_T_DECLARED = 0 // types.h:141:1:
X_ILP32 = 1 // <predefined>:1:1:
X_INO_T_DECLARED = 0 // types.h:146:1:
X_INT16_T_DECLARED = 0 // _stdint.h:42:1:
X_INT32_T_DECLARED = 0 // _stdint.h:47:1:
X_INT64_T_DECLARED = 0 // _stdint.h:52:1:
X_INT8_T_DECLARED = 0 // _stdint.h:37:1:
X_INTMAX_T_DECLARED = 0 // _stdint.h:85:1:
X_INTPTR_T_DECLARED = 0 // _stdint.h:77:1:
X_IN_ADDR_T_DECLARED = 0 // types.h:131:1:
X_IN_PORT_T_DECLARED = 0 // types.h:136:1:
X_KEY_T_DECLARED = 0 // types.h:151:1:
X_LITTLE_ENDIAN = 1234 // _endian.h:46:1:
X_LSEEK_DECLARED = 0 // types.h:421:1:
X_LWPID_T_DECLARED = 0 // types.h:156:1:
X_MACHINE_ENDIAN_H_ = 0 // endian.h:36:1:
X_MACHINE__LIMITS_H_ = 0 // _limits.h:36:1:
X_MACHINE__TYPES_H_ = 0 // _types.h:42:1:
X_MKDTEMP_DECLARED = 0 // unistd.h:528:1:
X_MKNOD_DECLARED = 0 // unistd.h:532:1:
X_MKSTEMP_DECLARED = 0 // unistd.h:536:1:
X_MKTEMP_DECLARED = 0 // unistd.h:541:1:
X_MMAP_DECLARED = 0 // types.h:425:1:
X_MODE_T_DECLARED = 0 // types.h:161:1:
X_MQD_T_DECLARED = 0 // types.h:227:1:
X_NLINK_T_DECLARED = 0 // types.h:171:1:
X_Nonnull = 0 // cdefs.h:790:1:
X_Null_unspecified = 0 // cdefs.h:792:1:
X_Nullable = 0 // cdefs.h:791:1:
X_OFF64_T_DECLARED = 0 // types.h:181:1:
X_OFF_T_DECLARED = 0 // types.h:176:1:
X_OPTRESET_DECLARED = 0 // unistd.h:592:1:
X_PC_ACL_EXTENDED = 59 // unistd.h:153:1:
X_PC_ACL_NFS4 = 64 // unistd.h:158:1:
X_PC_ACL_PATH_MAX = 60 // unistd.h:154:1:
X_PC_ALLOC_SIZE_MIN = 10 // unistd.h:143:1:
X_PC_ASYNC_IO = 53 // unistd.h:137:1:
X_PC_CAP_PRESENT = 61 // unistd.h:155:1:
X_PC_CHOWN_RESTRICTED = 7 // unistd.h:132:1:
X_PC_FILESIZEBITS = 12 // unistd.h:144:1:
X_PC_INF_PRESENT = 62 // unistd.h:156:1:
X_PC_LINK_MAX = 1 // unistd.h:126:1:
X_PC_MAC_PRESENT = 63 // unistd.h:157:1:
X_PC_MAX_CANON = 2 // unistd.h:127:1:
X_PC_MAX_INPUT = 3 // unistd.h:128:1:
X_PC_MIN_HOLE_SIZE = 21 // unistd.h:162:1:
X_PC_NAME_MAX = 4 // unistd.h:129:1:
X_PC_NO_TRUNC = 8 // unistd.h:133:1:
X_PC_PATH_MAX = 5 // unistd.h:130:1:
X_PC_PIPE_BUF = 6 // unistd.h:131:1:
X_PC_PRIO_IO = 54 // unistd.h:138:1:
X_PC_REC_INCR_XFER_SIZE = 14 // unistd.h:145:1:
X_PC_REC_MAX_XFER_SIZE = 15 // unistd.h:146:1:
X_PC_REC_MIN_XFER_SIZE = 16 // unistd.h:147:1:
X_PC_REC_XFER_ALIGN = 17 // unistd.h:148:1:
X_PC_SYMLINK_MAX = 18 // unistd.h:149:1:
X_PC_SYNC_IO = 55 // unistd.h:139:1:
X_PC_VDISABLE = 9 // unistd.h:134:1:
X_PDP_ENDIAN = 3412 // _endian.h:48:1:
X_PID_T_DECLARED = 0 // types.h:186:1:
X_POSIX2_CHAR_TERM = 1 // unistd.h:127:1:
X_POSIX2_C_BIND = 200112 // unistd.h:125:1:
X_POSIX2_C_DEV = -1 // unistd.h:126:1:
X_POSIX2_FORT_DEV = -1 // unistd.h:128:1:
X_POSIX2_FORT_RUN = 200112 // unistd.h:129:1:
X_POSIX2_LOCALEDEF = -1 // unistd.h:130:1:
X_POSIX2_PBS = -1 // unistd.h:131:1:
X_POSIX2_PBS_ACCOUNTING = -1 // unistd.h:132:1:
X_POSIX2_PBS_CHECKPOINT = -1 // unistd.h:133:1:
X_POSIX2_PBS_LOCATE = -1 // unistd.h:134:1:
X_POSIX2_PBS_MESSAGE = -1 // unistd.h:135:1:
X_POSIX2_PBS_TRACK = -1 // unistd.h:136:1:
X_POSIX2_SW_DEV = -1 // unistd.h:137:1:
X_POSIX2_UPE = 200112 // unistd.h:138:1:
X_POSIX2_VERSION = 199212 // unistd.h:154:1:
X_POSIX_ADVISORY_INFO = 200112 // unistd.h:54:1:
X_POSIX_ASYNCHRONOUS_IO = 200112 // unistd.h:55:1:
X_POSIX_BARRIERS = 200112 // unistd.h:104:1:
X_POSIX_CHOWN_RESTRICTED = 1 // unistd.h:56:1:
X_POSIX_CLOCK_SELECTION = -1 // unistd.h:57:1:
X_POSIX_CPUTIME = 200112 // unistd.h:105:1:
X_POSIX_FSYNC = 200112 // unistd.h:59:1:
X_POSIX_IPV6 = 0 // unistd.h:60:1:
X_POSIX_JOB_CONTROL = 1 // unistd.h:61:1:
X_POSIX_MAPPED_FILES = 200112 // unistd.h:62:1:
X_POSIX_MEMLOCK = -1 // unistd.h:63:1:
X_POSIX_MEMLOCK_RANGE = 200112 // unistd.h:64:1:
X_POSIX_MEMORY_PROTECTION = 200112 // unistd.h:65:1:
X_POSIX_MESSAGE_PASSING = 200112 // unistd.h:66:1:
X_POSIX_MONOTONIC_CLOCK = 200112 // unistd.h:67:1:
X_POSIX_NO_TRUNC = 1 // unistd.h:68:1:
X_POSIX_PRIORITIZED_IO = -1 // unistd.h:69:1:
X_POSIX_PRIORITY_SCHEDULING = 0 // unistd.h:70:1:
X_POSIX_RAW_SOCKETS = 200112 // unistd.h:71:1:
X_POSIX_READER_WRITER_LOCKS = 200112 // unistd.h:106:1:
X_POSIX_REALTIME_SIGNALS = 200112 // unistd.h:72:1:
X_POSIX_REGEXP = 1 // unistd.h:107:1:
X_POSIX_SEMAPHORES = 200112 // unistd.h:73:1:
X_POSIX_SHARED_MEMORY_OBJECTS = 200112 // unistd.h:74:1:
X_POSIX_SHELL = 1 // unistd.h:108:1:
X_POSIX_SPAWN = 200112 // unistd.h:109:1:
X_POSIX_SPIN_LOCKS = 200112 // unistd.h:110:1:
X_POSIX_SPORADIC_SERVER = -1 // unistd.h:75:1:
X_POSIX_SYNCHRONIZED_IO = -1 // unistd.h:76:1:
X_POSIX_THREADS = 200112 // unistd.h:120:1:
X_POSIX_THREAD_ATTR_STACKADDR = 200112 // unistd.h:111:1:
X_POSIX_THREAD_ATTR_STACKSIZE = 200112 // unistd.h:112:1:
X_POSIX_THREAD_CPUTIME = 200112 // unistd.h:113:1:
X_POSIX_THREAD_PRIORITY_SCHEDULING = 200112 // unistd.h:116:1:
X_POSIX_THREAD_PRIO_INHERIT = 200112 // unistd.h:114:1:
X_POSIX_THREAD_PRIO_PROTECT = 200112 // unistd.h:115:1:
X_POSIX_THREAD_PROCESS_SHARED = 200112 // unistd.h:117:1:
X_POSIX_THREAD_SAFE_FUNCTIONS = -1 // unistd.h:118:1:
X_POSIX_THREAD_SPORADIC_SERVER = -1 // unistd.h:119:1:
X_POSIX_TIMEOUTS = 200112 // unistd.h:77:1:
X_POSIX_TIMERS = 200112 // unistd.h:78:1:
X_POSIX_TRACE = -1 // unistd.h:121:1:
X_POSIX_TRACE_EVENT_FILTER = -1 // unistd.h:122:1:
X_POSIX_TRACE_INHERIT = -1 // unistd.h:123:1:
X_POSIX_TRACE_LOG = -1 // unistd.h:124:1:
X_POSIX_TYPED_MEMORY_OBJECTS = -1 // unistd.h:79:1:
X_POSIX_VDISABLE = 0xff // unistd.h:80:1:
X_POSIX_VERSION = 200112 // unistd.h:99:1:
X_PTHREAD_T_DECLARED = 0 // _pthreadtypes.h:68:1:
X_QUAD_HIGHWORD = 1 // _endian.h:55:1:
X_QUAD_LOWWORD = 0 // _endian.h:56:1:
X_RLIM_T_DECLARED = 0 // types.h:193:1:
X_SC_2_CHAR_TERM = 20 // unistd.h:184:1:
X_SC_2_C_BIND = 18 // unistd.h:182:1:
X_SC_2_C_DEV = 19 // unistd.h:183:1:
X_SC_2_FORT_DEV = 21 // unistd.h:185:1:
X_SC_2_FORT_RUN = 22 // unistd.h:186:1:
X_SC_2_LOCALEDEF = 23 // unistd.h:187:1:
X_SC_2_PBS = 59 // unistd.h:222:1:
X_SC_2_PBS_ACCOUNTING = 60 // unistd.h:223:1:
X_SC_2_PBS_CHECKPOINT = 61 // unistd.h:224:1:
X_SC_2_PBS_LOCATE = 62 // unistd.h:225:1:
X_SC_2_PBS_MESSAGE = 63 // unistd.h:226:1:
X_SC_2_PBS_TRACK = 64 // unistd.h:227:1:
X_SC_2_SW_DEV = 24 // unistd.h:188:1:
X_SC_2_UPE = 25 // unistd.h:189:1:
X_SC_2_VERSION = 17 // unistd.h:181:1:
X_SC_ADVISORY_INFO = 65 // unistd.h:228:1:
X_SC_AIO_LISTIO_MAX = 42 // unistd.h:208:1:
X_SC_AIO_MAX = 43 // unistd.h:209:1:
X_SC_AIO_PRIO_DELTA_MAX = 44 // unistd.h:210:1:
X_SC_ARG_MAX = 1 // unistd.h:165:1:
X_SC_ASYNCHRONOUS_IO = 28 // unistd.h:194:1:
X_SC_ATEXIT_MAX = 107 // unistd.h:276:1:
X_SC_BARRIERS = 66 // unistd.h:229:1:
X_SC_BC_BASE_MAX = 9 // unistd.h:173:1:
X_SC_BC_DIM_MAX = 10 // unistd.h:174:1:
X_SC_BC_SCALE_MAX = 11 // unistd.h:175:1:
X_SC_BC_STRING_MAX = 12 // unistd.h:176:1:
X_SC_CHILD_MAX = 2 // unistd.h:166:1:
X_SC_CLK_TCK = 3 // unistd.h:167:1:
X_SC_CLOCK_SELECTION = 67 // unistd.h:230:1:
X_SC_COLL_WEIGHTS_MAX = 13 // unistd.h:177:1:
X_SC_CPUSET_SIZE = 122 // unistd.h:294:1:
X_SC_CPUTIME = 68 // unistd.h:231:1:
X_SC_DELAYTIMER_MAX = 45 // unistd.h:211:1:
X_SC_EXPR_NEST_MAX = 14 // unistd.h:178:1:
X_SC_FILE_LOCKING = 69 // unistd.h:232:1:
X_SC_FSYNC = 38 // unistd.h:204:1:
X_SC_GETGR_R_SIZE_MAX = 70 // unistd.h:233:1:
X_SC_GETPW_R_SIZE_MAX = 71 // unistd.h:234:1:
X_SC_HOST_NAME_MAX = 72 // unistd.h:235:1:
X_SC_IOV_MAX = 56 // unistd.h:277:1:
X_SC_IPV6 = 118 // unistd.h:270:1:
X_SC_JOB_CONTROL = 6 // unistd.h:170:1:
X_SC_LINE_MAX = 15 // unistd.h:179:1:
X_SC_LOGIN_NAME_MAX = 73 // unistd.h:236:1:
X_SC_MAPPED_FILES = 29 // unistd.h:195:1:
X_SC_MEMLOCK = 30 // unistd.h:196:1:
X_SC_MEMLOCK_RANGE = 31 // unistd.h:197:1:
X_SC_MEMORY_PROTECTION = 32 // unistd.h:198:1:
X_SC_MESSAGE_PASSING = 33 // unistd.h:199:1:
X_SC_MONOTONIC_CLOCK = 74 // unistd.h:237:1:
X_SC_MQ_OPEN_MAX = 46 // unistd.h:212:1:
X_SC_MQ_PRIO_MAX = 75 // unistd.h:238:1:
X_SC_NGROUPS_MAX = 4 // unistd.h:168:1:
X_SC_NPROCESSORS_CONF = 57 // unistd.h:292:1:
X_SC_NPROCESSORS_ONLN = 58 // unistd.h:293:1:
X_SC_OPEN_MAX = 5 // unistd.h:169:1:
X_SC_PAGESIZE = 47 // unistd.h:213:1:
X_SC_PAGE_SIZE = 47 // unistd.h:278:1:
X_SC_PHYS_PAGES = 121 // unistd.h:298:1:
X_SC_PRIORITIZED_IO = 34 // unistd.h:200:1:
X_SC_PRIORITY_SCHEDULING = 35 // unistd.h:201:1:
X_SC_RAW_SOCKETS = 119 // unistd.h:271:1:
X_SC_READER_WRITER_LOCKS = 76 // unistd.h:239:1:
X_SC_REALTIME_SIGNALS = 36 // unistd.h:202:1:
X_SC_REGEXP = 77 // unistd.h:240:1:
X_SC_RE_DUP_MAX = 16 // unistd.h:180:1:
X_SC_RTSIG_MAX = 48 // unistd.h:214:1:
X_SC_SAVED_IDS = 7 // unistd.h:171:1:
X_SC_SEMAPHORES = 37 // unistd.h:203:1:
X_SC_SEM_NSEMS_MAX = 49 // unistd.h:215:1:
X_SC_SEM_VALUE_MAX = 50 // unistd.h:216:1:
X_SC_SHARED_MEMORY_OBJECTS = 39 // unistd.h:205:1:
X_SC_SHELL = 78 // unistd.h:241:1:
X_SC_SIGQUEUE_MAX = 51 // unistd.h:217:1:
X_SC_SPAWN = 79 // unistd.h:242:1:
X_SC_SPIN_LOCKS = 80 // unistd.h:243:1:
X_SC_SPORADIC_SERVER = 81 // unistd.h:244:1:
X_SC_STREAM_MAX = 26 // unistd.h:190:1:
X_SC_SYMLOOP_MAX = 120 // unistd.h:272:1:
X_SC_SYNCHRONIZED_IO = 40 // unistd.h:206:1:
X_SC_THREADS = 96 // unistd.h:259:1:
X_SC_THREAD_ATTR_STACKADDR = 82 // unistd.h:245:1:
X_SC_THREAD_ATTR_STACKSIZE = 83 // unistd.h:246:1:
X_SC_THREAD_CPUTIME = 84 // unistd.h:247:1:
X_SC_THREAD_DESTRUCTOR_ITERATIONS = 85 // unistd.h:248:1:
X_SC_THREAD_KEYS_MAX = 86 // unistd.h:249:1:
X_SC_THREAD_PRIORITY_SCHEDULING = 89 // unistd.h:252:1:
X_SC_THREAD_PRIO_INHERIT = 87 // unistd.h:250:1:
X_SC_THREAD_PRIO_PROTECT = 88 // unistd.h:251:1:
X_SC_THREAD_PROCESS_SHARED = 90 // unistd.h:253:1:
X_SC_THREAD_SAFE_FUNCTIONS = 91 // unistd.h:254:1:
X_SC_THREAD_SPORADIC_SERVER = 92 // unistd.h:255:1:
X_SC_THREAD_STACK_MIN = 93 // unistd.h:256:1:
X_SC_THREAD_THREADS_MAX = 94 // unistd.h:257:1:
X_SC_TIMEOUTS = 95 // unistd.h:258:1:
X_SC_TIMERS = 41 // unistd.h:207:1:
X_SC_TIMER_MAX = 52 // unistd.h:218:1:
X_SC_TRACE = 97 // unistd.h:260:1:
X_SC_TRACE_EVENT_FILTER = 98 // unistd.h:261:1:
X_SC_TRACE_INHERIT = 99 // unistd.h:262:1:
X_SC_TRACE_LOG = 100 // unistd.h:263:1:
X_SC_TTY_NAME_MAX = 101 // unistd.h:264:1:
X_SC_TYPED_MEMORY_OBJECTS = 102 // unistd.h:265:1:
X_SC_TZNAME_MAX = 27 // unistd.h:191:1:
X_SC_V6_ILP32_OFF32 = 103 // unistd.h:266:1:
X_SC_V6_ILP32_OFFBIG = 104 // unistd.h:267:1:
X_SC_V6_LP64_OFF64 = 105 // unistd.h:268:1:
X_SC_V6_LPBIG_OFFBIG = 106 // unistd.h:269:1:
X_SC_VERSION = 8 // unistd.h:172:1:
X_SC_XOPEN_CRYPT = 108 // unistd.h:279:1:
X_SC_XOPEN_ENH_I18N = 109 // unistd.h:280:1:
X_SC_XOPEN_LEGACY = 110 // unistd.h:281:1:
X_SC_XOPEN_REALTIME = 111 // unistd.h:282:1:
X_SC_XOPEN_REALTIME_THREADS = 112 // unistd.h:283:1:
X_SC_XOPEN_SHM = 113 // unistd.h:284:1:
X_SC_XOPEN_STREAMS = 114 // unistd.h:285:1:
X_SC_XOPEN_UNIX = 115 // unistd.h:286:1:
X_SC_XOPEN_VERSION = 116 // unistd.h:287:1:
X_SC_XOPEN_XCU_VERSION = 117 // unistd.h:288:1:
X_SELECT_DECLARED = 0 // select.h:103:1:
X_SIGSET_T_DECLARED = 0 // select.h:50:1:
X_SIG_MAXSIG = 128 // _sigset.h:47:1:
X_SIG_WORDS = 4 // _sigset.h:46:1:
X_SIZE_T_DECLARED = 0 // types.h:202:1:
X_SSIZE_T_DECLARED = 0 // types.h:207:1:
X_SUSECONDS_T_DECLARED = 0 // types.h:212:1:
X_SWAB_DECLARED = 0 // unistd.h:461:1:
X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1:
X_SYS_SELECT_H_ = 0 // select.h:35:1:
X_SYS_TIMESPEC_H_ = 0 // timespec.h:37:1:
X_SYS_TYPES_H_ = 0 // types.h:41:1:
X_SYS_UNISTD_H_ = 0 // unistd.h:36:1:
X_SYS__ENDIAN_H_ = 0 // _endian.h:33:1:
X_SYS__PTHREADTYPES_H_ = 0 // _pthreadtypes.h:39:1:
X_SYS__SIGSET_H_ = 0 // _sigset.h:41:1:
X_SYS__STDINT_H_ = 0 // _stdint.h:33:1:
X_SYS__TIMESPEC_H_ = 0 // _timespec.h:37:1:
X_SYS__TIMEVAL_H_ = 0 // _timeval.h:32:1:
X_SYS__TYPES_H_ = 0 // _types.h:32:1:
X_TIMER_T_DECLARED = 0 // types.h:222:1:
X_TIME_T_DECLARED = 0 // types.h:217:1:
X_TRUNCATE_DECLARED = 0 // types.h:429:1:
X_UID_T_DECLARED = 0 // types.h:234:1:
X_UINT16_T_DECLARED = 0 // _stdint.h:62:1:
X_UINT32_T_DECLARED = 0 // _stdint.h:67:1:
X_UINT64_T_DECLARED = 0 // _stdint.h:72:1:
X_UINT8_T_DECLARED = 0 // _stdint.h:57:1:
X_UINTMAX_T_DECLARED = 0 // _stdint.h:89:1:
X_UINTPTR_T_DECLARED = 0 // _stdint.h:81:1:
X_UNISTD_H_ = 0 // unistd.h:36:1:
X_USECONDS_T_DECLARED = 0 // types.h:239:1:
X_V6_ILP32_OFF32 = -1 // unistd.h:139:1:
X_V6_ILP32_OFFBIG = 0 // unistd.h:140:1:
X_V6_LP64_OFF64 = 0 // unistd.h:141:1:
X_V6_LPBIG_OFFBIG = -1 // unistd.h:142:1:
X_XOPEN_CRYPT = -1 // unistd.h:145:1:
X_XOPEN_ENH_I18N = -1 // unistd.h:146:1:
X_XOPEN_LEGACY = -1 // unistd.h:147:1:
X_XOPEN_REALTIME = -1 // unistd.h:148:1:
X_XOPEN_REALTIME_THREADS = -1 // unistd.h:149:1:
X_XOPEN_SHM = 1 // unistd.h:83:1:
X_XOPEN_STREAMS = -1 // unistd.h:84:1:
X_XOPEN_UNIX = -1 // unistd.h:150:1:
I386 = 1 // <predefined>:335:1:
Unix = 1 // <predefined>:336:1:
)
type Ptrdiff_t = int32 /* <builtin>:3:26 */
type Size_t = uint32 /* <builtin>:9:23 */
type Wchar_t = int32 /* <builtin>:15:24 */
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
type X__float128 = float64 /* <builtin>:47:21 */
// -
// SPDX-License-Identifier: BSD-3-Clause
//
// Copyright (c) 1991, 1993, 1994
// The Regents of the University of California. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// @(#)unistd.h 8.12 (Berkeley) 4/27/95
// $FreeBSD$
// -
// SPDX-License-Identifier: BSD-3-Clause
//
// Copyright (c) 1991, 1993
// The Regents of the University of California. All rights reserved.
//
// This code is derived from software contributed to Berkeley by
// Berkeley Software Design, Inc.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// @(#)cdefs.h 8.8 (Berkeley) 1/9/95
// $FreeBSD$
// Testing against Clang-specific extensions.
// This code has been put in place to help reduce the addition of
// compiler specific defines in FreeBSD code. It helps to aid in
// having a compiler-agnostic source tree.
// Compiler memory barriers, specific to gcc and clang.
// XXX: if __GNUC__ >= 2: not tested everywhere originally, where replaced
// Macro to test if we're using a specific version of gcc or later.
// The __CONCAT macro is used to concatenate parts of symbol names, e.g.
// with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo.
// The __CONCAT macro is a bit tricky to use if it must work in non-ANSI
// mode -- there must be no spaces between its arguments, and for nested
// __CONCAT's, all the __CONCAT's must be at the left. __CONCAT can also
// concatenate double-quoted strings produced by the __STRING macro, but
// this only works with ANSI C.
//
// __XSTRING is like __STRING, but it expands any macros in its argument
// first. It is only available with ANSI C.
// Compiler-dependent macros to help declare dead (non-returning) and
// pure (no side effects) functions, and unused variables. They are
// null except for versions of gcc that are known to support the features
// properly (old versions of gcc-2 supported the dead and pure features
// in a different (wrong) way). If we do not provide an implementation
// for a given compiler, let the compile fail if it is told to use
// a feature that we cannot live without.
// Keywords added in C11.
// Emulation of C11 _Generic(). Unlike the previously defined C11
// keywords, it is not possible to implement this using exactly the same
// syntax. Therefore implement something similar under the name
// __generic(). Unlike _Generic(), this macro can only distinguish
// between a single type, so it requires nested invocations to
// distinguish multiple cases.
// C99 Static array indices in function parameter declarations. Syntax such as:
// void bar(int myArray[static 10]);
// is allowed in C99 but not in C++. Define __min_size appropriately so
// headers using it can be compiled in either language. Use like this:
// void bar(int myArray[__min_size(10)]);
// XXX: should use `#if __STDC_VERSION__ < 199901'.
// C++11 exposes a load of C99 stuff
// GCC 2.95 provides `__restrict' as an extension to C90 to support the
// C99-specific `restrict' type qualifier. We happen to use `__restrict' as
// a way to define the `restrict' type qualifier without disturbing older
// software that is unaware of C99 keywords.
// GNU C version 2.96 adds explicit branch prediction so that
// the CPU back-end can hint the processor and also so that
// code blocks can be reordered such that the predicted path
// sees a more linear flow, thus improving cache behavior, etc.
//
// The following two macros provide us with a way to utilize this
// compiler feature. Use __predict_true() if you expect the expression
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | true |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/unistd/unistd_openbsd_amd64.go | vendor/modernc.org/libc/unistd/unistd_openbsd_amd64.go | // 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_openbsd_amd64.go -pkgname unistd', DO NOT EDIT.
package unistd
import (
"math"
"reflect"
"sync/atomic"
"unsafe"
)
var _ = math.Pi
var _ reflect.Kind
var _ atomic.Value
var _ unsafe.Pointer
const (
BIG_ENDIAN = 4321 // endian.h:45:1:
BYTE_ORDER = 1234 // endian.h:47:1:
F_LOCK = 1 // unistd.h:48:1:
F_OK = 0 // unistd.h:49:1:
F_TEST = 3 // unistd.h:50:1:
F_TLOCK = 2 // unistd.h:49:1:
F_ULOCK = 0 // unistd.h:47:1:
KBIND_BLOCK_MAX = 2 // unistd.h:77:1:
KBIND_DATA_MAX = 24 // unistd.h:78:1:
LITTLE_ENDIAN = 1234 // endian.h:44:1:
L_INCR = 1 // unistd.h:62:1:
L_SET = 0 // unistd.h:61:1:
L_XTND = 2 // unistd.h:63:1:
PDP_ENDIAN = 3412 // endian.h:46:1:
R_OK = 0x04 // unistd.h:52:1:
SEEK_CUR = 1 // unistd.h:56:1:
SEEK_END = 2 // unistd.h:57:1:
SEEK_SET = 0 // unistd.h:55:1:
STDERR_FILENO = 2 // unistd.h:44:1:
STDIN_FILENO = 0 // unistd.h:42:1:
STDOUT_FILENO = 1 // unistd.h:43:1:
W_OK = 0x02 // unistd.h:51:1:
X_OK = 0x01 // unistd.h:50:1:
X_BIG_ENDIAN = 4321 // _endian.h:43:1:
X_BYTE_ORDER = 1234 // endian.h:58:1:
X_CLOCKID_T_DEFINED_ = 0 // types.h:162:1:
X_CLOCK_T_DEFINED_ = 0 // types.h:157:1:
X_CS_PATH = 1 // unistd.h:286:1:
X_CS_POSIX_V6_ILP32_OFF32_CFLAGS = 2 // unistd.h:287:1:
X_CS_POSIX_V6_ILP32_OFF32_LDFLAGS = 3 // unistd.h:288:1:
X_CS_POSIX_V6_ILP32_OFF32_LIBS = 4 // unistd.h:289:1:
X_CS_POSIX_V6_ILP32_OFFBIG_CFLAGS = 5 // unistd.h:290:1:
X_CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS = 6 // unistd.h:291:1:
X_CS_POSIX_V6_ILP32_OFFBIG_LIBS = 7 // unistd.h:292:1:
X_CS_POSIX_V6_LP64_OFF64_CFLAGS = 8 // unistd.h:293:1:
X_CS_POSIX_V6_LP64_OFF64_LDFLAGS = 9 // unistd.h:294:1:
X_CS_POSIX_V6_LP64_OFF64_LIBS = 10 // unistd.h:295:1:
X_CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS = 11 // unistd.h:296:1:
X_CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS = 12 // unistd.h:297:1:
X_CS_POSIX_V6_LPBIG_OFFBIG_LIBS = 13 // unistd.h:298:1:
X_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS = 14 // unistd.h:299:1:
X_CS_POSIX_V7_ILP32_OFF32_CFLAGS = 16 // unistd.h:301:1:
X_CS_POSIX_V7_ILP32_OFF32_LDFLAGS = 17 // unistd.h:302:1:
X_CS_POSIX_V7_ILP32_OFF32_LIBS = 18 // unistd.h:303:1:
X_CS_POSIX_V7_ILP32_OFFBIG_CFLAGS = 19 // unistd.h:304:1:
X_CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS = 20 // unistd.h:305:1:
X_CS_POSIX_V7_ILP32_OFFBIG_LIBS = 21 // unistd.h:306:1:
X_CS_POSIX_V7_LP64_OFF64_CFLAGS = 22 // unistd.h:307:1:
X_CS_POSIX_V7_LP64_OFF64_LDFLAGS = 23 // unistd.h:308:1:
X_CS_POSIX_V7_LP64_OFF64_LIBS = 24 // unistd.h:309:1:
X_CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS = 25 // unistd.h:310:1:
X_CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS = 26 // unistd.h:311:1:
X_CS_POSIX_V7_LPBIG_OFFBIG_LIBS = 27 // unistd.h:312:1:
X_CS_POSIX_V7_THREADS_CFLAGS = 28 // unistd.h:313:1:
X_CS_POSIX_V7_THREADS_LDFLAGS = 29 // unistd.h:314:1:
X_CS_POSIX_V7_WIDTH_RESTRICTED_ENVS = 30 // unistd.h:315:1:
X_CS_V6_ENV = 15 // unistd.h:300:1:
X_CS_V7_ENV = 31 // unistd.h:316:1:
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_GETOPT_DEFINED_ = 0 // unistd.h:385:1:
X_INT16_T_DEFINED_ = 0 // types.h:84:1:
X_INT32_T_DEFINED_ = 0 // types.h:94:1:
X_INT64_T_DEFINED_ = 0 // types.h:104:1:
X_INT8_T_DEFINED_ = 0 // types.h:74:1:
X_INTPTR_T_DEFINED_ = 0 // unistd.h:319:1:
X_LITTLE_ENDIAN = 1234 // _endian.h:42:1:
X_LP64 = 1 // <predefined>:1:1:
X_MACHINE_CDEFS_H_ = 0 // cdefs.h:9:1:
X_MACHINE_ENDIAN_H_ = 0 // endian.h:28:1:
X_MACHINE__TYPES_H_ = 0 // _types.h:36:1:
X_MAX_PAGE_SHIFT = 12 // _types.h:52:1:
X_OFF_T_DEFINED_ = 0 // types.h:192:1:
X_PC_2_SYMLINKS = 10 // unistd.h:93:1:
X_PC_ALLOC_SIZE_MIN = 11 // unistd.h:94:1:
X_PC_ASYNC_IO = 12 // unistd.h:95:1:
X_PC_CHOWN_RESTRICTED = 7 // unistd.h:90:1:
X_PC_FILESIZEBITS = 13 // unistd.h:96:1:
X_PC_LINK_MAX = 1 // unistd.h:84:1:
X_PC_MAX_CANON = 2 // unistd.h:85:1:
X_PC_MAX_INPUT = 3 // unistd.h:86:1:
X_PC_NAME_MAX = 4 // unistd.h:87:1:
X_PC_NO_TRUNC = 8 // unistd.h:91:1:
X_PC_PATH_MAX = 5 // unistd.h:88:1:
X_PC_PIPE_BUF = 6 // unistd.h:89:1:
X_PC_PRIO_IO = 14 // unistd.h:97:1:
X_PC_REC_INCR_XFER_SIZE = 15 // unistd.h:98:1:
X_PC_REC_MAX_XFER_SIZE = 16 // unistd.h:99:1:
X_PC_REC_MIN_XFER_SIZE = 17 // unistd.h:100:1:
X_PC_REC_XFER_ALIGN = 18 // unistd.h:101:1:
X_PC_SYMLINK_MAX = 19 // unistd.h:102:1:
X_PC_SYNC_IO = 20 // unistd.h:103:1:
X_PC_TIMESTAMP_RESOLUTION = 21 // unistd.h:104:1:
X_PC_VDISABLE = 9 // unistd.h:92:1:
X_PDP_ENDIAN = 3412 // _endian.h:44:1:
X_PID_T_DEFINED_ = 0 // types.h:167:1:
X_POSIX2_CHAR_TERM = 1 // unistd.h:116:1:
X_POSIX2_C_BIND = 200112 // unistd.h:114:1:
X_POSIX2_C_DEV = -1 // unistd.h:115:1:
X_POSIX2_FORT_DEV = -1 // unistd.h:117:1:
X_POSIX2_FORT_RUN = -1 // unistd.h:118:1:
X_POSIX2_LOCALEDEF = -1 // unistd.h:119:1:
X_POSIX2_PBS = -1 // unistd.h:120:1:
X_POSIX2_PBS_ACCOUNTING = -1 // unistd.h:121:1:
X_POSIX2_PBS_CHECKPOINT = -1 // unistd.h:122:1:
X_POSIX2_PBS_LOCATE = -1 // unistd.h:123:1:
X_POSIX2_PBS_MESSAGE = -1 // unistd.h:124:1:
X_POSIX2_PBS_TRACK = -1 // unistd.h:125:1:
X_POSIX2_SW_DEV = 200112 // unistd.h:126:1:
X_POSIX2_UPE = 200112 // unistd.h:127:1:
X_POSIX2_VERSION = 200809 // unistd.h:148:1:
X_POSIX_ADVISORY_INFO = -1 // unistd.h:65:1:
X_POSIX_ASYNCHRONOUS_IO = -1 // unistd.h:66:1:
X_POSIX_ASYNC_IO = -1 // unistd.h:41:1:
X_POSIX_BARRIERS = 200112 // unistd.h:67:1:
X_POSIX_CHOWN_RESTRICTED = 1 // unistd.h:68:1:
X_POSIX_CLOCK_SELECTION = -1 // unistd.h:69:1:
X_POSIX_CPUTIME = 200809 // unistd.h:70:1:
X_POSIX_FSYNC = 200112 // unistd.h:71:1:
X_POSIX_IPV6 = 0 // unistd.h:72:1:
X_POSIX_JOB_CONTROL = 1 // unistd.h:73:1:
X_POSIX_MAPPED_FILES = 200112 // unistd.h:74:1:
X_POSIX_MEMLOCK = 200112 // unistd.h:75:1:
X_POSIX_MEMLOCK_RANGE = 200112 // unistd.h:76:1:
X_POSIX_MEMORY_PROTECTION = 200112 // unistd.h:77:1:
X_POSIX_MESSAGE_PASSING = -1 // unistd.h:78:1:
X_POSIX_MONOTONIC_CLOCK = 200112 // unistd.h:79:1:
X_POSIX_NO_TRUNC = 1 // unistd.h:80:1:
X_POSIX_PRIORITIZED_IO = -1 // unistd.h:81:1:
X_POSIX_PRIORITY_SCHEDULING = -1 // unistd.h:82:1:
X_POSIX_PRIO_IO = -1 // unistd.h:42:1:
X_POSIX_RAW_SOCKETS = 200112 // unistd.h:83:1:
X_POSIX_READER_WRITER_LOCKS = 200112 // unistd.h:84:1:
X_POSIX_REALTIME_SIGNALS = -1 // unistd.h:85:1:
X_POSIX_REGEXP = 1 // unistd.h:86:1:
X_POSIX_SAVED_IDS = 1 // unistd.h:87:1:
X_POSIX_SEMAPHORES = 200112 // unistd.h:88:1:
X_POSIX_SHARED_MEMORY_OBJECTS = 200809 // unistd.h:89:1:
X_POSIX_SHELL = 1 // unistd.h:90:1:
X_POSIX_SPAWN = 200112 // unistd.h:91:1:
X_POSIX_SPIN_LOCKS = 200112 // unistd.h:92:1:
X_POSIX_SPORADIC_SERVER = -1 // unistd.h:93:1:
X_POSIX_SYNCHRONIZED_IO = -1 // unistd.h:94:1:
X_POSIX_SYNC_IO = -1 // unistd.h:43:1:
X_POSIX_THREADS = 200112 // unistd.h:106:1:
X_POSIX_THREAD_ATTR_STACKADDR = 200112 // unistd.h:95:1:
X_POSIX_THREAD_ATTR_STACKSIZE = 200112 // unistd.h:96:1:
X_POSIX_THREAD_CPUTIME = 200809 // unistd.h:97:1:
X_POSIX_THREAD_PRIORITY_SCHEDULING = -1 // unistd.h:100:1:
X_POSIX_THREAD_PRIO_INHERIT = -1 // unistd.h:98:1:
X_POSIX_THREAD_PRIO_PROTECT = -1 // unistd.h:99:1:
X_POSIX_THREAD_PROCESS_SHARED = -1 // unistd.h:101:1:
X_POSIX_THREAD_ROBUST_PRIO_INHERIT = -1 // unistd.h:102:1:
X_POSIX_THREAD_ROBUST_PRIO_PROTECT = -1 // unistd.h:103:1:
X_POSIX_THREAD_SAFE_FUNCTIONS = 200112 // unistd.h:104:1:
X_POSIX_THREAD_SPORADIC_SERVER = -1 // unistd.h:105:1:
X_POSIX_TIMEOUTS = 200112 // unistd.h:107:1:
X_POSIX_TIMERS = -1 // unistd.h:108:1:
X_POSIX_TRACE = -1 // unistd.h:109:1:
X_POSIX_TRACE_EVENT_FILTER = -1 // unistd.h:110:1:
X_POSIX_TRACE_INHERIT = -1 // unistd.h:111:1:
X_POSIX_TRACE_LOG = -1 // unistd.h:112:1:
X_POSIX_TYPED_MEMORY_OBJECTS = -1 // unistd.h:113:1:
X_POSIX_V6_ILP32_OFF32 = -1 // unistd.h:128:1:
X_POSIX_V6_ILP32_OFFBIG = 0 // unistd.h:129:1:
X_POSIX_V6_LP64_OFF64 = 0 // unistd.h:130:1:
X_POSIX_V6_LPBIG_OFFBIG = 0 // unistd.h:131:1:
X_POSIX_V7_ILP32_OFF32 = -1 // unistd.h:132:1:
X_POSIX_V7_ILP32_OFFBIG = 0 // unistd.h:133:1:
X_POSIX_V7_LP64_OFF64 = 0 // unistd.h:134:1:
X_POSIX_V7_LPBIG_OFFBIG = 0 // unistd.h:135:1:
X_POSIX_VDISABLE = 255 // unistd.h:40:1:
X_POSIX_VERSION = 200809 // unistd.h:46:1:
X_QUAD_HIGHWORD = 1 // _endian.h:95:1:
X_QUAD_LOWWORD = 0 // _endian.h:96:1:
X_RET_PROTECTOR = 1 // <predefined>:2:1:
X_SC_2_CHAR_TERM = 20 // unistd.h:172:1:
X_SC_2_C_BIND = 18 // unistd.h:170:1:
X_SC_2_C_DEV = 19 // unistd.h:171:1:
X_SC_2_FORT_DEV = 21 // unistd.h:173:1:
X_SC_2_FORT_RUN = 22 // unistd.h:174:1:
X_SC_2_LOCALEDEF = 23 // unistd.h:175:1:
X_SC_2_PBS = 35 // unistd.h:188:1:
X_SC_2_PBS_ACCOUNTING = 36 // unistd.h:189:1:
X_SC_2_PBS_CHECKPOINT = 37 // unistd.h:190:1:
X_SC_2_PBS_LOCATE = 38 // unistd.h:191:1:
X_SC_2_PBS_MESSAGE = 39 // unistd.h:192:1:
X_SC_2_PBS_TRACK = 40 // unistd.h:193:1:
X_SC_2_SW_DEV = 24 // unistd.h:176:1:
X_SC_2_UPE = 25 // unistd.h:177:1:
X_SC_2_VERSION = 17 // unistd.h:169:1:
X_SC_ADVISORY_INFO = 41 // unistd.h:194:1:
X_SC_AIO_LISTIO_MAX = 42 // unistd.h:195:1:
X_SC_AIO_MAX = 43 // unistd.h:196:1:
X_SC_AIO_PRIO_DELTA_MAX = 44 // unistd.h:197:1:
X_SC_ARG_MAX = 1 // unistd.h:153:1:
X_SC_ASYNCHRONOUS_IO = 45 // unistd.h:198:1:
X_SC_ATEXIT_MAX = 46 // unistd.h:199:1:
X_SC_AVPHYS_PAGES = 501 // unistd.h:281:1:
X_SC_BARRIERS = 47 // unistd.h:200:1:
X_SC_BC_BASE_MAX = 9 // unistd.h:161:1:
X_SC_BC_DIM_MAX = 10 // unistd.h:162:1:
X_SC_BC_SCALE_MAX = 11 // unistd.h:163:1:
X_SC_BC_STRING_MAX = 12 // unistd.h:164:1:
X_SC_CHILD_MAX = 2 // unistd.h:154:1:
X_SC_CLK_TCK = 3 // unistd.h:155:1:
X_SC_CLOCK_SELECTION = 48 // unistd.h:201:1:
X_SC_COLL_WEIGHTS_MAX = 13 // unistd.h:165:1:
X_SC_CPUTIME = 49 // unistd.h:202:1:
X_SC_DELAYTIMER_MAX = 50 // unistd.h:203:1:
X_SC_EXPR_NEST_MAX = 14 // unistd.h:166:1:
X_SC_FSYNC = 29 // unistd.h:182:1:
X_SC_GETGR_R_SIZE_MAX = 100 // unistd.h:253:1:
X_SC_GETPW_R_SIZE_MAX = 101 // unistd.h:254:1:
X_SC_HOST_NAME_MAX = 33 // unistd.h:186:1:
X_SC_IOV_MAX = 51 // unistd.h:204:1:
X_SC_IPV6 = 52 // unistd.h:205:1:
X_SC_JOB_CONTROL = 6 // unistd.h:158:1:
X_SC_LINE_MAX = 15 // unistd.h:167:1:
X_SC_LOGIN_NAME_MAX = 102 // unistd.h:255:1:
X_SC_MAPPED_FILES = 53 // unistd.h:206:1:
X_SC_MEMLOCK = 54 // unistd.h:207:1:
X_SC_MEMLOCK_RANGE = 55 // unistd.h:208:1:
X_SC_MEMORY_PROTECTION = 56 // unistd.h:209:1:
X_SC_MESSAGE_PASSING = 57 // unistd.h:210:1:
X_SC_MONOTONIC_CLOCK = 34 // unistd.h:187:1:
X_SC_MQ_OPEN_MAX = 58 // unistd.h:211:1:
X_SC_MQ_PRIO_MAX = 59 // unistd.h:212:1:
X_SC_NGROUPS_MAX = 4 // unistd.h:156:1:
X_SC_NPROCESSORS_CONF = 502 // unistd.h:282:1:
X_SC_NPROCESSORS_ONLN = 503 // unistd.h:283:1:
X_SC_OPEN_MAX = 5 // unistd.h:157:1:
X_SC_PAGESIZE = 28 // unistd.h:180:1:
X_SC_PAGE_SIZE = 28 // unistd.h:181:1:
X_SC_PHYS_PAGES = 500 // unistd.h:280:1:
X_SC_PRIORITIZED_IO = 60 // unistd.h:213:1:
X_SC_PRIORITY_SCHEDULING = 61 // unistd.h:214:1:
X_SC_RAW_SOCKETS = 62 // unistd.h:215:1:
X_SC_READER_WRITER_LOCKS = 63 // unistd.h:216:1:
X_SC_REALTIME_SIGNALS = 64 // unistd.h:217:1:
X_SC_REGEXP = 65 // unistd.h:218:1:
X_SC_RE_DUP_MAX = 16 // unistd.h:168:1:
X_SC_RTSIG_MAX = 66 // unistd.h:219:1:
X_SC_SAVED_IDS = 7 // unistd.h:159:1:
X_SC_SEMAPHORES = 67 // unistd.h:220:1:
X_SC_SEM_NSEMS_MAX = 31 // unistd.h:184:1:
X_SC_SEM_VALUE_MAX = 32 // unistd.h:185:1:
X_SC_SHARED_MEMORY_OBJECTS = 68 // unistd.h:221:1:
X_SC_SHELL = 69 // unistd.h:222:1:
X_SC_SIGQUEUE_MAX = 70 // unistd.h:223:1:
X_SC_SPAWN = 71 // unistd.h:224:1:
X_SC_SPIN_LOCKS = 72 // unistd.h:225:1:
X_SC_SPORADIC_SERVER = 73 // unistd.h:226:1:
X_SC_SS_REPL_MAX = 74 // unistd.h:227:1:
X_SC_STREAM_MAX = 26 // unistd.h:178:1:
X_SC_SYMLOOP_MAX = 76 // unistd.h:229:1:
X_SC_SYNCHRONIZED_IO = 75 // unistd.h:228:1:
X_SC_THREADS = 91 // unistd.h:244:1:
X_SC_THREAD_ATTR_STACKADDR = 77 // unistd.h:230:1:
X_SC_THREAD_ATTR_STACKSIZE = 78 // unistd.h:231:1:
X_SC_THREAD_CPUTIME = 79 // unistd.h:232:1:
X_SC_THREAD_DESTRUCTOR_ITERATIONS = 80 // unistd.h:233:1:
X_SC_THREAD_KEYS_MAX = 81 // unistd.h:234:1:
X_SC_THREAD_PRIORITY_SCHEDULING = 84 // unistd.h:237:1:
X_SC_THREAD_PRIO_INHERIT = 82 // unistd.h:235:1:
X_SC_THREAD_PRIO_PROTECT = 83 // unistd.h:236:1:
X_SC_THREAD_PROCESS_SHARED = 85 // unistd.h:238:1:
X_SC_THREAD_ROBUST_PRIO_INHERIT = 86 // unistd.h:239:1:
X_SC_THREAD_ROBUST_PRIO_PROTECT = 87 // unistd.h:240:1:
X_SC_THREAD_SAFE_FUNCTIONS = 103 // unistd.h:256:1:
X_SC_THREAD_SPORADIC_SERVER = 88 // unistd.h:241:1:
X_SC_THREAD_STACK_MIN = 89 // unistd.h:242:1:
X_SC_THREAD_THREADS_MAX = 90 // unistd.h:243:1:
X_SC_TIMEOUTS = 92 // unistd.h:245:1:
X_SC_TIMERS = 94 // unistd.h:247:1:
X_SC_TIMER_MAX = 93 // unistd.h:246:1:
X_SC_TRACE = 95 // unistd.h:248:1:
X_SC_TRACE_EVENT_FILTER = 96 // unistd.h:249:1:
X_SC_TRACE_EVENT_NAME_MAX = 97 // unistd.h:250:1:
X_SC_TRACE_INHERIT = 98 // unistd.h:251:1:
X_SC_TRACE_LOG = 99 // unistd.h:252:1:
X_SC_TRACE_NAME_MAX = 104 // unistd.h:257:1:
X_SC_TRACE_SYS_MAX = 105 // unistd.h:258:1:
X_SC_TRACE_USER_EVENT_MAX = 106 // unistd.h:259:1:
X_SC_TTY_NAME_MAX = 107 // unistd.h:260:1:
X_SC_TYPED_MEMORY_OBJECTS = 108 // unistd.h:261:1:
X_SC_TZNAME_MAX = 27 // unistd.h:179:1:
X_SC_V6_ILP32_OFF32 = 109 // unistd.h:262:1:
X_SC_V6_ILP32_OFFBIG = 110 // unistd.h:263:1:
X_SC_V6_LP64_OFF64 = 111 // unistd.h:264:1:
X_SC_V6_LPBIG_OFFBIG = 112 // unistd.h:265:1:
X_SC_V7_ILP32_OFF32 = 113 // unistd.h:266:1:
X_SC_V7_ILP32_OFFBIG = 114 // unistd.h:267:1:
X_SC_V7_LP64_OFF64 = 115 // unistd.h:268:1:
X_SC_V7_LPBIG_OFFBIG = 116 // unistd.h:269:1:
X_SC_VERSION = 8 // unistd.h:160:1:
X_SC_XOPEN_CRYPT = 117 // unistd.h:270:1:
X_SC_XOPEN_ENH_I18N = 118 // unistd.h:271:1:
X_SC_XOPEN_LEGACY = 119 // unistd.h:272:1:
X_SC_XOPEN_REALTIME = 120 // unistd.h:273:1:
X_SC_XOPEN_REALTIME_THREADS = 121 // unistd.h:274:1:
X_SC_XOPEN_SHM = 30 // unistd.h:183:1:
X_SC_XOPEN_STREAMS = 122 // unistd.h:275:1:
X_SC_XOPEN_UNIX = 123 // unistd.h:276:1:
X_SC_XOPEN_UUCP = 124 // unistd.h:277:1:
X_SC_XOPEN_VERSION = 125 // unistd.h:278:1:
X_SIZE_T_DEFINED_ = 0 // types.h:172:1:
X_SSIZE_T_DEFINED_ = 0 // types.h:177:1:
X_STACKALIGNBYTES = 15 // _types.h:49:1:
X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1:
X_SYS_ENDIAN_H_ = 0 // endian.h:38:1:
X_SYS_TYPES_H_ = 0 // types.h:41:1:
X_SYS_UNISTD_H_ = 0 // unistd.h:36:1:
X_SYS__ENDIAN_H_ = 0 // _endian.h:34:1:
X_SYS__TYPES_H_ = 0 // _types.h:35:1:
X_TIMER_T_DEFINED_ = 0 // types.h:187:1:
X_TIME_T_DEFINED_ = 0 // types.h:182:1:
X_UINT16_T_DEFINED_ = 0 // types.h:89:1:
X_UINT32_T_DEFINED_ = 0 // types.h:99:1:
X_UINT64_T_DEFINED_ = 0 // types.h:109:1:
X_UINT8_T_DEFINED_ = 0 // types.h:79:1:
X_UNISTD_H_ = 0 // unistd.h:36:1:
X_XOPEN_CRYPT = 1 // unistd.h:137:1:
X_XOPEN_ENH_I18N = -1 // unistd.h:138:1:
X_XOPEN_LEGACY = -1 // unistd.h:139:1:
X_XOPEN_REALTIME = -1 // unistd.h:140:1:
X_XOPEN_REALTIME_THREADS = -1 // unistd.h:141:1:
X_XOPEN_SHM = 1 // unistd.h:142:1:
X_XOPEN_STREAMS = -1 // unistd.h:143:1:
X_XOPEN_UNIX = -1 // unistd.h:145:1:
X_XOPEN_UUCP = -1 // unistd.h:144:1:
Unix = 1 // <predefined>:344:1:
)
type Ptrdiff_t = int64 /* <builtin>:3:26 */
type Size_t = uint64 /* <builtin>:9:23 */
type Wchar_t = int32 /* <builtin>:15:24 */
type X__int128_t = struct {
Flo int64
Fhi int64
} /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
type X__uint128_t = struct {
Flo uint64
Fhi uint64
} /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
type X__float128 = float64 /* <builtin>:47:21 */
// $OpenBSD: unistd.h,v 1.106 2018/07/13 09:25:22 beck Exp $
// $NetBSD: unistd.h,v 1.26.4.1 1996/05/28 02:31:51 mrg Exp $
// -
// Copyright (c) 1991 The Regents of the University of California.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// @(#)unistd.h 5.13 (Berkeley) 6/17/91
// $OpenBSD: _null.h,v 1.2 2016/09/09 22:07:58 millert Exp $
// Written by Todd C. Miller, September 9, 2016
// Public domain.
// $OpenBSD: types.h,v 1.49 2022/08/06 13:31:13 semarie Exp $
// $NetBSD: types.h,v 1.29 1996/11/15 22:48:25 jtc Exp $
// -
// Copyright (c) 1982, 1986, 1991, 1993
// The Regents of the University of California. All rights reserved.
// (c) UNIX System Laboratories, Inc.
// All or some portions of this file are derived from material licensed
// to the University of California by American Telephone and Telegraph
// Co. or Unix System Laboratories, Inc. and are reproduced herein with
// the permission of UNIX System Laboratories, Inc.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// @(#)types.h 8.4 (Berkeley) 1/21/94
// $OpenBSD: cdefs.h,v 1.43 2018/10/29 17:10:40 guenther Exp $
// $NetBSD: cdefs.h,v 1.16 1996/04/03 20:46:39 christos Exp $
// Copyright (c) 1991, 1993
// The Regents of the University of California. All rights reserved.
//
// This code is derived from software contributed to Berkeley by
// Berkeley Software Design, Inc.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// @(#)cdefs.h 8.7 (Berkeley) 1/21/94
// $OpenBSD: cdefs.h,v 1.3 2013/03/28 17:30:45 martynas Exp $
// Written by J.T. Conklin <jtc@wimsey.com> 01/17/95.
// Public domain.
// Macro to test if we're using a specific version of gcc or later.
// The __CONCAT macro is used to concatenate parts of symbol names, e.g.
// with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo.
// The __CONCAT macro is a bit tricky -- make sure you don't put spaces
// in between its arguments. Do not use __CONCAT on double-quoted strings,
// such as those from the __STRING macro: to concatenate strings just put
// them next to each other.
// GCC1 and some versions of GCC2 declare dead (non-returning) and
// pure (no side effects) functions using "volatile" and "const";
// unfortunately, these then cause warnings under "-ansi -pedantic".
// GCC >= 2.5 uses the __attribute__((attrs)) style. All of these
// work for GNU C++ (modulo a slight glitch in the C++ grammar in
// the distribution version of 2.5.5).
// __returns_twice makes the compiler not assume the function
// only returns once. This affects registerisation of variables:
// even local variables need to be in memory across such a call.
// Example: setjmp()
// __only_inline makes the compiler only use this function definition
// for inlining; references that can't be inlined will be left as
// external references instead of generating a local copy. The
// matching library should include a simple extern definition for
// the function to handle those references. c.f. ctype.h
// GNU C version 2.96 adds explicit branch prediction so that
// the CPU back-end can hint the processor and also so that
// code blocks can be reordered such that the predicted path
// sees a more linear flow, thus improving cache behavior, etc.
//
// The following two macros provide us with a way to utilize this
// compiler feature. Use __predict_true() if you expect the expression
// to evaluate to true, and __predict_false() if you expect the
// expression to evaluate to false.
//
// A few notes about usage:
//
// * Generally, __predict_false() error condition checks (unless
// you have some _strong_ reason to do otherwise, in which case
// document it), and/or __predict_true() `no-error' condition
// checks, assuming you want to optimize for the no-error case.
//
// * Other than that, if you don't know the likelihood of a test
// succeeding from empirical or other `hard' evidence, don't
// make predictions.
//
// * These are meant to be used in places that are run `a lot'.
// It is wasteful to make predictions in code that is run
// seldomly (e.g. at subsystem initialization time) as the
// basic block reordering that this affects can often generate
// larger code.
// Delete pseudo-keywords wherever they are not available or needed.
// The __packed macro indicates that a variable or structure members
// should have the smallest possible alignment, despite any host CPU
// alignment requirements.
//
// The __aligned(x) macro specifies the minimum alignment of a
// variable or structure.
//
// These macros together are useful for describing the layout and
// alignment of messages exchanged with hardware or other systems.
// "The nice thing about standards is that there are so many to choose from."
// There are a number of "feature test macros" specified by (different)
// standards that determine which interfaces and types the header files
// should expose.
//
// Because of inconsistencies in these macros, we define our own
// set in the private name space that end in _VISIBLE. These are
// always defined and so headers can test their values easily.
// Things can get tricky when multiple feature macros are defined.
// We try to take the union of all the features requested.
//
// The following macros are guaranteed to have a value after cdefs.h
// has been included:
// __POSIX_VISIBLE
// __XPG_VISIBLE
// __ISO_C_VISIBLE
// __BSD_VISIBLE
// X/Open Portability Guides and Single Unix Specifications.
// _XOPEN_SOURCE XPG3
// _XOPEN_SOURCE && _XOPEN_VERSION = 4 XPG4
// _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED = 1 XPG4v2
// _XOPEN_SOURCE == 500 XPG5
// _XOPEN_SOURCE == 520 XPG5v2
// _XOPEN_SOURCE == 600 POSIX 1003.1-2001 with XSI
// _XOPEN_SOURCE == 700 POSIX 1003.1-2008 with XSI
//
// The XPG spec implies a specific value for _POSIX_C_SOURCE.
// POSIX macros, these checks must follow the XOPEN ones above.
//
// _POSIX_SOURCE == 1 1003.1-1988 (superseded by _POSIX_C_SOURCE)
// _POSIX_C_SOURCE == 1 1003.1-1990
// _POSIX_C_SOURCE == 2 1003.2-1992
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | true |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/unistd/capi_windows_386.go | vendor/modernc.org/libc/unistd/capi_windows_386.go | // 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_windows_386.go -pkgname unistd', DO NOT EDIT.
package unistd
var CAPI = map[string]struct{}{}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/unistd/capi_linux_amd64.go | vendor/modernc.org/libc/unistd/capi_linux_amd64.go | // 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_linux_amd64.go -pkgname unistd', DO NOT EDIT.
package unistd
var CAPI = map[string]struct{}{}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/unistd/unistd_freebsd_arm64.go | vendor/modernc.org/libc/unistd/unistd_freebsd_arm64.go | // 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.
package unistd
import (
"math"
"reflect"
"sync/atomic"
"unsafe"
)
var _ = math.Pi
var _ reflect.Kind
var _ atomic.Value
var _ unsafe.Pointer
const (
BIG_ENDIAN = 4321 // _endian.h:70:1:
BYTE_ORDER = 1234 // _endian.h:72:1:
CLOSE_RANGE_CLOEXEC = 4 // unistd.h:205:1:
FD_SETSIZE = 1024 // select.h:61:1:
F_LOCK = 1 // unistd.h:85:1:
F_OK = 0 // unistd.h:102:1:
F_TEST = 3 // unistd.h:87:1:
F_TLOCK = 2 // unistd.h:86:1:
F_ULOCK = 0 // unistd.h:84:1:
LITTLE_ENDIAN = 1234 // _endian.h:69:1:
L_INCR = 1 // unistd.h:121:1:
L_SET = 0 // unistd.h:120:1:
L_XTND = 2 // unistd.h:122:1:
PDP_ENDIAN = 3412 // _endian.h:71:1:
RFCENVG = 2048 // unistd.h:178:1:
RFCFDG = 4096 // unistd.h:179:1:
RFCNAMEG = 1024 // unistd.h:177:1:
RFENVG = 2 // unistd.h:171:1:
RFFDG = 4 // unistd.h:172:1:
RFFLAGS = 2416930932 // unistd.h:195:1:
RFHIGHPID = 262144 // unistd.h:184:1:
RFKERNELONLY = 268828672 // unistd.h:198:1:
RFLINUXTHPN = 65536 // unistd.h:182:1:
RFMEM = 32 // unistd.h:175:1:
RFNAMEG = 1 // unistd.h:170:1:
RFNOTEG = 8 // unistd.h:173:1:
RFNOWAIT = 64 // unistd.h:176:1:
RFPPWAIT = 2147483648 // unistd.h:192:1:
RFPROC = 16 // unistd.h:174:1:
RFPROCDESC = 268435456 // unistd.h:190:1:
RFSIGSHARE = 16384 // unistd.h:181:1:
RFSPAWN = 2147483648 // unistd.h:194:1:
RFSTOPPED = 131072 // unistd.h:183:1:
RFTHREAD = 8192 // unistd.h:180:1:
RFTSIGMASK = 0xFF // unistd.h:187:1:
RFTSIGSHIFT = 20 // unistd.h:186:1:
RFTSIGZMB = 524288 // unistd.h:185:1:
R_OK = 0x04 // unistd.h:105:1:
SEEK_CUR = 1 // unistd.h:110:1:
SEEK_DATA = 3 // unistd.h:114:1:
SEEK_END = 2 // unistd.h:111:1:
SEEK_HOLE = 4 // unistd.h:115:1:
SEEK_SET = 0 // unistd.h:109:1:
STDERR_FILENO = 2 // unistd.h:81:1:
STDIN_FILENO = 0 // unistd.h:79:1:
STDOUT_FILENO = 1 // unistd.h:80:1:
SWAPOFF_FORCE = 0x00000001 // unistd.h:200:1:
W_OK = 0x02 // unistd.h:104:1:
X_OK = 0x01 // unistd.h:103:1:
X_ACCMODE_T_DECLARED = 0 // types.h:166:1:
X_BIG_ENDIAN = 4321 // _endian.h:47:1:
X_BLKCNT_T_DECLARED = 0 // types.h:90:1:
X_BLKSIZE_T_DECLARED = 0 // types.h:81:1:
X_BYTE_ORDER = 1234 // _endian.h:40:1:
X_CAP_IOCTL_T_DECLARED = 0 // types.h:243:1:
X_CAP_RIGHTS_T_DECLARED = 0 // types.h:248:1:
X_CLOCKID_T_DECLARED = 0 // types.h:100:1:
X_CLOCK_T_DECLARED = 0 // types.h:95:1:
X_CS_PATH = 1 // unistd.h:302:1:
X_CS_POSIX_V6_ILP32_OFF32_CFLAGS = 2 // unistd.h:306:1:
X_CS_POSIX_V6_ILP32_OFF32_LDFLAGS = 3 // unistd.h:307:1:
X_CS_POSIX_V6_ILP32_OFF32_LIBS = 4 // unistd.h:308:1:
X_CS_POSIX_V6_ILP32_OFFBIG_CFLAGS = 5 // unistd.h:309:1:
X_CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS = 6 // unistd.h:310:1:
X_CS_POSIX_V6_ILP32_OFFBIG_LIBS = 7 // unistd.h:311:1:
X_CS_POSIX_V6_LP64_OFF64_CFLAGS = 8 // unistd.h:312:1:
X_CS_POSIX_V6_LP64_OFF64_LDFLAGS = 9 // unistd.h:313:1:
X_CS_POSIX_V6_LP64_OFF64_LIBS = 10 // unistd.h:314:1:
X_CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS = 11 // unistd.h:315:1:
X_CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS = 12 // unistd.h:316:1:
X_CS_POSIX_V6_LPBIG_OFFBIG_LIBS = 13 // unistd.h:317:1:
X_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS = 14 // unistd.h:318:1:
X_DEV_T_DECLARED = 0 // types.h:108:1:
X_FFLAGS_T_DECLARED = 0 // types.h:113:1:
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_FSBLKCNT_T_DECLARED = 0 // types.h:121:1:
X_FTRUNCATE_DECLARED = 0 // types.h:417:1:
X_GETOPT_DECLARED = 0 // unistd.h:378:1:
X_GID_T_DECLARED = 0 // types.h:126:1:
X_ID_T_DECLARED = 0 // types.h:141:1:
X_INO_T_DECLARED = 0 // types.h:146:1:
X_INT16_T_DECLARED = 0 // _stdint.h:42:1:
X_INT32_T_DECLARED = 0 // _stdint.h:47:1:
X_INT64_T_DECLARED = 0 // _stdint.h:52:1:
X_INT8_T_DECLARED = 0 // _stdint.h:37:1:
X_INTMAX_T_DECLARED = 0 // _stdint.h:85:1:
X_INTPTR_T_DECLARED = 0 // _stdint.h:77:1:
X_IN_ADDR_T_DECLARED = 0 // types.h:131:1:
X_IN_PORT_T_DECLARED = 0 // types.h:136:1:
X_KEY_T_DECLARED = 0 // types.h:151:1:
X_LITTLE_ENDIAN = 1234 // _endian.h:46:1:
X_LP64 = 1 // <predefined>:1:1:
X_LSEEK_DECLARED = 0 // types.h:421:1:
X_LWPID_T_DECLARED = 0 // types.h:156:1:
X_MACHINE_ENDIAN_H_ = 0 // endian.h:36:1:
X_MACHINE__LIMITS_H_ = 0 // _limits.h:36:1:
X_MACHINE__TYPES_H_ = 0 // _types.h:42:1:
X_MKDTEMP_DECLARED = 0 // unistd.h:528:1:
X_MKNOD_DECLARED = 0 // unistd.h:532:1:
X_MKSTEMP_DECLARED = 0 // unistd.h:536:1:
X_MKTEMP_DECLARED = 0 // unistd.h:541:1:
X_MMAP_DECLARED = 0 // types.h:425:1:
X_MODE_T_DECLARED = 0 // types.h:161:1:
X_MQD_T_DECLARED = 0 // types.h:227:1:
X_NLINK_T_DECLARED = 0 // types.h:171:1:
X_Nonnull = 0 // cdefs.h:790:1:
X_Null_unspecified = 0 // cdefs.h:792:1:
X_Nullable = 0 // cdefs.h:791:1:
X_OFF64_T_DECLARED = 0 // types.h:181:1:
X_OFF_T_DECLARED = 0 // types.h:176:1:
X_OPTRESET_DECLARED = 0 // unistd.h:592:1:
X_PC_ACL_EXTENDED = 59 // unistd.h:153:1:
X_PC_ACL_NFS4 = 64 // unistd.h:158:1:
X_PC_ACL_PATH_MAX = 60 // unistd.h:154:1:
X_PC_ALLOC_SIZE_MIN = 10 // unistd.h:143:1:
X_PC_ASYNC_IO = 53 // unistd.h:137:1:
X_PC_CAP_PRESENT = 61 // unistd.h:155:1:
X_PC_CHOWN_RESTRICTED = 7 // unistd.h:132:1:
X_PC_FILESIZEBITS = 12 // unistd.h:144:1:
X_PC_INF_PRESENT = 62 // unistd.h:156:1:
X_PC_LINK_MAX = 1 // unistd.h:126:1:
X_PC_MAC_PRESENT = 63 // unistd.h:157:1:
X_PC_MAX_CANON = 2 // unistd.h:127:1:
X_PC_MAX_INPUT = 3 // unistd.h:128:1:
X_PC_MIN_HOLE_SIZE = 21 // unistd.h:162:1:
X_PC_NAME_MAX = 4 // unistd.h:129:1:
X_PC_NO_TRUNC = 8 // unistd.h:133:1:
X_PC_PATH_MAX = 5 // unistd.h:130:1:
X_PC_PIPE_BUF = 6 // unistd.h:131:1:
X_PC_PRIO_IO = 54 // unistd.h:138:1:
X_PC_REC_INCR_XFER_SIZE = 14 // unistd.h:145:1:
X_PC_REC_MAX_XFER_SIZE = 15 // unistd.h:146:1:
X_PC_REC_MIN_XFER_SIZE = 16 // unistd.h:147:1:
X_PC_REC_XFER_ALIGN = 17 // unistd.h:148:1:
X_PC_SYMLINK_MAX = 18 // unistd.h:149:1:
X_PC_SYNC_IO = 55 // unistd.h:139:1:
X_PC_VDISABLE = 9 // unistd.h:134:1:
X_PDP_ENDIAN = 3412 // _endian.h:48:1:
X_PID_T_DECLARED = 0 // types.h:186:1:
X_POSIX2_CHAR_TERM = 1 // unistd.h:127:1:
X_POSIX2_C_BIND = 200112 // unistd.h:125:1:
X_POSIX2_C_DEV = -1 // unistd.h:126:1:
X_POSIX2_FORT_DEV = -1 // unistd.h:128:1:
X_POSIX2_FORT_RUN = 200112 // unistd.h:129:1:
X_POSIX2_LOCALEDEF = -1 // unistd.h:130:1:
X_POSIX2_PBS = -1 // unistd.h:131:1:
X_POSIX2_PBS_ACCOUNTING = -1 // unistd.h:132:1:
X_POSIX2_PBS_CHECKPOINT = -1 // unistd.h:133:1:
X_POSIX2_PBS_LOCATE = -1 // unistd.h:134:1:
X_POSIX2_PBS_MESSAGE = -1 // unistd.h:135:1:
X_POSIX2_PBS_TRACK = -1 // unistd.h:136:1:
X_POSIX2_SW_DEV = -1 // unistd.h:137:1:
X_POSIX2_UPE = 200112 // unistd.h:138:1:
X_POSIX2_VERSION = 199212 // unistd.h:154:1:
X_POSIX_ADVISORY_INFO = 200112 // unistd.h:54:1:
X_POSIX_ASYNCHRONOUS_IO = 200112 // unistd.h:55:1:
X_POSIX_BARRIERS = 200112 // unistd.h:104:1:
X_POSIX_CHOWN_RESTRICTED = 1 // unistd.h:56:1:
X_POSIX_CLOCK_SELECTION = -1 // unistd.h:57:1:
X_POSIX_CPUTIME = 200112 // unistd.h:105:1:
X_POSIX_FSYNC = 200112 // unistd.h:59:1:
X_POSIX_IPV6 = 0 // unistd.h:60:1:
X_POSIX_JOB_CONTROL = 1 // unistd.h:61:1:
X_POSIX_MAPPED_FILES = 200112 // unistd.h:62:1:
X_POSIX_MEMLOCK = -1 // unistd.h:63:1:
X_POSIX_MEMLOCK_RANGE = 200112 // unistd.h:64:1:
X_POSIX_MEMORY_PROTECTION = 200112 // unistd.h:65:1:
X_POSIX_MESSAGE_PASSING = 200112 // unistd.h:66:1:
X_POSIX_MONOTONIC_CLOCK = 200112 // unistd.h:67:1:
X_POSIX_NO_TRUNC = 1 // unistd.h:68:1:
X_POSIX_PRIORITIZED_IO = -1 // unistd.h:69:1:
X_POSIX_PRIORITY_SCHEDULING = 0 // unistd.h:70:1:
X_POSIX_RAW_SOCKETS = 200112 // unistd.h:71:1:
X_POSIX_READER_WRITER_LOCKS = 200112 // unistd.h:106:1:
X_POSIX_REALTIME_SIGNALS = 200112 // unistd.h:72:1:
X_POSIX_REGEXP = 1 // unistd.h:107:1:
X_POSIX_SEMAPHORES = 200112 // unistd.h:73:1:
X_POSIX_SHARED_MEMORY_OBJECTS = 200112 // unistd.h:74:1:
X_POSIX_SHELL = 1 // unistd.h:108:1:
X_POSIX_SPAWN = 200112 // unistd.h:109:1:
X_POSIX_SPIN_LOCKS = 200112 // unistd.h:110:1:
X_POSIX_SPORADIC_SERVER = -1 // unistd.h:75:1:
X_POSIX_SYNCHRONIZED_IO = -1 // unistd.h:76:1:
X_POSIX_THREADS = 200112 // unistd.h:120:1:
X_POSIX_THREAD_ATTR_STACKADDR = 200112 // unistd.h:111:1:
X_POSIX_THREAD_ATTR_STACKSIZE = 200112 // unistd.h:112:1:
X_POSIX_THREAD_CPUTIME = 200112 // unistd.h:113:1:
X_POSIX_THREAD_PRIORITY_SCHEDULING = 200112 // unistd.h:116:1:
X_POSIX_THREAD_PRIO_INHERIT = 200112 // unistd.h:114:1:
X_POSIX_THREAD_PRIO_PROTECT = 200112 // unistd.h:115:1:
X_POSIX_THREAD_PROCESS_SHARED = 200112 // unistd.h:117:1:
X_POSIX_THREAD_SAFE_FUNCTIONS = -1 // unistd.h:118:1:
X_POSIX_THREAD_SPORADIC_SERVER = -1 // unistd.h:119:1:
X_POSIX_TIMEOUTS = 200112 // unistd.h:77:1:
X_POSIX_TIMERS = 200112 // unistd.h:78:1:
X_POSIX_TRACE = -1 // unistd.h:121:1:
X_POSIX_TRACE_EVENT_FILTER = -1 // unistd.h:122:1:
X_POSIX_TRACE_INHERIT = -1 // unistd.h:123:1:
X_POSIX_TRACE_LOG = -1 // unistd.h:124:1:
X_POSIX_TYPED_MEMORY_OBJECTS = -1 // unistd.h:79:1:
X_POSIX_VDISABLE = 0xff // unistd.h:80:1:
X_POSIX_VERSION = 200112 // unistd.h:99:1:
X_PTHREAD_T_DECLARED = 0 // _pthreadtypes.h:68:1:
X_QUAD_HIGHWORD = 1 // _endian.h:55:1:
X_QUAD_LOWWORD = 0 // _endian.h:56:1:
X_RLIM_T_DECLARED = 0 // types.h:193:1:
X_SC_2_CHAR_TERM = 20 // unistd.h:184:1:
X_SC_2_C_BIND = 18 // unistd.h:182:1:
X_SC_2_C_DEV = 19 // unistd.h:183:1:
X_SC_2_FORT_DEV = 21 // unistd.h:185:1:
X_SC_2_FORT_RUN = 22 // unistd.h:186:1:
X_SC_2_LOCALEDEF = 23 // unistd.h:187:1:
X_SC_2_PBS = 59 // unistd.h:222:1:
X_SC_2_PBS_ACCOUNTING = 60 // unistd.h:223:1:
X_SC_2_PBS_CHECKPOINT = 61 // unistd.h:224:1:
X_SC_2_PBS_LOCATE = 62 // unistd.h:225:1:
X_SC_2_PBS_MESSAGE = 63 // unistd.h:226:1:
X_SC_2_PBS_TRACK = 64 // unistd.h:227:1:
X_SC_2_SW_DEV = 24 // unistd.h:188:1:
X_SC_2_UPE = 25 // unistd.h:189:1:
X_SC_2_VERSION = 17 // unistd.h:181:1:
X_SC_ADVISORY_INFO = 65 // unistd.h:228:1:
X_SC_AIO_LISTIO_MAX = 42 // unistd.h:208:1:
X_SC_AIO_MAX = 43 // unistd.h:209:1:
X_SC_AIO_PRIO_DELTA_MAX = 44 // unistd.h:210:1:
X_SC_ARG_MAX = 1 // unistd.h:165:1:
X_SC_ASYNCHRONOUS_IO = 28 // unistd.h:194:1:
X_SC_ATEXIT_MAX = 107 // unistd.h:276:1:
X_SC_BARRIERS = 66 // unistd.h:229:1:
X_SC_BC_BASE_MAX = 9 // unistd.h:173:1:
X_SC_BC_DIM_MAX = 10 // unistd.h:174:1:
X_SC_BC_SCALE_MAX = 11 // unistd.h:175:1:
X_SC_BC_STRING_MAX = 12 // unistd.h:176:1:
X_SC_CHILD_MAX = 2 // unistd.h:166:1:
X_SC_CLK_TCK = 3 // unistd.h:167:1:
X_SC_CLOCK_SELECTION = 67 // unistd.h:230:1:
X_SC_COLL_WEIGHTS_MAX = 13 // unistd.h:177:1:
X_SC_CPUSET_SIZE = 122 // unistd.h:294:1:
X_SC_CPUTIME = 68 // unistd.h:231:1:
X_SC_DELAYTIMER_MAX = 45 // unistd.h:211:1:
X_SC_EXPR_NEST_MAX = 14 // unistd.h:178:1:
X_SC_FILE_LOCKING = 69 // unistd.h:232:1:
X_SC_FSYNC = 38 // unistd.h:204:1:
X_SC_GETGR_R_SIZE_MAX = 70 // unistd.h:233:1:
X_SC_GETPW_R_SIZE_MAX = 71 // unistd.h:234:1:
X_SC_HOST_NAME_MAX = 72 // unistd.h:235:1:
X_SC_IOV_MAX = 56 // unistd.h:277:1:
X_SC_IPV6 = 118 // unistd.h:270:1:
X_SC_JOB_CONTROL = 6 // unistd.h:170:1:
X_SC_LINE_MAX = 15 // unistd.h:179:1:
X_SC_LOGIN_NAME_MAX = 73 // unistd.h:236:1:
X_SC_MAPPED_FILES = 29 // unistd.h:195:1:
X_SC_MEMLOCK = 30 // unistd.h:196:1:
X_SC_MEMLOCK_RANGE = 31 // unistd.h:197:1:
X_SC_MEMORY_PROTECTION = 32 // unistd.h:198:1:
X_SC_MESSAGE_PASSING = 33 // unistd.h:199:1:
X_SC_MONOTONIC_CLOCK = 74 // unistd.h:237:1:
X_SC_MQ_OPEN_MAX = 46 // unistd.h:212:1:
X_SC_MQ_PRIO_MAX = 75 // unistd.h:238:1:
X_SC_NGROUPS_MAX = 4 // unistd.h:168:1:
X_SC_NPROCESSORS_CONF = 57 // unistd.h:292:1:
X_SC_NPROCESSORS_ONLN = 58 // unistd.h:293:1:
X_SC_OPEN_MAX = 5 // unistd.h:169:1:
X_SC_PAGESIZE = 47 // unistd.h:213:1:
X_SC_PAGE_SIZE = 47 // unistd.h:278:1:
X_SC_PHYS_PAGES = 121 // unistd.h:298:1:
X_SC_PRIORITIZED_IO = 34 // unistd.h:200:1:
X_SC_PRIORITY_SCHEDULING = 35 // unistd.h:201:1:
X_SC_RAW_SOCKETS = 119 // unistd.h:271:1:
X_SC_READER_WRITER_LOCKS = 76 // unistd.h:239:1:
X_SC_REALTIME_SIGNALS = 36 // unistd.h:202:1:
X_SC_REGEXP = 77 // unistd.h:240:1:
X_SC_RE_DUP_MAX = 16 // unistd.h:180:1:
X_SC_RTSIG_MAX = 48 // unistd.h:214:1:
X_SC_SAVED_IDS = 7 // unistd.h:171:1:
X_SC_SEMAPHORES = 37 // unistd.h:203:1:
X_SC_SEM_NSEMS_MAX = 49 // unistd.h:215:1:
X_SC_SEM_VALUE_MAX = 50 // unistd.h:216:1:
X_SC_SHARED_MEMORY_OBJECTS = 39 // unistd.h:205:1:
X_SC_SHELL = 78 // unistd.h:241:1:
X_SC_SIGQUEUE_MAX = 51 // unistd.h:217:1:
X_SC_SPAWN = 79 // unistd.h:242:1:
X_SC_SPIN_LOCKS = 80 // unistd.h:243:1:
X_SC_SPORADIC_SERVER = 81 // unistd.h:244:1:
X_SC_STREAM_MAX = 26 // unistd.h:190:1:
X_SC_SYMLOOP_MAX = 120 // unistd.h:272:1:
X_SC_SYNCHRONIZED_IO = 40 // unistd.h:206:1:
X_SC_THREADS = 96 // unistd.h:259:1:
X_SC_THREAD_ATTR_STACKADDR = 82 // unistd.h:245:1:
X_SC_THREAD_ATTR_STACKSIZE = 83 // unistd.h:246:1:
X_SC_THREAD_CPUTIME = 84 // unistd.h:247:1:
X_SC_THREAD_DESTRUCTOR_ITERATIONS = 85 // unistd.h:248:1:
X_SC_THREAD_KEYS_MAX = 86 // unistd.h:249:1:
X_SC_THREAD_PRIORITY_SCHEDULING = 89 // unistd.h:252:1:
X_SC_THREAD_PRIO_INHERIT = 87 // unistd.h:250:1:
X_SC_THREAD_PRIO_PROTECT = 88 // unistd.h:251:1:
X_SC_THREAD_PROCESS_SHARED = 90 // unistd.h:253:1:
X_SC_THREAD_SAFE_FUNCTIONS = 91 // unistd.h:254:1:
X_SC_THREAD_SPORADIC_SERVER = 92 // unistd.h:255:1:
X_SC_THREAD_STACK_MIN = 93 // unistd.h:256:1:
X_SC_THREAD_THREADS_MAX = 94 // unistd.h:257:1:
X_SC_TIMEOUTS = 95 // unistd.h:258:1:
X_SC_TIMERS = 41 // unistd.h:207:1:
X_SC_TIMER_MAX = 52 // unistd.h:218:1:
X_SC_TRACE = 97 // unistd.h:260:1:
X_SC_TRACE_EVENT_FILTER = 98 // unistd.h:261:1:
X_SC_TRACE_INHERIT = 99 // unistd.h:262:1:
X_SC_TRACE_LOG = 100 // unistd.h:263:1:
X_SC_TTY_NAME_MAX = 101 // unistd.h:264:1:
X_SC_TYPED_MEMORY_OBJECTS = 102 // unistd.h:265:1:
X_SC_TZNAME_MAX = 27 // unistd.h:191:1:
X_SC_V6_ILP32_OFF32 = 103 // unistd.h:266:1:
X_SC_V6_ILP32_OFFBIG = 104 // unistd.h:267:1:
X_SC_V6_LP64_OFF64 = 105 // unistd.h:268:1:
X_SC_V6_LPBIG_OFFBIG = 106 // unistd.h:269:1:
X_SC_VERSION = 8 // unistd.h:172:1:
X_SC_XOPEN_CRYPT = 108 // unistd.h:279:1:
X_SC_XOPEN_ENH_I18N = 109 // unistd.h:280:1:
X_SC_XOPEN_LEGACY = 110 // unistd.h:281:1:
X_SC_XOPEN_REALTIME = 111 // unistd.h:282:1:
X_SC_XOPEN_REALTIME_THREADS = 112 // unistd.h:283:1:
X_SC_XOPEN_SHM = 113 // unistd.h:284:1:
X_SC_XOPEN_STREAMS = 114 // unistd.h:285:1:
X_SC_XOPEN_UNIX = 115 // unistd.h:286:1:
X_SC_XOPEN_VERSION = 116 // unistd.h:287:1:
X_SC_XOPEN_XCU_VERSION = 117 // unistd.h:288:1:
X_SELECT_DECLARED = 0 // select.h:103:1:
X_SIGSET_T_DECLARED = 0 // select.h:50:1:
X_SIG_MAXSIG = 128 // _sigset.h:47:1:
X_SIG_WORDS = 4 // _sigset.h:46:1:
X_SIZE_T_DECLARED = 0 // types.h:202:1:
X_SSIZE_T_DECLARED = 0 // types.h:207:1:
X_SUSECONDS_T_DECLARED = 0 // types.h:212:1:
X_SWAB_DECLARED = 0 // unistd.h:461:1:
X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1:
X_SYS_SELECT_H_ = 0 // select.h:35:1:
X_SYS_TIMESPEC_H_ = 0 // timespec.h:37:1:
X_SYS_TYPES_H_ = 0 // types.h:41:1:
X_SYS_UNISTD_H_ = 0 // unistd.h:36:1:
X_SYS__ENDIAN_H_ = 0 // _endian.h:33:1:
X_SYS__PTHREADTYPES_H_ = 0 // _pthreadtypes.h:39:1:
X_SYS__SIGSET_H_ = 0 // _sigset.h:41:1:
X_SYS__STDINT_H_ = 0 // _stdint.h:33:1:
X_SYS__TIMESPEC_H_ = 0 // _timespec.h:37:1:
X_SYS__TIMEVAL_H_ = 0 // _timeval.h:32:1:
X_SYS__TYPES_H_ = 0 // _types.h:32:1:
X_TIMER_T_DECLARED = 0 // types.h:222:1:
X_TIME_T_DECLARED = 0 // types.h:217:1:
X_TRUNCATE_DECLARED = 0 // types.h:429:1:
X_UID_T_DECLARED = 0 // types.h:234:1:
X_UINT16_T_DECLARED = 0 // _stdint.h:62:1:
X_UINT32_T_DECLARED = 0 // _stdint.h:67:1:
X_UINT64_T_DECLARED = 0 // _stdint.h:72:1:
X_UINT8_T_DECLARED = 0 // _stdint.h:57:1:
X_UINTMAX_T_DECLARED = 0 // _stdint.h:89:1:
X_UINTPTR_T_DECLARED = 0 // _stdint.h:81:1:
X_UNISTD_H_ = 0 // unistd.h:36:1:
X_USECONDS_T_DECLARED = 0 // types.h:239:1:
X_V6_ILP32_OFF32 = -1 // unistd.h:139:1:
X_V6_ILP32_OFFBIG = 0 // unistd.h:140:1:
X_V6_LP64_OFF64 = 0 // unistd.h:141:1:
X_V6_LPBIG_OFFBIG = -1 // unistd.h:142:1:
X_XOPEN_CRYPT = -1 // unistd.h:145:1:
X_XOPEN_ENH_I18N = -1 // unistd.h:146:1:
X_XOPEN_LEGACY = -1 // unistd.h:147:1:
X_XOPEN_REALTIME = -1 // unistd.h:148:1:
X_XOPEN_REALTIME_THREADS = -1 // unistd.h:149:1:
X_XOPEN_SHM = 1 // unistd.h:83:1:
X_XOPEN_STREAMS = -1 // unistd.h:84:1:
X_XOPEN_UNIX = -1 // unistd.h:150:1:
Unix = 1 // <predefined>:340:1:
)
type Ptrdiff_t = int64 /* <builtin>:3:26 */
type Size_t = uint64 /* <builtin>:9:23 */
type Wchar_t = int32 /* <builtin>:15:24 */
type X__int128_t = struct {
Flo int64
Fhi int64
} /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
type X__uint128_t = struct {
Flo uint64
Fhi uint64
} /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
type X__float128 = float64 /* <builtin>:47:21 */
// -
// SPDX-License-Identifier: BSD-3-Clause
//
// Copyright (c) 1991, 1993, 1994
// The Regents of the University of California. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// @(#)unistd.h 8.12 (Berkeley) 4/27/95
// $FreeBSD$
// -
// SPDX-License-Identifier: BSD-3-Clause
//
// Copyright (c) 1991, 1993
// The Regents of the University of California. All rights reserved.
//
// This code is derived from software contributed to Berkeley by
// Berkeley Software Design, Inc.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// @(#)cdefs.h 8.8 (Berkeley) 1/9/95
// $FreeBSD$
// Testing against Clang-specific extensions.
// This code has been put in place to help reduce the addition of
// compiler specific defines in FreeBSD code. It helps to aid in
// having a compiler-agnostic source tree.
// Compiler memory barriers, specific to gcc and clang.
// XXX: if __GNUC__ >= 2: not tested everywhere originally, where replaced
// Macro to test if we're using a specific version of gcc or later.
// The __CONCAT macro is used to concatenate parts of symbol names, e.g.
// with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo.
// The __CONCAT macro is a bit tricky to use if it must work in non-ANSI
// mode -- there must be no spaces between its arguments, and for nested
// __CONCAT's, all the __CONCAT's must be at the left. __CONCAT can also
// concatenate double-quoted strings produced by the __STRING macro, but
// this only works with ANSI C.
//
// __XSTRING is like __STRING, but it expands any macros in its argument
// first. It is only available with ANSI C.
// Compiler-dependent macros to help declare dead (non-returning) and
// pure (no side effects) functions, and unused variables. They are
// null except for versions of gcc that are known to support the features
// properly (old versions of gcc-2 supported the dead and pure features
// in a different (wrong) way). If we do not provide an implementation
// for a given compiler, let the compile fail if it is told to use
// a feature that we cannot live without.
// Keywords added in C11.
// Emulation of C11 _Generic(). Unlike the previously defined C11
// keywords, it is not possible to implement this using exactly the same
// syntax. Therefore implement something similar under the name
// __generic(). Unlike _Generic(), this macro can only distinguish
// between a single type, so it requires nested invocations to
// distinguish multiple cases.
// C99 Static array indices in function parameter declarations. Syntax such as:
// void bar(int myArray[static 10]);
// is allowed in C99 but not in C++. Define __min_size appropriately so
// headers using it can be compiled in either language. Use like this:
// void bar(int myArray[__min_size(10)]);
// XXX: should use `#if __STDC_VERSION__ < 199901'.
// C++11 exposes a load of C99 stuff
// GCC 2.95 provides `__restrict' as an extension to C90 to support the
// C99-specific `restrict' type qualifier. We happen to use `__restrict' as
// a way to define the `restrict' type qualifier without disturbing older
// software that is unaware of C99 keywords.
// GNU C version 2.96 adds explicit branch prediction so that
// the CPU back-end can hint the processor and also so that
// code blocks can be reordered such that the predicted path
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | true |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/unistd/unistd_linux_arm.go | vendor/modernc.org/libc/unistd/unistd_linux_arm.go | // 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 -o unistd/unistd_linux_arm.go -pkgname unistd', DO NOT EDIT.
package unistd
import (
"math"
"reflect"
"sync/atomic"
"unsafe"
)
var _ = math.Pi
var _ reflect.Kind
var _ atomic.Value
var _ unsafe.Pointer
const (
F_LOCK = 1
F_OK = 0
F_TEST = 3
F_TLOCK = 2
F_ULOCK = 0
L_INCR = 1
L_SET = 0
L_XTND = 2
R_OK = 4
SEEK_CUR = 1
SEEK_END = 2
SEEK_SET = 0
STDERR_FILENO = 2
STDIN_FILENO = 0
STDOUT_FILENO = 1
W_OK = 2
X_OK = 1
X_ATFILE_SOURCE = 1
X_BITS_POSIX_OPT_H = 1
X_BITS_TIME64_H = 1
X_BITS_TYPESIZES_H = 1
X_BITS_TYPES_H = 1
X_BSD_SIZE_T_ = 0
X_BSD_SIZE_T_DEFINED_ = 0
X_DEFAULT_SOURCE = 1
X_FEATURES_H = 1
X_FILE_OFFSET_BITS = 64
X_GCC_SIZE_T = 0
X_GETOPT_CORE_H = 1
X_GETOPT_POSIX_H = 1
X_LFS64_ASYNCHRONOUS_IO = 1
X_LFS64_LARGEFILE = 1
X_LFS64_STDIO = 1
X_LFS_ASYNCHRONOUS_IO = 1
X_LFS_LARGEFILE = 1
X_POSIX2_CHAR_TERM = 200809
X_POSIX2_C_BIND = 200809
X_POSIX2_C_DEV = 200809
X_POSIX2_C_VERSION = 200809
X_POSIX2_LOCALEDEF = 200809
X_POSIX2_SW_DEV = 200809
X_POSIX2_VERSION = 200809
X_POSIX_ADVISORY_INFO = 200809
X_POSIX_ASYNCHRONOUS_IO = 200809
X_POSIX_ASYNC_IO = 1
X_POSIX_BARRIERS = 200809
X_POSIX_CHOWN_RESTRICTED = 0
X_POSIX_CLOCK_SELECTION = 200809
X_POSIX_CPUTIME = 0
X_POSIX_C_SOURCE = 200809
X_POSIX_FSYNC = 200809
X_POSIX_IPV6 = 200809
X_POSIX_JOB_CONTROL = 1
X_POSIX_MAPPED_FILES = 200809
X_POSIX_MEMLOCK = 200809
X_POSIX_MEMLOCK_RANGE = 200809
X_POSIX_MEMORY_PROTECTION = 200809
X_POSIX_MESSAGE_PASSING = 200809
X_POSIX_MONOTONIC_CLOCK = 0
X_POSIX_NO_TRUNC = 1
X_POSIX_PRIORITIZED_IO = 200809
X_POSIX_PRIORITY_SCHEDULING = 200809
X_POSIX_RAW_SOCKETS = 200809
X_POSIX_READER_WRITER_LOCKS = 200809
X_POSIX_REALTIME_SIGNALS = 200809
X_POSIX_REENTRANT_FUNCTIONS = 1
X_POSIX_REGEXP = 1
X_POSIX_SAVED_IDS = 1
X_POSIX_SEMAPHORES = 200809
X_POSIX_SHARED_MEMORY_OBJECTS = 200809
X_POSIX_SHELL = 1
X_POSIX_SOURCE = 1
X_POSIX_SPAWN = 200809
X_POSIX_SPIN_LOCKS = 200809
X_POSIX_SPORADIC_SERVER = -1
X_POSIX_SYNCHRONIZED_IO = 200809
X_POSIX_THREADS = 200809
X_POSIX_THREAD_ATTR_STACKADDR = 200809
X_POSIX_THREAD_ATTR_STACKSIZE = 200809
X_POSIX_THREAD_CPUTIME = 0
X_POSIX_THREAD_PRIORITY_SCHEDULING = 200809
X_POSIX_THREAD_PRIO_INHERIT = 200809
X_POSIX_THREAD_PRIO_PROTECT = 200809
X_POSIX_THREAD_PROCESS_SHARED = 200809
X_POSIX_THREAD_ROBUST_PRIO_INHERIT = 200809
X_POSIX_THREAD_ROBUST_PRIO_PROTECT = -1
X_POSIX_THREAD_SAFE_FUNCTIONS = 200809
X_POSIX_THREAD_SPORADIC_SERVER = -1
X_POSIX_TIMEOUTS = 200809
X_POSIX_TIMERS = 200809
X_POSIX_TRACE = -1
X_POSIX_TRACE_EVENT_FILTER = -1
X_POSIX_TRACE_INHERIT = -1
X_POSIX_TRACE_LOG = -1
X_POSIX_TYPED_MEMORY_OBJECTS = -1
X_POSIX_V6_ILP32_OFF32 = 1
X_POSIX_V6_ILP32_OFFBIG = 1
X_POSIX_V6_LP64_OFF64 = -1
X_POSIX_V6_LPBIG_OFFBIG = -1
X_POSIX_V7_ILP32_OFF32 = 1
X_POSIX_V7_ILP32_OFFBIG = 1
X_POSIX_V7_LP64_OFF64 = -1
X_POSIX_V7_LPBIG_OFFBIG = -1
X_POSIX_VDISABLE = 0
X_POSIX_VERSION = 200809
X_SIZET_ = 0
X_SIZE_T = 0
X_SIZE_T_ = 0
X_SIZE_T_DECLARED = 0
X_SIZE_T_DEFINED = 0
X_SIZE_T_DEFINED_ = 0
X_STDC_PREDEF_H = 1
X_SYS_CDEFS_H = 1
X_SYS_SIZE_T_H = 0
X_T_SIZE = 0
X_T_SIZE_ = 0
X_UNISTD_H = 1
X_XBS5_ILP32_OFF32 = 1
X_XBS5_ILP32_OFFBIG = 1
X_XBS5_LP64_OFF64 = -1
X_XBS5_LPBIG_OFFBIG = -1
X_XOPEN_ENH_I18N = 1
X_XOPEN_LEGACY = 1
X_XOPEN_REALTIME = 1
X_XOPEN_REALTIME_THREADS = 1
X_XOPEN_SHM = 1
X_XOPEN_UNIX = 1
X_XOPEN_VERSION = 700
X_XOPEN_XCU_VERSION = 4
X_XOPEN_XPG2 = 1
X_XOPEN_XPG3 = 1
X_XOPEN_XPG4 = 1
Linux = 1
Unix = 1
)
// Get the `_PC_*' symbols for the NAME argument to `pathconf' and `fpathconf';
// the `_SC_*' symbols for the NAME argument to `sysconf';
// and the `_CS_*' symbols for the NAME argument to `confstr'.
// `sysconf', `pathconf', and `confstr' NAME values. Generic version.
// Copyright (C) 1993-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// Values for the NAME argument to `pathconf' and `fpathconf'.
const ( /* confname.h:24:1: */
X_PC_LINK_MAX = 0
X_PC_MAX_CANON = 1
X_PC_MAX_INPUT = 2
X_PC_NAME_MAX = 3
X_PC_PATH_MAX = 4
X_PC_PIPE_BUF = 5
X_PC_CHOWN_RESTRICTED = 6
X_PC_NO_TRUNC = 7
X_PC_VDISABLE = 8
X_PC_SYNC_IO = 9
X_PC_ASYNC_IO = 10
X_PC_PRIO_IO = 11
X_PC_SOCK_MAXBUF = 12
X_PC_FILESIZEBITS = 13
X_PC_REC_INCR_XFER_SIZE = 14
X_PC_REC_MAX_XFER_SIZE = 15
X_PC_REC_MIN_XFER_SIZE = 16
X_PC_REC_XFER_ALIGN = 17
X_PC_ALLOC_SIZE_MIN = 18
X_PC_SYMLINK_MAX = 19
X_PC_2_SYMLINKS = 20
)
// Values for the NAME argument to `confstr'.
const ( /* confname.h:533:1: */
X_CS_PATH = 0 // The default search path.
X_CS_V6_WIDTH_RESTRICTED_ENVS = 1
X_CS_GNU_LIBC_VERSION = 2
X_CS_GNU_LIBPTHREAD_VERSION = 3
X_CS_V5_WIDTH_RESTRICTED_ENVS = 4
X_CS_V7_WIDTH_RESTRICTED_ENVS = 5
X_CS_LFS_CFLAGS = 1000
X_CS_LFS_LDFLAGS = 1001
X_CS_LFS_LIBS = 1002
X_CS_LFS_LINTFLAGS = 1003
X_CS_LFS64_CFLAGS = 1004
X_CS_LFS64_LDFLAGS = 1005
X_CS_LFS64_LIBS = 1006
X_CS_LFS64_LINTFLAGS = 1007
X_CS_XBS5_ILP32_OFF32_CFLAGS = 1100
X_CS_XBS5_ILP32_OFF32_LDFLAGS = 1101
X_CS_XBS5_ILP32_OFF32_LIBS = 1102
X_CS_XBS5_ILP32_OFF32_LINTFLAGS = 1103
X_CS_XBS5_ILP32_OFFBIG_CFLAGS = 1104
X_CS_XBS5_ILP32_OFFBIG_LDFLAGS = 1105
X_CS_XBS5_ILP32_OFFBIG_LIBS = 1106
X_CS_XBS5_ILP32_OFFBIG_LINTFLAGS = 1107
X_CS_XBS5_LP64_OFF64_CFLAGS = 1108
X_CS_XBS5_LP64_OFF64_LDFLAGS = 1109
X_CS_XBS5_LP64_OFF64_LIBS = 1110
X_CS_XBS5_LP64_OFF64_LINTFLAGS = 1111
X_CS_XBS5_LPBIG_OFFBIG_CFLAGS = 1112
X_CS_XBS5_LPBIG_OFFBIG_LDFLAGS = 1113
X_CS_XBS5_LPBIG_OFFBIG_LIBS = 1114
X_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS = 1115
X_CS_POSIX_V6_ILP32_OFF32_CFLAGS = 1116
X_CS_POSIX_V6_ILP32_OFF32_LDFLAGS = 1117
X_CS_POSIX_V6_ILP32_OFF32_LIBS = 1118
X_CS_POSIX_V6_ILP32_OFF32_LINTFLAGS = 1119
X_CS_POSIX_V6_ILP32_OFFBIG_CFLAGS = 1120
X_CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS = 1121
X_CS_POSIX_V6_ILP32_OFFBIG_LIBS = 1122
X_CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS = 1123
X_CS_POSIX_V6_LP64_OFF64_CFLAGS = 1124
X_CS_POSIX_V6_LP64_OFF64_LDFLAGS = 1125
X_CS_POSIX_V6_LP64_OFF64_LIBS = 1126
X_CS_POSIX_V6_LP64_OFF64_LINTFLAGS = 1127
X_CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS = 1128
X_CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS = 1129
X_CS_POSIX_V6_LPBIG_OFFBIG_LIBS = 1130
X_CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS = 1131
X_CS_POSIX_V7_ILP32_OFF32_CFLAGS = 1132
X_CS_POSIX_V7_ILP32_OFF32_LDFLAGS = 1133
X_CS_POSIX_V7_ILP32_OFF32_LIBS = 1134
X_CS_POSIX_V7_ILP32_OFF32_LINTFLAGS = 1135
X_CS_POSIX_V7_ILP32_OFFBIG_CFLAGS = 1136
X_CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS = 1137
X_CS_POSIX_V7_ILP32_OFFBIG_LIBS = 1138
X_CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS = 1139
X_CS_POSIX_V7_LP64_OFF64_CFLAGS = 1140
X_CS_POSIX_V7_LP64_OFF64_LDFLAGS = 1141
X_CS_POSIX_V7_LP64_OFF64_LIBS = 1142
X_CS_POSIX_V7_LP64_OFF64_LINTFLAGS = 1143
X_CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS = 1144
X_CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS = 1145
X_CS_POSIX_V7_LPBIG_OFFBIG_LIBS = 1146
X_CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS = 1147
X_CS_V6_ENV = 1148
X_CS_V7_ENV = 1149
)
// Values for the argument to `sysconf'.
const ( /* confname.h:71:1: */
X_SC_ARG_MAX = 0
X_SC_CHILD_MAX = 1
X_SC_CLK_TCK = 2
X_SC_NGROUPS_MAX = 3
X_SC_OPEN_MAX = 4
X_SC_STREAM_MAX = 5
X_SC_TZNAME_MAX = 6
X_SC_JOB_CONTROL = 7
X_SC_SAVED_IDS = 8
X_SC_REALTIME_SIGNALS = 9
X_SC_PRIORITY_SCHEDULING = 10
X_SC_TIMERS = 11
X_SC_ASYNCHRONOUS_IO = 12
X_SC_PRIORITIZED_IO = 13
X_SC_SYNCHRONIZED_IO = 14
X_SC_FSYNC = 15
X_SC_MAPPED_FILES = 16
X_SC_MEMLOCK = 17
X_SC_MEMLOCK_RANGE = 18
X_SC_MEMORY_PROTECTION = 19
X_SC_MESSAGE_PASSING = 20
X_SC_SEMAPHORES = 21
X_SC_SHARED_MEMORY_OBJECTS = 22
X_SC_AIO_LISTIO_MAX = 23
X_SC_AIO_MAX = 24
X_SC_AIO_PRIO_DELTA_MAX = 25
X_SC_DELAYTIMER_MAX = 26
X_SC_MQ_OPEN_MAX = 27
X_SC_MQ_PRIO_MAX = 28
X_SC_VERSION = 29
X_SC_PAGESIZE = 30
X_SC_RTSIG_MAX = 31
X_SC_SEM_NSEMS_MAX = 32
X_SC_SEM_VALUE_MAX = 33
X_SC_SIGQUEUE_MAX = 34
X_SC_TIMER_MAX = 35
// Values for the argument to `sysconf'
// corresponding to _POSIX2_* symbols.
X_SC_BC_BASE_MAX = 36
X_SC_BC_DIM_MAX = 37
X_SC_BC_SCALE_MAX = 38
X_SC_BC_STRING_MAX = 39
X_SC_COLL_WEIGHTS_MAX = 40
X_SC_EQUIV_CLASS_MAX = 41
X_SC_EXPR_NEST_MAX = 42
X_SC_LINE_MAX = 43
X_SC_RE_DUP_MAX = 44
X_SC_CHARCLASS_NAME_MAX = 45
X_SC_2_VERSION = 46
X_SC_2_C_BIND = 47
X_SC_2_C_DEV = 48
X_SC_2_FORT_DEV = 49
X_SC_2_FORT_RUN = 50
X_SC_2_SW_DEV = 51
X_SC_2_LOCALEDEF = 52
X_SC_PII = 53
X_SC_PII_XTI = 54
X_SC_PII_SOCKET = 55
X_SC_PII_INTERNET = 56
X_SC_PII_OSI = 57
X_SC_POLL = 58
X_SC_SELECT = 59
X_SC_UIO_MAXIOV = 60
X_SC_IOV_MAX = 60
X_SC_PII_INTERNET_STREAM = 61
X_SC_PII_INTERNET_DGRAM = 62
X_SC_PII_OSI_COTS = 63
X_SC_PII_OSI_CLTS = 64
X_SC_PII_OSI_M = 65
X_SC_T_IOV_MAX = 66
// Values according to POSIX 1003.1c (POSIX threads).
X_SC_THREADS = 67
X_SC_THREAD_SAFE_FUNCTIONS = 68
X_SC_GETGR_R_SIZE_MAX = 69
X_SC_GETPW_R_SIZE_MAX = 70
X_SC_LOGIN_NAME_MAX = 71
X_SC_TTY_NAME_MAX = 72
X_SC_THREAD_DESTRUCTOR_ITERATIONS = 73
X_SC_THREAD_KEYS_MAX = 74
X_SC_THREAD_STACK_MIN = 75
X_SC_THREAD_THREADS_MAX = 76
X_SC_THREAD_ATTR_STACKADDR = 77
X_SC_THREAD_ATTR_STACKSIZE = 78
X_SC_THREAD_PRIORITY_SCHEDULING = 79
X_SC_THREAD_PRIO_INHERIT = 80
X_SC_THREAD_PRIO_PROTECT = 81
X_SC_THREAD_PROCESS_SHARED = 82
X_SC_NPROCESSORS_CONF = 83
X_SC_NPROCESSORS_ONLN = 84
X_SC_PHYS_PAGES = 85
X_SC_AVPHYS_PAGES = 86
X_SC_ATEXIT_MAX = 87
X_SC_PASS_MAX = 88
X_SC_XOPEN_VERSION = 89
X_SC_XOPEN_XCU_VERSION = 90
X_SC_XOPEN_UNIX = 91
X_SC_XOPEN_CRYPT = 92
X_SC_XOPEN_ENH_I18N = 93
X_SC_XOPEN_SHM = 94
X_SC_2_CHAR_TERM = 95
X_SC_2_C_VERSION = 96
X_SC_2_UPE = 97
X_SC_XOPEN_XPG2 = 98
X_SC_XOPEN_XPG3 = 99
X_SC_XOPEN_XPG4 = 100
X_SC_CHAR_BIT = 101
X_SC_CHAR_MAX = 102
X_SC_CHAR_MIN = 103
X_SC_INT_MAX = 104
X_SC_INT_MIN = 105
X_SC_LONG_BIT = 106
X_SC_WORD_BIT = 107
X_SC_MB_LEN_MAX = 108
X_SC_NZERO = 109
X_SC_SSIZE_MAX = 110
X_SC_SCHAR_MAX = 111
X_SC_SCHAR_MIN = 112
X_SC_SHRT_MAX = 113
X_SC_SHRT_MIN = 114
X_SC_UCHAR_MAX = 115
X_SC_UINT_MAX = 116
X_SC_ULONG_MAX = 117
X_SC_USHRT_MAX = 118
X_SC_NL_ARGMAX = 119
X_SC_NL_LANGMAX = 120
X_SC_NL_MSGMAX = 121
X_SC_NL_NMAX = 122
X_SC_NL_SETMAX = 123
X_SC_NL_TEXTMAX = 124
X_SC_XBS5_ILP32_OFF32 = 125
X_SC_XBS5_ILP32_OFFBIG = 126
X_SC_XBS5_LP64_OFF64 = 127
X_SC_XBS5_LPBIG_OFFBIG = 128
X_SC_XOPEN_LEGACY = 129
X_SC_XOPEN_REALTIME = 130
X_SC_XOPEN_REALTIME_THREADS = 131
X_SC_ADVISORY_INFO = 132
X_SC_BARRIERS = 133
X_SC_BASE = 134
X_SC_C_LANG_SUPPORT = 135
X_SC_C_LANG_SUPPORT_R = 136
X_SC_CLOCK_SELECTION = 137
X_SC_CPUTIME = 138
X_SC_THREAD_CPUTIME = 139
X_SC_DEVICE_IO = 140
X_SC_DEVICE_SPECIFIC = 141
X_SC_DEVICE_SPECIFIC_R = 142
X_SC_FD_MGMT = 143
X_SC_FIFO = 144
X_SC_PIPE = 145
X_SC_FILE_ATTRIBUTES = 146
X_SC_FILE_LOCKING = 147
X_SC_FILE_SYSTEM = 148
X_SC_MONOTONIC_CLOCK = 149
X_SC_MULTI_PROCESS = 150
X_SC_SINGLE_PROCESS = 151
X_SC_NETWORKING = 152
X_SC_READER_WRITER_LOCKS = 153
X_SC_SPIN_LOCKS = 154
X_SC_REGEXP = 155
X_SC_REGEX_VERSION = 156
X_SC_SHELL = 157
X_SC_SIGNALS = 158
X_SC_SPAWN = 159
X_SC_SPORADIC_SERVER = 160
X_SC_THREAD_SPORADIC_SERVER = 161
X_SC_SYSTEM_DATABASE = 162
X_SC_SYSTEM_DATABASE_R = 163
X_SC_TIMEOUTS = 164
X_SC_TYPED_MEMORY_OBJECTS = 165
X_SC_USER_GROUPS = 166
X_SC_USER_GROUPS_R = 167
X_SC_2_PBS = 168
X_SC_2_PBS_ACCOUNTING = 169
X_SC_2_PBS_LOCATE = 170
X_SC_2_PBS_MESSAGE = 171
X_SC_2_PBS_TRACK = 172
X_SC_SYMLOOP_MAX = 173
X_SC_STREAMS = 174
X_SC_2_PBS_CHECKPOINT = 175
X_SC_V6_ILP32_OFF32 = 176
X_SC_V6_ILP32_OFFBIG = 177
X_SC_V6_LP64_OFF64 = 178
X_SC_V6_LPBIG_OFFBIG = 179
X_SC_HOST_NAME_MAX = 180
X_SC_TRACE = 181
X_SC_TRACE_EVENT_FILTER = 182
X_SC_TRACE_INHERIT = 183
X_SC_TRACE_LOG = 184
X_SC_LEVEL1_ICACHE_SIZE = 185
X_SC_LEVEL1_ICACHE_ASSOC = 186
X_SC_LEVEL1_ICACHE_LINESIZE = 187
X_SC_LEVEL1_DCACHE_SIZE = 188
X_SC_LEVEL1_DCACHE_ASSOC = 189
X_SC_LEVEL1_DCACHE_LINESIZE = 190
X_SC_LEVEL2_CACHE_SIZE = 191
X_SC_LEVEL2_CACHE_ASSOC = 192
X_SC_LEVEL2_CACHE_LINESIZE = 193
X_SC_LEVEL3_CACHE_SIZE = 194
X_SC_LEVEL3_CACHE_ASSOC = 195
X_SC_LEVEL3_CACHE_LINESIZE = 196
X_SC_LEVEL4_CACHE_SIZE = 197
X_SC_LEVEL4_CACHE_ASSOC = 198
X_SC_LEVEL4_CACHE_LINESIZE = 199
// Leave room here, maybe we need a few more cache levels some day.
X_SC_IPV6 = 235
X_SC_RAW_SOCKETS = 236
X_SC_V7_ILP32_OFF32 = 237
X_SC_V7_ILP32_OFFBIG = 238
X_SC_V7_LP64_OFF64 = 239
X_SC_V7_LPBIG_OFFBIG = 240
X_SC_SS_REPL_MAX = 241
X_SC_TRACE_EVENT_NAME_MAX = 242
X_SC_TRACE_NAME_MAX = 243
X_SC_TRACE_SYS_MAX = 244
X_SC_TRACE_USER_EVENT_MAX = 245
X_SC_XOPEN_STREAMS = 246
X_SC_THREAD_ROBUST_PRIO_INHERIT = 247
X_SC_THREAD_ROBUST_PRIO_PROTECT = 248
)
type Ptrdiff_t = int32 /* <builtin>:3:26 */
type Size_t = uint32 /* <builtin>:9:23 */
type Wchar_t = uint32 /* <builtin>:15:24 */
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
type X__float128 = float64 /* <builtin>:47:21 */
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// POSIX Standard: 2.10 Symbolic Constants <unistd.h>
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// These are defined by the user (or the compiler)
// to specify the desired environment:
//
// __STRICT_ANSI__ ISO Standard C.
// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99.
// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11.
// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X.
// __STDC_WANT_LIB_EXT2__
// Extensions to ISO C99 from TR 27431-2:2010.
// __STDC_WANT_IEC_60559_BFP_EXT__
// Extensions to ISO C11 from TS 18661-1:2014.
// __STDC_WANT_IEC_60559_FUNCS_EXT__
// Extensions to ISO C11 from TS 18661-4:2015.
// __STDC_WANT_IEC_60559_TYPES_EXT__
// Extensions to ISO C11 from TS 18661-3:2015.
//
// _POSIX_SOURCE IEEE Std 1003.1.
// _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2;
// if >=199309L, add IEEE Std 1003.1b-1993;
// if >=199506L, add IEEE Std 1003.1c-1995;
// if >=200112L, all of IEEE 1003.1-2004
// if >=200809L, all of IEEE 1003.1-2008
// _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if
// Single Unix conformance is wanted, to 600 for the
// sixth revision, to 700 for the seventh revision.
// _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions.
// _LARGEFILE_SOURCE Some more functions for correct standard I/O.
// _LARGEFILE64_SOURCE Additional functionality from LFS for large files.
// _FILE_OFFSET_BITS=N Select default filesystem interface.
// _ATFILE_SOURCE Additional *at interfaces.
// _GNU_SOURCE All of the above, plus GNU extensions.
// _DEFAULT_SOURCE The default set of features (taking precedence over
// __STRICT_ANSI__).
//
// _FORTIFY_SOURCE Add security hardening to many library functions.
// Set to 1 or 2; 2 performs stricter checks than 1.
//
// _REENTRANT, _THREAD_SAFE
// Obsolete; equivalent to _POSIX_C_SOURCE=199506L.
//
// The `-ansi' switch to the GNU C compiler, and standards conformance
// options such as `-std=c99', define __STRICT_ANSI__. If none of
// these are defined, or if _DEFAULT_SOURCE is defined, the default is
// to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to
// 200809L, as well as enabling miscellaneous functions from BSD and
// SVID. If more than one of these are defined, they accumulate. For
// example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together
// give you ISO C, 1003.1, and 1003.2, but nothing else.
//
// These are defined by this file and are used by the
// header files to decide what to declare or define:
//
// __GLIBC_USE (F) Define things from feature set F. This is defined
// to 1 or 0; the subsequent macros are either defined
// or undefined, and those tests should be moved to
// __GLIBC_USE.
// __USE_ISOC11 Define ISO C11 things.
// __USE_ISOC99 Define ISO C99 things.
// __USE_ISOC95 Define ISO C90 AMD1 (C95) things.
// __USE_ISOCXX11 Define ISO C++11 things.
// __USE_POSIX Define IEEE Std 1003.1 things.
// __USE_POSIX2 Define IEEE Std 1003.2 things.
// __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things.
// __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things.
// __USE_XOPEN Define XPG things.
// __USE_XOPEN_EXTENDED Define X/Open Unix things.
// __USE_UNIX98 Define Single Unix V2 things.
// __USE_XOPEN2K Define XPG6 things.
// __USE_XOPEN2KXSI Define XPG6 XSI things.
// __USE_XOPEN2K8 Define XPG7 things.
// __USE_XOPEN2K8XSI Define XPG7 XSI things.
// __USE_LARGEFILE Define correct standard I/O things.
// __USE_LARGEFILE64 Define LFS things with separate names.
// __USE_FILE_OFFSET64 Define 64bit interface as default.
// __USE_MISC Define things from 4.3BSD or System V Unix.
// __USE_ATFILE Define *at interfaces and AT_* constants for them.
// __USE_GNU Define GNU extensions.
// __USE_FORTIFY_LEVEL Additional security measures used, according to level.
//
// The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are
// defined by this file unconditionally. `__GNU_LIBRARY__' is provided
// only for compatibility. All new code should use the other symbols
// to test for features.
//
// All macros listed above as possibly being defined by this file are
// explicitly undefined if they are not explicitly defined.
// Feature-test macros that are not defined by the user or compiler
// but are implied by the other feature-test macros defined (or by the
// lack of any definitions) are defined by the file.
//
// ISO C feature test macros depend on the definition of the macro
// when an affected header is included, not when the first system
// header is included, and so they are handled in
// <bits/libc-header-start.h>, which does not have a multiple include
// guard. Feature test macros that can be handled from the first
// system header included are handled here.
// Undefine everything, so we get a clean slate.
// Suppress kernel-name space pollution unless user expressedly asks
// for it.
// Convenience macro to test the version of gcc.
// Use like this:
// #if __GNUC_PREREQ (2,8)
// ... code requiring gcc 2.8 or later ...
// #endif
// Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was
// added in 2.0.
// Similarly for clang. Features added to GCC after version 4.2 may
// or may not also be available in clang, and clang's definitions of
// __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such
// features can be queried via __has_extension/__has_feature.
// Whether to use feature set F.
// _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for
// _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not
// issue a warning; the expectation is that the source is being
// transitioned to use the new macro.
// If _GNU_SOURCE was defined by the user, turn on all the other features.
// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined,
// define _DEFAULT_SOURCE.
// This is to enable the ISO C2X extension.
// This is to enable the ISO C11 extension.
// This is to enable the ISO C99 extension.
// This is to enable the ISO C90 Amendment 1:1995 extension.
// If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE
// is defined, use POSIX.1-2008 (or another version depending on
// _XOPEN_SOURCE).
// Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be
// defined in all multithreaded code. GNU libc has not required this
// for many years. We now treat them as compatibility synonyms for
// _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with
// comprehensive support for multithreaded code. Using them never
// lowers the selected level of POSIX conformance, only raises it.
// The function 'gets' existed in C89, but is impossible to use
// safely. It has been removed from ISO C11 and ISO C++14. Note: for
// compatibility with various implementations of <cstdio>, this test
// must consider only the value of __cplusplus when compiling C++.
// GNU formerly extended the scanf functions with modified format
// specifiers %as, %aS, and %a[...] that allocate a buffer for the
// input using malloc. This extension conflicts with ISO C99, which
// defines %a as a standalone format specifier that reads a floating-
// point number; moreover, POSIX.1-2008 provides the same feature
// using the modifier letter 'm' instead (%ms, %mS, %m[...]).
//
// We now follow C99 unless GNU extensions are active and the compiler
// is specifically in C89 or C++98 mode (strict or not). For
// instance, with GCC, -std=gnu11 will have C99-compliant scanf with
// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the
// old extension.
// Get definitions of __STDC_* predefined macros, if the compiler has
// not preincluded this header automatically.
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// This macro indicates that the installed library is the GNU C Library.
// For historic reasons the value now is 6 and this will stay from now
// on. The use of this variable is deprecated. Use __GLIBC__ and
// __GLIBC_MINOR__ now (see below) when you want to test for a specific
// GNU C library version and use the values in <gnu/lib-names.h> to get
// the sonames of the shared libraries.
// Major and minor version number of the GNU C library package. Use
// these macros to test for features in specific releases.
// This is here only because every header file already includes this one.
// Copyright (C) 1992-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// We are almost always included from features.h.
// The GNU libc does not support any K&R compilers or the traditional mode
// of ISO C compilers anymore. Check for some of the combinations not
// anymore supported.
// Some user header file might have defined this before.
// All functions, except those with callbacks or those that
// synchronize memory, are leaf functions.
// GCC can always grok prototypes. For C++ programs we add throw()
// to help it optimize the function calls. But this works only with
// gcc 2.8.x and egcs. For gcc 3.2 and up we even mark C functions
// as non-throwing using a function attribute since programs can use
// the -fexceptions options for C code as well.
// Compilers that are not clang may object to
// #if defined __clang__ && __has_extension(...)
// even though they do not need to evaluate the right-hand side of the &&.
// These two macros are not used in glibc anymore. They are kept here
// only because some other projects expect the macros to be defined.
// For these things, GCC behaves the ANSI way normally,
// and the non-ANSI way under -traditional.
// This is not a typedef so `const __ptr_t' does the right thing.
// C++ needs to know that types and declarations are C, not C++.
// Fortify support.
// Support for flexible arrays.
// Headers that should use flexible arrays only if they're "real"
// (e.g. only if they won't affect sizeof()) should test
// #if __glibc_c99_flexarr_available.
// __asm__ ("xyz") is used throughout the headers to rename functions
// at the assembly language level. This is wrapped by the __REDIRECT
// macro, in order to support compilers that can do this some other
// way. When compilers don't support asm-names at all, we have to do
// preprocessor tricks instead (which don't have exactly the right
// semantics, but it's the best we can do).
//
// Example:
// int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid);
//
// #elif __SOME_OTHER_COMPILER__
//
// # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias)
// GCC has various useful declarations that can be made with the
// `__attribute__' syntax. All of the ways we use this do fine if
// they are omitted for compilers that don't understand it.
// At some point during the gcc 2.96 development the `malloc' attribute
// for functions was introduced. We don't want to use it unconditionally
// (although this would be possible) since it generates warnings.
// Tell the compiler which arguments to an allocation function
// indicate the size of the allocation.
// At some point during the gcc 2.96 development the `pure' attribute
// for functions was introduced. We don't want to use it unconditionally
// (although this would be possible) since it generates warnings.
// This declaration tells the compiler that the value is constant.
// At some point during the gcc 3.1 development the `used' attribute
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | true |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/unistd/capi_netbsd_arm.go | vendor/modernc.org/libc/unistd/capi_netbsd_arm.go | // 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_netbsd_arm.go -pkgname unistd', DO NOT EDIT.
package unistd
var CAPI = map[string]struct{}{}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/unistd/capi_linux_386.go | vendor/modernc.org/libc/unistd/capi_linux_386.go | // 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 -o unistd/unistd_linux_386.go -pkgname unistd', DO NOT EDIT.
package unistd
var CAPI = map[string]struct{}{}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/unistd/unistd_linux_ppc64le.go | vendor/modernc.org/libc/unistd/unistd_linux_ppc64le.go | // 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_linux_ppc64le.go -pkgname unistd', DO NOT EDIT.
package unistd
import (
"math"
"reflect"
"sync/atomic"
"unsafe"
)
var _ = math.Pi
var _ reflect.Kind
var _ atomic.Value
var _ unsafe.Pointer
const (
F_LOCK = 1 // unistd.h:1074:1:
F_OK = 0 // unistd.h:284:1:
F_TEST = 3 // unistd.h:1076:1:
F_TLOCK = 2 // unistd.h:1075:1:
F_ULOCK = 0 // unistd.h:1073:1:
L_INCR = 1 // unistd.h:323:1:
L_SET = 0 // unistd.h:322:1:
L_XTND = 2 // unistd.h:324:1:
R_OK = 4 // unistd.h:281:1:
SEEK_CUR = 1 // unistd.h:312:1:
SEEK_END = 2 // unistd.h:313:1:
SEEK_SET = 0 // unistd.h:311:1:
STDERR_FILENO = 2 // unistd.h:212:1:
STDIN_FILENO = 0 // unistd.h:210:1:
STDOUT_FILENO = 1 // unistd.h:211:1:
W_OK = 2 // unistd.h:282:1:
X_OK = 1 // unistd.h:283:1:
X_ARCH_PPC = 1 // <predefined>:198:1:
X_ARCH_PPC64 = 1 // <predefined>:402:1:
X_ARCH_PPCGR = 1 // <predefined>:15:1:
X_ARCH_PPCSQ = 1 // <predefined>:43:1:
X_ARCH_PWR4 = 1 // <predefined>:381:1:
X_ARCH_PWR5 = 1 // <predefined>:90:1:
X_ARCH_PWR5X = 1 // <predefined>:137:1:
X_ARCH_PWR6 = 1 // <predefined>:91:1:
X_ARCH_PWR7 = 1 // <predefined>:92:1:
X_ARCH_PWR8 = 1 // <predefined>:93:1:
X_ATFILE_SOURCE = 1 // features.h:342:1:
X_BITS_POSIX_OPT_H = 1 // posix_opt.h:20:1:
X_BITS_TIME64_H = 1 // time64.h:24:1:
X_BITS_TYPESIZES_H = 1 // typesizes.h:24:1:
X_BITS_TYPES_H = 1 // types.h:24:1:
X_BSD_SIZE_T_ = 0 // stddef.h:189:1:
X_BSD_SIZE_T_DEFINED_ = 0 // stddef.h:192:1:
X_CALL_ELF = 2 // <predefined>:415:1:
X_CALL_LINUX = 1 // <predefined>:123:1:
X_DEFAULT_SOURCE = 1 // features.h:227:1:
X_FEATURES_H = 1 // features.h:19:1:
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_GCC_SIZE_T = 0 // stddef.h:195:1:
X_GETOPT_CORE_H = 1 // getopt_core.h:21:1:
X_GETOPT_POSIX_H = 1 // getopt_posix.h:21:1:
X_LFS64_ASYNCHRONOUS_IO = 1 // posix_opt.h:117:1:
X_LFS64_LARGEFILE = 1 // posix_opt.h:121:1:
X_LFS64_STDIO = 1 // posix_opt.h:122:1:
X_LFS_ASYNCHRONOUS_IO = 1 // posix_opt.h:112:1:
X_LFS_LARGEFILE = 1 // posix_opt.h:120:1:
X_LITTLE_ENDIAN = 1 // <predefined>:37:1:
X_LP64 = 1 // <predefined>:335:1:
X_POSIX2_CHAR_TERM = 200809 // posix_opt.h:179:1:
X_POSIX2_C_BIND = 200809 // unistd.h:74:1:
X_POSIX2_C_DEV = 200809 // unistd.h:78:1:
X_POSIX2_C_VERSION = 200809 // unistd.h:70:1:
X_POSIX2_LOCALEDEF = 200809 // unistd.h:86:1:
X_POSIX2_SW_DEV = 200809 // unistd.h:82:1:
X_POSIX2_VERSION = 200809 // unistd.h:67:1:
X_POSIX_ADVISORY_INFO = 200809 // posix_opt.h:170:1:
X_POSIX_ASYNCHRONOUS_IO = 200809 // posix_opt.h:109:1:
X_POSIX_ASYNC_IO = 1 // posix_opt.h:110:1:
X_POSIX_BARRIERS = 200809 // posix_opt.h:155:1:
X_POSIX_CHOWN_RESTRICTED = 0 // posix_opt.h:53:1:
X_POSIX_CLOCK_SELECTION = 200809 // posix_opt.h:167:1:
X_POSIX_CPUTIME = 0 // posix_opt.h:128:1:
X_POSIX_C_SOURCE = 200809 // features.h:281:1:
X_POSIX_FSYNC = 200809 // posix_opt.h:38:1:
X_POSIX_IPV6 = 200809 // posix_opt.h:173:1:
X_POSIX_JOB_CONTROL = 1 // posix_opt.h:23:1:
X_POSIX_MAPPED_FILES = 200809 // posix_opt.h:41:1:
X_POSIX_MEMLOCK = 200809 // posix_opt.h:44:1:
X_POSIX_MEMLOCK_RANGE = 200809 // posix_opt.h:47:1:
X_POSIX_MEMORY_PROTECTION = 200809 // posix_opt.h:50:1:
X_POSIX_MESSAGE_PASSING = 200809 // posix_opt.h:158:1:
X_POSIX_MONOTONIC_CLOCK = 0 // posix_opt.h:164:1:
X_POSIX_NO_TRUNC = 1 // posix_opt.h:60:1:
X_POSIX_PRIORITIZED_IO = 200809 // posix_opt.h:114:1:
X_POSIX_PRIORITY_SCHEDULING = 200809 // posix_opt.h:32:1:
X_POSIX_RAW_SOCKETS = 200809 // posix_opt.h:176:1:
X_POSIX_READER_WRITER_LOCKS = 200809 // posix_opt.h:137:1:
X_POSIX_REALTIME_SIGNALS = 200809 // posix_opt.h:106:1:
X_POSIX_REENTRANT_FUNCTIONS = 1 // posix_opt.h:75:1:
X_POSIX_REGEXP = 1 // posix_opt.h:134:1:
X_POSIX_SAVED_IDS = 1 // posix_opt.h:26:1:
X_POSIX_SEMAPHORES = 200809 // posix_opt.h:103:1:
X_POSIX_SHARED_MEMORY_OBJECTS = 200809 // posix_opt.h:125:1:
X_POSIX_SHELL = 1 // posix_opt.h:140:1:
X_POSIX_SOURCE = 1 // features.h:279:1:
X_POSIX_SPAWN = 200809 // posix_opt.h:149:1:
X_POSIX_SPIN_LOCKS = 200809 // posix_opt.h:146:1:
X_POSIX_SPORADIC_SERVER = -1 // posix_opt.h:182:1:
X_POSIX_SYNCHRONIZED_IO = 200809 // posix_opt.h:35:1:
X_POSIX_THREADS = 200809 // posix_opt.h:72:1:
X_POSIX_THREAD_ATTR_STACKADDR = 200809 // posix_opt.h:85:1:
X_POSIX_THREAD_ATTR_STACKSIZE = 200809 // posix_opt.h:82:1:
X_POSIX_THREAD_CPUTIME = 0 // posix_opt.h:131:1:
X_POSIX_THREAD_PRIORITY_SCHEDULING = 200809 // posix_opt.h:79:1:
X_POSIX_THREAD_PRIO_INHERIT = 200809 // posix_opt.h:88:1:
X_POSIX_THREAD_PRIO_PROTECT = 200809 // posix_opt.h:92:1:
X_POSIX_THREAD_PROCESS_SHARED = 200809 // posix_opt.h:161:1:
X_POSIX_THREAD_ROBUST_PRIO_INHERIT = 200809 // posix_opt.h:96:1:
X_POSIX_THREAD_ROBUST_PRIO_PROTECT = -1 // posix_opt.h:99:1:
X_POSIX_THREAD_SAFE_FUNCTIONS = 200809 // posix_opt.h:76:1:
X_POSIX_THREAD_SPORADIC_SERVER = -1 // posix_opt.h:183:1:
X_POSIX_TIMEOUTS = 200809 // posix_opt.h:143:1:
X_POSIX_TIMERS = 200809 // posix_opt.h:152:1:
X_POSIX_TRACE = -1 // posix_opt.h:186:1:
X_POSIX_TRACE_EVENT_FILTER = -1 // posix_opt.h:187:1:
X_POSIX_TRACE_INHERIT = -1 // posix_opt.h:188:1:
X_POSIX_TRACE_LOG = -1 // posix_opt.h:189:1:
X_POSIX_TYPED_MEMORY_OBJECTS = -1 // posix_opt.h:192:1:
X_POSIX_V6_LP64_OFF64 = 1 // environments.h:62:1:
X_POSIX_V6_LPBIG_OFFBIG = -1 // environments.h:57:1:
X_POSIX_V7_LP64_OFF64 = 1 // environments.h:61:1:
X_POSIX_V7_LPBIG_OFFBIG = -1 // environments.h:56:1:
X_POSIX_VDISABLE = 0 // posix_opt.h:57:1:
X_POSIX_VERSION = 200809 // unistd.h:34:1:
X_SIZET_ = 0 // stddef.h:196:1:
X_SIZE_T = 0 // stddef.h:183:1:
X_SIZE_T_ = 0 // stddef.h:188:1:
X_SIZE_T_DECLARED = 0 // stddef.h:193:1:
X_SIZE_T_DEFINED = 0 // stddef.h:191:1:
X_SIZE_T_DEFINED_ = 0 // stddef.h:190:1:
X_STDC_PREDEF_H = 1 // <predefined>:203:1:
X_SYS_CDEFS_H = 1 // cdefs.h:19:1:
X_SYS_SIZE_T_H = 0 // stddef.h:184:1:
X_T_SIZE = 0 // stddef.h:186:1:
X_T_SIZE_ = 0 // stddef.h:185:1:
X_UNISTD_H = 1 // unistd.h:23:1:
X_XBS5_LP64_OFF64 = 1 // environments.h:63:1:
X_XBS5_LPBIG_OFFBIG = -1 // environments.h:58:1:
X_XOPEN_ENH_I18N = 1 // unistd.h:112:1:
X_XOPEN_LEGACY = 1 // unistd.h:115:1:
X_XOPEN_REALTIME = 1 // posix_opt.h:63:1:
X_XOPEN_REALTIME_THREADS = 1 // posix_opt.h:66:1:
X_XOPEN_SHM = 1 // posix_opt.h:69:1:
X_XOPEN_UNIX = 1 // unistd.h:108:1:
X_XOPEN_VERSION = 700 // unistd.h:90:1:
X_XOPEN_XCU_VERSION = 4 // unistd.h:100:1:
X_XOPEN_XPG2 = 1 // unistd.h:103:1:
X_XOPEN_XPG3 = 1 // unistd.h:104:1:
X_XOPEN_XPG4 = 1 // unistd.h:105:1:
Linux = 1 // <predefined>:263:1:
Unix = 1 // <predefined>:222:1:
)
// Get the `_PC_*' symbols for the NAME argument to `pathconf' and `fpathconf';
// the `_SC_*' symbols for the NAME argument to `sysconf';
// and the `_CS_*' symbols for the NAME argument to `confstr'.
// `sysconf', `pathconf', and `confstr' NAME values. Generic version.
// Copyright (C) 1993-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// Values for the NAME argument to `pathconf' and `fpathconf'.
const ( /* confname.h:24:1: */
X_PC_LINK_MAX = 0
X_PC_MAX_CANON = 1
X_PC_MAX_INPUT = 2
X_PC_NAME_MAX = 3
X_PC_PATH_MAX = 4
X_PC_PIPE_BUF = 5
X_PC_CHOWN_RESTRICTED = 6
X_PC_NO_TRUNC = 7
X_PC_VDISABLE = 8
X_PC_SYNC_IO = 9
X_PC_ASYNC_IO = 10
X_PC_PRIO_IO = 11
X_PC_SOCK_MAXBUF = 12
X_PC_FILESIZEBITS = 13
X_PC_REC_INCR_XFER_SIZE = 14
X_PC_REC_MAX_XFER_SIZE = 15
X_PC_REC_MIN_XFER_SIZE = 16
X_PC_REC_XFER_ALIGN = 17
X_PC_ALLOC_SIZE_MIN = 18
X_PC_SYMLINK_MAX = 19
X_PC_2_SYMLINKS = 20
)
// Values for the NAME argument to `confstr'.
const ( /* confname.h:533:1: */
X_CS_PATH = 0 // The default search path.
X_CS_V6_WIDTH_RESTRICTED_ENVS = 1
X_CS_GNU_LIBC_VERSION = 2
X_CS_GNU_LIBPTHREAD_VERSION = 3
X_CS_V5_WIDTH_RESTRICTED_ENVS = 4
X_CS_V7_WIDTH_RESTRICTED_ENVS = 5
X_CS_LFS_CFLAGS = 1000
X_CS_LFS_LDFLAGS = 1001
X_CS_LFS_LIBS = 1002
X_CS_LFS_LINTFLAGS = 1003
X_CS_LFS64_CFLAGS = 1004
X_CS_LFS64_LDFLAGS = 1005
X_CS_LFS64_LIBS = 1006
X_CS_LFS64_LINTFLAGS = 1007
X_CS_XBS5_ILP32_OFF32_CFLAGS = 1100
X_CS_XBS5_ILP32_OFF32_LDFLAGS = 1101
X_CS_XBS5_ILP32_OFF32_LIBS = 1102
X_CS_XBS5_ILP32_OFF32_LINTFLAGS = 1103
X_CS_XBS5_ILP32_OFFBIG_CFLAGS = 1104
X_CS_XBS5_ILP32_OFFBIG_LDFLAGS = 1105
X_CS_XBS5_ILP32_OFFBIG_LIBS = 1106
X_CS_XBS5_ILP32_OFFBIG_LINTFLAGS = 1107
X_CS_XBS5_LP64_OFF64_CFLAGS = 1108
X_CS_XBS5_LP64_OFF64_LDFLAGS = 1109
X_CS_XBS5_LP64_OFF64_LIBS = 1110
X_CS_XBS5_LP64_OFF64_LINTFLAGS = 1111
X_CS_XBS5_LPBIG_OFFBIG_CFLAGS = 1112
X_CS_XBS5_LPBIG_OFFBIG_LDFLAGS = 1113
X_CS_XBS5_LPBIG_OFFBIG_LIBS = 1114
X_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS = 1115
X_CS_POSIX_V6_ILP32_OFF32_CFLAGS = 1116
X_CS_POSIX_V6_ILP32_OFF32_LDFLAGS = 1117
X_CS_POSIX_V6_ILP32_OFF32_LIBS = 1118
X_CS_POSIX_V6_ILP32_OFF32_LINTFLAGS = 1119
X_CS_POSIX_V6_ILP32_OFFBIG_CFLAGS = 1120
X_CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS = 1121
X_CS_POSIX_V6_ILP32_OFFBIG_LIBS = 1122
X_CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS = 1123
X_CS_POSIX_V6_LP64_OFF64_CFLAGS = 1124
X_CS_POSIX_V6_LP64_OFF64_LDFLAGS = 1125
X_CS_POSIX_V6_LP64_OFF64_LIBS = 1126
X_CS_POSIX_V6_LP64_OFF64_LINTFLAGS = 1127
X_CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS = 1128
X_CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS = 1129
X_CS_POSIX_V6_LPBIG_OFFBIG_LIBS = 1130
X_CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS = 1131
X_CS_POSIX_V7_ILP32_OFF32_CFLAGS = 1132
X_CS_POSIX_V7_ILP32_OFF32_LDFLAGS = 1133
X_CS_POSIX_V7_ILP32_OFF32_LIBS = 1134
X_CS_POSIX_V7_ILP32_OFF32_LINTFLAGS = 1135
X_CS_POSIX_V7_ILP32_OFFBIG_CFLAGS = 1136
X_CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS = 1137
X_CS_POSIX_V7_ILP32_OFFBIG_LIBS = 1138
X_CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS = 1139
X_CS_POSIX_V7_LP64_OFF64_CFLAGS = 1140
X_CS_POSIX_V7_LP64_OFF64_LDFLAGS = 1141
X_CS_POSIX_V7_LP64_OFF64_LIBS = 1142
X_CS_POSIX_V7_LP64_OFF64_LINTFLAGS = 1143
X_CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS = 1144
X_CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS = 1145
X_CS_POSIX_V7_LPBIG_OFFBIG_LIBS = 1146
X_CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS = 1147
X_CS_V6_ENV = 1148
X_CS_V7_ENV = 1149
)
// Values for the argument to `sysconf'.
const ( /* confname.h:71:1: */
X_SC_ARG_MAX = 0
X_SC_CHILD_MAX = 1
X_SC_CLK_TCK = 2
X_SC_NGROUPS_MAX = 3
X_SC_OPEN_MAX = 4
X_SC_STREAM_MAX = 5
X_SC_TZNAME_MAX = 6
X_SC_JOB_CONTROL = 7
X_SC_SAVED_IDS = 8
X_SC_REALTIME_SIGNALS = 9
X_SC_PRIORITY_SCHEDULING = 10
X_SC_TIMERS = 11
X_SC_ASYNCHRONOUS_IO = 12
X_SC_PRIORITIZED_IO = 13
X_SC_SYNCHRONIZED_IO = 14
X_SC_FSYNC = 15
X_SC_MAPPED_FILES = 16
X_SC_MEMLOCK = 17
X_SC_MEMLOCK_RANGE = 18
X_SC_MEMORY_PROTECTION = 19
X_SC_MESSAGE_PASSING = 20
X_SC_SEMAPHORES = 21
X_SC_SHARED_MEMORY_OBJECTS = 22
X_SC_AIO_LISTIO_MAX = 23
X_SC_AIO_MAX = 24
X_SC_AIO_PRIO_DELTA_MAX = 25
X_SC_DELAYTIMER_MAX = 26
X_SC_MQ_OPEN_MAX = 27
X_SC_MQ_PRIO_MAX = 28
X_SC_VERSION = 29
X_SC_PAGESIZE = 30
X_SC_RTSIG_MAX = 31
X_SC_SEM_NSEMS_MAX = 32
X_SC_SEM_VALUE_MAX = 33
X_SC_SIGQUEUE_MAX = 34
X_SC_TIMER_MAX = 35
// Values for the argument to `sysconf'
// corresponding to _POSIX2_* symbols.
X_SC_BC_BASE_MAX = 36
X_SC_BC_DIM_MAX = 37
X_SC_BC_SCALE_MAX = 38
X_SC_BC_STRING_MAX = 39
X_SC_COLL_WEIGHTS_MAX = 40
X_SC_EQUIV_CLASS_MAX = 41
X_SC_EXPR_NEST_MAX = 42
X_SC_LINE_MAX = 43
X_SC_RE_DUP_MAX = 44
X_SC_CHARCLASS_NAME_MAX = 45
X_SC_2_VERSION = 46
X_SC_2_C_BIND = 47
X_SC_2_C_DEV = 48
X_SC_2_FORT_DEV = 49
X_SC_2_FORT_RUN = 50
X_SC_2_SW_DEV = 51
X_SC_2_LOCALEDEF = 52
X_SC_PII = 53
X_SC_PII_XTI = 54
X_SC_PII_SOCKET = 55
X_SC_PII_INTERNET = 56
X_SC_PII_OSI = 57
X_SC_POLL = 58
X_SC_SELECT = 59
X_SC_UIO_MAXIOV = 60
X_SC_IOV_MAX = 60
X_SC_PII_INTERNET_STREAM = 61
X_SC_PII_INTERNET_DGRAM = 62
X_SC_PII_OSI_COTS = 63
X_SC_PII_OSI_CLTS = 64
X_SC_PII_OSI_M = 65
X_SC_T_IOV_MAX = 66
// Values according to POSIX 1003.1c (POSIX threads).
X_SC_THREADS = 67
X_SC_THREAD_SAFE_FUNCTIONS = 68
X_SC_GETGR_R_SIZE_MAX = 69
X_SC_GETPW_R_SIZE_MAX = 70
X_SC_LOGIN_NAME_MAX = 71
X_SC_TTY_NAME_MAX = 72
X_SC_THREAD_DESTRUCTOR_ITERATIONS = 73
X_SC_THREAD_KEYS_MAX = 74
X_SC_THREAD_STACK_MIN = 75
X_SC_THREAD_THREADS_MAX = 76
X_SC_THREAD_ATTR_STACKADDR = 77
X_SC_THREAD_ATTR_STACKSIZE = 78
X_SC_THREAD_PRIORITY_SCHEDULING = 79
X_SC_THREAD_PRIO_INHERIT = 80
X_SC_THREAD_PRIO_PROTECT = 81
X_SC_THREAD_PROCESS_SHARED = 82
X_SC_NPROCESSORS_CONF = 83
X_SC_NPROCESSORS_ONLN = 84
X_SC_PHYS_PAGES = 85
X_SC_AVPHYS_PAGES = 86
X_SC_ATEXIT_MAX = 87
X_SC_PASS_MAX = 88
X_SC_XOPEN_VERSION = 89
X_SC_XOPEN_XCU_VERSION = 90
X_SC_XOPEN_UNIX = 91
X_SC_XOPEN_CRYPT = 92
X_SC_XOPEN_ENH_I18N = 93
X_SC_XOPEN_SHM = 94
X_SC_2_CHAR_TERM = 95
X_SC_2_C_VERSION = 96
X_SC_2_UPE = 97
X_SC_XOPEN_XPG2 = 98
X_SC_XOPEN_XPG3 = 99
X_SC_XOPEN_XPG4 = 100
X_SC_CHAR_BIT = 101
X_SC_CHAR_MAX = 102
X_SC_CHAR_MIN = 103
X_SC_INT_MAX = 104
X_SC_INT_MIN = 105
X_SC_LONG_BIT = 106
X_SC_WORD_BIT = 107
X_SC_MB_LEN_MAX = 108
X_SC_NZERO = 109
X_SC_SSIZE_MAX = 110
X_SC_SCHAR_MAX = 111
X_SC_SCHAR_MIN = 112
X_SC_SHRT_MAX = 113
X_SC_SHRT_MIN = 114
X_SC_UCHAR_MAX = 115
X_SC_UINT_MAX = 116
X_SC_ULONG_MAX = 117
X_SC_USHRT_MAX = 118
X_SC_NL_ARGMAX = 119
X_SC_NL_LANGMAX = 120
X_SC_NL_MSGMAX = 121
X_SC_NL_NMAX = 122
X_SC_NL_SETMAX = 123
X_SC_NL_TEXTMAX = 124
X_SC_XBS5_ILP32_OFF32 = 125
X_SC_XBS5_ILP32_OFFBIG = 126
X_SC_XBS5_LP64_OFF64 = 127
X_SC_XBS5_LPBIG_OFFBIG = 128
X_SC_XOPEN_LEGACY = 129
X_SC_XOPEN_REALTIME = 130
X_SC_XOPEN_REALTIME_THREADS = 131
X_SC_ADVISORY_INFO = 132
X_SC_BARRIERS = 133
X_SC_BASE = 134
X_SC_C_LANG_SUPPORT = 135
X_SC_C_LANG_SUPPORT_R = 136
X_SC_CLOCK_SELECTION = 137
X_SC_CPUTIME = 138
X_SC_THREAD_CPUTIME = 139
X_SC_DEVICE_IO = 140
X_SC_DEVICE_SPECIFIC = 141
X_SC_DEVICE_SPECIFIC_R = 142
X_SC_FD_MGMT = 143
X_SC_FIFO = 144
X_SC_PIPE = 145
X_SC_FILE_ATTRIBUTES = 146
X_SC_FILE_LOCKING = 147
X_SC_FILE_SYSTEM = 148
X_SC_MONOTONIC_CLOCK = 149
X_SC_MULTI_PROCESS = 150
X_SC_SINGLE_PROCESS = 151
X_SC_NETWORKING = 152
X_SC_READER_WRITER_LOCKS = 153
X_SC_SPIN_LOCKS = 154
X_SC_REGEXP = 155
X_SC_REGEX_VERSION = 156
X_SC_SHELL = 157
X_SC_SIGNALS = 158
X_SC_SPAWN = 159
X_SC_SPORADIC_SERVER = 160
X_SC_THREAD_SPORADIC_SERVER = 161
X_SC_SYSTEM_DATABASE = 162
X_SC_SYSTEM_DATABASE_R = 163
X_SC_TIMEOUTS = 164
X_SC_TYPED_MEMORY_OBJECTS = 165
X_SC_USER_GROUPS = 166
X_SC_USER_GROUPS_R = 167
X_SC_2_PBS = 168
X_SC_2_PBS_ACCOUNTING = 169
X_SC_2_PBS_LOCATE = 170
X_SC_2_PBS_MESSAGE = 171
X_SC_2_PBS_TRACK = 172
X_SC_SYMLOOP_MAX = 173
X_SC_STREAMS = 174
X_SC_2_PBS_CHECKPOINT = 175
X_SC_V6_ILP32_OFF32 = 176
X_SC_V6_ILP32_OFFBIG = 177
X_SC_V6_LP64_OFF64 = 178
X_SC_V6_LPBIG_OFFBIG = 179
X_SC_HOST_NAME_MAX = 180
X_SC_TRACE = 181
X_SC_TRACE_EVENT_FILTER = 182
X_SC_TRACE_INHERIT = 183
X_SC_TRACE_LOG = 184
X_SC_LEVEL1_ICACHE_SIZE = 185
X_SC_LEVEL1_ICACHE_ASSOC = 186
X_SC_LEVEL1_ICACHE_LINESIZE = 187
X_SC_LEVEL1_DCACHE_SIZE = 188
X_SC_LEVEL1_DCACHE_ASSOC = 189
X_SC_LEVEL1_DCACHE_LINESIZE = 190
X_SC_LEVEL2_CACHE_SIZE = 191
X_SC_LEVEL2_CACHE_ASSOC = 192
X_SC_LEVEL2_CACHE_LINESIZE = 193
X_SC_LEVEL3_CACHE_SIZE = 194
X_SC_LEVEL3_CACHE_ASSOC = 195
X_SC_LEVEL3_CACHE_LINESIZE = 196
X_SC_LEVEL4_CACHE_SIZE = 197
X_SC_LEVEL4_CACHE_ASSOC = 198
X_SC_LEVEL4_CACHE_LINESIZE = 199
// Leave room here, maybe we need a few more cache levels some day.
X_SC_IPV6 = 235
X_SC_RAW_SOCKETS = 236
X_SC_V7_ILP32_OFF32 = 237
X_SC_V7_ILP32_OFFBIG = 238
X_SC_V7_LP64_OFF64 = 239
X_SC_V7_LPBIG_OFFBIG = 240
X_SC_SS_REPL_MAX = 241
X_SC_TRACE_EVENT_NAME_MAX = 242
X_SC_TRACE_NAME_MAX = 243
X_SC_TRACE_SYS_MAX = 244
X_SC_TRACE_USER_EVENT_MAX = 245
X_SC_XOPEN_STREAMS = 246
X_SC_THREAD_ROBUST_PRIO_INHERIT = 247
X_SC_THREAD_ROBUST_PRIO_PROTECT = 248
)
type Ptrdiff_t = int64 /* <builtin>:3:26 */
type Size_t = uint64 /* <builtin>:9:23 */
type Wchar_t = int32 /* <builtin>:15:24 */
type X__int128_t = struct {
Flo int64
Fhi int64
} /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
type X__uint128_t = struct {
Flo uint64
Fhi uint64
} /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
type X__ieee128 = float64 /* <builtin>:47:21 */
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// POSIX Standard: 2.10 Symbolic Constants <unistd.h>
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// These are defined by the user (or the compiler)
// to specify the desired environment:
//
// __STRICT_ANSI__ ISO Standard C.
// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99.
// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11.
// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X.
// __STDC_WANT_LIB_EXT2__
// Extensions to ISO C99 from TR 27431-2:2010.
// __STDC_WANT_IEC_60559_BFP_EXT__
// Extensions to ISO C11 from TS 18661-1:2014.
// __STDC_WANT_IEC_60559_FUNCS_EXT__
// Extensions to ISO C11 from TS 18661-4:2015.
// __STDC_WANT_IEC_60559_TYPES_EXT__
// Extensions to ISO C11 from TS 18661-3:2015.
//
// _POSIX_SOURCE IEEE Std 1003.1.
// _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2;
// if >=199309L, add IEEE Std 1003.1b-1993;
// if >=199506L, add IEEE Std 1003.1c-1995;
// if >=200112L, all of IEEE 1003.1-2004
// if >=200809L, all of IEEE 1003.1-2008
// _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if
// Single Unix conformance is wanted, to 600 for the
// sixth revision, to 700 for the seventh revision.
// _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions.
// _LARGEFILE_SOURCE Some more functions for correct standard I/O.
// _LARGEFILE64_SOURCE Additional functionality from LFS for large files.
// _FILE_OFFSET_BITS=N Select default filesystem interface.
// _ATFILE_SOURCE Additional *at interfaces.
// _GNU_SOURCE All of the above, plus GNU extensions.
// _DEFAULT_SOURCE The default set of features (taking precedence over
// __STRICT_ANSI__).
//
// _FORTIFY_SOURCE Add security hardening to many library functions.
// Set to 1 or 2; 2 performs stricter checks than 1.
//
// _REENTRANT, _THREAD_SAFE
// Obsolete; equivalent to _POSIX_C_SOURCE=199506L.
//
// The `-ansi' switch to the GNU C compiler, and standards conformance
// options such as `-std=c99', define __STRICT_ANSI__. If none of
// these are defined, or if _DEFAULT_SOURCE is defined, the default is
// to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to
// 200809L, as well as enabling miscellaneous functions from BSD and
// SVID. If more than one of these are defined, they accumulate. For
// example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together
// give you ISO C, 1003.1, and 1003.2, but nothing else.
//
// These are defined by this file and are used by the
// header files to decide what to declare or define:
//
// __GLIBC_USE (F) Define things from feature set F. This is defined
// to 1 or 0; the subsequent macros are either defined
// or undefined, and those tests should be moved to
// __GLIBC_USE.
// __USE_ISOC11 Define ISO C11 things.
// __USE_ISOC99 Define ISO C99 things.
// __USE_ISOC95 Define ISO C90 AMD1 (C95) things.
// __USE_ISOCXX11 Define ISO C++11 things.
// __USE_POSIX Define IEEE Std 1003.1 things.
// __USE_POSIX2 Define IEEE Std 1003.2 things.
// __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things.
// __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things.
// __USE_XOPEN Define XPG things.
// __USE_XOPEN_EXTENDED Define X/Open Unix things.
// __USE_UNIX98 Define Single Unix V2 things.
// __USE_XOPEN2K Define XPG6 things.
// __USE_XOPEN2KXSI Define XPG6 XSI things.
// __USE_XOPEN2K8 Define XPG7 things.
// __USE_XOPEN2K8XSI Define XPG7 XSI things.
// __USE_LARGEFILE Define correct standard I/O things.
// __USE_LARGEFILE64 Define LFS things with separate names.
// __USE_FILE_OFFSET64 Define 64bit interface as default.
// __USE_MISC Define things from 4.3BSD or System V Unix.
// __USE_ATFILE Define *at interfaces and AT_* constants for them.
// __USE_GNU Define GNU extensions.
// __USE_FORTIFY_LEVEL Additional security measures used, according to level.
//
// The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are
// defined by this file unconditionally. `__GNU_LIBRARY__' is provided
// only for compatibility. All new code should use the other symbols
// to test for features.
//
// All macros listed above as possibly being defined by this file are
// explicitly undefined if they are not explicitly defined.
// Feature-test macros that are not defined by the user or compiler
// but are implied by the other feature-test macros defined (or by the
// lack of any definitions) are defined by the file.
//
// ISO C feature test macros depend on the definition of the macro
// when an affected header is included, not when the first system
// header is included, and so they are handled in
// <bits/libc-header-start.h>, which does not have a multiple include
// guard. Feature test macros that can be handled from the first
// system header included are handled here.
// Undefine everything, so we get a clean slate.
// Suppress kernel-name space pollution unless user expressedly asks
// for it.
// Convenience macro to test the version of gcc.
// Use like this:
// #if __GNUC_PREREQ (2,8)
// ... code requiring gcc 2.8 or later ...
// #endif
// Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was
// added in 2.0.
// Similarly for clang. Features added to GCC after version 4.2 may
// or may not also be available in clang, and clang's definitions of
// __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such
// features can be queried via __has_extension/__has_feature.
// Whether to use feature set F.
// _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for
// _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not
// issue a warning; the expectation is that the source is being
// transitioned to use the new macro.
// If _GNU_SOURCE was defined by the user, turn on all the other features.
// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined,
// define _DEFAULT_SOURCE.
// This is to enable the ISO C2X extension.
// This is to enable the ISO C11 extension.
// This is to enable the ISO C99 extension.
// This is to enable the ISO C90 Amendment 1:1995 extension.
// If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE
// is defined, use POSIX.1-2008 (or another version depending on
// _XOPEN_SOURCE).
// Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be
// defined in all multithreaded code. GNU libc has not required this
// for many years. We now treat them as compatibility synonyms for
// _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with
// comprehensive support for multithreaded code. Using them never
// lowers the selected level of POSIX conformance, only raises it.
// The function 'gets' existed in C89, but is impossible to use
// safely. It has been removed from ISO C11 and ISO C++14. Note: for
// compatibility with various implementations of <cstdio>, this test
// must consider only the value of __cplusplus when compiling C++.
// GNU formerly extended the scanf functions with modified format
// specifiers %as, %aS, and %a[...] that allocate a buffer for the
// input using malloc. This extension conflicts with ISO C99, which
// defines %a as a standalone format specifier that reads a floating-
// point number; moreover, POSIX.1-2008 provides the same feature
// using the modifier letter 'm' instead (%ms, %mS, %m[...]).
//
// We now follow C99 unless GNU extensions are active and the compiler
// is specifically in C89 or C++98 mode (strict or not). For
// instance, with GCC, -std=gnu11 will have C99-compliant scanf with
// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the
// old extension.
// Get definitions of __STDC_* predefined macros, if the compiler has
// not preincluded this header automatically.
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// This macro indicates that the installed library is the GNU C Library.
// For historic reasons the value now is 6 and this will stay from now
// on. The use of this variable is deprecated. Use __GLIBC__ and
// __GLIBC_MINOR__ now (see below) when you want to test for a specific
// GNU C library version and use the values in <gnu/lib-names.h> to get
// the sonames of the shared libraries.
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | true |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/unistd/unistd_linux_arm64.go | vendor/modernc.org/libc/unistd/unistd_linux_arm64.go | // 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 -o unistd/unistd_linux_arm64.go -pkgname unistd', DO NOT EDIT.
package unistd
import (
"math"
"reflect"
"sync/atomic"
"unsafe"
)
var _ = math.Pi
var _ reflect.Kind
var _ atomic.Value
var _ unsafe.Pointer
const (
F_LOCK = 1
F_OK = 0
F_TEST = 3
F_TLOCK = 2
F_ULOCK = 0
L_INCR = 1
L_SET = 0
L_XTND = 2
R_OK = 4
SEEK_CUR = 1
SEEK_END = 2
SEEK_SET = 0
STDERR_FILENO = 2
STDIN_FILENO = 0
STDOUT_FILENO = 1
W_OK = 2
X_OK = 1
X_ATFILE_SOURCE = 1
X_BITS_POSIX_OPT_H = 1
X_BITS_TIME64_H = 1
X_BITS_TYPESIZES_H = 1
X_BITS_TYPES_H = 1
X_BSD_SIZE_T_ = 0
X_BSD_SIZE_T_DEFINED_ = 0
X_DEFAULT_SOURCE = 1
X_FEATURES_H = 1
X_FILE_OFFSET_BITS = 64
X_GCC_SIZE_T = 0
X_GETOPT_CORE_H = 1
X_GETOPT_POSIX_H = 1
X_LFS64_ASYNCHRONOUS_IO = 1
X_LFS64_LARGEFILE = 1
X_LFS64_STDIO = 1
X_LFS_ASYNCHRONOUS_IO = 1
X_LFS_LARGEFILE = 1
X_LP64 = 1
X_POSIX2_CHAR_TERM = 200809
X_POSIX2_C_BIND = 200809
X_POSIX2_C_DEV = 200809
X_POSIX2_C_VERSION = 200809
X_POSIX2_LOCALEDEF = 200809
X_POSIX2_SW_DEV = 200809
X_POSIX2_VERSION = 200809
X_POSIX_ADVISORY_INFO = 200809
X_POSIX_ASYNCHRONOUS_IO = 200809
X_POSIX_ASYNC_IO = 1
X_POSIX_BARRIERS = 200809
X_POSIX_CHOWN_RESTRICTED = 0
X_POSIX_CLOCK_SELECTION = 200809
X_POSIX_CPUTIME = 0
X_POSIX_C_SOURCE = 200809
X_POSIX_FSYNC = 200809
X_POSIX_IPV6 = 200809
X_POSIX_JOB_CONTROL = 1
X_POSIX_MAPPED_FILES = 200809
X_POSIX_MEMLOCK = 200809
X_POSIX_MEMLOCK_RANGE = 200809
X_POSIX_MEMORY_PROTECTION = 200809
X_POSIX_MESSAGE_PASSING = 200809
X_POSIX_MONOTONIC_CLOCK = 0
X_POSIX_NO_TRUNC = 1
X_POSIX_PRIORITIZED_IO = 200809
X_POSIX_PRIORITY_SCHEDULING = 200809
X_POSIX_RAW_SOCKETS = 200809
X_POSIX_READER_WRITER_LOCKS = 200809
X_POSIX_REALTIME_SIGNALS = 200809
X_POSIX_REENTRANT_FUNCTIONS = 1
X_POSIX_REGEXP = 1
X_POSIX_SAVED_IDS = 1
X_POSIX_SEMAPHORES = 200809
X_POSIX_SHARED_MEMORY_OBJECTS = 200809
X_POSIX_SHELL = 1
X_POSIX_SOURCE = 1
X_POSIX_SPAWN = 200809
X_POSIX_SPIN_LOCKS = 200809
X_POSIX_SPORADIC_SERVER = -1
X_POSIX_SYNCHRONIZED_IO = 200809
X_POSIX_THREADS = 200809
X_POSIX_THREAD_ATTR_STACKADDR = 200809
X_POSIX_THREAD_ATTR_STACKSIZE = 200809
X_POSIX_THREAD_CPUTIME = 0
X_POSIX_THREAD_PRIORITY_SCHEDULING = 200809
X_POSIX_THREAD_PRIO_INHERIT = 200809
X_POSIX_THREAD_PRIO_PROTECT = 200809
X_POSIX_THREAD_PROCESS_SHARED = 200809
X_POSIX_THREAD_ROBUST_PRIO_INHERIT = 200809
X_POSIX_THREAD_ROBUST_PRIO_PROTECT = -1
X_POSIX_THREAD_SAFE_FUNCTIONS = 200809
X_POSIX_THREAD_SPORADIC_SERVER = -1
X_POSIX_TIMEOUTS = 200809
X_POSIX_TIMERS = 200809
X_POSIX_TRACE = -1
X_POSIX_TRACE_EVENT_FILTER = -1
X_POSIX_TRACE_INHERIT = -1
X_POSIX_TRACE_LOG = -1
X_POSIX_TYPED_MEMORY_OBJECTS = -1
X_POSIX_V6_ILP32_OFF32 = -1
X_POSIX_V6_ILP32_OFFBIG = -1
X_POSIX_V6_LP64_OFF64 = 1
X_POSIX_V6_LPBIG_OFFBIG = -1
X_POSIX_V7_ILP32_OFF32 = -1
X_POSIX_V7_ILP32_OFFBIG = -1
X_POSIX_V7_LP64_OFF64 = 1
X_POSIX_V7_LPBIG_OFFBIG = -1
X_POSIX_VDISABLE = 0
X_POSIX_VERSION = 200809
X_SIZET_ = 0
X_SIZE_T = 0
X_SIZE_T_ = 0
X_SIZE_T_DECLARED = 0
X_SIZE_T_DEFINED = 0
X_SIZE_T_DEFINED_ = 0
X_STDC_PREDEF_H = 1
X_SYS_CDEFS_H = 1
X_SYS_SIZE_T_H = 0
X_T_SIZE = 0
X_T_SIZE_ = 0
X_UNISTD_H = 1
X_XBS5_ILP32_OFF32 = -1
X_XBS5_ILP32_OFFBIG = -1
X_XBS5_LP64_OFF64 = 1
X_XBS5_LPBIG_OFFBIG = -1
X_XOPEN_ENH_I18N = 1
X_XOPEN_LEGACY = 1
X_XOPEN_REALTIME = 1
X_XOPEN_REALTIME_THREADS = 1
X_XOPEN_SHM = 1
X_XOPEN_UNIX = 1
X_XOPEN_VERSION = 700
X_XOPEN_XCU_VERSION = 4
X_XOPEN_XPG2 = 1
X_XOPEN_XPG3 = 1
X_XOPEN_XPG4 = 1
Linux = 1
Unix = 1
)
// Get the `_PC_*' symbols for the NAME argument to `pathconf' and `fpathconf';
// the `_SC_*' symbols for the NAME argument to `sysconf';
// and the `_CS_*' symbols for the NAME argument to `confstr'.
// `sysconf', `pathconf', and `confstr' NAME values. Generic version.
// Copyright (C) 1993-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// Values for the NAME argument to `pathconf' and `fpathconf'.
const ( /* confname.h:24:1: */
X_PC_LINK_MAX = 0
X_PC_MAX_CANON = 1
X_PC_MAX_INPUT = 2
X_PC_NAME_MAX = 3
X_PC_PATH_MAX = 4
X_PC_PIPE_BUF = 5
X_PC_CHOWN_RESTRICTED = 6
X_PC_NO_TRUNC = 7
X_PC_VDISABLE = 8
X_PC_SYNC_IO = 9
X_PC_ASYNC_IO = 10
X_PC_PRIO_IO = 11
X_PC_SOCK_MAXBUF = 12
X_PC_FILESIZEBITS = 13
X_PC_REC_INCR_XFER_SIZE = 14
X_PC_REC_MAX_XFER_SIZE = 15
X_PC_REC_MIN_XFER_SIZE = 16
X_PC_REC_XFER_ALIGN = 17
X_PC_ALLOC_SIZE_MIN = 18
X_PC_SYMLINK_MAX = 19
X_PC_2_SYMLINKS = 20
)
// Values for the NAME argument to `confstr'.
const ( /* confname.h:533:1: */
X_CS_PATH = 0 // The default search path.
X_CS_V6_WIDTH_RESTRICTED_ENVS = 1
X_CS_GNU_LIBC_VERSION = 2
X_CS_GNU_LIBPTHREAD_VERSION = 3
X_CS_V5_WIDTH_RESTRICTED_ENVS = 4
X_CS_V7_WIDTH_RESTRICTED_ENVS = 5
X_CS_LFS_CFLAGS = 1000
X_CS_LFS_LDFLAGS = 1001
X_CS_LFS_LIBS = 1002
X_CS_LFS_LINTFLAGS = 1003
X_CS_LFS64_CFLAGS = 1004
X_CS_LFS64_LDFLAGS = 1005
X_CS_LFS64_LIBS = 1006
X_CS_LFS64_LINTFLAGS = 1007
X_CS_XBS5_ILP32_OFF32_CFLAGS = 1100
X_CS_XBS5_ILP32_OFF32_LDFLAGS = 1101
X_CS_XBS5_ILP32_OFF32_LIBS = 1102
X_CS_XBS5_ILP32_OFF32_LINTFLAGS = 1103
X_CS_XBS5_ILP32_OFFBIG_CFLAGS = 1104
X_CS_XBS5_ILP32_OFFBIG_LDFLAGS = 1105
X_CS_XBS5_ILP32_OFFBIG_LIBS = 1106
X_CS_XBS5_ILP32_OFFBIG_LINTFLAGS = 1107
X_CS_XBS5_LP64_OFF64_CFLAGS = 1108
X_CS_XBS5_LP64_OFF64_LDFLAGS = 1109
X_CS_XBS5_LP64_OFF64_LIBS = 1110
X_CS_XBS5_LP64_OFF64_LINTFLAGS = 1111
X_CS_XBS5_LPBIG_OFFBIG_CFLAGS = 1112
X_CS_XBS5_LPBIG_OFFBIG_LDFLAGS = 1113
X_CS_XBS5_LPBIG_OFFBIG_LIBS = 1114
X_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS = 1115
X_CS_POSIX_V6_ILP32_OFF32_CFLAGS = 1116
X_CS_POSIX_V6_ILP32_OFF32_LDFLAGS = 1117
X_CS_POSIX_V6_ILP32_OFF32_LIBS = 1118
X_CS_POSIX_V6_ILP32_OFF32_LINTFLAGS = 1119
X_CS_POSIX_V6_ILP32_OFFBIG_CFLAGS = 1120
X_CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS = 1121
X_CS_POSIX_V6_ILP32_OFFBIG_LIBS = 1122
X_CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS = 1123
X_CS_POSIX_V6_LP64_OFF64_CFLAGS = 1124
X_CS_POSIX_V6_LP64_OFF64_LDFLAGS = 1125
X_CS_POSIX_V6_LP64_OFF64_LIBS = 1126
X_CS_POSIX_V6_LP64_OFF64_LINTFLAGS = 1127
X_CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS = 1128
X_CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS = 1129
X_CS_POSIX_V6_LPBIG_OFFBIG_LIBS = 1130
X_CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS = 1131
X_CS_POSIX_V7_ILP32_OFF32_CFLAGS = 1132
X_CS_POSIX_V7_ILP32_OFF32_LDFLAGS = 1133
X_CS_POSIX_V7_ILP32_OFF32_LIBS = 1134
X_CS_POSIX_V7_ILP32_OFF32_LINTFLAGS = 1135
X_CS_POSIX_V7_ILP32_OFFBIG_CFLAGS = 1136
X_CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS = 1137
X_CS_POSIX_V7_ILP32_OFFBIG_LIBS = 1138
X_CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS = 1139
X_CS_POSIX_V7_LP64_OFF64_CFLAGS = 1140
X_CS_POSIX_V7_LP64_OFF64_LDFLAGS = 1141
X_CS_POSIX_V7_LP64_OFF64_LIBS = 1142
X_CS_POSIX_V7_LP64_OFF64_LINTFLAGS = 1143
X_CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS = 1144
X_CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS = 1145
X_CS_POSIX_V7_LPBIG_OFFBIG_LIBS = 1146
X_CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS = 1147
X_CS_V6_ENV = 1148
X_CS_V7_ENV = 1149
)
// Values for the argument to `sysconf'.
const ( /* confname.h:71:1: */
X_SC_ARG_MAX = 0
X_SC_CHILD_MAX = 1
X_SC_CLK_TCK = 2
X_SC_NGROUPS_MAX = 3
X_SC_OPEN_MAX = 4
X_SC_STREAM_MAX = 5
X_SC_TZNAME_MAX = 6
X_SC_JOB_CONTROL = 7
X_SC_SAVED_IDS = 8
X_SC_REALTIME_SIGNALS = 9
X_SC_PRIORITY_SCHEDULING = 10
X_SC_TIMERS = 11
X_SC_ASYNCHRONOUS_IO = 12
X_SC_PRIORITIZED_IO = 13
X_SC_SYNCHRONIZED_IO = 14
X_SC_FSYNC = 15
X_SC_MAPPED_FILES = 16
X_SC_MEMLOCK = 17
X_SC_MEMLOCK_RANGE = 18
X_SC_MEMORY_PROTECTION = 19
X_SC_MESSAGE_PASSING = 20
X_SC_SEMAPHORES = 21
X_SC_SHARED_MEMORY_OBJECTS = 22
X_SC_AIO_LISTIO_MAX = 23
X_SC_AIO_MAX = 24
X_SC_AIO_PRIO_DELTA_MAX = 25
X_SC_DELAYTIMER_MAX = 26
X_SC_MQ_OPEN_MAX = 27
X_SC_MQ_PRIO_MAX = 28
X_SC_VERSION = 29
X_SC_PAGESIZE = 30
X_SC_RTSIG_MAX = 31
X_SC_SEM_NSEMS_MAX = 32
X_SC_SEM_VALUE_MAX = 33
X_SC_SIGQUEUE_MAX = 34
X_SC_TIMER_MAX = 35
// Values for the argument to `sysconf'
// corresponding to _POSIX2_* symbols.
X_SC_BC_BASE_MAX = 36
X_SC_BC_DIM_MAX = 37
X_SC_BC_SCALE_MAX = 38
X_SC_BC_STRING_MAX = 39
X_SC_COLL_WEIGHTS_MAX = 40
X_SC_EQUIV_CLASS_MAX = 41
X_SC_EXPR_NEST_MAX = 42
X_SC_LINE_MAX = 43
X_SC_RE_DUP_MAX = 44
X_SC_CHARCLASS_NAME_MAX = 45
X_SC_2_VERSION = 46
X_SC_2_C_BIND = 47
X_SC_2_C_DEV = 48
X_SC_2_FORT_DEV = 49
X_SC_2_FORT_RUN = 50
X_SC_2_SW_DEV = 51
X_SC_2_LOCALEDEF = 52
X_SC_PII = 53
X_SC_PII_XTI = 54
X_SC_PII_SOCKET = 55
X_SC_PII_INTERNET = 56
X_SC_PII_OSI = 57
X_SC_POLL = 58
X_SC_SELECT = 59
X_SC_UIO_MAXIOV = 60
X_SC_IOV_MAX = 60
X_SC_PII_INTERNET_STREAM = 61
X_SC_PII_INTERNET_DGRAM = 62
X_SC_PII_OSI_COTS = 63
X_SC_PII_OSI_CLTS = 64
X_SC_PII_OSI_M = 65
X_SC_T_IOV_MAX = 66
// Values according to POSIX 1003.1c (POSIX threads).
X_SC_THREADS = 67
X_SC_THREAD_SAFE_FUNCTIONS = 68
X_SC_GETGR_R_SIZE_MAX = 69
X_SC_GETPW_R_SIZE_MAX = 70
X_SC_LOGIN_NAME_MAX = 71
X_SC_TTY_NAME_MAX = 72
X_SC_THREAD_DESTRUCTOR_ITERATIONS = 73
X_SC_THREAD_KEYS_MAX = 74
X_SC_THREAD_STACK_MIN = 75
X_SC_THREAD_THREADS_MAX = 76
X_SC_THREAD_ATTR_STACKADDR = 77
X_SC_THREAD_ATTR_STACKSIZE = 78
X_SC_THREAD_PRIORITY_SCHEDULING = 79
X_SC_THREAD_PRIO_INHERIT = 80
X_SC_THREAD_PRIO_PROTECT = 81
X_SC_THREAD_PROCESS_SHARED = 82
X_SC_NPROCESSORS_CONF = 83
X_SC_NPROCESSORS_ONLN = 84
X_SC_PHYS_PAGES = 85
X_SC_AVPHYS_PAGES = 86
X_SC_ATEXIT_MAX = 87
X_SC_PASS_MAX = 88
X_SC_XOPEN_VERSION = 89
X_SC_XOPEN_XCU_VERSION = 90
X_SC_XOPEN_UNIX = 91
X_SC_XOPEN_CRYPT = 92
X_SC_XOPEN_ENH_I18N = 93
X_SC_XOPEN_SHM = 94
X_SC_2_CHAR_TERM = 95
X_SC_2_C_VERSION = 96
X_SC_2_UPE = 97
X_SC_XOPEN_XPG2 = 98
X_SC_XOPEN_XPG3 = 99
X_SC_XOPEN_XPG4 = 100
X_SC_CHAR_BIT = 101
X_SC_CHAR_MAX = 102
X_SC_CHAR_MIN = 103
X_SC_INT_MAX = 104
X_SC_INT_MIN = 105
X_SC_LONG_BIT = 106
X_SC_WORD_BIT = 107
X_SC_MB_LEN_MAX = 108
X_SC_NZERO = 109
X_SC_SSIZE_MAX = 110
X_SC_SCHAR_MAX = 111
X_SC_SCHAR_MIN = 112
X_SC_SHRT_MAX = 113
X_SC_SHRT_MIN = 114
X_SC_UCHAR_MAX = 115
X_SC_UINT_MAX = 116
X_SC_ULONG_MAX = 117
X_SC_USHRT_MAX = 118
X_SC_NL_ARGMAX = 119
X_SC_NL_LANGMAX = 120
X_SC_NL_MSGMAX = 121
X_SC_NL_NMAX = 122
X_SC_NL_SETMAX = 123
X_SC_NL_TEXTMAX = 124
X_SC_XBS5_ILP32_OFF32 = 125
X_SC_XBS5_ILP32_OFFBIG = 126
X_SC_XBS5_LP64_OFF64 = 127
X_SC_XBS5_LPBIG_OFFBIG = 128
X_SC_XOPEN_LEGACY = 129
X_SC_XOPEN_REALTIME = 130
X_SC_XOPEN_REALTIME_THREADS = 131
X_SC_ADVISORY_INFO = 132
X_SC_BARRIERS = 133
X_SC_BASE = 134
X_SC_C_LANG_SUPPORT = 135
X_SC_C_LANG_SUPPORT_R = 136
X_SC_CLOCK_SELECTION = 137
X_SC_CPUTIME = 138
X_SC_THREAD_CPUTIME = 139
X_SC_DEVICE_IO = 140
X_SC_DEVICE_SPECIFIC = 141
X_SC_DEVICE_SPECIFIC_R = 142
X_SC_FD_MGMT = 143
X_SC_FIFO = 144
X_SC_PIPE = 145
X_SC_FILE_ATTRIBUTES = 146
X_SC_FILE_LOCKING = 147
X_SC_FILE_SYSTEM = 148
X_SC_MONOTONIC_CLOCK = 149
X_SC_MULTI_PROCESS = 150
X_SC_SINGLE_PROCESS = 151
X_SC_NETWORKING = 152
X_SC_READER_WRITER_LOCKS = 153
X_SC_SPIN_LOCKS = 154
X_SC_REGEXP = 155
X_SC_REGEX_VERSION = 156
X_SC_SHELL = 157
X_SC_SIGNALS = 158
X_SC_SPAWN = 159
X_SC_SPORADIC_SERVER = 160
X_SC_THREAD_SPORADIC_SERVER = 161
X_SC_SYSTEM_DATABASE = 162
X_SC_SYSTEM_DATABASE_R = 163
X_SC_TIMEOUTS = 164
X_SC_TYPED_MEMORY_OBJECTS = 165
X_SC_USER_GROUPS = 166
X_SC_USER_GROUPS_R = 167
X_SC_2_PBS = 168
X_SC_2_PBS_ACCOUNTING = 169
X_SC_2_PBS_LOCATE = 170
X_SC_2_PBS_MESSAGE = 171
X_SC_2_PBS_TRACK = 172
X_SC_SYMLOOP_MAX = 173
X_SC_STREAMS = 174
X_SC_2_PBS_CHECKPOINT = 175
X_SC_V6_ILP32_OFF32 = 176
X_SC_V6_ILP32_OFFBIG = 177
X_SC_V6_LP64_OFF64 = 178
X_SC_V6_LPBIG_OFFBIG = 179
X_SC_HOST_NAME_MAX = 180
X_SC_TRACE = 181
X_SC_TRACE_EVENT_FILTER = 182
X_SC_TRACE_INHERIT = 183
X_SC_TRACE_LOG = 184
X_SC_LEVEL1_ICACHE_SIZE = 185
X_SC_LEVEL1_ICACHE_ASSOC = 186
X_SC_LEVEL1_ICACHE_LINESIZE = 187
X_SC_LEVEL1_DCACHE_SIZE = 188
X_SC_LEVEL1_DCACHE_ASSOC = 189
X_SC_LEVEL1_DCACHE_LINESIZE = 190
X_SC_LEVEL2_CACHE_SIZE = 191
X_SC_LEVEL2_CACHE_ASSOC = 192
X_SC_LEVEL2_CACHE_LINESIZE = 193
X_SC_LEVEL3_CACHE_SIZE = 194
X_SC_LEVEL3_CACHE_ASSOC = 195
X_SC_LEVEL3_CACHE_LINESIZE = 196
X_SC_LEVEL4_CACHE_SIZE = 197
X_SC_LEVEL4_CACHE_ASSOC = 198
X_SC_LEVEL4_CACHE_LINESIZE = 199
// Leave room here, maybe we need a few more cache levels some day.
X_SC_IPV6 = 235
X_SC_RAW_SOCKETS = 236
X_SC_V7_ILP32_OFF32 = 237
X_SC_V7_ILP32_OFFBIG = 238
X_SC_V7_LP64_OFF64 = 239
X_SC_V7_LPBIG_OFFBIG = 240
X_SC_SS_REPL_MAX = 241
X_SC_TRACE_EVENT_NAME_MAX = 242
X_SC_TRACE_NAME_MAX = 243
X_SC_TRACE_SYS_MAX = 244
X_SC_TRACE_USER_EVENT_MAX = 245
X_SC_XOPEN_STREAMS = 246
X_SC_THREAD_ROBUST_PRIO_INHERIT = 247
X_SC_THREAD_ROBUST_PRIO_PROTECT = 248
)
type Ptrdiff_t = int64 /* <builtin>:3:26 */
type Size_t = uint64 /* <builtin>:9:23 */
type Wchar_t = uint32 /* <builtin>:15:24 */
type X__int128_t = struct {
Flo int64
Fhi int64
} /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
type X__uint128_t = struct {
Flo uint64
Fhi uint64
} /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
type X__float128 = float64 /* <builtin>:47:21 */
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// POSIX Standard: 2.10 Symbolic Constants <unistd.h>
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// These are defined by the user (or the compiler)
// to specify the desired environment:
//
// __STRICT_ANSI__ ISO Standard C.
// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99.
// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11.
// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X.
// __STDC_WANT_LIB_EXT2__
// Extensions to ISO C99 from TR 27431-2:2010.
// __STDC_WANT_IEC_60559_BFP_EXT__
// Extensions to ISO C11 from TS 18661-1:2014.
// __STDC_WANT_IEC_60559_FUNCS_EXT__
// Extensions to ISO C11 from TS 18661-4:2015.
// __STDC_WANT_IEC_60559_TYPES_EXT__
// Extensions to ISO C11 from TS 18661-3:2015.
//
// _POSIX_SOURCE IEEE Std 1003.1.
// _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2;
// if >=199309L, add IEEE Std 1003.1b-1993;
// if >=199506L, add IEEE Std 1003.1c-1995;
// if >=200112L, all of IEEE 1003.1-2004
// if >=200809L, all of IEEE 1003.1-2008
// _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if
// Single Unix conformance is wanted, to 600 for the
// sixth revision, to 700 for the seventh revision.
// _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions.
// _LARGEFILE_SOURCE Some more functions for correct standard I/O.
// _LARGEFILE64_SOURCE Additional functionality from LFS for large files.
// _FILE_OFFSET_BITS=N Select default filesystem interface.
// _ATFILE_SOURCE Additional *at interfaces.
// _GNU_SOURCE All of the above, plus GNU extensions.
// _DEFAULT_SOURCE The default set of features (taking precedence over
// __STRICT_ANSI__).
//
// _FORTIFY_SOURCE Add security hardening to many library functions.
// Set to 1 or 2; 2 performs stricter checks than 1.
//
// _REENTRANT, _THREAD_SAFE
// Obsolete; equivalent to _POSIX_C_SOURCE=199506L.
//
// The `-ansi' switch to the GNU C compiler, and standards conformance
// options such as `-std=c99', define __STRICT_ANSI__. If none of
// these are defined, or if _DEFAULT_SOURCE is defined, the default is
// to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to
// 200809L, as well as enabling miscellaneous functions from BSD and
// SVID. If more than one of these are defined, they accumulate. For
// example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together
// give you ISO C, 1003.1, and 1003.2, but nothing else.
//
// These are defined by this file and are used by the
// header files to decide what to declare or define:
//
// __GLIBC_USE (F) Define things from feature set F. This is defined
// to 1 or 0; the subsequent macros are either defined
// or undefined, and those tests should be moved to
// __GLIBC_USE.
// __USE_ISOC11 Define ISO C11 things.
// __USE_ISOC99 Define ISO C99 things.
// __USE_ISOC95 Define ISO C90 AMD1 (C95) things.
// __USE_ISOCXX11 Define ISO C++11 things.
// __USE_POSIX Define IEEE Std 1003.1 things.
// __USE_POSIX2 Define IEEE Std 1003.2 things.
// __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things.
// __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things.
// __USE_XOPEN Define XPG things.
// __USE_XOPEN_EXTENDED Define X/Open Unix things.
// __USE_UNIX98 Define Single Unix V2 things.
// __USE_XOPEN2K Define XPG6 things.
// __USE_XOPEN2KXSI Define XPG6 XSI things.
// __USE_XOPEN2K8 Define XPG7 things.
// __USE_XOPEN2K8XSI Define XPG7 XSI things.
// __USE_LARGEFILE Define correct standard I/O things.
// __USE_LARGEFILE64 Define LFS things with separate names.
// __USE_FILE_OFFSET64 Define 64bit interface as default.
// __USE_MISC Define things from 4.3BSD or System V Unix.
// __USE_ATFILE Define *at interfaces and AT_* constants for them.
// __USE_GNU Define GNU extensions.
// __USE_FORTIFY_LEVEL Additional security measures used, according to level.
//
// The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are
// defined by this file unconditionally. `__GNU_LIBRARY__' is provided
// only for compatibility. All new code should use the other symbols
// to test for features.
//
// All macros listed above as possibly being defined by this file are
// explicitly undefined if they are not explicitly defined.
// Feature-test macros that are not defined by the user or compiler
// but are implied by the other feature-test macros defined (or by the
// lack of any definitions) are defined by the file.
//
// ISO C feature test macros depend on the definition of the macro
// when an affected header is included, not when the first system
// header is included, and so they are handled in
// <bits/libc-header-start.h>, which does not have a multiple include
// guard. Feature test macros that can be handled from the first
// system header included are handled here.
// Undefine everything, so we get a clean slate.
// Suppress kernel-name space pollution unless user expressedly asks
// for it.
// Convenience macro to test the version of gcc.
// Use like this:
// #if __GNUC_PREREQ (2,8)
// ... code requiring gcc 2.8 or later ...
// #endif
// Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was
// added in 2.0.
// Similarly for clang. Features added to GCC after version 4.2 may
// or may not also be available in clang, and clang's definitions of
// __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such
// features can be queried via __has_extension/__has_feature.
// Whether to use feature set F.
// _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for
// _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not
// issue a warning; the expectation is that the source is being
// transitioned to use the new macro.
// If _GNU_SOURCE was defined by the user, turn on all the other features.
// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined,
// define _DEFAULT_SOURCE.
// This is to enable the ISO C2X extension.
// This is to enable the ISO C11 extension.
// This is to enable the ISO C99 extension.
// This is to enable the ISO C90 Amendment 1:1995 extension.
// If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE
// is defined, use POSIX.1-2008 (or another version depending on
// _XOPEN_SOURCE).
// Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be
// defined in all multithreaded code. GNU libc has not required this
// for many years. We now treat them as compatibility synonyms for
// _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with
// comprehensive support for multithreaded code. Using them never
// lowers the selected level of POSIX conformance, only raises it.
// The function 'gets' existed in C89, but is impossible to use
// safely. It has been removed from ISO C11 and ISO C++14. Note: for
// compatibility with various implementations of <cstdio>, this test
// must consider only the value of __cplusplus when compiling C++.
// GNU formerly extended the scanf functions with modified format
// specifiers %as, %aS, and %a[...] that allocate a buffer for the
// input using malloc. This extension conflicts with ISO C99, which
// defines %a as a standalone format specifier that reads a floating-
// point number; moreover, POSIX.1-2008 provides the same feature
// using the modifier letter 'm' instead (%ms, %mS, %m[...]).
//
// We now follow C99 unless GNU extensions are active and the compiler
// is specifically in C89 or C++98 mode (strict or not). For
// instance, with GCC, -std=gnu11 will have C99-compliant scanf with
// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the
// old extension.
// Get definitions of __STDC_* predefined macros, if the compiler has
// not preincluded this header automatically.
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// This macro indicates that the installed library is the GNU C Library.
// For historic reasons the value now is 6 and this will stay from now
// on. The use of this variable is deprecated. Use __GLIBC__ and
// __GLIBC_MINOR__ now (see below) when you want to test for a specific
// GNU C library version and use the values in <gnu/lib-names.h> to get
// the sonames of the shared libraries.
// Major and minor version number of the GNU C library package. Use
// these macros to test for features in specific releases.
// This is here only because every header file already includes this one.
// Copyright (C) 1992-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// We are almost always included from features.h.
// The GNU libc does not support any K&R compilers or the traditional mode
// of ISO C compilers anymore. Check for some of the combinations not
// anymore supported.
// Some user header file might have defined this before.
// All functions, except those with callbacks or those that
// synchronize memory, are leaf functions.
// GCC can always grok prototypes. For C++ programs we add throw()
// to help it optimize the function calls. But this works only with
// gcc 2.8.x and egcs. For gcc 3.2 and up we even mark C functions
// as non-throwing using a function attribute since programs can use
// the -fexceptions options for C code as well.
// Compilers that are not clang may object to
// #if defined __clang__ && __has_extension(...)
// even though they do not need to evaluate the right-hand side of the &&.
// These two macros are not used in glibc anymore. They are kept here
// only because some other projects expect the macros to be defined.
// For these things, GCC behaves the ANSI way normally,
// and the non-ANSI way under -traditional.
// This is not a typedef so `const __ptr_t' does the right thing.
// C++ needs to know that types and declarations are C, not C++.
// Fortify support.
// Support for flexible arrays.
// Headers that should use flexible arrays only if they're "real"
// (e.g. only if they won't affect sizeof()) should test
// #if __glibc_c99_flexarr_available.
// __asm__ ("xyz") is used throughout the headers to rename functions
// at the assembly language level. This is wrapped by the __REDIRECT
// macro, in order to support compilers that can do this some other
// way. When compilers don't support asm-names at all, we have to do
// preprocessor tricks instead (which don't have exactly the right
// semantics, but it's the best we can do).
//
// Example:
// int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid);
//
// #elif __SOME_OTHER_COMPILER__
//
// # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias)
// GCC has various useful declarations that can be made with the
// `__attribute__' syntax. All of the ways we use this do fine if
// they are omitted for compilers that don't understand it.
// At some point during the gcc 2.96 development the `malloc' attribute
// for functions was introduced. We don't want to use it unconditionally
// (although this would be possible) since it generates warnings.
// Tell the compiler which arguments to an allocation function
// indicate the size of the allocation.
// At some point during the gcc 2.96 development the `pure' attribute
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | true |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/unistd/capi_linux_mips64le.go | vendor/modernc.org/libc/unistd/capi_linux_mips64le.go | // 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_linux_amd64.go -pkgname unistd', DO NOT EDIT.
package unistd
var CAPI = map[string]struct{}{}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/unistd/capi_linux_s390x.go | vendor/modernc.org/libc/unistd/capi_linux_s390x.go | // 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 -o unistd/unistd_linux_s390x.go -pkgname unistd', DO NOT EDIT.
package unistd
var CAPI = map[string]struct{}{}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/unistd/capi_darwin_amd64.go | vendor/modernc.org/libc/unistd/capi_darwin_amd64.go | // 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_darwin_amd64.go -pkgname unistd', DO NOT EDIT.
package unistd
var CAPI = map[string]struct{}{
"__darwin_check_fd_set": {},
"__darwin_check_fd_set_overflow": {},
"__darwin_fd_clr": {},
"__darwin_fd_isset": {},
"__darwin_fd_set": {},
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/unistd/capi_windows_arm64.go | vendor/modernc.org/libc/unistd/capi_windows_arm64.go | // 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 -o unistd\unistd_windows_arm64.go -pkgname unistd', DO NOT EDIT.
package unistd
var CAPI = map[string]struct{}{}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/unistd/unistd_darwin_arm64.go | vendor/modernc.org/libc/unistd/unistd_darwin_arm64.go | // 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_darwin_arm64.go -pkgname unistd', DO NOT EDIT.
package unistd
import (
"math"
"reflect"
"sync/atomic"
"unsafe"
)
var _ = math.Pi
var _ reflect.Kind
var _ atomic.Value
var _ unsafe.Pointer
const (
ACCESSX_MAX_DESCRIPTORS = 100 // unistd.h:137:1:
ACCESSX_MAX_TABLESIZE = 16384 // unistd.h:138:1:
FD_SETSIZE = 1024 // _fd_setsize.h:29:1:
F_LOCK = 1 // unistd.h:528:1:
F_OK = 0 // unistd.h:89:1:
F_TEST = 3 // unistd.h:530:1:
F_TLOCK = 2 // unistd.h:529:1:
F_ULOCK = 0 // unistd.h:527:1:
L_INCR = 1 // unistd.h:127:1:
L_SET = 0 // unistd.h:126:1:
L_XTND = 2 // unistd.h:128:1:
MAC_OS_VERSION_11_0 = 110000 // AvailabilityVersions.h:238:1:
MAC_OS_VERSION_12_0 = 120000 // AvailabilityVersions.h:239:1:
MAC_OS_X_VERSION_10_0 = 1000 // AvailabilityVersions.h:206:1:
MAC_OS_X_VERSION_10_1 = 1010 // AvailabilityVersions.h:207:1:
MAC_OS_X_VERSION_10_10 = 101000 // AvailabilityVersions.h:216:1:
MAC_OS_X_VERSION_10_10_2 = 101002 // AvailabilityVersions.h:217:1:
MAC_OS_X_VERSION_10_10_3 = 101003 // AvailabilityVersions.h:218:1:
MAC_OS_X_VERSION_10_11 = 101100 // AvailabilityVersions.h:219:1:
MAC_OS_X_VERSION_10_11_2 = 101102 // AvailabilityVersions.h:220:1:
MAC_OS_X_VERSION_10_11_3 = 101103 // AvailabilityVersions.h:221:1:
MAC_OS_X_VERSION_10_11_4 = 101104 // AvailabilityVersions.h:222:1:
MAC_OS_X_VERSION_10_12 = 101200 // AvailabilityVersions.h:223:1:
MAC_OS_X_VERSION_10_12_1 = 101201 // AvailabilityVersions.h:224:1:
MAC_OS_X_VERSION_10_12_2 = 101202 // AvailabilityVersions.h:225:1:
MAC_OS_X_VERSION_10_12_4 = 101204 // AvailabilityVersions.h:226:1:
MAC_OS_X_VERSION_10_13 = 101300 // AvailabilityVersions.h:227:1:
MAC_OS_X_VERSION_10_13_1 = 101301 // AvailabilityVersions.h:228:1:
MAC_OS_X_VERSION_10_13_2 = 101302 // AvailabilityVersions.h:229:1:
MAC_OS_X_VERSION_10_13_4 = 101304 // AvailabilityVersions.h:230:1:
MAC_OS_X_VERSION_10_14 = 101400 // AvailabilityVersions.h:231:1:
MAC_OS_X_VERSION_10_14_1 = 101401 // AvailabilityVersions.h:232:1:
MAC_OS_X_VERSION_10_14_4 = 101404 // AvailabilityVersions.h:233:1:
MAC_OS_X_VERSION_10_14_6 = 101406 // AvailabilityVersions.h:234:1:
MAC_OS_X_VERSION_10_15 = 101500 // AvailabilityVersions.h:235:1:
MAC_OS_X_VERSION_10_15_1 = 101501 // AvailabilityVersions.h:236:1:
MAC_OS_X_VERSION_10_16 = 101600 // AvailabilityVersions.h:237:1:
MAC_OS_X_VERSION_10_2 = 1020 // AvailabilityVersions.h:208:1:
MAC_OS_X_VERSION_10_3 = 1030 // AvailabilityVersions.h:209:1:
MAC_OS_X_VERSION_10_4 = 1040 // AvailabilityVersions.h:210:1:
MAC_OS_X_VERSION_10_5 = 1050 // AvailabilityVersions.h:211:1:
MAC_OS_X_VERSION_10_6 = 1060 // AvailabilityVersions.h:212:1:
MAC_OS_X_VERSION_10_7 = 1070 // AvailabilityVersions.h:213:1:
MAC_OS_X_VERSION_10_8 = 1080 // AvailabilityVersions.h:214:1:
MAC_OS_X_VERSION_10_9 = 1090 // AvailabilityVersions.h:215:1:
R_OK = 4 // unistd.h:92:1:
SEEK_CUR = 1 // _seek_set.h:34:1:
SEEK_DATA = 4 // _seek_set.h:44:1:
SEEK_END = 2 // _seek_set.h:35:1:
SEEK_HOLE = 3 // _seek_set.h:40:1:
SEEK_SET = 0 // _seek_set.h:33:1:
STDERR_FILENO = 2 // unistd.h:88:1:
STDIN_FILENO = 0 // unistd.h:86:1:
STDOUT_FILENO = 1 // unistd.h:87:1:
SYNC_VOLUME_FULLSYNC = 0x01 // unistd.h:780:1:
SYNC_VOLUME_WAIT = 0x02 // unistd.h:781:1:
W_OK = 2 // unistd.h:91:1:
X_OK = 1 // unistd.h:90:1:
X_ACCESS_EXTENDED_MASK = 4193792 // unistd.h:114:1:
X_APPEND_OK = 8192 // unistd.h:104:1:
X_ARM_MACHTYPES_H_ = 0 // types.h:43:1:
X_BSD_ARM__TYPES_H_ = 0 // _types.h:5:1:
X_BSD_MACHINE_TYPES_H_ = 0 // types.h:32:1:
X_BSD_MACHINE__TYPES_H_ = 0 // _types.h:29:1:
X_CDEFS_H_ = 0 // cdefs.h:68:1:
X_CHOWN_OK = 2097152 // unistd.h:112:1:
X_CS_DARWIN_USER_CACHE_DIR = 65538 // unistd.h:415:1:
X_CS_DARWIN_USER_DIR = 65536 // unistd.h:413:1:
X_CS_DARWIN_USER_TEMP_DIR = 65537 // unistd.h:414:1:
X_CS_PATH = 1 // unistd.h:175:1:
X_CS_POSIX_V6_ILP32_OFF32_CFLAGS = 2 // unistd.h:377:1:
X_CS_POSIX_V6_ILP32_OFF32_LDFLAGS = 3 // unistd.h:378:1:
X_CS_POSIX_V6_ILP32_OFF32_LIBS = 4 // unistd.h:379:1:
X_CS_POSIX_V6_ILP32_OFFBIG_CFLAGS = 5 // unistd.h:380:1:
X_CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS = 6 // unistd.h:381:1:
X_CS_POSIX_V6_ILP32_OFFBIG_LIBS = 7 // unistd.h:382:1:
X_CS_POSIX_V6_LP64_OFF64_CFLAGS = 8 // unistd.h:383:1:
X_CS_POSIX_V6_LP64_OFF64_LDFLAGS = 9 // unistd.h:384:1:
X_CS_POSIX_V6_LP64_OFF64_LIBS = 10 // unistd.h:385:1:
X_CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS = 11 // unistd.h:386:1:
X_CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS = 12 // unistd.h:387:1:
X_CS_POSIX_V6_LPBIG_OFFBIG_LIBS = 13 // unistd.h:388:1:
X_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS = 14 // unistd.h:389:1:
X_CS_XBS5_ILP32_OFF32_CFLAGS = 20 // unistd.h:394:1:
X_CS_XBS5_ILP32_OFF32_LDFLAGS = 21 // unistd.h:395:1:
X_CS_XBS5_ILP32_OFF32_LIBS = 22 // unistd.h:396:1:
X_CS_XBS5_ILP32_OFF32_LINTFLAGS = 23 // unistd.h:397:1:
X_CS_XBS5_ILP32_OFFBIG_CFLAGS = 24 // unistd.h:398:1:
X_CS_XBS5_ILP32_OFFBIG_LDFLAGS = 25 // unistd.h:399:1:
X_CS_XBS5_ILP32_OFFBIG_LIBS = 26 // unistd.h:400:1:
X_CS_XBS5_ILP32_OFFBIG_LINTFLAGS = 27 // unistd.h:401:1:
X_CS_XBS5_LP64_OFF64_CFLAGS = 28 // unistd.h:402:1:
X_CS_XBS5_LP64_OFF64_LDFLAGS = 29 // unistd.h:403:1:
X_CS_XBS5_LP64_OFF64_LIBS = 30 // unistd.h:404:1:
X_CS_XBS5_LP64_OFF64_LINTFLAGS = 31 // unistd.h:405:1:
X_CS_XBS5_LPBIG_OFFBIG_CFLAGS = 32 // unistd.h:406:1:
X_CS_XBS5_LPBIG_OFFBIG_LDFLAGS = 33 // unistd.h:407:1:
X_CS_XBS5_LPBIG_OFFBIG_LIBS = 34 // unistd.h:408:1:
X_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS = 35 // unistd.h:409:1:
X_CTERMID_H_ = 0 // _ctermid.h:25:1:
X_DARWIN_FEATURE_64_BIT_INODE = 1 // cdefs.h:774:1:
X_DARWIN_FEATURE_ONLY_64_BIT_INODE = 1 // cdefs.h:784:1:
X_DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE = 1 // cdefs.h:800:1:
X_DARWIN_FEATURE_ONLY_VERS_1050 = 1 // cdefs.h:792:1:
X_DARWIN_FEATURE_UNIX_CONFORMANCE = 3 // cdefs.h:808:1:
X_DELETE_OK = 4096 // unistd.h:103:1:
X_DEV_T = 0 // _dev_t.h:29:1:
X_EXECUTE_OK = 2048 // unistd.h:102:1:
X_FD_SET = 0 // _fd_def.h:29:1:
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_FORTIFY_SOURCE = 2 // _types.h:65:1:
X_GID_T = 0 // _gid_t.h:29:1:
X_INT16_T = 0 // _int16_t.h:29:1:
X_INT32_T = 0 // _int32_t.h:29:1:
X_INT64_T = 0 // _int64_t.h:29:1:
X_INT8_T = 0 // _int8_t.h:29:1:
X_INTPTR_T = 0 // _intptr_t.h:29:1:
X_LP64 = 1 // <predefined>:1:1:
X_MACHTYPES_H_ = 0 // types.h:44:1:
X_MODE_T = 0 // _mode_t.h:29:1:
X_Nonnull = 0 // cdefs.h:268:1:
X_Null_unspecified = 0 // cdefs.h:271:1:
X_Nullable = 0 // cdefs.h:265:1:
X_OFF_T = 0 // _off_t.h:29:1:
X_PC_2_SYMLINKS = 15 // unistd.h:160:1:
X_PC_ALLOC_SIZE_MIN = 16 // unistd.h:161:1:
X_PC_ASYNC_IO = 17 // unistd.h:162:1:
X_PC_AUTH_OPAQUE_NP = 14 // unistd.h:157:1:
X_PC_CASE_PRESERVING = 12 // unistd.h:155:1:
X_PC_CASE_SENSITIVE = 11 // unistd.h:154:1:
X_PC_CHOWN_RESTRICTED = 7 // unistd.h:148:1:
X_PC_EXTENDED_SECURITY_NP = 13 // unistd.h:156:1:
X_PC_FILESIZEBITS = 18 // unistd.h:163:1:
X_PC_LINK_MAX = 1 // unistd.h:142:1:
X_PC_MAX_CANON = 2 // unistd.h:143:1:
X_PC_MAX_INPUT = 3 // unistd.h:144:1:
X_PC_MIN_HOLE_SIZE = 27 // unistd.h:172:1:
X_PC_NAME_CHARS_MAX = 10 // unistd.h:153:1:
X_PC_NAME_MAX = 4 // unistd.h:145:1:
X_PC_NO_TRUNC = 8 // unistd.h:149:1:
X_PC_PATH_MAX = 5 // unistd.h:146:1:
X_PC_PIPE_BUF = 6 // unistd.h:147:1:
X_PC_PRIO_IO = 19 // unistd.h:164:1:
X_PC_REC_INCR_XFER_SIZE = 20 // unistd.h:165:1:
X_PC_REC_MAX_XFER_SIZE = 21 // unistd.h:166:1:
X_PC_REC_MIN_XFER_SIZE = 22 // unistd.h:167:1:
X_PC_REC_XFER_ALIGN = 23 // unistd.h:168:1:
X_PC_SYMLINK_MAX = 24 // unistd.h:169:1:
X_PC_SYNC_IO = 25 // unistd.h:170:1:
X_PC_VDISABLE = 9 // unistd.h:150:1:
X_PC_XATTR_SIZE_BITS = 26 // unistd.h:171:1:
X_PID_T = 0 // _pid_t.h:29:1:
X_POSIX2_CHAR_TERM = 200112 // unistd.h:152:1:
X_POSIX2_C_BIND = 200112 // unistd.h:150:1:
X_POSIX2_C_DEV = 200112 // unistd.h:151:1:
X_POSIX2_FORT_DEV = -1 // unistd.h:153:1:
X_POSIX2_FORT_RUN = 200112 // unistd.h:154:1:
X_POSIX2_LOCALEDEF = 200112 // unistd.h:155:1:
X_POSIX2_PBS = -1 // unistd.h:156:1:
X_POSIX2_PBS_ACCOUNTING = -1 // unistd.h:157:1:
X_POSIX2_PBS_CHECKPOINT = -1 // unistd.h:158:1:
X_POSIX2_PBS_LOCATE = -1 // unistd.h:159:1:
X_POSIX2_PBS_MESSAGE = -1 // unistd.h:160:1:
X_POSIX2_PBS_TRACK = -1 // unistd.h:161:1:
X_POSIX2_SW_DEV = 200112 // unistd.h:162:1:
X_POSIX2_UPE = 200112 // unistd.h:163:1:
X_POSIX2_VERSION = 200112 // unistd.h:80:1:
X_POSIX_ADVISORY_INFO = -1 // unistd.h:98:1:
X_POSIX_ASYNCHRONOUS_IO = -1 // unistd.h:99:1:
X_POSIX_BARRIERS = -1 // unistd.h:100:1:
X_POSIX_CHOWN_RESTRICTED = 200112 // unistd.h:101:1:
X_POSIX_CLOCK_SELECTION = -1 // unistd.h:102:1:
X_POSIX_CPUTIME = -1 // unistd.h:103:1:
X_POSIX_FSYNC = 200112 // unistd.h:104:1:
X_POSIX_IPV6 = 200112 // unistd.h:105:1:
X_POSIX_JOB_CONTROL = 200112 // unistd.h:106:1:
X_POSIX_MAPPED_FILES = 200112 // unistd.h:107:1:
X_POSIX_MEMLOCK = -1 // unistd.h:108:1:
X_POSIX_MEMLOCK_RANGE = -1 // unistd.h:109:1:
X_POSIX_MEMORY_PROTECTION = 200112 // unistd.h:110:1:
X_POSIX_MESSAGE_PASSING = -1 // unistd.h:111:1:
X_POSIX_MONOTONIC_CLOCK = -1 // unistd.h:112:1:
X_POSIX_NO_TRUNC = 200112 // unistd.h:113:1:
X_POSIX_PRIORITIZED_IO = -1 // unistd.h:114:1:
X_POSIX_PRIORITY_SCHEDULING = -1 // unistd.h:115:1:
X_POSIX_RAW_SOCKETS = -1 // unistd.h:116:1:
X_POSIX_READER_WRITER_LOCKS = 200112 // unistd.h:117:1:
X_POSIX_REALTIME_SIGNALS = -1 // unistd.h:118:1:
X_POSIX_REGEXP = 200112 // unistd.h:119:1:
X_POSIX_SAVED_IDS = 200112 // unistd.h:120:1:
X_POSIX_SEMAPHORES = -1 // unistd.h:121:1:
X_POSIX_SHARED_MEMORY_OBJECTS = -1 // unistd.h:122:1:
X_POSIX_SHELL = 200112 // unistd.h:123:1:
X_POSIX_SPAWN = -1 // unistd.h:124:1:
X_POSIX_SPIN_LOCKS = -1 // unistd.h:125:1:
X_POSIX_SPORADIC_SERVER = -1 // unistd.h:126:1:
X_POSIX_SYNCHRONIZED_IO = -1 // unistd.h:127:1:
X_POSIX_THREADS = 200112 // unistd.h:137:1:
X_POSIX_THREAD_ATTR_STACKADDR = 200112 // unistd.h:128:1:
X_POSIX_THREAD_ATTR_STACKSIZE = 200112 // unistd.h:129:1:
X_POSIX_THREAD_CPUTIME = -1 // unistd.h:130:1:
X_POSIX_THREAD_KEYS_MAX = 128 // unistd.h:86:1:
X_POSIX_THREAD_PRIORITY_SCHEDULING = -1 // unistd.h:133:1:
X_POSIX_THREAD_PRIO_INHERIT = -1 // unistd.h:131:1:
X_POSIX_THREAD_PRIO_PROTECT = -1 // unistd.h:132:1:
X_POSIX_THREAD_PROCESS_SHARED = 200112 // unistd.h:134:1:
X_POSIX_THREAD_SAFE_FUNCTIONS = 200112 // unistd.h:135:1:
X_POSIX_THREAD_SPORADIC_SERVER = -1 // unistd.h:136:1:
X_POSIX_TIMEOUTS = -1 // unistd.h:138:1:
X_POSIX_TIMERS = -1 // unistd.h:139:1:
X_POSIX_TRACE = -1 // unistd.h:140:1:
X_POSIX_TRACE_EVENT_FILTER = -1 // unistd.h:141:1:
X_POSIX_TRACE_INHERIT = -1 // unistd.h:142:1:
X_POSIX_TRACE_LOG = -1 // unistd.h:143:1:
X_POSIX_TYPED_MEMORY_OBJECTS = -1 // unistd.h:144:1:
X_POSIX_V6_ILP32_OFF32 = -1 // unistd.h:173:1:
X_POSIX_V6_ILP32_OFFBIG = -1 // unistd.h:174:1:
X_POSIX_V6_LP64_OFF64 = 1 // unistd.h:175:1:
X_POSIX_V6_LPBIG_OFFBIG = 1 // unistd.h:176:1:
X_POSIX_V7_ILP32_OFF32 = -1 // unistd.h:180:1:
X_POSIX_V7_ILP32_OFFBIG = -1 // unistd.h:181:1:
X_POSIX_V7_LP64_OFF64 = 1 // unistd.h:182:1:
X_POSIX_V7_LPBIG_OFFBIG = 1 // unistd.h:183:1:
X_POSIX_VERSION = 200112 // unistd.h:79:1:
X_RATTR_OK = 32768 // unistd.h:106:1:
X_READ_OK = 512 // unistd.h:100:1:
X_REXT_OK = 131072 // unistd.h:108:1:
X_RMFILE_OK = 16384 // unistd.h:105:1:
X_RPERM_OK = 524288 // unistd.h:110:1:
X_SC_2_CHAR_TERM = 20 // unistd.h:232:1:
X_SC_2_C_BIND = 18 // unistd.h:230:1:
X_SC_2_C_DEV = 19 // unistd.h:231:1:
X_SC_2_FORT_DEV = 21 // unistd.h:233:1:
X_SC_2_FORT_RUN = 22 // unistd.h:234:1:
X_SC_2_LOCALEDEF = 23 // unistd.h:235:1:
X_SC_2_PBS = 59 // unistd.h:275:1:
X_SC_2_PBS_ACCOUNTING = 60 // unistd.h:276:1:
X_SC_2_PBS_CHECKPOINT = 61 // unistd.h:277:1:
X_SC_2_PBS_LOCATE = 62 // unistd.h:278:1:
X_SC_2_PBS_MESSAGE = 63 // unistd.h:279:1:
X_SC_2_PBS_TRACK = 64 // unistd.h:280:1:
X_SC_2_SW_DEV = 24 // unistd.h:236:1:
X_SC_2_UPE = 25 // unistd.h:237:1:
X_SC_2_VERSION = 17 // unistd.h:229:1:
X_SC_ADVISORY_INFO = 65 // unistd.h:281:1:
X_SC_AIO_LISTIO_MAX = 42 // unistd.h:256:1:
X_SC_AIO_MAX = 43 // unistd.h:257:1:
X_SC_AIO_PRIO_DELTA_MAX = 44 // unistd.h:258:1:
X_SC_ARG_MAX = 1 // unistd.h:213:1:
X_SC_ASYNCHRONOUS_IO = 28 // unistd.h:242:1:
X_SC_ATEXIT_MAX = 107 // unistd.h:329:1:
X_SC_BARRIERS = 66 // unistd.h:282:1:
X_SC_BC_BASE_MAX = 9 // unistd.h:221:1:
X_SC_BC_DIM_MAX = 10 // unistd.h:222:1:
X_SC_BC_SCALE_MAX = 11 // unistd.h:223:1:
X_SC_BC_STRING_MAX = 12 // unistd.h:224:1:
X_SC_CHILD_MAX = 2 // unistd.h:214:1:
X_SC_CLK_TCK = 3 // unistd.h:215:1:
X_SC_CLOCK_SELECTION = 67 // unistd.h:283:1:
X_SC_COLL_WEIGHTS_MAX = 13 // unistd.h:225:1:
X_SC_CPUTIME = 68 // unistd.h:284:1:
X_SC_DELAYTIMER_MAX = 45 // unistd.h:259:1:
X_SC_EXPR_NEST_MAX = 14 // unistd.h:226:1:
X_SC_FILE_LOCKING = 69 // unistd.h:285:1:
X_SC_FSYNC = 38 // unistd.h:252:1:
X_SC_GETGR_R_SIZE_MAX = 70 // unistd.h:286:1:
X_SC_GETPW_R_SIZE_MAX = 71 // unistd.h:287:1:
X_SC_HOST_NAME_MAX = 72 // unistd.h:288:1:
X_SC_IOV_MAX = 56 // unistd.h:330:1:
X_SC_IPV6 = 118 // unistd.h:323:1:
X_SC_JOB_CONTROL = 6 // unistd.h:218:1:
X_SC_LINE_MAX = 15 // unistd.h:227:1:
X_SC_LOGIN_NAME_MAX = 73 // unistd.h:289:1:
X_SC_MAPPED_FILES = 47 // unistd.h:261:1:
X_SC_MEMLOCK = 30 // unistd.h:244:1:
X_SC_MEMLOCK_RANGE = 31 // unistd.h:245:1:
X_SC_MEMORY_PROTECTION = 32 // unistd.h:246:1:
X_SC_MESSAGE_PASSING = 33 // unistd.h:247:1:
X_SC_MONOTONIC_CLOCK = 74 // unistd.h:290:1:
X_SC_MQ_OPEN_MAX = 46 // unistd.h:260:1:
X_SC_MQ_PRIO_MAX = 75 // unistd.h:291:1:
X_SC_NGROUPS_MAX = 4 // unistd.h:216:1:
X_SC_NPROCESSORS_CONF = 57 // unistd.h:270:1:
X_SC_NPROCESSORS_ONLN = 58 // unistd.h:271:1:
X_SC_OPEN_MAX = 5 // unistd.h:217:1:
X_SC_PAGESIZE = 29 // unistd.h:243:1:
X_SC_PAGE_SIZE = 29 // unistd.h:331:1:
X_SC_PASS_MAX = 131 // unistd.h:362:1:
X_SC_PHYS_PAGES = 200 // unistd.h:367:1:
X_SC_PRIORITIZED_IO = 34 // unistd.h:248:1:
X_SC_PRIORITY_SCHEDULING = 35 // unistd.h:249:1:
X_SC_RAW_SOCKETS = 119 // unistd.h:324:1:
X_SC_READER_WRITER_LOCKS = 76 // unistd.h:292:1:
X_SC_REALTIME_SIGNALS = 36 // unistd.h:250:1:
X_SC_REGEXP = 77 // unistd.h:293:1:
X_SC_RE_DUP_MAX = 16 // unistd.h:228:1:
X_SC_RTSIG_MAX = 48 // unistd.h:262:1:
X_SC_SAVED_IDS = 7 // unistd.h:219:1:
X_SC_SEMAPHORES = 37 // unistd.h:251:1:
X_SC_SEM_NSEMS_MAX = 49 // unistd.h:263:1:
X_SC_SEM_VALUE_MAX = 50 // unistd.h:264:1:
X_SC_SHARED_MEMORY_OBJECTS = 39 // unistd.h:253:1:
X_SC_SHELL = 78 // unistd.h:294:1:
X_SC_SIGQUEUE_MAX = 51 // unistd.h:265:1:
X_SC_SPAWN = 79 // unistd.h:295:1:
X_SC_SPIN_LOCKS = 80 // unistd.h:296:1:
X_SC_SPORADIC_SERVER = 81 // unistd.h:297:1:
X_SC_SS_REPL_MAX = 126 // unistd.h:353:1:
X_SC_STREAM_MAX = 26 // unistd.h:238:1:
X_SC_SYMLOOP_MAX = 120 // unistd.h:325:1:
X_SC_SYNCHRONIZED_IO = 40 // unistd.h:254:1:
X_SC_THREADS = 96 // unistd.h:312:1:
X_SC_THREAD_ATTR_STACKADDR = 82 // unistd.h:298:1:
X_SC_THREAD_ATTR_STACKSIZE = 83 // unistd.h:299:1:
X_SC_THREAD_CPUTIME = 84 // unistd.h:300:1:
X_SC_THREAD_DESTRUCTOR_ITERATIONS = 85 // unistd.h:301:1:
X_SC_THREAD_KEYS_MAX = 86 // unistd.h:302:1:
X_SC_THREAD_PRIORITY_SCHEDULING = 89 // unistd.h:305:1:
X_SC_THREAD_PRIO_INHERIT = 87 // unistd.h:303:1:
X_SC_THREAD_PRIO_PROTECT = 88 // unistd.h:304:1:
X_SC_THREAD_PROCESS_SHARED = 90 // unistd.h:306:1:
X_SC_THREAD_SAFE_FUNCTIONS = 91 // unistd.h:307:1:
X_SC_THREAD_SPORADIC_SERVER = 92 // unistd.h:308:1:
X_SC_THREAD_STACK_MIN = 93 // unistd.h:309:1:
X_SC_THREAD_THREADS_MAX = 94 // unistd.h:310:1:
X_SC_TIMEOUTS = 95 // unistd.h:311:1:
X_SC_TIMERS = 41 // unistd.h:255:1:
X_SC_TIMER_MAX = 52 // unistd.h:266:1:
X_SC_TRACE = 97 // unistd.h:313:1:
X_SC_TRACE_EVENT_FILTER = 98 // unistd.h:314:1:
X_SC_TRACE_EVENT_NAME_MAX = 127 // unistd.h:354:1:
X_SC_TRACE_INHERIT = 99 // unistd.h:315:1:
X_SC_TRACE_LOG = 100 // unistd.h:316:1:
X_SC_TRACE_NAME_MAX = 128 // unistd.h:355:1:
X_SC_TRACE_SYS_MAX = 129 // unistd.h:356:1:
X_SC_TRACE_USER_EVENT_MAX = 130 // unistd.h:357:1:
X_SC_TTY_NAME_MAX = 101 // unistd.h:317:1:
X_SC_TYPED_MEMORY_OBJECTS = 102 // unistd.h:318:1:
X_SC_TZNAME_MAX = 27 // unistd.h:239:1:
X_SC_V6_ILP32_OFF32 = 103 // unistd.h:319:1:
X_SC_V6_ILP32_OFFBIG = 104 // unistd.h:320:1:
X_SC_V6_LP64_OFF64 = 105 // unistd.h:321:1:
X_SC_V6_LPBIG_OFFBIG = 106 // unistd.h:322:1:
X_SC_VERSION = 8 // unistd.h:220:1:
X_SC_XBS5_ILP32_OFF32 = 122 // unistd.h:346:1:
X_SC_XBS5_ILP32_OFFBIG = 123 // unistd.h:347:1:
X_SC_XBS5_LP64_OFF64 = 124 // unistd.h:348:1:
X_SC_XBS5_LPBIG_OFFBIG = 125 // unistd.h:349:1:
X_SC_XOPEN_CRYPT = 108 // unistd.h:332:1:
X_SC_XOPEN_ENH_I18N = 109 // unistd.h:333:1:
X_SC_XOPEN_LEGACY = 110 // unistd.h:334:1:
X_SC_XOPEN_REALTIME = 111 // unistd.h:335:1:
X_SC_XOPEN_REALTIME_THREADS = 112 // unistd.h:336:1:
X_SC_XOPEN_SHM = 113 // unistd.h:337:1:
X_SC_XOPEN_STREAMS = 114 // unistd.h:338:1:
X_SC_XOPEN_UNIX = 115 // unistd.h:339:1:
X_SC_XOPEN_VERSION = 116 // unistd.h:340:1:
X_SC_XOPEN_XCU_VERSION = 121 // unistd.h:341:1:
X_SIGSET_T = 0 // _sigset_t.h:29:1:
X_SIZE_T = 0 // _size_t.h:29:1:
X_SSIZE_T = 0 // _ssize_t.h:29:1:
X_SUSECONDS_T = 0 // _suseconds_t.h:29:1:
X_SYS_SELECT_H_ = 0 // select.h:64:1:
X_SYS_UNISTD_H_ = 0 // unistd.h:65:1:
X_SYS__PTHREAD_TYPES_H_ = 0 // _pthread_types.h:30:1:
X_SYS__SELECT_H_ = 0 // _select.h:37:1:
X_SYS__TYPES_H_ = 0 // _types.h:30:1:
X_TIME_T = 0 // _time_t.h:29:1:
X_UID_T = 0 // _uid_t.h:29:1:
X_UINT32_T = 0 // _uint32_t.h:30:1:
X_UINT64_T = 0 // _uint64_t.h:30:1:
X_UINTPTR_T = 0 // _uintptr_t.h:29:1:
X_UNISTD_H_ = 0 // unistd.h:69:1:
X_USECONDS_T = 0 // _useconds_t.h:29:1:
X_UUID_T = 0 // _uuid_t.h:29:1:
X_U_INT16_T = 0 // _u_int16_t.h:29:1:
X_U_INT32_T = 0 // _u_int32_t.h:29:1:
X_U_INT64_T = 0 // _u_int64_t.h:29:1:
X_U_INT8_T = 0 // _u_int8_t.h:29:1:
X_V6_ILP32_OFF32 = -1 // unistd.h:187:1:
X_V6_ILP32_OFFBIG = -1 // unistd.h:188:1:
X_V6_LP64_OFF64 = 1 // unistd.h:189:1:
X_V6_LPBIG_OFFBIG = 1 // unistd.h:190:1:
X_WATTR_OK = 65536 // unistd.h:107:1:
X_WEXT_OK = 262144 // unistd.h:109:1:
X_WPERM_OK = 1048576 // unistd.h:111:1:
X_WRITE_OK = 1024 // unistd.h:101:1:
X_XBS5_ILP32_OFF32 = -1 // unistd.h:195:1:
X_XBS5_ILP32_OFFBIG = -1 // unistd.h:196:1:
X_XBS5_LP64_OFF64 = 1 // unistd.h:197:1:
X_XBS5_LPBIG_OFFBIG = 1 // unistd.h:198:1:
X_XOPEN_CRYPT = 1 // unistd.h:202:1:
X_XOPEN_ENH_I18N = 1 // unistd.h:203:1:
X_XOPEN_LEGACY = -1 // unistd.h:204:1:
X_XOPEN_REALTIME = -1 // unistd.h:205:1:
X_XOPEN_REALTIME_THREADS = -1 // unistd.h:206:1:
X_XOPEN_SHM = 1 // unistd.h:207:1:
X_XOPEN_STREAMS = -1 // unistd.h:208:1:
X_XOPEN_UNIX = 1 // unistd.h:209:1:
X_XOPEN_VERSION = 600 // unistd.h:93:1:
X_XOPEN_XCU_VERSION = 4 // unistd.h:94:1:
)
type Ptrdiff_t = int64 /* <builtin>:3:26 */
type Size_t = uint64 /* <builtin>:9:23 */
type Wchar_t = int32 /* <builtin>:15:24 */
type X__int128_t = struct {
Flo int64
Fhi int64
} /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
type X__uint128_t = struct {
Flo uint64
Fhi uint64
} /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
type X__float128 = float64 /* <builtin>:47:21 */
var X__darwin_check_fd_set_overflow uintptr /* <builtin>:146:5: */
// Copyright (c) 2000, 2002-2006, 2008-2010, 2012 Apple Inc. All rights reserved.
//
// @APPLE_LICENSE_HEADER_START@
//
// This file contains Original Code and/or Modifications of Original Code
// as defined in and that are subject to the Apple Public Source License
// Version 2.0 (the 'License'). You may not use this file except in
// compliance with the License. Please obtain a copy of the License at
// http://www.opensource.apple.com/apsl/ and read it before using this
// file.
//
// The Original Code and all software distributed under the License are
// distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
// EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
// INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
// Please see the License for the specific language governing rights and
// limitations under the License.
//
// @APPLE_LICENSE_HEADER_END@
// -
// Copyright (c) 1998-1999 Apple Computer, Inc. All Rights Reserved
// Copyright (c) 1991, 1993, 1994
// The Regents of the University of California. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. All advertising materials mentioning features or use of this software
// must display the following acknowledgement:
// This product includes software developed by the University of
// California, Berkeley and its contributors.
// 4. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// @(#)unistd.h 8.12 (Berkeley) 4/27/95
//
// Copyright (c) 1998 Apple Compter, Inc.
// All Rights Reserved
// History:
// 7/14/99 EKN at Apple fixed getdirentriesattr from getdirentryattr
// 3/26/98 CHW at Apple added real interface to searchfs call
// 3/5/98 CHW at Apple added hfs semantic system calls headers
// Copyright (c) 2004, 2008, 2009 Apple Inc. All rights reserved.
//
// @APPLE_LICENSE_HEADER_START@
//
// This file contains Original Code and/or Modifications of Original Code
// as defined in and that are subject to the Apple Public Source License
// Version 2.0 (the 'License'). You may not use this file except in
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | true |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/unistd/capi_linux_arm64.go | vendor/modernc.org/libc/unistd/capi_linux_arm64.go | // 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 -o unistd/unistd_linux_arm64.go -pkgname unistd', DO NOT EDIT.
package unistd
var CAPI = map[string]struct{}{}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/unistd/unistd_darwin_amd64.go | vendor/modernc.org/libc/unistd/unistd_darwin_amd64.go | // 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_darwin_amd64.go -pkgname unistd', DO NOT EDIT.
package unistd
import (
"math"
"reflect"
"sync/atomic"
"unsafe"
)
var _ = math.Pi
var _ reflect.Kind
var _ atomic.Value
var _ unsafe.Pointer
const (
ACCESSX_MAX_DESCRIPTORS = 100 // unistd.h:137:1:
ACCESSX_MAX_TABLESIZE = 16384 // unistd.h:138:1:
FD_SETSIZE = 1024 // _fd_setsize.h:29:1:
F_LOCK = 1 // unistd.h:528:1:
F_OK = 0 // unistd.h:89:1:
F_TEST = 3 // unistd.h:530:1:
F_TLOCK = 2 // unistd.h:529:1:
F_ULOCK = 0 // unistd.h:527:1:
L_INCR = 1 // unistd.h:127:1:
L_SET = 0 // unistd.h:126:1:
L_XTND = 2 // unistd.h:128:1:
R_OK = 4 // unistd.h:92:1:
SEEK_CUR = 1 // _seek_set.h:34:1:
SEEK_DATA = 4 // _seek_set.h:44:1:
SEEK_END = 2 // _seek_set.h:35:1:
SEEK_HOLE = 3 // _seek_set.h:40:1:
SEEK_SET = 0 // _seek_set.h:33:1:
STDERR_FILENO = 2 // unistd.h:88:1:
STDIN_FILENO = 0 // unistd.h:86:1:
STDOUT_FILENO = 1 // unistd.h:87:1:
SYNC_VOLUME_FULLSYNC = 0x01 // unistd.h:776:1:
SYNC_VOLUME_WAIT = 0x02 // unistd.h:777:1:
W_OK = 2 // unistd.h:91:1:
X_OK = 1 // unistd.h:90:1:
X_ACCESS_EXTENDED_MASK = 4193792 // unistd.h:114:1:
X_APPEND_OK = 8192 // unistd.h:104:1:
X_BSD_I386__TYPES_H_ = 0 // _types.h:29:1:
X_BSD_MACHINE_TYPES_H_ = 0 // types.h:32:1:
X_BSD_MACHINE__TYPES_H_ = 0 // _types.h:29:1:
X_CDEFS_H_ = 0 // cdefs.h:68:1:
X_CHOWN_OK = 2097152 // unistd.h:112:1:
X_CS_DARWIN_USER_CACHE_DIR = 65538 // unistd.h:415:1:
X_CS_DARWIN_USER_DIR = 65536 // unistd.h:413:1:
X_CS_DARWIN_USER_TEMP_DIR = 65537 // unistd.h:414:1:
X_CS_PATH = 1 // unistd.h:175:1:
X_CS_POSIX_V6_ILP32_OFF32_CFLAGS = 2 // unistd.h:377:1:
X_CS_POSIX_V6_ILP32_OFF32_LDFLAGS = 3 // unistd.h:378:1:
X_CS_POSIX_V6_ILP32_OFF32_LIBS = 4 // unistd.h:379:1:
X_CS_POSIX_V6_ILP32_OFFBIG_CFLAGS = 5 // unistd.h:380:1:
X_CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS = 6 // unistd.h:381:1:
X_CS_POSIX_V6_ILP32_OFFBIG_LIBS = 7 // unistd.h:382:1:
X_CS_POSIX_V6_LP64_OFF64_CFLAGS = 8 // unistd.h:383:1:
X_CS_POSIX_V6_LP64_OFF64_LDFLAGS = 9 // unistd.h:384:1:
X_CS_POSIX_V6_LP64_OFF64_LIBS = 10 // unistd.h:385:1:
X_CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS = 11 // unistd.h:386:1:
X_CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS = 12 // unistd.h:387:1:
X_CS_POSIX_V6_LPBIG_OFFBIG_LIBS = 13 // unistd.h:388:1:
X_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS = 14 // unistd.h:389:1:
X_CS_XBS5_ILP32_OFF32_CFLAGS = 20 // unistd.h:394:1:
X_CS_XBS5_ILP32_OFF32_LDFLAGS = 21 // unistd.h:395:1:
X_CS_XBS5_ILP32_OFF32_LIBS = 22 // unistd.h:396:1:
X_CS_XBS5_ILP32_OFF32_LINTFLAGS = 23 // unistd.h:397:1:
X_CS_XBS5_ILP32_OFFBIG_CFLAGS = 24 // unistd.h:398:1:
X_CS_XBS5_ILP32_OFFBIG_LDFLAGS = 25 // unistd.h:399:1:
X_CS_XBS5_ILP32_OFFBIG_LIBS = 26 // unistd.h:400:1:
X_CS_XBS5_ILP32_OFFBIG_LINTFLAGS = 27 // unistd.h:401:1:
X_CS_XBS5_LP64_OFF64_CFLAGS = 28 // unistd.h:402:1:
X_CS_XBS5_LP64_OFF64_LDFLAGS = 29 // unistd.h:403:1:
X_CS_XBS5_LP64_OFF64_LIBS = 30 // unistd.h:404:1:
X_CS_XBS5_LP64_OFF64_LINTFLAGS = 31 // unistd.h:405:1:
X_CS_XBS5_LPBIG_OFFBIG_CFLAGS = 32 // unistd.h:406:1:
X_CS_XBS5_LPBIG_OFFBIG_LDFLAGS = 33 // unistd.h:407:1:
X_CS_XBS5_LPBIG_OFFBIG_LIBS = 34 // unistd.h:408:1:
X_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS = 35 // unistd.h:409:1:
X_CTERMID_H_ = 0 // _ctermid.h:25:1:
X_DARWIN_FEATURE_64_BIT_INODE = 1 // cdefs.h:745:1:
X_DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE = 1 // cdefs.h:771:1:
X_DARWIN_FEATURE_UNIX_CONFORMANCE = 3 // cdefs.h:779:1:
X_DELETE_OK = 4096 // unistd.h:103:1:
X_DEV_T = 0 // _dev_t.h:29:1:
X_EXECUTE_OK = 2048 // unistd.h:102:1:
X_FD_SET = 0 // _fd_def.h:29:1:
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_FORTIFY_SOURCE = 2 // _types.h:65:1:
X_GID_T = 0 // _gid_t.h:29:1:
X_INT16_T = 0 // _int16_t.h:29:1:
X_INT32_T = 0 // _int32_t.h:29:1:
X_INT64_T = 0 // _int64_t.h:29:1:
X_INT8_T = 0 // _int8_t.h:29:1:
X_INTPTR_T = 0 // _intptr_t.h:29:1:
X_LP64 = 1 // <predefined>:1:1:
X_MACHTYPES_H_ = 0 // types.h:67:1:
X_MODE_T = 0 // _mode_t.h:29:1:
X_Nonnull = 0 // cdefs.h:243:1:
X_Null_unspecified = 0 // cdefs.h:246:1:
X_Nullable = 0 // cdefs.h:240:1:
X_OFF_T = 0 // _off_t.h:29:1:
X_PC_2_SYMLINKS = 15 // unistd.h:160:1:
X_PC_ALLOC_SIZE_MIN = 16 // unistd.h:161:1:
X_PC_ASYNC_IO = 17 // unistd.h:162:1:
X_PC_AUTH_OPAQUE_NP = 14 // unistd.h:157:1:
X_PC_CASE_PRESERVING = 12 // unistd.h:155:1:
X_PC_CASE_SENSITIVE = 11 // unistd.h:154:1:
X_PC_CHOWN_RESTRICTED = 7 // unistd.h:148:1:
X_PC_EXTENDED_SECURITY_NP = 13 // unistd.h:156:1:
X_PC_FILESIZEBITS = 18 // unistd.h:163:1:
X_PC_LINK_MAX = 1 // unistd.h:142:1:
X_PC_MAX_CANON = 2 // unistd.h:143:1:
X_PC_MAX_INPUT = 3 // unistd.h:144:1:
X_PC_MIN_HOLE_SIZE = 27 // unistd.h:172:1:
X_PC_NAME_CHARS_MAX = 10 // unistd.h:153:1:
X_PC_NAME_MAX = 4 // unistd.h:145:1:
X_PC_NO_TRUNC = 8 // unistd.h:149:1:
X_PC_PATH_MAX = 5 // unistd.h:146:1:
X_PC_PIPE_BUF = 6 // unistd.h:147:1:
X_PC_PRIO_IO = 19 // unistd.h:164:1:
X_PC_REC_INCR_XFER_SIZE = 20 // unistd.h:165:1:
X_PC_REC_MAX_XFER_SIZE = 21 // unistd.h:166:1:
X_PC_REC_MIN_XFER_SIZE = 22 // unistd.h:167:1:
X_PC_REC_XFER_ALIGN = 23 // unistd.h:168:1:
X_PC_SYMLINK_MAX = 24 // unistd.h:169:1:
X_PC_SYNC_IO = 25 // unistd.h:170:1:
X_PC_VDISABLE = 9 // unistd.h:150:1:
X_PC_XATTR_SIZE_BITS = 26 // unistd.h:171:1:
X_PID_T = 0 // _pid_t.h:29:1:
X_POSIX2_CHAR_TERM = 200112 // unistd.h:152:1:
X_POSIX2_C_BIND = 200112 // unistd.h:150:1:
X_POSIX2_C_DEV = 200112 // unistd.h:151:1:
X_POSIX2_FORT_DEV = -1 // unistd.h:153:1:
X_POSIX2_FORT_RUN = 200112 // unistd.h:154:1:
X_POSIX2_LOCALEDEF = 200112 // unistd.h:155:1:
X_POSIX2_PBS = -1 // unistd.h:156:1:
X_POSIX2_PBS_ACCOUNTING = -1 // unistd.h:157:1:
X_POSIX2_PBS_CHECKPOINT = -1 // unistd.h:158:1:
X_POSIX2_PBS_LOCATE = -1 // unistd.h:159:1:
X_POSIX2_PBS_MESSAGE = -1 // unistd.h:160:1:
X_POSIX2_PBS_TRACK = -1 // unistd.h:161:1:
X_POSIX2_SW_DEV = 200112 // unistd.h:162:1:
X_POSIX2_UPE = 200112 // unistd.h:163:1:
X_POSIX2_VERSION = 200112 // unistd.h:80:1:
X_POSIX_ADVISORY_INFO = -1 // unistd.h:98:1:
X_POSIX_ASYNCHRONOUS_IO = -1 // unistd.h:99:1:
X_POSIX_BARRIERS = -1 // unistd.h:100:1:
X_POSIX_CHOWN_RESTRICTED = 200112 // unistd.h:101:1:
X_POSIX_CLOCK_SELECTION = -1 // unistd.h:102:1:
X_POSIX_CPUTIME = -1 // unistd.h:103:1:
X_POSIX_FSYNC = 200112 // unistd.h:104:1:
X_POSIX_IPV6 = 200112 // unistd.h:105:1:
X_POSIX_JOB_CONTROL = 200112 // unistd.h:106:1:
X_POSIX_MAPPED_FILES = 200112 // unistd.h:107:1:
X_POSIX_MEMLOCK = -1 // unistd.h:108:1:
X_POSIX_MEMLOCK_RANGE = -1 // unistd.h:109:1:
X_POSIX_MEMORY_PROTECTION = 200112 // unistd.h:110:1:
X_POSIX_MESSAGE_PASSING = -1 // unistd.h:111:1:
X_POSIX_MONOTONIC_CLOCK = -1 // unistd.h:112:1:
X_POSIX_NO_TRUNC = 200112 // unistd.h:113:1:
X_POSIX_PRIORITIZED_IO = -1 // unistd.h:114:1:
X_POSIX_PRIORITY_SCHEDULING = -1 // unistd.h:115:1:
X_POSIX_RAW_SOCKETS = -1 // unistd.h:116:1:
X_POSIX_READER_WRITER_LOCKS = 200112 // unistd.h:117:1:
X_POSIX_REALTIME_SIGNALS = -1 // unistd.h:118:1:
X_POSIX_REGEXP = 200112 // unistd.h:119:1:
X_POSIX_SAVED_IDS = 200112 // unistd.h:120:1:
X_POSIX_SEMAPHORES = -1 // unistd.h:121:1:
X_POSIX_SHARED_MEMORY_OBJECTS = -1 // unistd.h:122:1:
X_POSIX_SHELL = 200112 // unistd.h:123:1:
X_POSIX_SPAWN = -1 // unistd.h:124:1:
X_POSIX_SPIN_LOCKS = -1 // unistd.h:125:1:
X_POSIX_SPORADIC_SERVER = -1 // unistd.h:126:1:
X_POSIX_SYNCHRONIZED_IO = -1 // unistd.h:127:1:
X_POSIX_THREADS = 200112 // unistd.h:137:1:
X_POSIX_THREAD_ATTR_STACKADDR = 200112 // unistd.h:128:1:
X_POSIX_THREAD_ATTR_STACKSIZE = 200112 // unistd.h:129:1:
X_POSIX_THREAD_CPUTIME = -1 // unistd.h:130:1:
X_POSIX_THREAD_KEYS_MAX = 128 // unistd.h:86:1:
X_POSIX_THREAD_PRIORITY_SCHEDULING = -1 // unistd.h:133:1:
X_POSIX_THREAD_PRIO_INHERIT = -1 // unistd.h:131:1:
X_POSIX_THREAD_PRIO_PROTECT = -1 // unistd.h:132:1:
X_POSIX_THREAD_PROCESS_SHARED = 200112 // unistd.h:134:1:
X_POSIX_THREAD_SAFE_FUNCTIONS = 200112 // unistd.h:135:1:
X_POSIX_THREAD_SPORADIC_SERVER = -1 // unistd.h:136:1:
X_POSIX_TIMEOUTS = -1 // unistd.h:138:1:
X_POSIX_TIMERS = -1 // unistd.h:139:1:
X_POSIX_TRACE = -1 // unistd.h:140:1:
X_POSIX_TRACE_EVENT_FILTER = -1 // unistd.h:141:1:
X_POSIX_TRACE_INHERIT = -1 // unistd.h:142:1:
X_POSIX_TRACE_LOG = -1 // unistd.h:143:1:
X_POSIX_TYPED_MEMORY_OBJECTS = -1 // unistd.h:144:1:
X_POSIX_V6_ILP32_OFF32 = -1 // unistd.h:173:1:
X_POSIX_V6_ILP32_OFFBIG = -1 // unistd.h:174:1:
X_POSIX_V6_LP64_OFF64 = 1 // unistd.h:175:1:
X_POSIX_V6_LPBIG_OFFBIG = 1 // unistd.h:176:1:
X_POSIX_V7_ILP32_OFF32 = -1 // unistd.h:180:1:
X_POSIX_V7_ILP32_OFFBIG = -1 // unistd.h:181:1:
X_POSIX_V7_LP64_OFF64 = 1 // unistd.h:182:1:
X_POSIX_V7_LPBIG_OFFBIG = 1 // unistd.h:183:1:
X_POSIX_VERSION = 200112 // unistd.h:79:1:
X_RATTR_OK = 32768 // unistd.h:106:1:
X_READ_OK = 512 // unistd.h:100:1:
X_REXT_OK = 131072 // unistd.h:108:1:
X_RMFILE_OK = 16384 // unistd.h:105:1:
X_RPERM_OK = 524288 // unistd.h:110:1:
X_SC_2_CHAR_TERM = 20 // unistd.h:232:1:
X_SC_2_C_BIND = 18 // unistd.h:230:1:
X_SC_2_C_DEV = 19 // unistd.h:231:1:
X_SC_2_FORT_DEV = 21 // unistd.h:233:1:
X_SC_2_FORT_RUN = 22 // unistd.h:234:1:
X_SC_2_LOCALEDEF = 23 // unistd.h:235:1:
X_SC_2_PBS = 59 // unistd.h:275:1:
X_SC_2_PBS_ACCOUNTING = 60 // unistd.h:276:1:
X_SC_2_PBS_CHECKPOINT = 61 // unistd.h:277:1:
X_SC_2_PBS_LOCATE = 62 // unistd.h:278:1:
X_SC_2_PBS_MESSAGE = 63 // unistd.h:279:1:
X_SC_2_PBS_TRACK = 64 // unistd.h:280:1:
X_SC_2_SW_DEV = 24 // unistd.h:236:1:
X_SC_2_UPE = 25 // unistd.h:237:1:
X_SC_2_VERSION = 17 // unistd.h:229:1:
X_SC_ADVISORY_INFO = 65 // unistd.h:281:1:
X_SC_AIO_LISTIO_MAX = 42 // unistd.h:256:1:
X_SC_AIO_MAX = 43 // unistd.h:257:1:
X_SC_AIO_PRIO_DELTA_MAX = 44 // unistd.h:258:1:
X_SC_ARG_MAX = 1 // unistd.h:213:1:
X_SC_ASYNCHRONOUS_IO = 28 // unistd.h:242:1:
X_SC_ATEXIT_MAX = 107 // unistd.h:329:1:
X_SC_BARRIERS = 66 // unistd.h:282:1:
X_SC_BC_BASE_MAX = 9 // unistd.h:221:1:
X_SC_BC_DIM_MAX = 10 // unistd.h:222:1:
X_SC_BC_SCALE_MAX = 11 // unistd.h:223:1:
X_SC_BC_STRING_MAX = 12 // unistd.h:224:1:
X_SC_CHILD_MAX = 2 // unistd.h:214:1:
X_SC_CLK_TCK = 3 // unistd.h:215:1:
X_SC_CLOCK_SELECTION = 67 // unistd.h:283:1:
X_SC_COLL_WEIGHTS_MAX = 13 // unistd.h:225:1:
X_SC_CPUTIME = 68 // unistd.h:284:1:
X_SC_DELAYTIMER_MAX = 45 // unistd.h:259:1:
X_SC_EXPR_NEST_MAX = 14 // unistd.h:226:1:
X_SC_FILE_LOCKING = 69 // unistd.h:285:1:
X_SC_FSYNC = 38 // unistd.h:252:1:
X_SC_GETGR_R_SIZE_MAX = 70 // unistd.h:286:1:
X_SC_GETPW_R_SIZE_MAX = 71 // unistd.h:287:1:
X_SC_HOST_NAME_MAX = 72 // unistd.h:288:1:
X_SC_IOV_MAX = 56 // unistd.h:330:1:
X_SC_IPV6 = 118 // unistd.h:323:1:
X_SC_JOB_CONTROL = 6 // unistd.h:218:1:
X_SC_LINE_MAX = 15 // unistd.h:227:1:
X_SC_LOGIN_NAME_MAX = 73 // unistd.h:289:1:
X_SC_MAPPED_FILES = 47 // unistd.h:261:1:
X_SC_MEMLOCK = 30 // unistd.h:244:1:
X_SC_MEMLOCK_RANGE = 31 // unistd.h:245:1:
X_SC_MEMORY_PROTECTION = 32 // unistd.h:246:1:
X_SC_MESSAGE_PASSING = 33 // unistd.h:247:1:
X_SC_MONOTONIC_CLOCK = 74 // unistd.h:290:1:
X_SC_MQ_OPEN_MAX = 46 // unistd.h:260:1:
X_SC_MQ_PRIO_MAX = 75 // unistd.h:291:1:
X_SC_NGROUPS_MAX = 4 // unistd.h:216:1:
X_SC_NPROCESSORS_CONF = 57 // unistd.h:270:1:
X_SC_NPROCESSORS_ONLN = 58 // unistd.h:271:1:
X_SC_OPEN_MAX = 5 // unistd.h:217:1:
X_SC_PAGESIZE = 29 // unistd.h:243:1:
X_SC_PAGE_SIZE = 29 // unistd.h:331:1:
X_SC_PASS_MAX = 131 // unistd.h:362:1:
X_SC_PHYS_PAGES = 200 // unistd.h:367:1:
X_SC_PRIORITIZED_IO = 34 // unistd.h:248:1:
X_SC_PRIORITY_SCHEDULING = 35 // unistd.h:249:1:
X_SC_RAW_SOCKETS = 119 // unistd.h:324:1:
X_SC_READER_WRITER_LOCKS = 76 // unistd.h:292:1:
X_SC_REALTIME_SIGNALS = 36 // unistd.h:250:1:
X_SC_REGEXP = 77 // unistd.h:293:1:
X_SC_RE_DUP_MAX = 16 // unistd.h:228:1:
X_SC_RTSIG_MAX = 48 // unistd.h:262:1:
X_SC_SAVED_IDS = 7 // unistd.h:219:1:
X_SC_SEMAPHORES = 37 // unistd.h:251:1:
X_SC_SEM_NSEMS_MAX = 49 // unistd.h:263:1:
X_SC_SEM_VALUE_MAX = 50 // unistd.h:264:1:
X_SC_SHARED_MEMORY_OBJECTS = 39 // unistd.h:253:1:
X_SC_SHELL = 78 // unistd.h:294:1:
X_SC_SIGQUEUE_MAX = 51 // unistd.h:265:1:
X_SC_SPAWN = 79 // unistd.h:295:1:
X_SC_SPIN_LOCKS = 80 // unistd.h:296:1:
X_SC_SPORADIC_SERVER = 81 // unistd.h:297:1:
X_SC_SS_REPL_MAX = 126 // unistd.h:353:1:
X_SC_STREAM_MAX = 26 // unistd.h:238:1:
X_SC_SYMLOOP_MAX = 120 // unistd.h:325:1:
X_SC_SYNCHRONIZED_IO = 40 // unistd.h:254:1:
X_SC_THREADS = 96 // unistd.h:312:1:
X_SC_THREAD_ATTR_STACKADDR = 82 // unistd.h:298:1:
X_SC_THREAD_ATTR_STACKSIZE = 83 // unistd.h:299:1:
X_SC_THREAD_CPUTIME = 84 // unistd.h:300:1:
X_SC_THREAD_DESTRUCTOR_ITERATIONS = 85 // unistd.h:301:1:
X_SC_THREAD_KEYS_MAX = 86 // unistd.h:302:1:
X_SC_THREAD_PRIORITY_SCHEDULING = 89 // unistd.h:305:1:
X_SC_THREAD_PRIO_INHERIT = 87 // unistd.h:303:1:
X_SC_THREAD_PRIO_PROTECT = 88 // unistd.h:304:1:
X_SC_THREAD_PROCESS_SHARED = 90 // unistd.h:306:1:
X_SC_THREAD_SAFE_FUNCTIONS = 91 // unistd.h:307:1:
X_SC_THREAD_SPORADIC_SERVER = 92 // unistd.h:308:1:
X_SC_THREAD_STACK_MIN = 93 // unistd.h:309:1:
X_SC_THREAD_THREADS_MAX = 94 // unistd.h:310:1:
X_SC_TIMEOUTS = 95 // unistd.h:311:1:
X_SC_TIMERS = 41 // unistd.h:255:1:
X_SC_TIMER_MAX = 52 // unistd.h:266:1:
X_SC_TRACE = 97 // unistd.h:313:1:
X_SC_TRACE_EVENT_FILTER = 98 // unistd.h:314:1:
X_SC_TRACE_EVENT_NAME_MAX = 127 // unistd.h:354:1:
X_SC_TRACE_INHERIT = 99 // unistd.h:315:1:
X_SC_TRACE_LOG = 100 // unistd.h:316:1:
X_SC_TRACE_NAME_MAX = 128 // unistd.h:355:1:
X_SC_TRACE_SYS_MAX = 129 // unistd.h:356:1:
X_SC_TRACE_USER_EVENT_MAX = 130 // unistd.h:357:1:
X_SC_TTY_NAME_MAX = 101 // unistd.h:317:1:
X_SC_TYPED_MEMORY_OBJECTS = 102 // unistd.h:318:1:
X_SC_TZNAME_MAX = 27 // unistd.h:239:1:
X_SC_V6_ILP32_OFF32 = 103 // unistd.h:319:1:
X_SC_V6_ILP32_OFFBIG = 104 // unistd.h:320:1:
X_SC_V6_LP64_OFF64 = 105 // unistd.h:321:1:
X_SC_V6_LPBIG_OFFBIG = 106 // unistd.h:322:1:
X_SC_VERSION = 8 // unistd.h:220:1:
X_SC_XBS5_ILP32_OFF32 = 122 // unistd.h:346:1:
X_SC_XBS5_ILP32_OFFBIG = 123 // unistd.h:347:1:
X_SC_XBS5_LP64_OFF64 = 124 // unistd.h:348:1:
X_SC_XBS5_LPBIG_OFFBIG = 125 // unistd.h:349:1:
X_SC_XOPEN_CRYPT = 108 // unistd.h:332:1:
X_SC_XOPEN_ENH_I18N = 109 // unistd.h:333:1:
X_SC_XOPEN_LEGACY = 110 // unistd.h:334:1:
X_SC_XOPEN_REALTIME = 111 // unistd.h:335:1:
X_SC_XOPEN_REALTIME_THREADS = 112 // unistd.h:336:1:
X_SC_XOPEN_SHM = 113 // unistd.h:337:1:
X_SC_XOPEN_STREAMS = 114 // unistd.h:338:1:
X_SC_XOPEN_UNIX = 115 // unistd.h:339:1:
X_SC_XOPEN_VERSION = 116 // unistd.h:340:1:
X_SC_XOPEN_XCU_VERSION = 121 // unistd.h:341:1:
X_SIGSET_T = 0 // _sigset_t.h:29:1:
X_SIZE_T = 0 // _size_t.h:29:1:
X_SSIZE_T = 0 // _ssize_t.h:29:1:
X_SUSECONDS_T = 0 // _suseconds_t.h:29:1:
X_SYS_SELECT_H_ = 0 // select.h:64:1:
X_SYS_UNISTD_H_ = 0 // unistd.h:65:1:
X_SYS__PTHREAD_TYPES_H_ = 0 // _pthread_types.h:30:1:
X_SYS__SELECT_H_ = 0 // _select.h:37:1:
X_SYS__TYPES_H_ = 0 // _types.h:30:1:
X_TIME_T = 0 // _time_t.h:29:1:
X_UID_T = 0 // _uid_t.h:29:1:
X_UINT32_T = 0 // _uint32_t.h:30:1:
X_UINT64_T = 0 // _uint64_t.h:30:1:
X_UINTPTR_T = 0 // _uintptr_t.h:29:1:
X_UNISTD_H_ = 0 // unistd.h:69:1:
X_USECONDS_T = 0 // _useconds_t.h:29:1:
X_UUID_T = 0 // _uuid_t.h:29:1:
X_U_INT16_T = 0 // _u_int16_t.h:29:1:
X_U_INT32_T = 0 // _u_int32_t.h:29:1:
X_U_INT64_T = 0 // _u_int64_t.h:29:1:
X_U_INT8_T = 0 // _u_int8_t.h:29:1:
X_V6_ILP32_OFF32 = -1 // unistd.h:187:1:
X_V6_ILP32_OFFBIG = -1 // unistd.h:188:1:
X_V6_LP64_OFF64 = 1 // unistd.h:189:1:
X_V6_LPBIG_OFFBIG = 1 // unistd.h:190:1:
X_WATTR_OK = 65536 // unistd.h:107:1:
X_WEXT_OK = 262144 // unistd.h:109:1:
X_WPERM_OK = 1048576 // unistd.h:111:1:
X_WRITE_OK = 1024 // unistd.h:101:1:
X_XBS5_ILP32_OFF32 = -1 // unistd.h:195:1:
X_XBS5_ILP32_OFFBIG = -1 // unistd.h:196:1:
X_XBS5_LP64_OFF64 = 1 // unistd.h:197:1:
X_XBS5_LPBIG_OFFBIG = 1 // unistd.h:198:1:
X_XOPEN_CRYPT = 1 // unistd.h:202:1:
X_XOPEN_ENH_I18N = 1 // unistd.h:203:1:
X_XOPEN_LEGACY = -1 // unistd.h:204:1:
X_XOPEN_REALTIME = -1 // unistd.h:205:1:
X_XOPEN_REALTIME_THREADS = -1 // unistd.h:206:1:
X_XOPEN_SHM = 1 // unistd.h:207:1:
X_XOPEN_STREAMS = -1 // unistd.h:208:1:
X_XOPEN_UNIX = 1 // unistd.h:209:1:
X_XOPEN_VERSION = 600 // unistd.h:93:1:
X_XOPEN_XCU_VERSION = 4 // unistd.h:94:1:
)
type Ptrdiff_t = int64 /* <builtin>:3:26 */
type Size_t = uint64 /* <builtin>:9:23 */
type Wchar_t = int32 /* <builtin>:15:24 */
type X__int128_t = struct {
Flo int64
Fhi int64
} /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
type X__uint128_t = struct {
Flo uint64
Fhi uint64
} /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
type X__float128 = float64 /* <builtin>:47:21 */
var X__darwin_check_fd_set_overflow uintptr /* <builtin>:146:5: */
// Copyright (c) 2000, 2002-2006, 2008-2010, 2012 Apple Inc. All rights reserved.
//
// @APPLE_LICENSE_HEADER_START@
//
// This file contains Original Code and/or Modifications of Original Code
// as defined in and that are subject to the Apple Public Source License
// Version 2.0 (the 'License'). You may not use this file except in
// compliance with the License. Please obtain a copy of the License at
// http://www.opensource.apple.com/apsl/ and read it before using this
// file.
//
// The Original Code and all software distributed under the License are
// distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
// EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
// INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
// Please see the License for the specific language governing rights and
// limitations under the License.
//
// @APPLE_LICENSE_HEADER_END@
// -
// Copyright (c) 1998-1999 Apple Computer, Inc. All Rights Reserved
// Copyright (c) 1991, 1993, 1994
// The Regents of the University of California. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. All advertising materials mentioning features or use of this software
// must display the following acknowledgement:
// This product includes software developed by the University of
// California, Berkeley and its contributors.
// 4. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// @(#)unistd.h 8.12 (Berkeley) 4/27/95
//
// Copyright (c) 1998 Apple Compter, Inc.
// All Rights Reserved
// History:
// 7/14/99 EKN at Apple fixed getdirentriesattr from getdirentryattr
// 3/26/98 CHW at Apple added real interface to searchfs call
// 3/5/98 CHW at Apple added hfs semantic system calls headers
// Copyright (c) 2004, 2008, 2009 Apple Inc. All rights reserved.
//
// @APPLE_LICENSE_HEADER_START@
//
// This file contains Original Code and/or Modifications of Original Code
// as defined in and that are subject to the Apple Public Source License
// Version 2.0 (the 'License'). You may not use this file except in
// compliance with the License. Please obtain a copy of the License at
// http://www.opensource.apple.com/apsl/ and read it before using this
// file.
//
// The Original Code and all software distributed under the License are
// distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
// EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
// INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
// Please see the License for the specific language governing rights and
// limitations under the License.
//
// @APPLE_LICENSE_HEADER_END@
// Copyright (c) 2003-2007 Apple Inc. All rights reserved.
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_START@
//
// This file contains Original Code and/or Modifications of Original Code
// as defined in and that are subject to the Apple Public Source License
// Version 2.0 (the 'License'). You may not use this file except in
// compliance with the License. The rights granted to you under the License
// may not be used to create, or enable the creation or redistribution of,
// unlawful or unlicensed copies of an Apple operating system, or to
// circumvent, violate, or enable the circumvention or violation of, any
// terms of an Apple operating system software license agreement.
//
// Please obtain a copy of the License at
// http://www.opensource.apple.com/apsl/ and read it before using this file.
//
// The Original Code and all software distributed under the License are
// distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
// EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
// INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
// Please see the License for the specific language governing rights and
// limitations under the License.
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_END@
// Copyright (c) 2000-2018 Apple Inc. All rights reserved.
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_START@
//
// This file contains Original Code and/or Modifications of Original Code
// as defined in and that are subject to the Apple Public Source License
// Version 2.0 (the 'License'). You may not use this file except in
// compliance with the License. The rights granted to you under the License
// may not be used to create, or enable the creation or redistribution of,
// unlawful or unlicensed copies of an Apple operating system, or to
// circumvent, violate, or enable the circumvention or violation of, any
// terms of an Apple operating system software license agreement.
//
// Please obtain a copy of the License at
// http://www.opensource.apple.com/apsl/ and read it before using this file.
//
// The Original Code and all software distributed under the License are
// distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
// EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | true |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/unistd/unistd_linux_386.go | vendor/modernc.org/libc/unistd/unistd_linux_386.go | // 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 -o unistd/unistd_linux_386.go -pkgname unistd', DO NOT EDIT.
package unistd
import (
"math"
"reflect"
"sync/atomic"
"unsafe"
)
var _ = math.Pi
var _ reflect.Kind
var _ atomic.Value
var _ unsafe.Pointer
const (
F_LOCK = 1
F_OK = 0
F_TEST = 3
F_TLOCK = 2
F_ULOCK = 0
L_INCR = 1
L_SET = 0
L_XTND = 2
R_OK = 4
SEEK_CUR = 1
SEEK_END = 2
SEEK_SET = 0
STDERR_FILENO = 2
STDIN_FILENO = 0
STDOUT_FILENO = 1
W_OK = 2
X_OK = 1
X_ATFILE_SOURCE = 1
X_BITS_POSIX_OPT_H = 1
X_BITS_TIME64_H = 1
X_BITS_TYPESIZES_H = 1
X_BITS_TYPES_H = 1
X_BSD_SIZE_T_ = 0
X_BSD_SIZE_T_DEFINED_ = 0
X_DEFAULT_SOURCE = 1
X_FEATURES_H = 1
X_FILE_OFFSET_BITS = 64
X_GCC_SIZE_T = 0
X_GETOPT_CORE_H = 1
X_GETOPT_POSIX_H = 1
X_ILP32 = 1
X_LFS64_ASYNCHRONOUS_IO = 1
X_LFS64_LARGEFILE = 1
X_LFS64_STDIO = 1
X_LFS_ASYNCHRONOUS_IO = 1
X_LFS_LARGEFILE = 1
X_POSIX2_CHAR_TERM = 200809
X_POSIX2_C_BIND = 200809
X_POSIX2_C_DEV = 200809
X_POSIX2_C_VERSION = 200809
X_POSIX2_LOCALEDEF = 200809
X_POSIX2_SW_DEV = 200809
X_POSIX2_VERSION = 200809
X_POSIX_ADVISORY_INFO = 200809
X_POSIX_ASYNCHRONOUS_IO = 200809
X_POSIX_ASYNC_IO = 1
X_POSIX_BARRIERS = 200809
X_POSIX_CHOWN_RESTRICTED = 0
X_POSIX_CLOCK_SELECTION = 200809
X_POSIX_CPUTIME = 0
X_POSIX_C_SOURCE = 200809
X_POSIX_FSYNC = 200809
X_POSIX_IPV6 = 200809
X_POSIX_JOB_CONTROL = 1
X_POSIX_MAPPED_FILES = 200809
X_POSIX_MEMLOCK = 200809
X_POSIX_MEMLOCK_RANGE = 200809
X_POSIX_MEMORY_PROTECTION = 200809
X_POSIX_MESSAGE_PASSING = 200809
X_POSIX_MONOTONIC_CLOCK = 0
X_POSIX_NO_TRUNC = 1
X_POSIX_PRIORITIZED_IO = 200809
X_POSIX_PRIORITY_SCHEDULING = 200809
X_POSIX_RAW_SOCKETS = 200809
X_POSIX_READER_WRITER_LOCKS = 200809
X_POSIX_REALTIME_SIGNALS = 200809
X_POSIX_REENTRANT_FUNCTIONS = 1
X_POSIX_REGEXP = 1
X_POSIX_SAVED_IDS = 1
X_POSIX_SEMAPHORES = 200809
X_POSIX_SHARED_MEMORY_OBJECTS = 200809
X_POSIX_SHELL = 1
X_POSIX_SOURCE = 1
X_POSIX_SPAWN = 200809
X_POSIX_SPIN_LOCKS = 200809
X_POSIX_SPORADIC_SERVER = -1
X_POSIX_SYNCHRONIZED_IO = 200809
X_POSIX_THREADS = 200809
X_POSIX_THREAD_ATTR_STACKADDR = 200809
X_POSIX_THREAD_ATTR_STACKSIZE = 200809
X_POSIX_THREAD_CPUTIME = 0
X_POSIX_THREAD_PRIORITY_SCHEDULING = 200809
X_POSIX_THREAD_PRIO_INHERIT = 200809
X_POSIX_THREAD_PRIO_PROTECT = 200809
X_POSIX_THREAD_PROCESS_SHARED = 200809
X_POSIX_THREAD_ROBUST_PRIO_INHERIT = 200809
X_POSIX_THREAD_ROBUST_PRIO_PROTECT = -1
X_POSIX_THREAD_SAFE_FUNCTIONS = 200809
X_POSIX_THREAD_SPORADIC_SERVER = -1
X_POSIX_TIMEOUTS = 200809
X_POSIX_TIMERS = 200809
X_POSIX_TRACE = -1
X_POSIX_TRACE_EVENT_FILTER = -1
X_POSIX_TRACE_INHERIT = -1
X_POSIX_TRACE_LOG = -1
X_POSIX_TYPED_MEMORY_OBJECTS = -1
X_POSIX_V6_ILP32_OFF32 = 1
X_POSIX_V6_ILP32_OFFBIG = 1
X_POSIX_V7_ILP32_OFF32 = 1
X_POSIX_V7_ILP32_OFFBIG = 1
X_POSIX_VDISABLE = 0
X_POSIX_VERSION = 200809
X_SIZET_ = 0
X_SIZE_T = 0
X_SIZE_T_ = 0
X_SIZE_T_DECLARED = 0
X_SIZE_T_DEFINED = 0
X_SIZE_T_DEFINED_ = 0
X_STDC_PREDEF_H = 1
X_SYS_CDEFS_H = 1
X_SYS_SIZE_T_H = 0
X_T_SIZE = 0
X_T_SIZE_ = 0
X_UNISTD_H = 1
X_XBS5_ILP32_OFF32 = 1
X_XBS5_ILP32_OFFBIG = 1
X_XOPEN_ENH_I18N = 1
X_XOPEN_LEGACY = 1
X_XOPEN_REALTIME = 1
X_XOPEN_REALTIME_THREADS = 1
X_XOPEN_SHM = 1
X_XOPEN_UNIX = 1
X_XOPEN_VERSION = 700
X_XOPEN_XCU_VERSION = 4
X_XOPEN_XPG2 = 1
X_XOPEN_XPG3 = 1
X_XOPEN_XPG4 = 1
I386 = 1
Linux = 1
Unix = 1
)
// Get the `_PC_*' symbols for the NAME argument to `pathconf' and `fpathconf';
// the `_SC_*' symbols for the NAME argument to `sysconf';
// and the `_CS_*' symbols for the NAME argument to `confstr'.
// `sysconf', `pathconf', and `confstr' NAME values. Generic version.
// Copyright (C) 1993-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// Values for the NAME argument to `pathconf' and `fpathconf'.
const ( /* confname.h:24:1: */
X_PC_LINK_MAX = 0
X_PC_MAX_CANON = 1
X_PC_MAX_INPUT = 2
X_PC_NAME_MAX = 3
X_PC_PATH_MAX = 4
X_PC_PIPE_BUF = 5
X_PC_CHOWN_RESTRICTED = 6
X_PC_NO_TRUNC = 7
X_PC_VDISABLE = 8
X_PC_SYNC_IO = 9
X_PC_ASYNC_IO = 10
X_PC_PRIO_IO = 11
X_PC_SOCK_MAXBUF = 12
X_PC_FILESIZEBITS = 13
X_PC_REC_INCR_XFER_SIZE = 14
X_PC_REC_MAX_XFER_SIZE = 15
X_PC_REC_MIN_XFER_SIZE = 16
X_PC_REC_XFER_ALIGN = 17
X_PC_ALLOC_SIZE_MIN = 18
X_PC_SYMLINK_MAX = 19
X_PC_2_SYMLINKS = 20
)
// Values for the NAME argument to `confstr'.
const ( /* confname.h:533:1: */
X_CS_PATH = 0 // The default search path.
X_CS_V6_WIDTH_RESTRICTED_ENVS = 1
X_CS_GNU_LIBC_VERSION = 2
X_CS_GNU_LIBPTHREAD_VERSION = 3
X_CS_V5_WIDTH_RESTRICTED_ENVS = 4
X_CS_V7_WIDTH_RESTRICTED_ENVS = 5
X_CS_LFS_CFLAGS = 1000
X_CS_LFS_LDFLAGS = 1001
X_CS_LFS_LIBS = 1002
X_CS_LFS_LINTFLAGS = 1003
X_CS_LFS64_CFLAGS = 1004
X_CS_LFS64_LDFLAGS = 1005
X_CS_LFS64_LIBS = 1006
X_CS_LFS64_LINTFLAGS = 1007
X_CS_XBS5_ILP32_OFF32_CFLAGS = 1100
X_CS_XBS5_ILP32_OFF32_LDFLAGS = 1101
X_CS_XBS5_ILP32_OFF32_LIBS = 1102
X_CS_XBS5_ILP32_OFF32_LINTFLAGS = 1103
X_CS_XBS5_ILP32_OFFBIG_CFLAGS = 1104
X_CS_XBS5_ILP32_OFFBIG_LDFLAGS = 1105
X_CS_XBS5_ILP32_OFFBIG_LIBS = 1106
X_CS_XBS5_ILP32_OFFBIG_LINTFLAGS = 1107
X_CS_XBS5_LP64_OFF64_CFLAGS = 1108
X_CS_XBS5_LP64_OFF64_LDFLAGS = 1109
X_CS_XBS5_LP64_OFF64_LIBS = 1110
X_CS_XBS5_LP64_OFF64_LINTFLAGS = 1111
X_CS_XBS5_LPBIG_OFFBIG_CFLAGS = 1112
X_CS_XBS5_LPBIG_OFFBIG_LDFLAGS = 1113
X_CS_XBS5_LPBIG_OFFBIG_LIBS = 1114
X_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS = 1115
X_CS_POSIX_V6_ILP32_OFF32_CFLAGS = 1116
X_CS_POSIX_V6_ILP32_OFF32_LDFLAGS = 1117
X_CS_POSIX_V6_ILP32_OFF32_LIBS = 1118
X_CS_POSIX_V6_ILP32_OFF32_LINTFLAGS = 1119
X_CS_POSIX_V6_ILP32_OFFBIG_CFLAGS = 1120
X_CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS = 1121
X_CS_POSIX_V6_ILP32_OFFBIG_LIBS = 1122
X_CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS = 1123
X_CS_POSIX_V6_LP64_OFF64_CFLAGS = 1124
X_CS_POSIX_V6_LP64_OFF64_LDFLAGS = 1125
X_CS_POSIX_V6_LP64_OFF64_LIBS = 1126
X_CS_POSIX_V6_LP64_OFF64_LINTFLAGS = 1127
X_CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS = 1128
X_CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS = 1129
X_CS_POSIX_V6_LPBIG_OFFBIG_LIBS = 1130
X_CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS = 1131
X_CS_POSIX_V7_ILP32_OFF32_CFLAGS = 1132
X_CS_POSIX_V7_ILP32_OFF32_LDFLAGS = 1133
X_CS_POSIX_V7_ILP32_OFF32_LIBS = 1134
X_CS_POSIX_V7_ILP32_OFF32_LINTFLAGS = 1135
X_CS_POSIX_V7_ILP32_OFFBIG_CFLAGS = 1136
X_CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS = 1137
X_CS_POSIX_V7_ILP32_OFFBIG_LIBS = 1138
X_CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS = 1139
X_CS_POSIX_V7_LP64_OFF64_CFLAGS = 1140
X_CS_POSIX_V7_LP64_OFF64_LDFLAGS = 1141
X_CS_POSIX_V7_LP64_OFF64_LIBS = 1142
X_CS_POSIX_V7_LP64_OFF64_LINTFLAGS = 1143
X_CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS = 1144
X_CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS = 1145
X_CS_POSIX_V7_LPBIG_OFFBIG_LIBS = 1146
X_CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS = 1147
X_CS_V6_ENV = 1148
X_CS_V7_ENV = 1149
)
// Values for the argument to `sysconf'.
const ( /* confname.h:71:1: */
X_SC_ARG_MAX = 0
X_SC_CHILD_MAX = 1
X_SC_CLK_TCK = 2
X_SC_NGROUPS_MAX = 3
X_SC_OPEN_MAX = 4
X_SC_STREAM_MAX = 5
X_SC_TZNAME_MAX = 6
X_SC_JOB_CONTROL = 7
X_SC_SAVED_IDS = 8
X_SC_REALTIME_SIGNALS = 9
X_SC_PRIORITY_SCHEDULING = 10
X_SC_TIMERS = 11
X_SC_ASYNCHRONOUS_IO = 12
X_SC_PRIORITIZED_IO = 13
X_SC_SYNCHRONIZED_IO = 14
X_SC_FSYNC = 15
X_SC_MAPPED_FILES = 16
X_SC_MEMLOCK = 17
X_SC_MEMLOCK_RANGE = 18
X_SC_MEMORY_PROTECTION = 19
X_SC_MESSAGE_PASSING = 20
X_SC_SEMAPHORES = 21
X_SC_SHARED_MEMORY_OBJECTS = 22
X_SC_AIO_LISTIO_MAX = 23
X_SC_AIO_MAX = 24
X_SC_AIO_PRIO_DELTA_MAX = 25
X_SC_DELAYTIMER_MAX = 26
X_SC_MQ_OPEN_MAX = 27
X_SC_MQ_PRIO_MAX = 28
X_SC_VERSION = 29
X_SC_PAGESIZE = 30
X_SC_RTSIG_MAX = 31
X_SC_SEM_NSEMS_MAX = 32
X_SC_SEM_VALUE_MAX = 33
X_SC_SIGQUEUE_MAX = 34
X_SC_TIMER_MAX = 35
// Values for the argument to `sysconf'
// corresponding to _POSIX2_* symbols.
X_SC_BC_BASE_MAX = 36
X_SC_BC_DIM_MAX = 37
X_SC_BC_SCALE_MAX = 38
X_SC_BC_STRING_MAX = 39
X_SC_COLL_WEIGHTS_MAX = 40
X_SC_EQUIV_CLASS_MAX = 41
X_SC_EXPR_NEST_MAX = 42
X_SC_LINE_MAX = 43
X_SC_RE_DUP_MAX = 44
X_SC_CHARCLASS_NAME_MAX = 45
X_SC_2_VERSION = 46
X_SC_2_C_BIND = 47
X_SC_2_C_DEV = 48
X_SC_2_FORT_DEV = 49
X_SC_2_FORT_RUN = 50
X_SC_2_SW_DEV = 51
X_SC_2_LOCALEDEF = 52
X_SC_PII = 53
X_SC_PII_XTI = 54
X_SC_PII_SOCKET = 55
X_SC_PII_INTERNET = 56
X_SC_PII_OSI = 57
X_SC_POLL = 58
X_SC_SELECT = 59
X_SC_UIO_MAXIOV = 60
X_SC_IOV_MAX = 60
X_SC_PII_INTERNET_STREAM = 61
X_SC_PII_INTERNET_DGRAM = 62
X_SC_PII_OSI_COTS = 63
X_SC_PII_OSI_CLTS = 64
X_SC_PII_OSI_M = 65
X_SC_T_IOV_MAX = 66
// Values according to POSIX 1003.1c (POSIX threads).
X_SC_THREADS = 67
X_SC_THREAD_SAFE_FUNCTIONS = 68
X_SC_GETGR_R_SIZE_MAX = 69
X_SC_GETPW_R_SIZE_MAX = 70
X_SC_LOGIN_NAME_MAX = 71
X_SC_TTY_NAME_MAX = 72
X_SC_THREAD_DESTRUCTOR_ITERATIONS = 73
X_SC_THREAD_KEYS_MAX = 74
X_SC_THREAD_STACK_MIN = 75
X_SC_THREAD_THREADS_MAX = 76
X_SC_THREAD_ATTR_STACKADDR = 77
X_SC_THREAD_ATTR_STACKSIZE = 78
X_SC_THREAD_PRIORITY_SCHEDULING = 79
X_SC_THREAD_PRIO_INHERIT = 80
X_SC_THREAD_PRIO_PROTECT = 81
X_SC_THREAD_PROCESS_SHARED = 82
X_SC_NPROCESSORS_CONF = 83
X_SC_NPROCESSORS_ONLN = 84
X_SC_PHYS_PAGES = 85
X_SC_AVPHYS_PAGES = 86
X_SC_ATEXIT_MAX = 87
X_SC_PASS_MAX = 88
X_SC_XOPEN_VERSION = 89
X_SC_XOPEN_XCU_VERSION = 90
X_SC_XOPEN_UNIX = 91
X_SC_XOPEN_CRYPT = 92
X_SC_XOPEN_ENH_I18N = 93
X_SC_XOPEN_SHM = 94
X_SC_2_CHAR_TERM = 95
X_SC_2_C_VERSION = 96
X_SC_2_UPE = 97
X_SC_XOPEN_XPG2 = 98
X_SC_XOPEN_XPG3 = 99
X_SC_XOPEN_XPG4 = 100
X_SC_CHAR_BIT = 101
X_SC_CHAR_MAX = 102
X_SC_CHAR_MIN = 103
X_SC_INT_MAX = 104
X_SC_INT_MIN = 105
X_SC_LONG_BIT = 106
X_SC_WORD_BIT = 107
X_SC_MB_LEN_MAX = 108
X_SC_NZERO = 109
X_SC_SSIZE_MAX = 110
X_SC_SCHAR_MAX = 111
X_SC_SCHAR_MIN = 112
X_SC_SHRT_MAX = 113
X_SC_SHRT_MIN = 114
X_SC_UCHAR_MAX = 115
X_SC_UINT_MAX = 116
X_SC_ULONG_MAX = 117
X_SC_USHRT_MAX = 118
X_SC_NL_ARGMAX = 119
X_SC_NL_LANGMAX = 120
X_SC_NL_MSGMAX = 121
X_SC_NL_NMAX = 122
X_SC_NL_SETMAX = 123
X_SC_NL_TEXTMAX = 124
X_SC_XBS5_ILP32_OFF32 = 125
X_SC_XBS5_ILP32_OFFBIG = 126
X_SC_XBS5_LP64_OFF64 = 127
X_SC_XBS5_LPBIG_OFFBIG = 128
X_SC_XOPEN_LEGACY = 129
X_SC_XOPEN_REALTIME = 130
X_SC_XOPEN_REALTIME_THREADS = 131
X_SC_ADVISORY_INFO = 132
X_SC_BARRIERS = 133
X_SC_BASE = 134
X_SC_C_LANG_SUPPORT = 135
X_SC_C_LANG_SUPPORT_R = 136
X_SC_CLOCK_SELECTION = 137
X_SC_CPUTIME = 138
X_SC_THREAD_CPUTIME = 139
X_SC_DEVICE_IO = 140
X_SC_DEVICE_SPECIFIC = 141
X_SC_DEVICE_SPECIFIC_R = 142
X_SC_FD_MGMT = 143
X_SC_FIFO = 144
X_SC_PIPE = 145
X_SC_FILE_ATTRIBUTES = 146
X_SC_FILE_LOCKING = 147
X_SC_FILE_SYSTEM = 148
X_SC_MONOTONIC_CLOCK = 149
X_SC_MULTI_PROCESS = 150
X_SC_SINGLE_PROCESS = 151
X_SC_NETWORKING = 152
X_SC_READER_WRITER_LOCKS = 153
X_SC_SPIN_LOCKS = 154
X_SC_REGEXP = 155
X_SC_REGEX_VERSION = 156
X_SC_SHELL = 157
X_SC_SIGNALS = 158
X_SC_SPAWN = 159
X_SC_SPORADIC_SERVER = 160
X_SC_THREAD_SPORADIC_SERVER = 161
X_SC_SYSTEM_DATABASE = 162
X_SC_SYSTEM_DATABASE_R = 163
X_SC_TIMEOUTS = 164
X_SC_TYPED_MEMORY_OBJECTS = 165
X_SC_USER_GROUPS = 166
X_SC_USER_GROUPS_R = 167
X_SC_2_PBS = 168
X_SC_2_PBS_ACCOUNTING = 169
X_SC_2_PBS_LOCATE = 170
X_SC_2_PBS_MESSAGE = 171
X_SC_2_PBS_TRACK = 172
X_SC_SYMLOOP_MAX = 173
X_SC_STREAMS = 174
X_SC_2_PBS_CHECKPOINT = 175
X_SC_V6_ILP32_OFF32 = 176
X_SC_V6_ILP32_OFFBIG = 177
X_SC_V6_LP64_OFF64 = 178
X_SC_V6_LPBIG_OFFBIG = 179
X_SC_HOST_NAME_MAX = 180
X_SC_TRACE = 181
X_SC_TRACE_EVENT_FILTER = 182
X_SC_TRACE_INHERIT = 183
X_SC_TRACE_LOG = 184
X_SC_LEVEL1_ICACHE_SIZE = 185
X_SC_LEVEL1_ICACHE_ASSOC = 186
X_SC_LEVEL1_ICACHE_LINESIZE = 187
X_SC_LEVEL1_DCACHE_SIZE = 188
X_SC_LEVEL1_DCACHE_ASSOC = 189
X_SC_LEVEL1_DCACHE_LINESIZE = 190
X_SC_LEVEL2_CACHE_SIZE = 191
X_SC_LEVEL2_CACHE_ASSOC = 192
X_SC_LEVEL2_CACHE_LINESIZE = 193
X_SC_LEVEL3_CACHE_SIZE = 194
X_SC_LEVEL3_CACHE_ASSOC = 195
X_SC_LEVEL3_CACHE_LINESIZE = 196
X_SC_LEVEL4_CACHE_SIZE = 197
X_SC_LEVEL4_CACHE_ASSOC = 198
X_SC_LEVEL4_CACHE_LINESIZE = 199
// Leave room here, maybe we need a few more cache levels some day.
X_SC_IPV6 = 235
X_SC_RAW_SOCKETS = 236
X_SC_V7_ILP32_OFF32 = 237
X_SC_V7_ILP32_OFFBIG = 238
X_SC_V7_LP64_OFF64 = 239
X_SC_V7_LPBIG_OFFBIG = 240
X_SC_SS_REPL_MAX = 241
X_SC_TRACE_EVENT_NAME_MAX = 242
X_SC_TRACE_NAME_MAX = 243
X_SC_TRACE_SYS_MAX = 244
X_SC_TRACE_USER_EVENT_MAX = 245
X_SC_XOPEN_STREAMS = 246
X_SC_THREAD_ROBUST_PRIO_INHERIT = 247
X_SC_THREAD_ROBUST_PRIO_PROTECT = 248
)
type Ptrdiff_t = int32 /* <builtin>:3:26 */
type Size_t = uint32 /* <builtin>:9:23 */
type Wchar_t = int32 /* <builtin>:15:24 */
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
type X__float128 = float64 /* <builtin>:47:21 */
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// POSIX Standard: 2.10 Symbolic Constants <unistd.h>
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// These are defined by the user (or the compiler)
// to specify the desired environment:
//
// __STRICT_ANSI__ ISO Standard C.
// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99.
// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11.
// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X.
// __STDC_WANT_LIB_EXT2__
// Extensions to ISO C99 from TR 27431-2:2010.
// __STDC_WANT_IEC_60559_BFP_EXT__
// Extensions to ISO C11 from TS 18661-1:2014.
// __STDC_WANT_IEC_60559_FUNCS_EXT__
// Extensions to ISO C11 from TS 18661-4:2015.
// __STDC_WANT_IEC_60559_TYPES_EXT__
// Extensions to ISO C11 from TS 18661-3:2015.
//
// _POSIX_SOURCE IEEE Std 1003.1.
// _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2;
// if >=199309L, add IEEE Std 1003.1b-1993;
// if >=199506L, add IEEE Std 1003.1c-1995;
// if >=200112L, all of IEEE 1003.1-2004
// if >=200809L, all of IEEE 1003.1-2008
// _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if
// Single Unix conformance is wanted, to 600 for the
// sixth revision, to 700 for the seventh revision.
// _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions.
// _LARGEFILE_SOURCE Some more functions for correct standard I/O.
// _LARGEFILE64_SOURCE Additional functionality from LFS for large files.
// _FILE_OFFSET_BITS=N Select default filesystem interface.
// _ATFILE_SOURCE Additional *at interfaces.
// _GNU_SOURCE All of the above, plus GNU extensions.
// _DEFAULT_SOURCE The default set of features (taking precedence over
// __STRICT_ANSI__).
//
// _FORTIFY_SOURCE Add security hardening to many library functions.
// Set to 1 or 2; 2 performs stricter checks than 1.
//
// _REENTRANT, _THREAD_SAFE
// Obsolete; equivalent to _POSIX_C_SOURCE=199506L.
//
// The `-ansi' switch to the GNU C compiler, and standards conformance
// options such as `-std=c99', define __STRICT_ANSI__. If none of
// these are defined, or if _DEFAULT_SOURCE is defined, the default is
// to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to
// 200809L, as well as enabling miscellaneous functions from BSD and
// SVID. If more than one of these are defined, they accumulate. For
// example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together
// give you ISO C, 1003.1, and 1003.2, but nothing else.
//
// These are defined by this file and are used by the
// header files to decide what to declare or define:
//
// __GLIBC_USE (F) Define things from feature set F. This is defined
// to 1 or 0; the subsequent macros are either defined
// or undefined, and those tests should be moved to
// __GLIBC_USE.
// __USE_ISOC11 Define ISO C11 things.
// __USE_ISOC99 Define ISO C99 things.
// __USE_ISOC95 Define ISO C90 AMD1 (C95) things.
// __USE_ISOCXX11 Define ISO C++11 things.
// __USE_POSIX Define IEEE Std 1003.1 things.
// __USE_POSIX2 Define IEEE Std 1003.2 things.
// __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things.
// __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things.
// __USE_XOPEN Define XPG things.
// __USE_XOPEN_EXTENDED Define X/Open Unix things.
// __USE_UNIX98 Define Single Unix V2 things.
// __USE_XOPEN2K Define XPG6 things.
// __USE_XOPEN2KXSI Define XPG6 XSI things.
// __USE_XOPEN2K8 Define XPG7 things.
// __USE_XOPEN2K8XSI Define XPG7 XSI things.
// __USE_LARGEFILE Define correct standard I/O things.
// __USE_LARGEFILE64 Define LFS things with separate names.
// __USE_FILE_OFFSET64 Define 64bit interface as default.
// __USE_MISC Define things from 4.3BSD or System V Unix.
// __USE_ATFILE Define *at interfaces and AT_* constants for them.
// __USE_GNU Define GNU extensions.
// __USE_FORTIFY_LEVEL Additional security measures used, according to level.
//
// The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are
// defined by this file unconditionally. `__GNU_LIBRARY__' is provided
// only for compatibility. All new code should use the other symbols
// to test for features.
//
// All macros listed above as possibly being defined by this file are
// explicitly undefined if they are not explicitly defined.
// Feature-test macros that are not defined by the user or compiler
// but are implied by the other feature-test macros defined (or by the
// lack of any definitions) are defined by the file.
//
// ISO C feature test macros depend on the definition of the macro
// when an affected header is included, not when the first system
// header is included, and so they are handled in
// <bits/libc-header-start.h>, which does not have a multiple include
// guard. Feature test macros that can be handled from the first
// system header included are handled here.
// Undefine everything, so we get a clean slate.
// Suppress kernel-name space pollution unless user expressedly asks
// for it.
// Convenience macro to test the version of gcc.
// Use like this:
// #if __GNUC_PREREQ (2,8)
// ... code requiring gcc 2.8 or later ...
// #endif
// Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was
// added in 2.0.
// Similarly for clang. Features added to GCC after version 4.2 may
// or may not also be available in clang, and clang's definitions of
// __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such
// features can be queried via __has_extension/__has_feature.
// Whether to use feature set F.
// _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for
// _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not
// issue a warning; the expectation is that the source is being
// transitioned to use the new macro.
// If _GNU_SOURCE was defined by the user, turn on all the other features.
// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined,
// define _DEFAULT_SOURCE.
// This is to enable the ISO C2X extension.
// This is to enable the ISO C11 extension.
// This is to enable the ISO C99 extension.
// This is to enable the ISO C90 Amendment 1:1995 extension.
// If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE
// is defined, use POSIX.1-2008 (or another version depending on
// _XOPEN_SOURCE).
// Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be
// defined in all multithreaded code. GNU libc has not required this
// for many years. We now treat them as compatibility synonyms for
// _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with
// comprehensive support for multithreaded code. Using them never
// lowers the selected level of POSIX conformance, only raises it.
// The function 'gets' existed in C89, but is impossible to use
// safely. It has been removed from ISO C11 and ISO C++14. Note: for
// compatibility with various implementations of <cstdio>, this test
// must consider only the value of __cplusplus when compiling C++.
// GNU formerly extended the scanf functions with modified format
// specifiers %as, %aS, and %a[...] that allocate a buffer for the
// input using malloc. This extension conflicts with ISO C99, which
// defines %a as a standalone format specifier that reads a floating-
// point number; moreover, POSIX.1-2008 provides the same feature
// using the modifier letter 'm' instead (%ms, %mS, %m[...]).
//
// We now follow C99 unless GNU extensions are active and the compiler
// is specifically in C89 or C++98 mode (strict or not). For
// instance, with GCC, -std=gnu11 will have C99-compliant scanf with
// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the
// old extension.
// Get definitions of __STDC_* predefined macros, if the compiler has
// not preincluded this header automatically.
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// This macro indicates that the installed library is the GNU C Library.
// For historic reasons the value now is 6 and this will stay from now
// on. The use of this variable is deprecated. Use __GLIBC__ and
// __GLIBC_MINOR__ now (see below) when you want to test for a specific
// GNU C library version and use the values in <gnu/lib-names.h> to get
// the sonames of the shared libraries.
// Major and minor version number of the GNU C library package. Use
// these macros to test for features in specific releases.
// This is here only because every header file already includes this one.
// Copyright (C) 1992-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// We are almost always included from features.h.
// The GNU libc does not support any K&R compilers or the traditional mode
// of ISO C compilers anymore. Check for some of the combinations not
// anymore supported.
// Some user header file might have defined this before.
// All functions, except those with callbacks or those that
// synchronize memory, are leaf functions.
// GCC can always grok prototypes. For C++ programs we add throw()
// to help it optimize the function calls. But this works only with
// gcc 2.8.x and egcs. For gcc 3.2 and up we even mark C functions
// as non-throwing using a function attribute since programs can use
// the -fexceptions options for C code as well.
// Compilers that are not clang may object to
// #if defined __clang__ && __has_extension(...)
// even though they do not need to evaluate the right-hand side of the &&.
// These two macros are not used in glibc anymore. They are kept here
// only because some other projects expect the macros to be defined.
// For these things, GCC behaves the ANSI way normally,
// and the non-ANSI way under -traditional.
// This is not a typedef so `const __ptr_t' does the right thing.
// C++ needs to know that types and declarations are C, not C++.
// Fortify support.
// Support for flexible arrays.
// Headers that should use flexible arrays only if they're "real"
// (e.g. only if they won't affect sizeof()) should test
// #if __glibc_c99_flexarr_available.
// __asm__ ("xyz") is used throughout the headers to rename functions
// at the assembly language level. This is wrapped by the __REDIRECT
// macro, in order to support compilers that can do this some other
// way. When compilers don't support asm-names at all, we have to do
// preprocessor tricks instead (which don't have exactly the right
// semantics, but it's the best we can do).
//
// Example:
// int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid);
//
// #elif __SOME_OTHER_COMPILER__
//
// # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias)
// GCC has various useful declarations that can be made with the
// `__attribute__' syntax. All of the ways we use this do fine if
// they are omitted for compilers that don't understand it.
// At some point during the gcc 2.96 development the `malloc' attribute
// for functions was introduced. We don't want to use it unconditionally
// (although this would be possible) since it generates warnings.
// Tell the compiler which arguments to an allocation function
// indicate the size of the allocation.
// At some point during the gcc 2.96 development the `pure' attribute
// for functions was introduced. We don't want to use it unconditionally
// (although this would be possible) since it generates warnings.
// This declaration tells the compiler that the value is constant.
// At some point during the gcc 3.1 development the `used' attribute
// for functions was introduced. We don't want to use it unconditionally
// (although this would be possible) since it generates warnings.
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | true |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/unistd/unistd_windows_amd64.go | vendor/modernc.org/libc/unistd/unistd_windows_amd64.go | // 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 -o unistd\unistd_windows_amd64.go -pkgname unistd', DO NOT EDIT.
package unistd
import (
"math"
"reflect"
"sync/atomic"
"unsafe"
)
var _ = math.Pi
var _ reflect.Kind
var _ atomic.Value
var _ unsafe.Pointer
const (
DUMMYSTRUCTNAME = 0
DUMMYSTRUCTNAME1 = 0
DUMMYSTRUCTNAME2 = 0
DUMMYSTRUCTNAME3 = 0
DUMMYSTRUCTNAME4 = 0
DUMMYSTRUCTNAME5 = 0
DUMMYUNIONNAME = 0
DUMMYUNIONNAME1 = 0
DUMMYUNIONNAME2 = 0
DUMMYUNIONNAME3 = 0
DUMMYUNIONNAME4 = 0
DUMMYUNIONNAME5 = 0
DUMMYUNIONNAME6 = 0
DUMMYUNIONNAME7 = 0
DUMMYUNIONNAME8 = 0
DUMMYUNIONNAME9 = 0
FTRUNCATE_DEFINED = 0
F_OK = 0
MINGW_DDK_H = 0
MINGW_DDRAW_VERSION = 7
MINGW_HAS_DDK_H = 1
MINGW_HAS_DDRAW_H = 1
MINGW_HAS_SECURE_API = 1
MINGW_SDK_INIT = 0
OLD_P_OVERLAY = 2
P_DETACH = 4
P_NOWAIT = 1
P_NOWAITO = 3
P_OVERLAY = 2
P_WAIT = 0
R_OK = 4
SEEK_CUR = 1
SEEK_END = 2
SEEK_SET = 0
STDERR_FILENO = 2
STDIN_FILENO = 0
STDOUT_FILENO = 1
UNALIGNED = 0
USE___UUIDOF = 0
WAIT_CHILD = 0
WAIT_GRANDCHILD = 1
WIN32 = 1
WIN64 = 1
WINNT = 1
WIN_PTHREADS_UNISTD_H = 0
W_OK = 2
X_OK = 1
X_AGLOBAL = 0
X_ANONYMOUS_STRUCT = 0
X_ANONYMOUS_UNION = 0
X_ARGMAX = 100
X_A_ARCH = 0x20
X_A_HIDDEN = 0x02
X_A_NORMAL = 0x00
X_A_RDONLY = 0x01
X_A_SUBDIR = 0x10
X_A_SYSTEM = 0x04
X_CONST_RETURN = 0
X_CRTNOALIAS = 0
X_CRTRESTRICT = 0
X_CRT_ALTERNATIVE_IMPORTED = 0
X_CRT_DIRECTORY_DEFINED = 0
X_CRT_GETPID_DEFINED = 0
X_CRT_MANAGED_HEAP_DEPRECATE = 0
X_CRT_MEMORY_DEFINED = 0
X_CRT_PACKING = 8
X_CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES = 0
X_CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES_MEMORY = 0
X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES = 0
X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT = 0
X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_MEMORY = 0
X_CRT_SWAB_DEFINED = 0
X_CRT_SYSTEM_DEFINED = 0
X_CRT_TERMINATE_DEFINED = 0
X_CRT_WSYSTEM_DEFINED = 0
X_DEV_T_DEFINED = 0
X_DLL = 0
X_ERRCODE_DEFINED = 0
X_FILE_OFFSET_BITS = 64
X_FILE_OFFSET_BITS_SET_FTRUNCATE = 0
X_FILE_OFFSET_BITS_SET_LSEEK = 0
X_FILE_OFFSET_BITS_SET_OFFT = 0
X_FINDDATA_T_DEFINED = 0
X_FSIZE_T_DEFINED = 0
X_INC_CORECRT_STARTUP = 0
X_INC_CRTDEFS = 0
X_INC_CRTDEFS_MACRO = 0
X_INC_MINGW_SECAPI = 0
X_INC_PROCESS = 0
X_INC_STRING = 0
X_INC_STRING_S = 0
X_INC_TYPES = 0
X_INC_VADEFS = 0
X_INC__MINGW_H = 0
X_INO_T_DEFINED = 0
X_INT128_DEFINED = 0
X_INTEGRAL_MAX_BITS = 64
X_INTPTR_T_DEFINED = 0
X_IO_H_ = 0
X_MODE_T_ = 0
X_MT = 0
X_M_AMD64 = 100
X_M_X64 = 100
X_NLSCMPERROR = 2147483647
X_NLSCMP_DEFINED = 0
X_OFF64_T_DEFINED = 0
X_OFF_T_ = 0
X_OFF_T_DEFINED = 0
X_OLD_P_OVERLAY = 2
X_PGLOBAL = 0
X_PID_T_ = 0
X_POSIX_BARRIERS = 200112
X_POSIX_CLOCK_SELECTION = 200112
X_POSIX_READER_WRITER_LOCKS = 200112
X_POSIX_SEMAPHORES = 200112
X_POSIX_SPIN_LOCKS = 200112
X_POSIX_THREADS = 200112
X_POSIX_THREAD_SAFE_FUNCTIONS = 200112
X_POSIX_TIMEOUTS = 200112
X_PTRDIFF_T_ = 0
X_PTRDIFF_T_DEFINED = 0
X_P_DETACH = 4
X_P_NOWAIT = 1
X_P_NOWAITO = 3
X_P_OVERLAY = 2
X_P_WAIT = 0
X_REENTRANT = 1
X_RSIZE_T_DEFINED = 0
X_SECURECRT_FILL_BUFFER_PATTERN = 0xFD
X_SIGSET_T_ = 0
X_SIZE_T_DEFINED = 0
X_SPAWNV_DEFINED = 0
X_SSIZE_T_DEFINED = 0
X_TAGLC_ID_DEFINED = 0
X_THREADLOCALEINFO = 0
X_TIME32_T_DEFINED = 0
X_TIME64_T_DEFINED = 0
X_TIMESPEC_DEFINED = 0
X_TIME_T_DEFINED = 0
X_UINTPTR_T_DEFINED = 0
X_UNISTD_H = 0
X_VA_LIST_DEFINED = 0
X_W64 = 0
X_WAIT_CHILD = 0
X_WAIT_GRANDCHILD = 1
X_WCHAR_T_DEFINED = 0
X_WCTYPE_T_DEFINED = 0
X_WConst_return = 0
X_WEXEC_DEFINED = 0
X_WFINDDATA_T_DEFINED = 0
X_WIN32 = 1
X_WIN32_WINNT = 0x502
X_WIN64 = 1
X_WINT_T = 0
X_WIO_DEFINED = 0
X_WSPAWN_DEFINED = 0
X_WSTRING_DEFINED = 0
X_WSTRING_S_DEFINED = 0
)
type Ptrdiff_t = int64 /* <builtin>:3:26 */
type Size_t = uint64 /* <builtin>:9:23 */
type Wchar_t = uint16 /* <builtin>:15:24 */
type X__int128_t = struct {
Flo int64
Fhi int64
} /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
type X__uint128_t = struct {
Flo uint64
Fhi uint64
} /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
type X__float128 = float64 /* <builtin>:47:21 */
type Va_list = X__builtin_va_list /* <builtin>:50:27 */
// *
// This file has no copyright assigned and is placed in the Public Domain.
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
// *
// This file has no copyright assigned and is placed in the Public Domain.
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
// *
// This file has no copyright assigned and is placed in the Public Domain.
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
// *
// This file has no copyright assigned and is placed in the Public Domain.
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
// *
// This file has no copyright assigned and is placed in the Public Domain.
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
// This macro holds an monotonic increasing value, which indicates
// a specific fix/patch is present on trunk. This value isn't related to
// minor/major version-macros. It is increased on demand, if a big
// fix was applied to trunk. This macro gets just increased on trunk. For
// other branches its value won't be modified.
// mingw.org's version macros: these make gcc to define
// MINGW32_SUPPORTS_MT_EH and to use the _CRT_MT global
// and the __mingwthr_key_dtor() function from the MinGW
// CRT in its private gthr-win32.h header.
// Set VC specific compiler target macros.
// MS does not prefix symbols by underscores for 64-bit.
// As we have to support older gcc version, which are using underscores
// as symbol prefix for x64, we have to check here for the user label
// prefix defined by gcc.
// Special case nameless struct/union.
// MinGW-w64 has some additional C99 printf/scanf feature support.
// So we add some helper macros to ease recognition of them.
// *
// This file has no copyright assigned and is placed in the Public Domain.
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
// http://msdn.microsoft.com/en-us/library/ms175759%28v=VS.100%29.aspx
// Templates won't work in C, will break if secure API is not enabled, disabled
// https://blogs.msdn.com/b/sdl/archive/2010/02/16/vc-2010-and-memcpy.aspx?Redirected=true
// fallback on default implementation if we can't know the size of the destination
// Include _cygwin.h if we're building a Cygwin application.
// Target specific macro replacement for type "long". In the Windows API,
// the type long is always 32 bit, even if the target is 64 bit (LLP64).
// On 64 bit Cygwin, the type long is 64 bit (LP64). So, to get the right
// sized definitions and declarations, all usage of type long in the Windows
// headers have to be replaced by the below defined macro __LONG32.
// C/C++ specific language defines.
// Note the extern. This is needed to work around GCC's
// limitations in handling dllimport attribute.
// Attribute `nonnull' was valid as of gcc 3.3. We don't use GCC's
// variadiac macro facility, because variadic macros cause syntax
// errors with --traditional-cpp.
// High byte is the major version, low byte is the minor.
// *
// This file has no copyright assigned and is placed in the Public Domain.
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
// *
// This file has no copyright assigned and is placed in the Public Domain.
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
type X__gnuc_va_list = X__builtin_va_list /* vadefs.h:24:29 */
type Ssize_t = int64 /* crtdefs.h:45:35 */
type Rsize_t = Size_t /* crtdefs.h:52:16 */
type Intptr_t = int64 /* crtdefs.h:62:35 */
type Uintptr_t = uint64 /* crtdefs.h:75:44 */
type Wint_t = uint16 /* crtdefs.h:106:24 */
type Wctype_t = uint16 /* crtdefs.h:107:24 */
type Errno_t = int32 /* crtdefs.h:113:13 */
type X__time32_t = int32 /* crtdefs.h:118:14 */
type X__time64_t = int64 /* crtdefs.h:123:35 */
type Time_t = X__time64_t /* crtdefs.h:138:20 */
type Threadlocaleinfostruct = struct {
Frefcount int32
Flc_codepage uint32
Flc_collate_cp uint32
Flc_handle [6]uint32
Flc_id [6]LC_ID
Flc_category [6]struct {
Flocale uintptr
Fwlocale uintptr
Frefcount uintptr
Fwrefcount uintptr
}
Flc_clike int32
Fmb_cur_max int32
Flconv_intl_refcount uintptr
Flconv_num_refcount uintptr
Flconv_mon_refcount uintptr
Flconv uintptr
Fctype1_refcount uintptr
Fctype1 uintptr
Fpctype uintptr
Fpclmap uintptr
Fpcumap uintptr
Flc_time_curr uintptr
} /* crtdefs.h:422:1 */
type Pthreadlocinfo = uintptr /* crtdefs.h:424:39 */
type Pthreadmbcinfo = uintptr /* crtdefs.h:425:36 */
type Localeinfo_struct = struct {
Flocinfo Pthreadlocinfo
Fmbcinfo Pthreadmbcinfo
} /* crtdefs.h:428:9 */
type X_locale_tstruct = Localeinfo_struct /* crtdefs.h:431:3 */
type X_locale_t = uintptr /* crtdefs.h:431:19 */
type TagLC_ID = struct {
FwLanguage uint16
FwCountry uint16
FwCodePage uint16
} /* crtdefs.h:422:1 */
type LC_ID = TagLC_ID /* crtdefs.h:439:3 */
type LPLC_ID = uintptr /* crtdefs.h:439:9 */
type Threadlocinfo = Threadlocaleinfostruct /* crtdefs.h:468:3 */
type X_fsize_t = uint32 /* io.h:29:25 */
type X_finddata32_t = struct {
Fattrib uint32
Ftime_create X__time32_t
Ftime_access X__time32_t
Ftime_write X__time32_t
Fsize X_fsize_t
Fname [260]int8
} /* io.h:35:3 */
type X_finddata32i64_t = struct {
Fattrib uint32
Ftime_create X__time32_t
Ftime_access X__time32_t
Ftime_write X__time32_t
Fsize int64
Fname [260]int8
F__ccgo_pad1 [4]byte
} /* io.h:44:3 */
type X_finddata64i32_t = struct {
Fattrib uint32
F__ccgo_pad1 [4]byte
Ftime_create X__time64_t
Ftime_access X__time64_t
Ftime_write X__time64_t
Fsize X_fsize_t
Fname [260]int8
} /* io.h:53:3 */
type X__finddata64_t = struct {
Fattrib uint32
F__ccgo_pad1 [4]byte
Ftime_create X__time64_t
Ftime_access X__time64_t
Ftime_write X__time64_t
Fsize int64
Fname [260]int8
F__ccgo_pad2 [4]byte
} /* io.h:62:3 */
type X_wfinddata32_t = struct {
Fattrib uint32
Ftime_create X__time32_t
Ftime_access X__time32_t
Ftime_write X__time32_t
Fsize X_fsize_t
Fname [260]Wchar_t
} /* io.h:94:3 */
type X_wfinddata32i64_t = struct {
Fattrib uint32
Ftime_create X__time32_t
Ftime_access X__time32_t
Ftime_write X__time32_t
Fsize int64
Fname [260]Wchar_t
} /* io.h:103:3 */
type X_wfinddata64i32_t = struct {
Fattrib uint32
F__ccgo_pad1 [4]byte
Ftime_create X__time64_t
Ftime_access X__time64_t
Ftime_write X__time64_t
Fsize X_fsize_t
Fname [260]Wchar_t
F__ccgo_pad2 [4]byte
} /* io.h:112:3 */
type X_wfinddata64_t = struct {
Fattrib uint32
F__ccgo_pad1 [4]byte
Ftime_create X__time64_t
Ftime_access X__time64_t
Ftime_write X__time64_t
Fsize int64
Fname [260]Wchar_t
} /* io.h:121:3 */
type X_off_t = int32 /* _mingw_off_t.h:5:16 */
type Off32_t = int32 /* _mingw_off_t.h:7:16 */
type X_off64_t = int64 /* _mingw_off_t.h:13:39 */
type Off64_t = int64 /* _mingw_off_t.h:15:39 */
type Off_t = Off64_t /* _mingw_off_t.h:24:17 */
type X_PVFV = uintptr /* corecrt_startup.h:20:14 */
type X_PIFV = uintptr /* corecrt_startup.h:21:13 */
type X_PVFI = uintptr /* corecrt_startup.h:22:14 */
type X_onexit_table_t1 = struct {
F_first uintptr
F_last uintptr
F_end uintptr
} /* corecrt_startup.h:24:9 */
type X_onexit_table_t = X_onexit_table_t1 /* corecrt_startup.h:28:3 */
type X_onexit_t = uintptr /* corecrt_startup.h:30:13 */
// Includes a definition of _pid_t and pid_t
// *
// This file has no copyright assigned and is placed in the Public Domain.
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
// *
// This file has no copyright assigned and is placed in the Public Domain.
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
type X_ino_t = uint16 /* types.h:43:24 */
type Ino_t = uint16 /* types.h:45:24 */
type X_dev_t = uint32 /* types.h:51:22 */
type Dev_t = uint32 /* types.h:53:22 */
type X_pid_t = int64 /* types.h:63:17 */
type Pid_t = X_pid_t /* types.h:68:16 */
type X_mode_t = uint16 /* types.h:74:24 */
type Mode_t = X_mode_t /* types.h:77:17 */
type Useconds_t = uint32 /* types.h:84:22 */
type Timespec = struct {
Ftv_sec Time_t
Ftv_nsec int32
F__ccgo_pad1 [4]byte
} /* types.h:89:1 */
type Itimerspec = struct {
Fit_interval struct {
Ftv_sec Time_t
Ftv_nsec int32
F__ccgo_pad1 [4]byte
}
Fit_value struct {
Ftv_sec Time_t
Ftv_nsec int32
F__ccgo_pad1 [4]byte
}
} /* types.h:94:1 */
type X_sigset_t = uint64 /* types.h:104:28 */
//
// Copyright (c) 2011-2016 mingw-w64 project
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
// and/or sell copies of the Software, and to permit persons to whom the
// Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
// Set defines described by the POSIX Threads Extension (1003.1c-1995)
// _SC_THREADS
// Basic support for POSIX threads is available. The functions
//
// pthread_atfork(),
// pthread_attr_destroy(),
// pthread_attr_getdetachstate(),
// pthread_attr_getschedparam(),
// pthread_attr_init(),
// pthread_attr_setdetachstate(),
// pthread_attr_setschedparam(),
// pthread_cancel(),
// pthread_cleanup_push(),
// pthread_cleanup_pop(),
// pthread_cond_broadcast(),
// pthread_cond_destroy(),
// pthread_cond_init(),
// pthread_cond_signal(),
// pthread_cond_timedwait(),
// pthread_cond_wait(),
// pthread_condattr_destroy(),
// pthread_condattr_init(),
// pthread_create(),
// pthread_detach(),
// pthread_equal(),
// pthread_exit(),
// pthread_getspecific(),
// pthread_join(,
// pthread_key_create(),
// pthread_key_delete(),
// pthread_mutex_destroy(),
// pthread_mutex_init(),
// pthread_mutex_lock(),
// pthread_mutex_trylock(),
// pthread_mutex_unlock(),
// pthread_mutexattr_destroy(),
// pthread_mutexattr_init(),
// pthread_once(),
// pthread_rwlock_destroy(),
// pthread_rwlock_init(),
// pthread_rwlock_rdlock(),
// pthread_rwlock_tryrdlock(),
// pthread_rwlock_trywrlock(),
// pthread_rwlock_unlock(),
// pthread_rwlock_wrlock(),
// pthread_rwlockattr_destroy(),
// pthread_rwlockattr_init(),
// pthread_self(),
// pthread_setcancelstate(),
// pthread_setcanceltype(),
// pthread_setspecific(),
// pthread_testcancel()
//
// are present.
// _SC_READER_WRITER_LOCKS
// This option implies the _POSIX_THREADS option. Conversely, under
// POSIX 1003.1-2001 the _POSIX_THREADS option implies this option.
//
// The functions
// pthread_rwlock_destroy(),
// pthread_rwlock_init(),
// pthread_rwlock_rdlock(),
// pthread_rwlock_tryrdlock(),
// pthread_rwlock_trywrlock(),
// pthread_rwlock_unlock(),
// pthread_rwlock_wrlock(),
// pthread_rwlockattr_destroy(),
// pthread_rwlockattr_init()
//
// are present.
// _SC_SPIN_LOCKS
// This option implies the _POSIX_THREADS and _POSIX_THREAD_SAFE_FUNCTIONS
// options. The functions
//
// pthread_spin_destroy(),
// pthread_spin_init(),
// pthread_spin_lock(),
// pthread_spin_trylock(),
// pthread_spin_unlock()
//
// are present.
// _SC_BARRIERS
// This option implies the _POSIX_THREADS and _POSIX_THREAD_SAFE_FUNCTIONS
// options. The functions
//
// pthread_barrier_destroy(),
// pthread_barrier_init(),
// pthread_barrier_wait(),
// pthread_barrierattr_destroy(),
// pthread_barrierattr_init()
//
// are present.
// _SC_THREAD_SAFE_FUNCTIONS
// Affected functions are
//
// readdir_r(),
// getgrgid_r(),
// getgrnam_r(),
// getpwnam_r(),
// getpwuid_r(),
// flockfile(),
// ftrylockfile(),
// funlockfile(),
// getc_unlocked(),
// getchar_unlocked(),
// putc_unlocked(),
// putchar_unlocked(),
// strerror_r(),
// _SC_TIMEOUTS
// The functions
//
// mq_timedreceive(), - not supported
// mq_timedsend(), - not supported
// posix_trace_timedgetnext_event(), - not supported
// pthread_mutex_timedlock(),
// pthread_rwlock_timedrdlock(),
// pthread_rwlock_timedwrlock(),
// sem_timedwait(),
//
// are present.
// _SC_TIMERS - not supported
// The functions
//
// clock_getres(),
// clock_gettime(),
// clock_settime(),
// nanosleep(),
// timer_create(),
// timer_delete(),
// timer_gettime(),
// timer_getoverrun(),
// timer_settime()
//
// are present.
// #undef _POSIX_TIMERS
// _SC_CLOCK_SELECTION
// This option implies the _POSIX_TIMERS option. The functions
//
// pthread_condattr_getclock(),
// pthread_condattr_setclock(),
// clock_nanosleep()
//
// are present.
// _SC_SEMAPHORES
// The include file <semaphore.h> is present. The functions
//
// sem_close(),
// sem_destroy(),
// sem_getvalue(),
// sem_init(),
// sem_open(),
// sem_post(),
// sem_trywait(),
// sem_unlink(),
// sem_wait()
//
// are present.
var _ int8 /* gen.c:2:13: */
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/unistd/unistd_openbsd_arm64.go | vendor/modernc.org/libc/unistd/unistd_openbsd_arm64.go | // 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_openbsd_arm64.go -pkgname unistd', DO NOT EDIT.
package unistd
import (
"math"
"reflect"
"sync/atomic"
"unsafe"
)
var _ = math.Pi
var _ reflect.Kind
var _ atomic.Value
var _ unsafe.Pointer
const (
BIG_ENDIAN = 4321 // endian.h:45:1:
BYTE_ORDER = 1234 // endian.h:47:1:
F_LOCK = 1 // unistd.h:48:1:
F_OK = 0 // unistd.h:49:1:
F_TEST = 3 // unistd.h:50:1:
F_TLOCK = 2 // unistd.h:49:1:
F_ULOCK = 0 // unistd.h:47:1:
KBIND_BLOCK_MAX = 2 // unistd.h:77:1:
KBIND_DATA_MAX = 24 // unistd.h:78:1:
LITTLE_ENDIAN = 1234 // endian.h:44:1:
L_INCR = 1 // unistd.h:62:1:
L_SET = 0 // unistd.h:61:1:
L_XTND = 2 // unistd.h:63:1:
PDP_ENDIAN = 3412 // endian.h:46:1:
R_OK = 0x04 // unistd.h:52:1:
SEEK_CUR = 1 // unistd.h:56:1:
SEEK_END = 2 // unistd.h:57:1:
SEEK_SET = 0 // unistd.h:55:1:
STDERR_FILENO = 2 // unistd.h:44:1:
STDIN_FILENO = 0 // unistd.h:42:1:
STDOUT_FILENO = 1 // unistd.h:43:1:
W_OK = 0x02 // unistd.h:51:1:
X_OK = 0x01 // unistd.h:50:1:
X_BIG_ENDIAN = 4321 // _endian.h:43:1:
X_BYTE_ORDER = 1234 // endian.h:60:1:
X_CLOCKID_T_DEFINED_ = 0 // types.h:162:1:
X_CLOCK_T_DEFINED_ = 0 // types.h:157:1:
X_CS_PATH = 1 // unistd.h:286:1:
X_CS_POSIX_V6_ILP32_OFF32_CFLAGS = 2 // unistd.h:287:1:
X_CS_POSIX_V6_ILP32_OFF32_LDFLAGS = 3 // unistd.h:288:1:
X_CS_POSIX_V6_ILP32_OFF32_LIBS = 4 // unistd.h:289:1:
X_CS_POSIX_V6_ILP32_OFFBIG_CFLAGS = 5 // unistd.h:290:1:
X_CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS = 6 // unistd.h:291:1:
X_CS_POSIX_V6_ILP32_OFFBIG_LIBS = 7 // unistd.h:292:1:
X_CS_POSIX_V6_LP64_OFF64_CFLAGS = 8 // unistd.h:293:1:
X_CS_POSIX_V6_LP64_OFF64_LDFLAGS = 9 // unistd.h:294:1:
X_CS_POSIX_V6_LP64_OFF64_LIBS = 10 // unistd.h:295:1:
X_CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS = 11 // unistd.h:296:1:
X_CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS = 12 // unistd.h:297:1:
X_CS_POSIX_V6_LPBIG_OFFBIG_LIBS = 13 // unistd.h:298:1:
X_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS = 14 // unistd.h:299:1:
X_CS_POSIX_V7_ILP32_OFF32_CFLAGS = 16 // unistd.h:301:1:
X_CS_POSIX_V7_ILP32_OFF32_LDFLAGS = 17 // unistd.h:302:1:
X_CS_POSIX_V7_ILP32_OFF32_LIBS = 18 // unistd.h:303:1:
X_CS_POSIX_V7_ILP32_OFFBIG_CFLAGS = 19 // unistd.h:304:1:
X_CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS = 20 // unistd.h:305:1:
X_CS_POSIX_V7_ILP32_OFFBIG_LIBS = 21 // unistd.h:306:1:
X_CS_POSIX_V7_LP64_OFF64_CFLAGS = 22 // unistd.h:307:1:
X_CS_POSIX_V7_LP64_OFF64_LDFLAGS = 23 // unistd.h:308:1:
X_CS_POSIX_V7_LP64_OFF64_LIBS = 24 // unistd.h:309:1:
X_CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS = 25 // unistd.h:310:1:
X_CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS = 26 // unistd.h:311:1:
X_CS_POSIX_V7_LPBIG_OFFBIG_LIBS = 27 // unistd.h:312:1:
X_CS_POSIX_V7_THREADS_CFLAGS = 28 // unistd.h:313:1:
X_CS_POSIX_V7_THREADS_LDFLAGS = 29 // unistd.h:314:1:
X_CS_POSIX_V7_WIDTH_RESTRICTED_ENVS = 30 // unistd.h:315:1:
X_CS_V6_ENV = 15 // unistd.h:300:1:
X_CS_V7_ENV = 31 // unistd.h:316:1:
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_GETOPT_DEFINED_ = 0 // unistd.h:385:1:
X_INT16_T_DEFINED_ = 0 // types.h:84:1:
X_INT32_T_DEFINED_ = 0 // types.h:94:1:
X_INT64_T_DEFINED_ = 0 // types.h:104:1:
X_INT8_T_DEFINED_ = 0 // types.h:74:1:
X_INTPTR_T_DEFINED_ = 0 // unistd.h:319:1:
X_LITTLE_ENDIAN = 1234 // _endian.h:42:1:
X_LP64 = 1 // <predefined>:1:1:
X_MACHINE_CDEFS_H_ = 0 // cdefs.h:4:1:
X_MACHINE_ENDIAN_H_ = 0 // endian.h:20:1:
X_MACHINE__TYPES_H_ = 0 // _types.h:35:1:
X_MAX_PAGE_SHIFT = 12 // _types.h:57:1:
X_OFF_T_DEFINED_ = 0 // types.h:192:1:
X_PC_2_SYMLINKS = 10 // unistd.h:93:1:
X_PC_ALLOC_SIZE_MIN = 11 // unistd.h:94:1:
X_PC_ASYNC_IO = 12 // unistd.h:95:1:
X_PC_CHOWN_RESTRICTED = 7 // unistd.h:90:1:
X_PC_FILESIZEBITS = 13 // unistd.h:96:1:
X_PC_LINK_MAX = 1 // unistd.h:84:1:
X_PC_MAX_CANON = 2 // unistd.h:85:1:
X_PC_MAX_INPUT = 3 // unistd.h:86:1:
X_PC_NAME_MAX = 4 // unistd.h:87:1:
X_PC_NO_TRUNC = 8 // unistd.h:91:1:
X_PC_PATH_MAX = 5 // unistd.h:88:1:
X_PC_PIPE_BUF = 6 // unistd.h:89:1:
X_PC_PRIO_IO = 14 // unistd.h:97:1:
X_PC_REC_INCR_XFER_SIZE = 15 // unistd.h:98:1:
X_PC_REC_MAX_XFER_SIZE = 16 // unistd.h:99:1:
X_PC_REC_MIN_XFER_SIZE = 17 // unistd.h:100:1:
X_PC_REC_XFER_ALIGN = 18 // unistd.h:101:1:
X_PC_SYMLINK_MAX = 19 // unistd.h:102:1:
X_PC_SYNC_IO = 20 // unistd.h:103:1:
X_PC_TIMESTAMP_RESOLUTION = 21 // unistd.h:104:1:
X_PC_VDISABLE = 9 // unistd.h:92:1:
X_PDP_ENDIAN = 3412 // _endian.h:44:1:
X_PID_T_DEFINED_ = 0 // types.h:167:1:
X_POSIX2_CHAR_TERM = 1 // unistd.h:116:1:
X_POSIX2_C_BIND = 200112 // unistd.h:114:1:
X_POSIX2_C_DEV = -1 // unistd.h:115:1:
X_POSIX2_FORT_DEV = -1 // unistd.h:117:1:
X_POSIX2_FORT_RUN = -1 // unistd.h:118:1:
X_POSIX2_LOCALEDEF = -1 // unistd.h:119:1:
X_POSIX2_PBS = -1 // unistd.h:120:1:
X_POSIX2_PBS_ACCOUNTING = -1 // unistd.h:121:1:
X_POSIX2_PBS_CHECKPOINT = -1 // unistd.h:122:1:
X_POSIX2_PBS_LOCATE = -1 // unistd.h:123:1:
X_POSIX2_PBS_MESSAGE = -1 // unistd.h:124:1:
X_POSIX2_PBS_TRACK = -1 // unistd.h:125:1:
X_POSIX2_SW_DEV = 200112 // unistd.h:126:1:
X_POSIX2_UPE = 200112 // unistd.h:127:1:
X_POSIX2_VERSION = 200809 // unistd.h:148:1:
X_POSIX_ADVISORY_INFO = -1 // unistd.h:65:1:
X_POSIX_ASYNCHRONOUS_IO = -1 // unistd.h:66:1:
X_POSIX_ASYNC_IO = -1 // unistd.h:41:1:
X_POSIX_BARRIERS = 200112 // unistd.h:67:1:
X_POSIX_CHOWN_RESTRICTED = 1 // unistd.h:68:1:
X_POSIX_CLOCK_SELECTION = -1 // unistd.h:69:1:
X_POSIX_CPUTIME = 200809 // unistd.h:70:1:
X_POSIX_FSYNC = 200112 // unistd.h:71:1:
X_POSIX_IPV6 = 0 // unistd.h:72:1:
X_POSIX_JOB_CONTROL = 1 // unistd.h:73:1:
X_POSIX_MAPPED_FILES = 200112 // unistd.h:74:1:
X_POSIX_MEMLOCK = 200112 // unistd.h:75:1:
X_POSIX_MEMLOCK_RANGE = 200112 // unistd.h:76:1:
X_POSIX_MEMORY_PROTECTION = 200112 // unistd.h:77:1:
X_POSIX_MESSAGE_PASSING = -1 // unistd.h:78:1:
X_POSIX_MONOTONIC_CLOCK = 200112 // unistd.h:79:1:
X_POSIX_NO_TRUNC = 1 // unistd.h:80:1:
X_POSIX_PRIORITIZED_IO = -1 // unistd.h:81:1:
X_POSIX_PRIORITY_SCHEDULING = -1 // unistd.h:82:1:
X_POSIX_PRIO_IO = -1 // unistd.h:42:1:
X_POSIX_RAW_SOCKETS = 200112 // unistd.h:83:1:
X_POSIX_READER_WRITER_LOCKS = 200112 // unistd.h:84:1:
X_POSIX_REALTIME_SIGNALS = -1 // unistd.h:85:1:
X_POSIX_REGEXP = 1 // unistd.h:86:1:
X_POSIX_SAVED_IDS = 1 // unistd.h:87:1:
X_POSIX_SEMAPHORES = 200112 // unistd.h:88:1:
X_POSIX_SHARED_MEMORY_OBJECTS = 200809 // unistd.h:89:1:
X_POSIX_SHELL = 1 // unistd.h:90:1:
X_POSIX_SPAWN = 200112 // unistd.h:91:1:
X_POSIX_SPIN_LOCKS = 200112 // unistd.h:92:1:
X_POSIX_SPORADIC_SERVER = -1 // unistd.h:93:1:
X_POSIX_SYNCHRONIZED_IO = -1 // unistd.h:94:1:
X_POSIX_SYNC_IO = -1 // unistd.h:43:1:
X_POSIX_THREADS = 200112 // unistd.h:106:1:
X_POSIX_THREAD_ATTR_STACKADDR = 200112 // unistd.h:95:1:
X_POSIX_THREAD_ATTR_STACKSIZE = 200112 // unistd.h:96:1:
X_POSIX_THREAD_CPUTIME = 200809 // unistd.h:97:1:
X_POSIX_THREAD_PRIORITY_SCHEDULING = -1 // unistd.h:100:1:
X_POSIX_THREAD_PRIO_INHERIT = -1 // unistd.h:98:1:
X_POSIX_THREAD_PRIO_PROTECT = -1 // unistd.h:99:1:
X_POSIX_THREAD_PROCESS_SHARED = -1 // unistd.h:101:1:
X_POSIX_THREAD_ROBUST_PRIO_INHERIT = -1 // unistd.h:102:1:
X_POSIX_THREAD_ROBUST_PRIO_PROTECT = -1 // unistd.h:103:1:
X_POSIX_THREAD_SAFE_FUNCTIONS = 200112 // unistd.h:104:1:
X_POSIX_THREAD_SPORADIC_SERVER = -1 // unistd.h:105:1:
X_POSIX_TIMEOUTS = 200112 // unistd.h:107:1:
X_POSIX_TIMERS = -1 // unistd.h:108:1:
X_POSIX_TRACE = -1 // unistd.h:109:1:
X_POSIX_TRACE_EVENT_FILTER = -1 // unistd.h:110:1:
X_POSIX_TRACE_INHERIT = -1 // unistd.h:111:1:
X_POSIX_TRACE_LOG = -1 // unistd.h:112:1:
X_POSIX_TYPED_MEMORY_OBJECTS = -1 // unistd.h:113:1:
X_POSIX_V6_ILP32_OFF32 = -1 // unistd.h:128:1:
X_POSIX_V6_ILP32_OFFBIG = 0 // unistd.h:129:1:
X_POSIX_V6_LP64_OFF64 = 0 // unistd.h:130:1:
X_POSIX_V6_LPBIG_OFFBIG = 0 // unistd.h:131:1:
X_POSIX_V7_ILP32_OFF32 = -1 // unistd.h:132:1:
X_POSIX_V7_ILP32_OFFBIG = 0 // unistd.h:133:1:
X_POSIX_V7_LP64_OFF64 = 0 // unistd.h:134:1:
X_POSIX_V7_LPBIG_OFFBIG = 0 // unistd.h:135:1:
X_POSIX_VDISABLE = 255 // unistd.h:40:1:
X_POSIX_VERSION = 200809 // unistd.h:46:1:
X_QUAD_HIGHWORD = 1 // _endian.h:95:1:
X_QUAD_LOWWORD = 0 // _endian.h:96:1:
X_RET_PROTECTOR = 1 // <predefined>:2:1:
X_SC_2_CHAR_TERM = 20 // unistd.h:172:1:
X_SC_2_C_BIND = 18 // unistd.h:170:1:
X_SC_2_C_DEV = 19 // unistd.h:171:1:
X_SC_2_FORT_DEV = 21 // unistd.h:173:1:
X_SC_2_FORT_RUN = 22 // unistd.h:174:1:
X_SC_2_LOCALEDEF = 23 // unistd.h:175:1:
X_SC_2_PBS = 35 // unistd.h:188:1:
X_SC_2_PBS_ACCOUNTING = 36 // unistd.h:189:1:
X_SC_2_PBS_CHECKPOINT = 37 // unistd.h:190:1:
X_SC_2_PBS_LOCATE = 38 // unistd.h:191:1:
X_SC_2_PBS_MESSAGE = 39 // unistd.h:192:1:
X_SC_2_PBS_TRACK = 40 // unistd.h:193:1:
X_SC_2_SW_DEV = 24 // unistd.h:176:1:
X_SC_2_UPE = 25 // unistd.h:177:1:
X_SC_2_VERSION = 17 // unistd.h:169:1:
X_SC_ADVISORY_INFO = 41 // unistd.h:194:1:
X_SC_AIO_LISTIO_MAX = 42 // unistd.h:195:1:
X_SC_AIO_MAX = 43 // unistd.h:196:1:
X_SC_AIO_PRIO_DELTA_MAX = 44 // unistd.h:197:1:
X_SC_ARG_MAX = 1 // unistd.h:153:1:
X_SC_ASYNCHRONOUS_IO = 45 // unistd.h:198:1:
X_SC_ATEXIT_MAX = 46 // unistd.h:199:1:
X_SC_AVPHYS_PAGES = 501 // unistd.h:281:1:
X_SC_BARRIERS = 47 // unistd.h:200:1:
X_SC_BC_BASE_MAX = 9 // unistd.h:161:1:
X_SC_BC_DIM_MAX = 10 // unistd.h:162:1:
X_SC_BC_SCALE_MAX = 11 // unistd.h:163:1:
X_SC_BC_STRING_MAX = 12 // unistd.h:164:1:
X_SC_CHILD_MAX = 2 // unistd.h:154:1:
X_SC_CLK_TCK = 3 // unistd.h:155:1:
X_SC_CLOCK_SELECTION = 48 // unistd.h:201:1:
X_SC_COLL_WEIGHTS_MAX = 13 // unistd.h:165:1:
X_SC_CPUTIME = 49 // unistd.h:202:1:
X_SC_DELAYTIMER_MAX = 50 // unistd.h:203:1:
X_SC_EXPR_NEST_MAX = 14 // unistd.h:166:1:
X_SC_FSYNC = 29 // unistd.h:182:1:
X_SC_GETGR_R_SIZE_MAX = 100 // unistd.h:253:1:
X_SC_GETPW_R_SIZE_MAX = 101 // unistd.h:254:1:
X_SC_HOST_NAME_MAX = 33 // unistd.h:186:1:
X_SC_IOV_MAX = 51 // unistd.h:204:1:
X_SC_IPV6 = 52 // unistd.h:205:1:
X_SC_JOB_CONTROL = 6 // unistd.h:158:1:
X_SC_LINE_MAX = 15 // unistd.h:167:1:
X_SC_LOGIN_NAME_MAX = 102 // unistd.h:255:1:
X_SC_MAPPED_FILES = 53 // unistd.h:206:1:
X_SC_MEMLOCK = 54 // unistd.h:207:1:
X_SC_MEMLOCK_RANGE = 55 // unistd.h:208:1:
X_SC_MEMORY_PROTECTION = 56 // unistd.h:209:1:
X_SC_MESSAGE_PASSING = 57 // unistd.h:210:1:
X_SC_MONOTONIC_CLOCK = 34 // unistd.h:187:1:
X_SC_MQ_OPEN_MAX = 58 // unistd.h:211:1:
X_SC_MQ_PRIO_MAX = 59 // unistd.h:212:1:
X_SC_NGROUPS_MAX = 4 // unistd.h:156:1:
X_SC_NPROCESSORS_CONF = 502 // unistd.h:282:1:
X_SC_NPROCESSORS_ONLN = 503 // unistd.h:283:1:
X_SC_OPEN_MAX = 5 // unistd.h:157:1:
X_SC_PAGESIZE = 28 // unistd.h:180:1:
X_SC_PAGE_SIZE = 28 // unistd.h:181:1:
X_SC_PHYS_PAGES = 500 // unistd.h:280:1:
X_SC_PRIORITIZED_IO = 60 // unistd.h:213:1:
X_SC_PRIORITY_SCHEDULING = 61 // unistd.h:214:1:
X_SC_RAW_SOCKETS = 62 // unistd.h:215:1:
X_SC_READER_WRITER_LOCKS = 63 // unistd.h:216:1:
X_SC_REALTIME_SIGNALS = 64 // unistd.h:217:1:
X_SC_REGEXP = 65 // unistd.h:218:1:
X_SC_RE_DUP_MAX = 16 // unistd.h:168:1:
X_SC_RTSIG_MAX = 66 // unistd.h:219:1:
X_SC_SAVED_IDS = 7 // unistd.h:159:1:
X_SC_SEMAPHORES = 67 // unistd.h:220:1:
X_SC_SEM_NSEMS_MAX = 31 // unistd.h:184:1:
X_SC_SEM_VALUE_MAX = 32 // unistd.h:185:1:
X_SC_SHARED_MEMORY_OBJECTS = 68 // unistd.h:221:1:
X_SC_SHELL = 69 // unistd.h:222:1:
X_SC_SIGQUEUE_MAX = 70 // unistd.h:223:1:
X_SC_SPAWN = 71 // unistd.h:224:1:
X_SC_SPIN_LOCKS = 72 // unistd.h:225:1:
X_SC_SPORADIC_SERVER = 73 // unistd.h:226:1:
X_SC_SS_REPL_MAX = 74 // unistd.h:227:1:
X_SC_STREAM_MAX = 26 // unistd.h:178:1:
X_SC_SYMLOOP_MAX = 76 // unistd.h:229:1:
X_SC_SYNCHRONIZED_IO = 75 // unistd.h:228:1:
X_SC_THREADS = 91 // unistd.h:244:1:
X_SC_THREAD_ATTR_STACKADDR = 77 // unistd.h:230:1:
X_SC_THREAD_ATTR_STACKSIZE = 78 // unistd.h:231:1:
X_SC_THREAD_CPUTIME = 79 // unistd.h:232:1:
X_SC_THREAD_DESTRUCTOR_ITERATIONS = 80 // unistd.h:233:1:
X_SC_THREAD_KEYS_MAX = 81 // unistd.h:234:1:
X_SC_THREAD_PRIORITY_SCHEDULING = 84 // unistd.h:237:1:
X_SC_THREAD_PRIO_INHERIT = 82 // unistd.h:235:1:
X_SC_THREAD_PRIO_PROTECT = 83 // unistd.h:236:1:
X_SC_THREAD_PROCESS_SHARED = 85 // unistd.h:238:1:
X_SC_THREAD_ROBUST_PRIO_INHERIT = 86 // unistd.h:239:1:
X_SC_THREAD_ROBUST_PRIO_PROTECT = 87 // unistd.h:240:1:
X_SC_THREAD_SAFE_FUNCTIONS = 103 // unistd.h:256:1:
X_SC_THREAD_SPORADIC_SERVER = 88 // unistd.h:241:1:
X_SC_THREAD_STACK_MIN = 89 // unistd.h:242:1:
X_SC_THREAD_THREADS_MAX = 90 // unistd.h:243:1:
X_SC_TIMEOUTS = 92 // unistd.h:245:1:
X_SC_TIMERS = 94 // unistd.h:247:1:
X_SC_TIMER_MAX = 93 // unistd.h:246:1:
X_SC_TRACE = 95 // unistd.h:248:1:
X_SC_TRACE_EVENT_FILTER = 96 // unistd.h:249:1:
X_SC_TRACE_EVENT_NAME_MAX = 97 // unistd.h:250:1:
X_SC_TRACE_INHERIT = 98 // unistd.h:251:1:
X_SC_TRACE_LOG = 99 // unistd.h:252:1:
X_SC_TRACE_NAME_MAX = 104 // unistd.h:257:1:
X_SC_TRACE_SYS_MAX = 105 // unistd.h:258:1:
X_SC_TRACE_USER_EVENT_MAX = 106 // unistd.h:259:1:
X_SC_TTY_NAME_MAX = 107 // unistd.h:260:1:
X_SC_TYPED_MEMORY_OBJECTS = 108 // unistd.h:261:1:
X_SC_TZNAME_MAX = 27 // unistd.h:179:1:
X_SC_V6_ILP32_OFF32 = 109 // unistd.h:262:1:
X_SC_V6_ILP32_OFFBIG = 110 // unistd.h:263:1:
X_SC_V6_LP64_OFF64 = 111 // unistd.h:264:1:
X_SC_V6_LPBIG_OFFBIG = 112 // unistd.h:265:1:
X_SC_V7_ILP32_OFF32 = 113 // unistd.h:266:1:
X_SC_V7_ILP32_OFFBIG = 114 // unistd.h:267:1:
X_SC_V7_LP64_OFF64 = 115 // unistd.h:268:1:
X_SC_V7_LPBIG_OFFBIG = 116 // unistd.h:269:1:
X_SC_VERSION = 8 // unistd.h:160:1:
X_SC_XOPEN_CRYPT = 117 // unistd.h:270:1:
X_SC_XOPEN_ENH_I18N = 118 // unistd.h:271:1:
X_SC_XOPEN_LEGACY = 119 // unistd.h:272:1:
X_SC_XOPEN_REALTIME = 120 // unistd.h:273:1:
X_SC_XOPEN_REALTIME_THREADS = 121 // unistd.h:274:1:
X_SC_XOPEN_SHM = 30 // unistd.h:183:1:
X_SC_XOPEN_STREAMS = 122 // unistd.h:275:1:
X_SC_XOPEN_UNIX = 123 // unistd.h:276:1:
X_SC_XOPEN_UUCP = 124 // unistd.h:277:1:
X_SC_XOPEN_VERSION = 125 // unistd.h:278:1:
X_SIZE_T_DEFINED_ = 0 // types.h:172:1:
X_SSIZE_T_DEFINED_ = 0 // types.h:177:1:
X_STACKALIGNBYTES = 15 // _types.h:54:1:
X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1:
X_SYS_ENDIAN_H_ = 0 // endian.h:38:1:
X_SYS_TYPES_H_ = 0 // types.h:41:1:
X_SYS_UNISTD_H_ = 0 // unistd.h:36:1:
X_SYS__ENDIAN_H_ = 0 // _endian.h:34:1:
X_SYS__TYPES_H_ = 0 // _types.h:35:1:
X_TIMER_T_DEFINED_ = 0 // types.h:187:1:
X_TIME_T_DEFINED_ = 0 // types.h:182:1:
X_UINT16_T_DEFINED_ = 0 // types.h:89:1:
X_UINT32_T_DEFINED_ = 0 // types.h:99:1:
X_UINT64_T_DEFINED_ = 0 // types.h:109:1:
X_UINT8_T_DEFINED_ = 0 // types.h:79:1:
X_UNISTD_H_ = 0 // unistd.h:36:1:
X_XOPEN_CRYPT = 1 // unistd.h:137:1:
X_XOPEN_ENH_I18N = -1 // unistd.h:138:1:
X_XOPEN_LEGACY = -1 // unistd.h:139:1:
X_XOPEN_REALTIME = -1 // unistd.h:140:1:
X_XOPEN_REALTIME_THREADS = -1 // unistd.h:141:1:
X_XOPEN_SHM = 1 // unistd.h:142:1:
X_XOPEN_STREAMS = -1 // unistd.h:143:1:
X_XOPEN_UNIX = -1 // unistd.h:145:1:
X_XOPEN_UUCP = -1 // unistd.h:144:1:
Unix = 1 // <predefined>:360:1:
)
type Ptrdiff_t = int64 /* <builtin>:3:26 */
type Size_t = uint64 /* <builtin>:9:23 */
type Wchar_t = int32 /* <builtin>:15:24 */
type X__int128_t = struct {
Flo int64
Fhi int64
} /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
type X__uint128_t = struct {
Flo uint64
Fhi uint64
} /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
type X__float128 = float64 /* <builtin>:47:21 */
// $OpenBSD: unistd.h,v 1.106 2018/07/13 09:25:22 beck Exp $
// $NetBSD: unistd.h,v 1.26.4.1 1996/05/28 02:31:51 mrg Exp $
// -
// Copyright (c) 1991 The Regents of the University of California.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// @(#)unistd.h 5.13 (Berkeley) 6/17/91
// $OpenBSD: _null.h,v 1.2 2016/09/09 22:07:58 millert Exp $
// Written by Todd C. Miller, September 9, 2016
// Public domain.
// $OpenBSD: types.h,v 1.49 2022/08/06 13:31:13 semarie Exp $
// $NetBSD: types.h,v 1.29 1996/11/15 22:48:25 jtc Exp $
// -
// Copyright (c) 1982, 1986, 1991, 1993
// The Regents of the University of California. All rights reserved.
// (c) UNIX System Laboratories, Inc.
// All or some portions of this file are derived from material licensed
// to the University of California by American Telephone and Telegraph
// Co. or Unix System Laboratories, Inc. and are reproduced herein with
// the permission of UNIX System Laboratories, Inc.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// @(#)types.h 8.4 (Berkeley) 1/21/94
// $OpenBSD: cdefs.h,v 1.43 2018/10/29 17:10:40 guenther Exp $
// $NetBSD: cdefs.h,v 1.16 1996/04/03 20:46:39 christos Exp $
// Copyright (c) 1991, 1993
// The Regents of the University of California. All rights reserved.
//
// This code is derived from software contributed to Berkeley by
// Berkeley Software Design, Inc.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// @(#)cdefs.h 8.7 (Berkeley) 1/21/94
// $OpenBSD: cdefs.h,v 1.1 2016/12/17 23:38:33 patrick Exp $
// Macro to test if we're using a specific version of gcc or later.
// The __CONCAT macro is used to concatenate parts of symbol names, e.g.
// with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo.
// The __CONCAT macro is a bit tricky -- make sure you don't put spaces
// in between its arguments. Do not use __CONCAT on double-quoted strings,
// such as those from the __STRING macro: to concatenate strings just put
// them next to each other.
// GCC1 and some versions of GCC2 declare dead (non-returning) and
// pure (no side effects) functions using "volatile" and "const";
// unfortunately, these then cause warnings under "-ansi -pedantic".
// GCC >= 2.5 uses the __attribute__((attrs)) style. All of these
// work for GNU C++ (modulo a slight glitch in the C++ grammar in
// the distribution version of 2.5.5).
// __returns_twice makes the compiler not assume the function
// only returns once. This affects registerisation of variables:
// even local variables need to be in memory across such a call.
// Example: setjmp()
// __only_inline makes the compiler only use this function definition
// for inlining; references that can't be inlined will be left as
// external references instead of generating a local copy. The
// matching library should include a simple extern definition for
// the function to handle those references. c.f. ctype.h
// GNU C version 2.96 adds explicit branch prediction so that
// the CPU back-end can hint the processor and also so that
// code blocks can be reordered such that the predicted path
// sees a more linear flow, thus improving cache behavior, etc.
//
// The following two macros provide us with a way to utilize this
// compiler feature. Use __predict_true() if you expect the expression
// to evaluate to true, and __predict_false() if you expect the
// expression to evaluate to false.
//
// A few notes about usage:
//
// * Generally, __predict_false() error condition checks (unless
// you have some _strong_ reason to do otherwise, in which case
// document it), and/or __predict_true() `no-error' condition
// checks, assuming you want to optimize for the no-error case.
//
// * Other than that, if you don't know the likelihood of a test
// succeeding from empirical or other `hard' evidence, don't
// make predictions.
//
// * These are meant to be used in places that are run `a lot'.
// It is wasteful to make predictions in code that is run
// seldomly (e.g. at subsystem initialization time) as the
// basic block reordering that this affects can often generate
// larger code.
// Delete pseudo-keywords wherever they are not available or needed.
// The __packed macro indicates that a variable or structure members
// should have the smallest possible alignment, despite any host CPU
// alignment requirements.
//
// The __aligned(x) macro specifies the minimum alignment of a
// variable or structure.
//
// These macros together are useful for describing the layout and
// alignment of messages exchanged with hardware or other systems.
// "The nice thing about standards is that there are so many to choose from."
// There are a number of "feature test macros" specified by (different)
// standards that determine which interfaces and types the header files
// should expose.
//
// Because of inconsistencies in these macros, we define our own
// set in the private name space that end in _VISIBLE. These are
// always defined and so headers can test their values easily.
// Things can get tricky when multiple feature macros are defined.
// We try to take the union of all the features requested.
//
// The following macros are guaranteed to have a value after cdefs.h
// has been included:
// __POSIX_VISIBLE
// __XPG_VISIBLE
// __ISO_C_VISIBLE
// __BSD_VISIBLE
// X/Open Portability Guides and Single Unix Specifications.
// _XOPEN_SOURCE XPG3
// _XOPEN_SOURCE && _XOPEN_VERSION = 4 XPG4
// _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED = 1 XPG4v2
// _XOPEN_SOURCE == 500 XPG5
// _XOPEN_SOURCE == 520 XPG5v2
// _XOPEN_SOURCE == 600 POSIX 1003.1-2001 with XSI
// _XOPEN_SOURCE == 700 POSIX 1003.1-2008 with XSI
//
// The XPG spec implies a specific value for _POSIX_C_SOURCE.
// POSIX macros, these checks must follow the XOPEN ones above.
//
// _POSIX_SOURCE == 1 1003.1-1988 (superseded by _POSIX_C_SOURCE)
// _POSIX_C_SOURCE == 1 1003.1-1990
// _POSIX_C_SOURCE == 2 1003.2-1992
// _POSIX_C_SOURCE == 199309L 1003.1b-1993
// _POSIX_C_SOURCE == 199506L 1003.1c-1995, 1003.1i-1995,
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | true |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/unistd/capi_windows_amd64.go | vendor/modernc.org/libc/unistd/capi_windows_amd64.go | // 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 -o unistd\unistd_windows_amd64.go -pkgname unistd', DO NOT EDIT.
package unistd
var CAPI = map[string]struct{}{}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/unistd/capi_linux_loong64.go | vendor/modernc.org/libc/unistd/capi_linux_loong64.go | // 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_linux_loong64.go -pkgname unistd', DO NOT EDIT.
package unistd
var CAPI = map[string]struct{}{}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/unistd/capi_linux_ppc64le.go | vendor/modernc.org/libc/unistd/capi_linux_ppc64le.go | // 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_linux_ppc64le.go -pkgname unistd', DO NOT EDIT.
package unistd
var CAPI = map[string]struct{}{}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/unistd/capi_netbsd_amd64.go | vendor/modernc.org/libc/unistd/capi_netbsd_amd64.go | // 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_netbsd_amd64.go -pkgname unistd', DO NOT EDIT.
package unistd
var CAPI = map[string]struct{}{}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/unistd/capi_freebsd_arm64.go | vendor/modernc.org/libc/unistd/capi_freebsd_arm64.go | // 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.
package unistd
var CAPI = map[string]struct{}{}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/unistd/unistd_linux_amd64.go | vendor/modernc.org/libc/unistd/unistd_linux_amd64.go | // 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_linux_amd64.go -pkgname unistd', DO NOT EDIT.
package unistd
import (
"math"
"reflect"
"sync/atomic"
"unsafe"
)
var _ = math.Pi
var _ reflect.Kind
var _ atomic.Value
var _ unsafe.Pointer
const (
F_LOCK = 1 // unistd.h:1074:1:
F_OK = 0 // unistd.h:284:1:
F_TEST = 3 // unistd.h:1076:1:
F_TLOCK = 2 // unistd.h:1075:1:
F_ULOCK = 0 // unistd.h:1073:1:
L_INCR = 1 // unistd.h:323:1:
L_SET = 0 // unistd.h:322:1:
L_XTND = 2 // unistd.h:324:1:
R_OK = 4 // unistd.h:281:1:
SEEK_CUR = 1 // unistd.h:312:1:
SEEK_END = 2 // unistd.h:313:1:
SEEK_SET = 0 // unistd.h:311:1:
STDERR_FILENO = 2 // unistd.h:212:1:
STDIN_FILENO = 0 // unistd.h:210:1:
STDOUT_FILENO = 1 // unistd.h:211:1:
W_OK = 2 // unistd.h:282:1:
X_OK = 1 // unistd.h:283:1:
X_ATFILE_SOURCE = 1 // features.h:342:1:
X_BITS_POSIX_OPT_H = 1 // posix_opt.h:20:1:
X_BITS_TIME64_H = 1 // time64.h:24:1:
X_BITS_TYPESIZES_H = 1 // typesizes.h:24:1:
X_BITS_TYPES_H = 1 // types.h:24:1:
X_BSD_SIZE_T_ = 0 // stddef.h:189:1:
X_BSD_SIZE_T_DEFINED_ = 0 // stddef.h:192:1:
X_DEFAULT_SOURCE = 1 // features.h:227:1:
X_FEATURES_H = 1 // features.h:19:1:
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_GCC_SIZE_T = 0 // stddef.h:195:1:
X_GETOPT_CORE_H = 1 // getopt_core.h:21:1:
X_GETOPT_POSIX_H = 1 // getopt_posix.h:21:1:
X_LFS64_ASYNCHRONOUS_IO = 1 // posix_opt.h:117:1:
X_LFS64_LARGEFILE = 1 // posix_opt.h:121:1:
X_LFS64_STDIO = 1 // posix_opt.h:122:1:
X_LFS_ASYNCHRONOUS_IO = 1 // posix_opt.h:112:1:
X_LFS_LARGEFILE = 1 // posix_opt.h:120:1:
X_LP64 = 1 // <predefined>:284:1:
X_POSIX2_CHAR_TERM = 200809 // posix_opt.h:179:1:
X_POSIX2_C_BIND = 200809 // unistd.h:74:1:
X_POSIX2_C_DEV = 200809 // unistd.h:78:1:
X_POSIX2_C_VERSION = 200809 // unistd.h:70:1:
X_POSIX2_LOCALEDEF = 200809 // unistd.h:86:1:
X_POSIX2_SW_DEV = 200809 // unistd.h:82:1:
X_POSIX2_VERSION = 200809 // unistd.h:67:1:
X_POSIX_ADVISORY_INFO = 200809 // posix_opt.h:170:1:
X_POSIX_ASYNCHRONOUS_IO = 200809 // posix_opt.h:109:1:
X_POSIX_ASYNC_IO = 1 // posix_opt.h:110:1:
X_POSIX_BARRIERS = 200809 // posix_opt.h:155:1:
X_POSIX_CHOWN_RESTRICTED = 0 // posix_opt.h:53:1:
X_POSIX_CLOCK_SELECTION = 200809 // posix_opt.h:167:1:
X_POSIX_CPUTIME = 0 // posix_opt.h:128:1:
X_POSIX_C_SOURCE = 200809 // features.h:281:1:
X_POSIX_FSYNC = 200809 // posix_opt.h:38:1:
X_POSIX_IPV6 = 200809 // posix_opt.h:173:1:
X_POSIX_JOB_CONTROL = 1 // posix_opt.h:23:1:
X_POSIX_MAPPED_FILES = 200809 // posix_opt.h:41:1:
X_POSIX_MEMLOCK = 200809 // posix_opt.h:44:1:
X_POSIX_MEMLOCK_RANGE = 200809 // posix_opt.h:47:1:
X_POSIX_MEMORY_PROTECTION = 200809 // posix_opt.h:50:1:
X_POSIX_MESSAGE_PASSING = 200809 // posix_opt.h:158:1:
X_POSIX_MONOTONIC_CLOCK = 0 // posix_opt.h:164:1:
X_POSIX_NO_TRUNC = 1 // posix_opt.h:60:1:
X_POSIX_PRIORITIZED_IO = 200809 // posix_opt.h:114:1:
X_POSIX_PRIORITY_SCHEDULING = 200809 // posix_opt.h:32:1:
X_POSIX_RAW_SOCKETS = 200809 // posix_opt.h:176:1:
X_POSIX_READER_WRITER_LOCKS = 200809 // posix_opt.h:137:1:
X_POSIX_REALTIME_SIGNALS = 200809 // posix_opt.h:106:1:
X_POSIX_REENTRANT_FUNCTIONS = 1 // posix_opt.h:75:1:
X_POSIX_REGEXP = 1 // posix_opt.h:134:1:
X_POSIX_SAVED_IDS = 1 // posix_opt.h:26:1:
X_POSIX_SEMAPHORES = 200809 // posix_opt.h:103:1:
X_POSIX_SHARED_MEMORY_OBJECTS = 200809 // posix_opt.h:125:1:
X_POSIX_SHELL = 1 // posix_opt.h:140:1:
X_POSIX_SOURCE = 1 // features.h:279:1:
X_POSIX_SPAWN = 200809 // posix_opt.h:149:1:
X_POSIX_SPIN_LOCKS = 200809 // posix_opt.h:146:1:
X_POSIX_SPORADIC_SERVER = -1 // posix_opt.h:182:1:
X_POSIX_SYNCHRONIZED_IO = 200809 // posix_opt.h:35:1:
X_POSIX_THREADS = 200809 // posix_opt.h:72:1:
X_POSIX_THREAD_ATTR_STACKADDR = 200809 // posix_opt.h:85:1:
X_POSIX_THREAD_ATTR_STACKSIZE = 200809 // posix_opt.h:82:1:
X_POSIX_THREAD_CPUTIME = 0 // posix_opt.h:131:1:
X_POSIX_THREAD_PRIORITY_SCHEDULING = 200809 // posix_opt.h:79:1:
X_POSIX_THREAD_PRIO_INHERIT = 200809 // posix_opt.h:88:1:
X_POSIX_THREAD_PRIO_PROTECT = 200809 // posix_opt.h:92:1:
X_POSIX_THREAD_PROCESS_SHARED = 200809 // posix_opt.h:161:1:
X_POSIX_THREAD_ROBUST_PRIO_INHERIT = 200809 // posix_opt.h:96:1:
X_POSIX_THREAD_ROBUST_PRIO_PROTECT = -1 // posix_opt.h:99:1:
X_POSIX_THREAD_SAFE_FUNCTIONS = 200809 // posix_opt.h:76:1:
X_POSIX_THREAD_SPORADIC_SERVER = -1 // posix_opt.h:183:1:
X_POSIX_TIMEOUTS = 200809 // posix_opt.h:143:1:
X_POSIX_TIMERS = 200809 // posix_opt.h:152:1:
X_POSIX_TRACE = -1 // posix_opt.h:186:1:
X_POSIX_TRACE_EVENT_FILTER = -1 // posix_opt.h:187:1:
X_POSIX_TRACE_INHERIT = -1 // posix_opt.h:188:1:
X_POSIX_TRACE_LOG = -1 // posix_opt.h:189:1:
X_POSIX_TYPED_MEMORY_OBJECTS = -1 // posix_opt.h:192:1:
X_POSIX_V6_LP64_OFF64 = 1 // environments.h:62:1:
X_POSIX_V6_LPBIG_OFFBIG = -1 // environments.h:57:1:
X_POSIX_V7_LP64_OFF64 = 1 // environments.h:61:1:
X_POSIX_V7_LPBIG_OFFBIG = -1 // environments.h:56:1:
X_POSIX_VDISABLE = 0 // posix_opt.h:57:1:
X_POSIX_VERSION = 200809 // unistd.h:34:1:
X_SIZET_ = 0 // stddef.h:196:1:
X_SIZE_T = 0 // stddef.h:183:1:
X_SIZE_T_ = 0 // stddef.h:188:1:
X_SIZE_T_DECLARED = 0 // stddef.h:193:1:
X_SIZE_T_DEFINED = 0 // stddef.h:191:1:
X_SIZE_T_DEFINED_ = 0 // stddef.h:190:1:
X_STDC_PREDEF_H = 1 // <predefined>:162:1:
X_SYS_CDEFS_H = 1 // cdefs.h:19:1:
X_SYS_SIZE_T_H = 0 // stddef.h:184:1:
X_T_SIZE = 0 // stddef.h:186:1:
X_T_SIZE_ = 0 // stddef.h:185:1:
X_UNISTD_H = 1 // unistd.h:23:1:
X_XBS5_LP64_OFF64 = 1 // environments.h:63:1:
X_XBS5_LPBIG_OFFBIG = -1 // environments.h:58:1:
X_XOPEN_ENH_I18N = 1 // unistd.h:112:1:
X_XOPEN_LEGACY = 1 // unistd.h:115:1:
X_XOPEN_REALTIME = 1 // posix_opt.h:63:1:
X_XOPEN_REALTIME_THREADS = 1 // posix_opt.h:66:1:
X_XOPEN_SHM = 1 // posix_opt.h:69:1:
X_XOPEN_UNIX = 1 // unistd.h:108:1:
X_XOPEN_VERSION = 700 // unistd.h:90:1:
X_XOPEN_XCU_VERSION = 4 // unistd.h:100:1:
X_XOPEN_XPG2 = 1 // unistd.h:103:1:
X_XOPEN_XPG3 = 1 // unistd.h:104:1:
X_XOPEN_XPG4 = 1 // unistd.h:105:1:
Linux = 1 // <predefined>:231:1:
Unix = 1 // <predefined>:177:1:
)
// Get the `_PC_*' symbols for the NAME argument to `pathconf' and `fpathconf';
// the `_SC_*' symbols for the NAME argument to `sysconf';
// and the `_CS_*' symbols for the NAME argument to `confstr'.
// `sysconf', `pathconf', and `confstr' NAME values. Generic version.
// Copyright (C) 1993-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// Values for the NAME argument to `pathconf' and `fpathconf'.
const ( /* confname.h:24:1: */
X_PC_LINK_MAX = 0
X_PC_MAX_CANON = 1
X_PC_MAX_INPUT = 2
X_PC_NAME_MAX = 3
X_PC_PATH_MAX = 4
X_PC_PIPE_BUF = 5
X_PC_CHOWN_RESTRICTED = 6
X_PC_NO_TRUNC = 7
X_PC_VDISABLE = 8
X_PC_SYNC_IO = 9
X_PC_ASYNC_IO = 10
X_PC_PRIO_IO = 11
X_PC_SOCK_MAXBUF = 12
X_PC_FILESIZEBITS = 13
X_PC_REC_INCR_XFER_SIZE = 14
X_PC_REC_MAX_XFER_SIZE = 15
X_PC_REC_MIN_XFER_SIZE = 16
X_PC_REC_XFER_ALIGN = 17
X_PC_ALLOC_SIZE_MIN = 18
X_PC_SYMLINK_MAX = 19
X_PC_2_SYMLINKS = 20
)
// Values for the NAME argument to `confstr'.
const ( /* confname.h:533:1: */
X_CS_PATH = 0 // The default search path.
X_CS_V6_WIDTH_RESTRICTED_ENVS = 1
X_CS_GNU_LIBC_VERSION = 2
X_CS_GNU_LIBPTHREAD_VERSION = 3
X_CS_V5_WIDTH_RESTRICTED_ENVS = 4
X_CS_V7_WIDTH_RESTRICTED_ENVS = 5
X_CS_LFS_CFLAGS = 1000
X_CS_LFS_LDFLAGS = 1001
X_CS_LFS_LIBS = 1002
X_CS_LFS_LINTFLAGS = 1003
X_CS_LFS64_CFLAGS = 1004
X_CS_LFS64_LDFLAGS = 1005
X_CS_LFS64_LIBS = 1006
X_CS_LFS64_LINTFLAGS = 1007
X_CS_XBS5_ILP32_OFF32_CFLAGS = 1100
X_CS_XBS5_ILP32_OFF32_LDFLAGS = 1101
X_CS_XBS5_ILP32_OFF32_LIBS = 1102
X_CS_XBS5_ILP32_OFF32_LINTFLAGS = 1103
X_CS_XBS5_ILP32_OFFBIG_CFLAGS = 1104
X_CS_XBS5_ILP32_OFFBIG_LDFLAGS = 1105
X_CS_XBS5_ILP32_OFFBIG_LIBS = 1106
X_CS_XBS5_ILP32_OFFBIG_LINTFLAGS = 1107
X_CS_XBS5_LP64_OFF64_CFLAGS = 1108
X_CS_XBS5_LP64_OFF64_LDFLAGS = 1109
X_CS_XBS5_LP64_OFF64_LIBS = 1110
X_CS_XBS5_LP64_OFF64_LINTFLAGS = 1111
X_CS_XBS5_LPBIG_OFFBIG_CFLAGS = 1112
X_CS_XBS5_LPBIG_OFFBIG_LDFLAGS = 1113
X_CS_XBS5_LPBIG_OFFBIG_LIBS = 1114
X_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS = 1115
X_CS_POSIX_V6_ILP32_OFF32_CFLAGS = 1116
X_CS_POSIX_V6_ILP32_OFF32_LDFLAGS = 1117
X_CS_POSIX_V6_ILP32_OFF32_LIBS = 1118
X_CS_POSIX_V6_ILP32_OFF32_LINTFLAGS = 1119
X_CS_POSIX_V6_ILP32_OFFBIG_CFLAGS = 1120
X_CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS = 1121
X_CS_POSIX_V6_ILP32_OFFBIG_LIBS = 1122
X_CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS = 1123
X_CS_POSIX_V6_LP64_OFF64_CFLAGS = 1124
X_CS_POSIX_V6_LP64_OFF64_LDFLAGS = 1125
X_CS_POSIX_V6_LP64_OFF64_LIBS = 1126
X_CS_POSIX_V6_LP64_OFF64_LINTFLAGS = 1127
X_CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS = 1128
X_CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS = 1129
X_CS_POSIX_V6_LPBIG_OFFBIG_LIBS = 1130
X_CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS = 1131
X_CS_POSIX_V7_ILP32_OFF32_CFLAGS = 1132
X_CS_POSIX_V7_ILP32_OFF32_LDFLAGS = 1133
X_CS_POSIX_V7_ILP32_OFF32_LIBS = 1134
X_CS_POSIX_V7_ILP32_OFF32_LINTFLAGS = 1135
X_CS_POSIX_V7_ILP32_OFFBIG_CFLAGS = 1136
X_CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS = 1137
X_CS_POSIX_V7_ILP32_OFFBIG_LIBS = 1138
X_CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS = 1139
X_CS_POSIX_V7_LP64_OFF64_CFLAGS = 1140
X_CS_POSIX_V7_LP64_OFF64_LDFLAGS = 1141
X_CS_POSIX_V7_LP64_OFF64_LIBS = 1142
X_CS_POSIX_V7_LP64_OFF64_LINTFLAGS = 1143
X_CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS = 1144
X_CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS = 1145
X_CS_POSIX_V7_LPBIG_OFFBIG_LIBS = 1146
X_CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS = 1147
X_CS_V6_ENV = 1148
X_CS_V7_ENV = 1149
)
// Values for the argument to `sysconf'.
const ( /* confname.h:71:1: */
X_SC_ARG_MAX = 0
X_SC_CHILD_MAX = 1
X_SC_CLK_TCK = 2
X_SC_NGROUPS_MAX = 3
X_SC_OPEN_MAX = 4
X_SC_STREAM_MAX = 5
X_SC_TZNAME_MAX = 6
X_SC_JOB_CONTROL = 7
X_SC_SAVED_IDS = 8
X_SC_REALTIME_SIGNALS = 9
X_SC_PRIORITY_SCHEDULING = 10
X_SC_TIMERS = 11
X_SC_ASYNCHRONOUS_IO = 12
X_SC_PRIORITIZED_IO = 13
X_SC_SYNCHRONIZED_IO = 14
X_SC_FSYNC = 15
X_SC_MAPPED_FILES = 16
X_SC_MEMLOCK = 17
X_SC_MEMLOCK_RANGE = 18
X_SC_MEMORY_PROTECTION = 19
X_SC_MESSAGE_PASSING = 20
X_SC_SEMAPHORES = 21
X_SC_SHARED_MEMORY_OBJECTS = 22
X_SC_AIO_LISTIO_MAX = 23
X_SC_AIO_MAX = 24
X_SC_AIO_PRIO_DELTA_MAX = 25
X_SC_DELAYTIMER_MAX = 26
X_SC_MQ_OPEN_MAX = 27
X_SC_MQ_PRIO_MAX = 28
X_SC_VERSION = 29
X_SC_PAGESIZE = 30
X_SC_RTSIG_MAX = 31
X_SC_SEM_NSEMS_MAX = 32
X_SC_SEM_VALUE_MAX = 33
X_SC_SIGQUEUE_MAX = 34
X_SC_TIMER_MAX = 35
// Values for the argument to `sysconf'
// corresponding to _POSIX2_* symbols.
X_SC_BC_BASE_MAX = 36
X_SC_BC_DIM_MAX = 37
X_SC_BC_SCALE_MAX = 38
X_SC_BC_STRING_MAX = 39
X_SC_COLL_WEIGHTS_MAX = 40
X_SC_EQUIV_CLASS_MAX = 41
X_SC_EXPR_NEST_MAX = 42
X_SC_LINE_MAX = 43
X_SC_RE_DUP_MAX = 44
X_SC_CHARCLASS_NAME_MAX = 45
X_SC_2_VERSION = 46
X_SC_2_C_BIND = 47
X_SC_2_C_DEV = 48
X_SC_2_FORT_DEV = 49
X_SC_2_FORT_RUN = 50
X_SC_2_SW_DEV = 51
X_SC_2_LOCALEDEF = 52
X_SC_PII = 53
X_SC_PII_XTI = 54
X_SC_PII_SOCKET = 55
X_SC_PII_INTERNET = 56
X_SC_PII_OSI = 57
X_SC_POLL = 58
X_SC_SELECT = 59
X_SC_UIO_MAXIOV = 60
X_SC_IOV_MAX = 60
X_SC_PII_INTERNET_STREAM = 61
X_SC_PII_INTERNET_DGRAM = 62
X_SC_PII_OSI_COTS = 63
X_SC_PII_OSI_CLTS = 64
X_SC_PII_OSI_M = 65
X_SC_T_IOV_MAX = 66
// Values according to POSIX 1003.1c (POSIX threads).
X_SC_THREADS = 67
X_SC_THREAD_SAFE_FUNCTIONS = 68
X_SC_GETGR_R_SIZE_MAX = 69
X_SC_GETPW_R_SIZE_MAX = 70
X_SC_LOGIN_NAME_MAX = 71
X_SC_TTY_NAME_MAX = 72
X_SC_THREAD_DESTRUCTOR_ITERATIONS = 73
X_SC_THREAD_KEYS_MAX = 74
X_SC_THREAD_STACK_MIN = 75
X_SC_THREAD_THREADS_MAX = 76
X_SC_THREAD_ATTR_STACKADDR = 77
X_SC_THREAD_ATTR_STACKSIZE = 78
X_SC_THREAD_PRIORITY_SCHEDULING = 79
X_SC_THREAD_PRIO_INHERIT = 80
X_SC_THREAD_PRIO_PROTECT = 81
X_SC_THREAD_PROCESS_SHARED = 82
X_SC_NPROCESSORS_CONF = 83
X_SC_NPROCESSORS_ONLN = 84
X_SC_PHYS_PAGES = 85
X_SC_AVPHYS_PAGES = 86
X_SC_ATEXIT_MAX = 87
X_SC_PASS_MAX = 88
X_SC_XOPEN_VERSION = 89
X_SC_XOPEN_XCU_VERSION = 90
X_SC_XOPEN_UNIX = 91
X_SC_XOPEN_CRYPT = 92
X_SC_XOPEN_ENH_I18N = 93
X_SC_XOPEN_SHM = 94
X_SC_2_CHAR_TERM = 95
X_SC_2_C_VERSION = 96
X_SC_2_UPE = 97
X_SC_XOPEN_XPG2 = 98
X_SC_XOPEN_XPG3 = 99
X_SC_XOPEN_XPG4 = 100
X_SC_CHAR_BIT = 101
X_SC_CHAR_MAX = 102
X_SC_CHAR_MIN = 103
X_SC_INT_MAX = 104
X_SC_INT_MIN = 105
X_SC_LONG_BIT = 106
X_SC_WORD_BIT = 107
X_SC_MB_LEN_MAX = 108
X_SC_NZERO = 109
X_SC_SSIZE_MAX = 110
X_SC_SCHAR_MAX = 111
X_SC_SCHAR_MIN = 112
X_SC_SHRT_MAX = 113
X_SC_SHRT_MIN = 114
X_SC_UCHAR_MAX = 115
X_SC_UINT_MAX = 116
X_SC_ULONG_MAX = 117
X_SC_USHRT_MAX = 118
X_SC_NL_ARGMAX = 119
X_SC_NL_LANGMAX = 120
X_SC_NL_MSGMAX = 121
X_SC_NL_NMAX = 122
X_SC_NL_SETMAX = 123
X_SC_NL_TEXTMAX = 124
X_SC_XBS5_ILP32_OFF32 = 125
X_SC_XBS5_ILP32_OFFBIG = 126
X_SC_XBS5_LP64_OFF64 = 127
X_SC_XBS5_LPBIG_OFFBIG = 128
X_SC_XOPEN_LEGACY = 129
X_SC_XOPEN_REALTIME = 130
X_SC_XOPEN_REALTIME_THREADS = 131
X_SC_ADVISORY_INFO = 132
X_SC_BARRIERS = 133
X_SC_BASE = 134
X_SC_C_LANG_SUPPORT = 135
X_SC_C_LANG_SUPPORT_R = 136
X_SC_CLOCK_SELECTION = 137
X_SC_CPUTIME = 138
X_SC_THREAD_CPUTIME = 139
X_SC_DEVICE_IO = 140
X_SC_DEVICE_SPECIFIC = 141
X_SC_DEVICE_SPECIFIC_R = 142
X_SC_FD_MGMT = 143
X_SC_FIFO = 144
X_SC_PIPE = 145
X_SC_FILE_ATTRIBUTES = 146
X_SC_FILE_LOCKING = 147
X_SC_FILE_SYSTEM = 148
X_SC_MONOTONIC_CLOCK = 149
X_SC_MULTI_PROCESS = 150
X_SC_SINGLE_PROCESS = 151
X_SC_NETWORKING = 152
X_SC_READER_WRITER_LOCKS = 153
X_SC_SPIN_LOCKS = 154
X_SC_REGEXP = 155
X_SC_REGEX_VERSION = 156
X_SC_SHELL = 157
X_SC_SIGNALS = 158
X_SC_SPAWN = 159
X_SC_SPORADIC_SERVER = 160
X_SC_THREAD_SPORADIC_SERVER = 161
X_SC_SYSTEM_DATABASE = 162
X_SC_SYSTEM_DATABASE_R = 163
X_SC_TIMEOUTS = 164
X_SC_TYPED_MEMORY_OBJECTS = 165
X_SC_USER_GROUPS = 166
X_SC_USER_GROUPS_R = 167
X_SC_2_PBS = 168
X_SC_2_PBS_ACCOUNTING = 169
X_SC_2_PBS_LOCATE = 170
X_SC_2_PBS_MESSAGE = 171
X_SC_2_PBS_TRACK = 172
X_SC_SYMLOOP_MAX = 173
X_SC_STREAMS = 174
X_SC_2_PBS_CHECKPOINT = 175
X_SC_V6_ILP32_OFF32 = 176
X_SC_V6_ILP32_OFFBIG = 177
X_SC_V6_LP64_OFF64 = 178
X_SC_V6_LPBIG_OFFBIG = 179
X_SC_HOST_NAME_MAX = 180
X_SC_TRACE = 181
X_SC_TRACE_EVENT_FILTER = 182
X_SC_TRACE_INHERIT = 183
X_SC_TRACE_LOG = 184
X_SC_LEVEL1_ICACHE_SIZE = 185
X_SC_LEVEL1_ICACHE_ASSOC = 186
X_SC_LEVEL1_ICACHE_LINESIZE = 187
X_SC_LEVEL1_DCACHE_SIZE = 188
X_SC_LEVEL1_DCACHE_ASSOC = 189
X_SC_LEVEL1_DCACHE_LINESIZE = 190
X_SC_LEVEL2_CACHE_SIZE = 191
X_SC_LEVEL2_CACHE_ASSOC = 192
X_SC_LEVEL2_CACHE_LINESIZE = 193
X_SC_LEVEL3_CACHE_SIZE = 194
X_SC_LEVEL3_CACHE_ASSOC = 195
X_SC_LEVEL3_CACHE_LINESIZE = 196
X_SC_LEVEL4_CACHE_SIZE = 197
X_SC_LEVEL4_CACHE_ASSOC = 198
X_SC_LEVEL4_CACHE_LINESIZE = 199
// Leave room here, maybe we need a few more cache levels some day.
X_SC_IPV6 = 235
X_SC_RAW_SOCKETS = 236
X_SC_V7_ILP32_OFF32 = 237
X_SC_V7_ILP32_OFFBIG = 238
X_SC_V7_LP64_OFF64 = 239
X_SC_V7_LPBIG_OFFBIG = 240
X_SC_SS_REPL_MAX = 241
X_SC_TRACE_EVENT_NAME_MAX = 242
X_SC_TRACE_NAME_MAX = 243
X_SC_TRACE_SYS_MAX = 244
X_SC_TRACE_USER_EVENT_MAX = 245
X_SC_XOPEN_STREAMS = 246
X_SC_THREAD_ROBUST_PRIO_INHERIT = 247
X_SC_THREAD_ROBUST_PRIO_PROTECT = 248
)
type Ptrdiff_t = int64 /* <builtin>:3:26 */
type Size_t = uint64 /* <builtin>:9:23 */
type Wchar_t = int32 /* <builtin>:15:24 */
type X__int128_t = struct {
Flo int64
Fhi int64
} /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
type X__uint128_t = struct {
Flo uint64
Fhi uint64
} /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
type X__float128 = float64 /* <builtin>:47:21 */
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// POSIX Standard: 2.10 Symbolic Constants <unistd.h>
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// These are defined by the user (or the compiler)
// to specify the desired environment:
//
// __STRICT_ANSI__ ISO Standard C.
// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99.
// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11.
// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X.
// __STDC_WANT_LIB_EXT2__
// Extensions to ISO C99 from TR 27431-2:2010.
// __STDC_WANT_IEC_60559_BFP_EXT__
// Extensions to ISO C11 from TS 18661-1:2014.
// __STDC_WANT_IEC_60559_FUNCS_EXT__
// Extensions to ISO C11 from TS 18661-4:2015.
// __STDC_WANT_IEC_60559_TYPES_EXT__
// Extensions to ISO C11 from TS 18661-3:2015.
//
// _POSIX_SOURCE IEEE Std 1003.1.
// _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2;
// if >=199309L, add IEEE Std 1003.1b-1993;
// if >=199506L, add IEEE Std 1003.1c-1995;
// if >=200112L, all of IEEE 1003.1-2004
// if >=200809L, all of IEEE 1003.1-2008
// _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if
// Single Unix conformance is wanted, to 600 for the
// sixth revision, to 700 for the seventh revision.
// _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions.
// _LARGEFILE_SOURCE Some more functions for correct standard I/O.
// _LARGEFILE64_SOURCE Additional functionality from LFS for large files.
// _FILE_OFFSET_BITS=N Select default filesystem interface.
// _ATFILE_SOURCE Additional *at interfaces.
// _GNU_SOURCE All of the above, plus GNU extensions.
// _DEFAULT_SOURCE The default set of features (taking precedence over
// __STRICT_ANSI__).
//
// _FORTIFY_SOURCE Add security hardening to many library functions.
// Set to 1 or 2; 2 performs stricter checks than 1.
//
// _REENTRANT, _THREAD_SAFE
// Obsolete; equivalent to _POSIX_C_SOURCE=199506L.
//
// The `-ansi' switch to the GNU C compiler, and standards conformance
// options such as `-std=c99', define __STRICT_ANSI__. If none of
// these are defined, or if _DEFAULT_SOURCE is defined, the default is
// to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to
// 200809L, as well as enabling miscellaneous functions from BSD and
// SVID. If more than one of these are defined, they accumulate. For
// example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together
// give you ISO C, 1003.1, and 1003.2, but nothing else.
//
// These are defined by this file and are used by the
// header files to decide what to declare or define:
//
// __GLIBC_USE (F) Define things from feature set F. This is defined
// to 1 or 0; the subsequent macros are either defined
// or undefined, and those tests should be moved to
// __GLIBC_USE.
// __USE_ISOC11 Define ISO C11 things.
// __USE_ISOC99 Define ISO C99 things.
// __USE_ISOC95 Define ISO C90 AMD1 (C95) things.
// __USE_ISOCXX11 Define ISO C++11 things.
// __USE_POSIX Define IEEE Std 1003.1 things.
// __USE_POSIX2 Define IEEE Std 1003.2 things.
// __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things.
// __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things.
// __USE_XOPEN Define XPG things.
// __USE_XOPEN_EXTENDED Define X/Open Unix things.
// __USE_UNIX98 Define Single Unix V2 things.
// __USE_XOPEN2K Define XPG6 things.
// __USE_XOPEN2KXSI Define XPG6 XSI things.
// __USE_XOPEN2K8 Define XPG7 things.
// __USE_XOPEN2K8XSI Define XPG7 XSI things.
// __USE_LARGEFILE Define correct standard I/O things.
// __USE_LARGEFILE64 Define LFS things with separate names.
// __USE_FILE_OFFSET64 Define 64bit interface as default.
// __USE_MISC Define things from 4.3BSD or System V Unix.
// __USE_ATFILE Define *at interfaces and AT_* constants for them.
// __USE_GNU Define GNU extensions.
// __USE_FORTIFY_LEVEL Additional security measures used, according to level.
//
// The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are
// defined by this file unconditionally. `__GNU_LIBRARY__' is provided
// only for compatibility. All new code should use the other symbols
// to test for features.
//
// All macros listed above as possibly being defined by this file are
// explicitly undefined if they are not explicitly defined.
// Feature-test macros that are not defined by the user or compiler
// but are implied by the other feature-test macros defined (or by the
// lack of any definitions) are defined by the file.
//
// ISO C feature test macros depend on the definition of the macro
// when an affected header is included, not when the first system
// header is included, and so they are handled in
// <bits/libc-header-start.h>, which does not have a multiple include
// guard. Feature test macros that can be handled from the first
// system header included are handled here.
// Undefine everything, so we get a clean slate.
// Suppress kernel-name space pollution unless user expressedly asks
// for it.
// Convenience macro to test the version of gcc.
// Use like this:
// #if __GNUC_PREREQ (2,8)
// ... code requiring gcc 2.8 or later ...
// #endif
// Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was
// added in 2.0.
// Similarly for clang. Features added to GCC after version 4.2 may
// or may not also be available in clang, and clang's definitions of
// __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such
// features can be queried via __has_extension/__has_feature.
// Whether to use feature set F.
// _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for
// _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not
// issue a warning; the expectation is that the source is being
// transitioned to use the new macro.
// If _GNU_SOURCE was defined by the user, turn on all the other features.
// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined,
// define _DEFAULT_SOURCE.
// This is to enable the ISO C2X extension.
// This is to enable the ISO C11 extension.
// This is to enable the ISO C99 extension.
// This is to enable the ISO C90 Amendment 1:1995 extension.
// If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE
// is defined, use POSIX.1-2008 (or another version depending on
// _XOPEN_SOURCE).
// Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be
// defined in all multithreaded code. GNU libc has not required this
// for many years. We now treat them as compatibility synonyms for
// _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with
// comprehensive support for multithreaded code. Using them never
// lowers the selected level of POSIX conformance, only raises it.
// The function 'gets' existed in C89, but is impossible to use
// safely. It has been removed from ISO C11 and ISO C++14. Note: for
// compatibility with various implementations of <cstdio>, this test
// must consider only the value of __cplusplus when compiling C++.
// GNU formerly extended the scanf functions with modified format
// specifiers %as, %aS, and %a[...] that allocate a buffer for the
// input using malloc. This extension conflicts with ISO C99, which
// defines %a as a standalone format specifier that reads a floating-
// point number; moreover, POSIX.1-2008 provides the same feature
// using the modifier letter 'm' instead (%ms, %mS, %m[...]).
//
// We now follow C99 unless GNU extensions are active and the compiler
// is specifically in C89 or C++98 mode (strict or not). For
// instance, with GCC, -std=gnu11 will have C99-compliant scanf with
// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the
// old extension.
// Get definitions of __STDC_* predefined macros, if the compiler has
// not preincluded this header automatically.
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// This macro indicates that the installed library is the GNU C Library.
// For historic reasons the value now is 6 and this will stay from now
// on. The use of this variable is deprecated. Use __GLIBC__ and
// __GLIBC_MINOR__ now (see below) when you want to test for a specific
// GNU C library version and use the values in <gnu/lib-names.h> to get
// the sonames of the shared libraries.
// Major and minor version number of the GNU C library package. Use
// these macros to test for features in specific releases.
// This is here only because every header file already includes this one.
// Copyright (C) 1992-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | true |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/unistd/unistd_freebsd_amd64.go | vendor/modernc.org/libc/unistd/unistd_freebsd_amd64.go | // 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.
package unistd
import (
"math"
"reflect"
"sync/atomic"
"unsafe"
)
var _ = math.Pi
var _ reflect.Kind
var _ atomic.Value
var _ unsafe.Pointer
const (
BIG_ENDIAN = 4321 // _endian.h:70:1:
BYTE_ORDER = 1234 // _endian.h:72:1:
CLOSE_RANGE_CLOEXEC = 4 // unistd.h:205:1:
FD_SETSIZE = 1024 // select.h:61:1:
F_LOCK = 1 // unistd.h:85:1:
F_OK = 0 // unistd.h:102:1:
F_TEST = 3 // unistd.h:87:1:
F_TLOCK = 2 // unistd.h:86:1:
F_ULOCK = 0 // unistd.h:84:1:
LITTLE_ENDIAN = 1234 // _endian.h:69:1:
L_INCR = 1 // unistd.h:121:1:
L_SET = 0 // unistd.h:120:1:
L_XTND = 2 // unistd.h:122:1:
PDP_ENDIAN = 3412 // _endian.h:71:1:
RFCENVG = 2048 // unistd.h:178:1:
RFCFDG = 4096 // unistd.h:179:1:
RFCNAMEG = 1024 // unistd.h:177:1:
RFENVG = 2 // unistd.h:171:1:
RFFDG = 4 // unistd.h:172:1:
RFFLAGS = 2416930932 // unistd.h:195:1:
RFHIGHPID = 262144 // unistd.h:184:1:
RFKERNELONLY = 268828672 // unistd.h:198:1:
RFLINUXTHPN = 65536 // unistd.h:182:1:
RFMEM = 32 // unistd.h:175:1:
RFNAMEG = 1 // unistd.h:170:1:
RFNOTEG = 8 // unistd.h:173:1:
RFNOWAIT = 64 // unistd.h:176:1:
RFPPWAIT = 2147483648 // unistd.h:192:1:
RFPROC = 16 // unistd.h:174:1:
RFPROCDESC = 268435456 // unistd.h:190:1:
RFSIGSHARE = 16384 // unistd.h:181:1:
RFSPAWN = 2147483648 // unistd.h:194:1:
RFSTOPPED = 131072 // unistd.h:183:1:
RFTHREAD = 8192 // unistd.h:180:1:
RFTSIGMASK = 0xFF // unistd.h:187:1:
RFTSIGSHIFT = 20 // unistd.h:186:1:
RFTSIGZMB = 524288 // unistd.h:185:1:
R_OK = 0x04 // unistd.h:105:1:
SEEK_CUR = 1 // unistd.h:110:1:
SEEK_DATA = 3 // unistd.h:114:1:
SEEK_END = 2 // unistd.h:111:1:
SEEK_HOLE = 4 // unistd.h:115:1:
SEEK_SET = 0 // unistd.h:109:1:
STDERR_FILENO = 2 // unistd.h:81:1:
STDIN_FILENO = 0 // unistd.h:79:1:
STDOUT_FILENO = 1 // unistd.h:80:1:
SWAPOFF_FORCE = 0x00000001 // unistd.h:200:1:
W_OK = 0x02 // unistd.h:104:1:
X_OK = 0x01 // unistd.h:103:1:
X_ACCMODE_T_DECLARED = 0 // types.h:166:1:
X_BIG_ENDIAN = 4321 // _endian.h:47:1:
X_BLKCNT_T_DECLARED = 0 // types.h:90:1:
X_BLKSIZE_T_DECLARED = 0 // types.h:81:1:
X_BYTE_ORDER = 1234 // _endian.h:40:1:
X_CAP_IOCTL_T_DECLARED = 0 // types.h:243:1:
X_CAP_RIGHTS_T_DECLARED = 0 // types.h:248:1:
X_CLOCKID_T_DECLARED = 0 // types.h:100:1:
X_CLOCK_T_DECLARED = 0 // types.h:95:1:
X_CS_PATH = 1 // unistd.h:302:1:
X_CS_POSIX_V6_ILP32_OFF32_CFLAGS = 2 // unistd.h:306:1:
X_CS_POSIX_V6_ILP32_OFF32_LDFLAGS = 3 // unistd.h:307:1:
X_CS_POSIX_V6_ILP32_OFF32_LIBS = 4 // unistd.h:308:1:
X_CS_POSIX_V6_ILP32_OFFBIG_CFLAGS = 5 // unistd.h:309:1:
X_CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS = 6 // unistd.h:310:1:
X_CS_POSIX_V6_ILP32_OFFBIG_LIBS = 7 // unistd.h:311:1:
X_CS_POSIX_V6_LP64_OFF64_CFLAGS = 8 // unistd.h:312:1:
X_CS_POSIX_V6_LP64_OFF64_LDFLAGS = 9 // unistd.h:313:1:
X_CS_POSIX_V6_LP64_OFF64_LIBS = 10 // unistd.h:314:1:
X_CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS = 11 // unistd.h:315:1:
X_CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS = 12 // unistd.h:316:1:
X_CS_POSIX_V6_LPBIG_OFFBIG_LIBS = 13 // unistd.h:317:1:
X_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS = 14 // unistd.h:318:1:
X_DEV_T_DECLARED = 0 // types.h:108:1:
X_FFLAGS_T_DECLARED = 0 // types.h:113:1:
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_FSBLKCNT_T_DECLARED = 0 // types.h:121:1:
X_FTRUNCATE_DECLARED = 0 // types.h:417:1:
X_GETOPT_DECLARED = 0 // unistd.h:378:1:
X_GID_T_DECLARED = 0 // types.h:126:1:
X_ID_T_DECLARED = 0 // types.h:141:1:
X_INO_T_DECLARED = 0 // types.h:146:1:
X_INT16_T_DECLARED = 0 // _stdint.h:42:1:
X_INT32_T_DECLARED = 0 // _stdint.h:47:1:
X_INT64_T_DECLARED = 0 // _stdint.h:52:1:
X_INT8_T_DECLARED = 0 // _stdint.h:37:1:
X_INTMAX_T_DECLARED = 0 // _stdint.h:85:1:
X_INTPTR_T_DECLARED = 0 // _stdint.h:77:1:
X_IN_ADDR_T_DECLARED = 0 // types.h:131:1:
X_IN_PORT_T_DECLARED = 0 // types.h:136:1:
X_KEY_T_DECLARED = 0 // types.h:151:1:
X_LITTLE_ENDIAN = 1234 // _endian.h:46:1:
X_LP64 = 1 // <predefined>:1:1:
X_LSEEK_DECLARED = 0 // types.h:421:1:
X_LWPID_T_DECLARED = 0 // types.h:156:1:
X_MACHINE_ENDIAN_H_ = 0 // endian.h:36:1:
X_MACHINE__LIMITS_H_ = 0 // _limits.h:36:1:
X_MACHINE__TYPES_H_ = 0 // _types.h:42:1:
X_MKDTEMP_DECLARED = 0 // unistd.h:528:1:
X_MKNOD_DECLARED = 0 // unistd.h:532:1:
X_MKSTEMP_DECLARED = 0 // unistd.h:536:1:
X_MKTEMP_DECLARED = 0 // unistd.h:541:1:
X_MMAP_DECLARED = 0 // types.h:425:1:
X_MODE_T_DECLARED = 0 // types.h:161:1:
X_MQD_T_DECLARED = 0 // types.h:227:1:
X_NLINK_T_DECLARED = 0 // types.h:171:1:
X_Nonnull = 0 // cdefs.h:790:1:
X_Null_unspecified = 0 // cdefs.h:792:1:
X_Nullable = 0 // cdefs.h:791:1:
X_OFF64_T_DECLARED = 0 // types.h:181:1:
X_OFF_T_DECLARED = 0 // types.h:176:1:
X_OPTRESET_DECLARED = 0 // unistd.h:592:1:
X_PC_ACL_EXTENDED = 59 // unistd.h:153:1:
X_PC_ACL_NFS4 = 64 // unistd.h:158:1:
X_PC_ACL_PATH_MAX = 60 // unistd.h:154:1:
X_PC_ALLOC_SIZE_MIN = 10 // unistd.h:143:1:
X_PC_ASYNC_IO = 53 // unistd.h:137:1:
X_PC_CAP_PRESENT = 61 // unistd.h:155:1:
X_PC_CHOWN_RESTRICTED = 7 // unistd.h:132:1:
X_PC_FILESIZEBITS = 12 // unistd.h:144:1:
X_PC_INF_PRESENT = 62 // unistd.h:156:1:
X_PC_LINK_MAX = 1 // unistd.h:126:1:
X_PC_MAC_PRESENT = 63 // unistd.h:157:1:
X_PC_MAX_CANON = 2 // unistd.h:127:1:
X_PC_MAX_INPUT = 3 // unistd.h:128:1:
X_PC_MIN_HOLE_SIZE = 21 // unistd.h:162:1:
X_PC_NAME_MAX = 4 // unistd.h:129:1:
X_PC_NO_TRUNC = 8 // unistd.h:133:1:
X_PC_PATH_MAX = 5 // unistd.h:130:1:
X_PC_PIPE_BUF = 6 // unistd.h:131:1:
X_PC_PRIO_IO = 54 // unistd.h:138:1:
X_PC_REC_INCR_XFER_SIZE = 14 // unistd.h:145:1:
X_PC_REC_MAX_XFER_SIZE = 15 // unistd.h:146:1:
X_PC_REC_MIN_XFER_SIZE = 16 // unistd.h:147:1:
X_PC_REC_XFER_ALIGN = 17 // unistd.h:148:1:
X_PC_SYMLINK_MAX = 18 // unistd.h:149:1:
X_PC_SYNC_IO = 55 // unistd.h:139:1:
X_PC_VDISABLE = 9 // unistd.h:134:1:
X_PDP_ENDIAN = 3412 // _endian.h:48:1:
X_PID_T_DECLARED = 0 // types.h:186:1:
X_POSIX2_CHAR_TERM = 1 // unistd.h:127:1:
X_POSIX2_C_BIND = 200112 // unistd.h:125:1:
X_POSIX2_C_DEV = -1 // unistd.h:126:1:
X_POSIX2_FORT_DEV = -1 // unistd.h:128:1:
X_POSIX2_FORT_RUN = 200112 // unistd.h:129:1:
X_POSIX2_LOCALEDEF = -1 // unistd.h:130:1:
X_POSIX2_PBS = -1 // unistd.h:131:1:
X_POSIX2_PBS_ACCOUNTING = -1 // unistd.h:132:1:
X_POSIX2_PBS_CHECKPOINT = -1 // unistd.h:133:1:
X_POSIX2_PBS_LOCATE = -1 // unistd.h:134:1:
X_POSIX2_PBS_MESSAGE = -1 // unistd.h:135:1:
X_POSIX2_PBS_TRACK = -1 // unistd.h:136:1:
X_POSIX2_SW_DEV = -1 // unistd.h:137:1:
X_POSIX2_UPE = 200112 // unistd.h:138:1:
X_POSIX2_VERSION = 199212 // unistd.h:154:1:
X_POSIX_ADVISORY_INFO = 200112 // unistd.h:54:1:
X_POSIX_ASYNCHRONOUS_IO = 200112 // unistd.h:55:1:
X_POSIX_BARRIERS = 200112 // unistd.h:104:1:
X_POSIX_CHOWN_RESTRICTED = 1 // unistd.h:56:1:
X_POSIX_CLOCK_SELECTION = -1 // unistd.h:57:1:
X_POSIX_CPUTIME = 200112 // unistd.h:105:1:
X_POSIX_FSYNC = 200112 // unistd.h:59:1:
X_POSIX_IPV6 = 0 // unistd.h:60:1:
X_POSIX_JOB_CONTROL = 1 // unistd.h:61:1:
X_POSIX_MAPPED_FILES = 200112 // unistd.h:62:1:
X_POSIX_MEMLOCK = -1 // unistd.h:63:1:
X_POSIX_MEMLOCK_RANGE = 200112 // unistd.h:64:1:
X_POSIX_MEMORY_PROTECTION = 200112 // unistd.h:65:1:
X_POSIX_MESSAGE_PASSING = 200112 // unistd.h:66:1:
X_POSIX_MONOTONIC_CLOCK = 200112 // unistd.h:67:1:
X_POSIX_NO_TRUNC = 1 // unistd.h:68:1:
X_POSIX_PRIORITIZED_IO = -1 // unistd.h:69:1:
X_POSIX_PRIORITY_SCHEDULING = 0 // unistd.h:70:1:
X_POSIX_RAW_SOCKETS = 200112 // unistd.h:71:1:
X_POSIX_READER_WRITER_LOCKS = 200112 // unistd.h:106:1:
X_POSIX_REALTIME_SIGNALS = 200112 // unistd.h:72:1:
X_POSIX_REGEXP = 1 // unistd.h:107:1:
X_POSIX_SEMAPHORES = 200112 // unistd.h:73:1:
X_POSIX_SHARED_MEMORY_OBJECTS = 200112 // unistd.h:74:1:
X_POSIX_SHELL = 1 // unistd.h:108:1:
X_POSIX_SPAWN = 200112 // unistd.h:109:1:
X_POSIX_SPIN_LOCKS = 200112 // unistd.h:110:1:
X_POSIX_SPORADIC_SERVER = -1 // unistd.h:75:1:
X_POSIX_SYNCHRONIZED_IO = -1 // unistd.h:76:1:
X_POSIX_THREADS = 200112 // unistd.h:120:1:
X_POSIX_THREAD_ATTR_STACKADDR = 200112 // unistd.h:111:1:
X_POSIX_THREAD_ATTR_STACKSIZE = 200112 // unistd.h:112:1:
X_POSIX_THREAD_CPUTIME = 200112 // unistd.h:113:1:
X_POSIX_THREAD_PRIORITY_SCHEDULING = 200112 // unistd.h:116:1:
X_POSIX_THREAD_PRIO_INHERIT = 200112 // unistd.h:114:1:
X_POSIX_THREAD_PRIO_PROTECT = 200112 // unistd.h:115:1:
X_POSIX_THREAD_PROCESS_SHARED = 200112 // unistd.h:117:1:
X_POSIX_THREAD_SAFE_FUNCTIONS = -1 // unistd.h:118:1:
X_POSIX_THREAD_SPORADIC_SERVER = -1 // unistd.h:119:1:
X_POSIX_TIMEOUTS = 200112 // unistd.h:77:1:
X_POSIX_TIMERS = 200112 // unistd.h:78:1:
X_POSIX_TRACE = -1 // unistd.h:121:1:
X_POSIX_TRACE_EVENT_FILTER = -1 // unistd.h:122:1:
X_POSIX_TRACE_INHERIT = -1 // unistd.h:123:1:
X_POSIX_TRACE_LOG = -1 // unistd.h:124:1:
X_POSIX_TYPED_MEMORY_OBJECTS = -1 // unistd.h:79:1:
X_POSIX_VDISABLE = 0xff // unistd.h:80:1:
X_POSIX_VERSION = 200112 // unistd.h:99:1:
X_PTHREAD_T_DECLARED = 0 // _pthreadtypes.h:68:1:
X_QUAD_HIGHWORD = 1 // _endian.h:55:1:
X_QUAD_LOWWORD = 0 // _endian.h:56:1:
X_RLIM_T_DECLARED = 0 // types.h:193:1:
X_SC_2_CHAR_TERM = 20 // unistd.h:184:1:
X_SC_2_C_BIND = 18 // unistd.h:182:1:
X_SC_2_C_DEV = 19 // unistd.h:183:1:
X_SC_2_FORT_DEV = 21 // unistd.h:185:1:
X_SC_2_FORT_RUN = 22 // unistd.h:186:1:
X_SC_2_LOCALEDEF = 23 // unistd.h:187:1:
X_SC_2_PBS = 59 // unistd.h:222:1:
X_SC_2_PBS_ACCOUNTING = 60 // unistd.h:223:1:
X_SC_2_PBS_CHECKPOINT = 61 // unistd.h:224:1:
X_SC_2_PBS_LOCATE = 62 // unistd.h:225:1:
X_SC_2_PBS_MESSAGE = 63 // unistd.h:226:1:
X_SC_2_PBS_TRACK = 64 // unistd.h:227:1:
X_SC_2_SW_DEV = 24 // unistd.h:188:1:
X_SC_2_UPE = 25 // unistd.h:189:1:
X_SC_2_VERSION = 17 // unistd.h:181:1:
X_SC_ADVISORY_INFO = 65 // unistd.h:228:1:
X_SC_AIO_LISTIO_MAX = 42 // unistd.h:208:1:
X_SC_AIO_MAX = 43 // unistd.h:209:1:
X_SC_AIO_PRIO_DELTA_MAX = 44 // unistd.h:210:1:
X_SC_ARG_MAX = 1 // unistd.h:165:1:
X_SC_ASYNCHRONOUS_IO = 28 // unistd.h:194:1:
X_SC_ATEXIT_MAX = 107 // unistd.h:276:1:
X_SC_BARRIERS = 66 // unistd.h:229:1:
X_SC_BC_BASE_MAX = 9 // unistd.h:173:1:
X_SC_BC_DIM_MAX = 10 // unistd.h:174:1:
X_SC_BC_SCALE_MAX = 11 // unistd.h:175:1:
X_SC_BC_STRING_MAX = 12 // unistd.h:176:1:
X_SC_CHILD_MAX = 2 // unistd.h:166:1:
X_SC_CLK_TCK = 3 // unistd.h:167:1:
X_SC_CLOCK_SELECTION = 67 // unistd.h:230:1:
X_SC_COLL_WEIGHTS_MAX = 13 // unistd.h:177:1:
X_SC_CPUSET_SIZE = 122 // unistd.h:294:1:
X_SC_CPUTIME = 68 // unistd.h:231:1:
X_SC_DELAYTIMER_MAX = 45 // unistd.h:211:1:
X_SC_EXPR_NEST_MAX = 14 // unistd.h:178:1:
X_SC_FILE_LOCKING = 69 // unistd.h:232:1:
X_SC_FSYNC = 38 // unistd.h:204:1:
X_SC_GETGR_R_SIZE_MAX = 70 // unistd.h:233:1:
X_SC_GETPW_R_SIZE_MAX = 71 // unistd.h:234:1:
X_SC_HOST_NAME_MAX = 72 // unistd.h:235:1:
X_SC_IOV_MAX = 56 // unistd.h:277:1:
X_SC_IPV6 = 118 // unistd.h:270:1:
X_SC_JOB_CONTROL = 6 // unistd.h:170:1:
X_SC_LINE_MAX = 15 // unistd.h:179:1:
X_SC_LOGIN_NAME_MAX = 73 // unistd.h:236:1:
X_SC_MAPPED_FILES = 29 // unistd.h:195:1:
X_SC_MEMLOCK = 30 // unistd.h:196:1:
X_SC_MEMLOCK_RANGE = 31 // unistd.h:197:1:
X_SC_MEMORY_PROTECTION = 32 // unistd.h:198:1:
X_SC_MESSAGE_PASSING = 33 // unistd.h:199:1:
X_SC_MONOTONIC_CLOCK = 74 // unistd.h:237:1:
X_SC_MQ_OPEN_MAX = 46 // unistd.h:212:1:
X_SC_MQ_PRIO_MAX = 75 // unistd.h:238:1:
X_SC_NGROUPS_MAX = 4 // unistd.h:168:1:
X_SC_NPROCESSORS_CONF = 57 // unistd.h:292:1:
X_SC_NPROCESSORS_ONLN = 58 // unistd.h:293:1:
X_SC_OPEN_MAX = 5 // unistd.h:169:1:
X_SC_PAGESIZE = 47 // unistd.h:213:1:
X_SC_PAGE_SIZE = 47 // unistd.h:278:1:
X_SC_PHYS_PAGES = 121 // unistd.h:298:1:
X_SC_PRIORITIZED_IO = 34 // unistd.h:200:1:
X_SC_PRIORITY_SCHEDULING = 35 // unistd.h:201:1:
X_SC_RAW_SOCKETS = 119 // unistd.h:271:1:
X_SC_READER_WRITER_LOCKS = 76 // unistd.h:239:1:
X_SC_REALTIME_SIGNALS = 36 // unistd.h:202:1:
X_SC_REGEXP = 77 // unistd.h:240:1:
X_SC_RE_DUP_MAX = 16 // unistd.h:180:1:
X_SC_RTSIG_MAX = 48 // unistd.h:214:1:
X_SC_SAVED_IDS = 7 // unistd.h:171:1:
X_SC_SEMAPHORES = 37 // unistd.h:203:1:
X_SC_SEM_NSEMS_MAX = 49 // unistd.h:215:1:
X_SC_SEM_VALUE_MAX = 50 // unistd.h:216:1:
X_SC_SHARED_MEMORY_OBJECTS = 39 // unistd.h:205:1:
X_SC_SHELL = 78 // unistd.h:241:1:
X_SC_SIGQUEUE_MAX = 51 // unistd.h:217:1:
X_SC_SPAWN = 79 // unistd.h:242:1:
X_SC_SPIN_LOCKS = 80 // unistd.h:243:1:
X_SC_SPORADIC_SERVER = 81 // unistd.h:244:1:
X_SC_STREAM_MAX = 26 // unistd.h:190:1:
X_SC_SYMLOOP_MAX = 120 // unistd.h:272:1:
X_SC_SYNCHRONIZED_IO = 40 // unistd.h:206:1:
X_SC_THREADS = 96 // unistd.h:259:1:
X_SC_THREAD_ATTR_STACKADDR = 82 // unistd.h:245:1:
X_SC_THREAD_ATTR_STACKSIZE = 83 // unistd.h:246:1:
X_SC_THREAD_CPUTIME = 84 // unistd.h:247:1:
X_SC_THREAD_DESTRUCTOR_ITERATIONS = 85 // unistd.h:248:1:
X_SC_THREAD_KEYS_MAX = 86 // unistd.h:249:1:
X_SC_THREAD_PRIORITY_SCHEDULING = 89 // unistd.h:252:1:
X_SC_THREAD_PRIO_INHERIT = 87 // unistd.h:250:1:
X_SC_THREAD_PRIO_PROTECT = 88 // unistd.h:251:1:
X_SC_THREAD_PROCESS_SHARED = 90 // unistd.h:253:1:
X_SC_THREAD_SAFE_FUNCTIONS = 91 // unistd.h:254:1:
X_SC_THREAD_SPORADIC_SERVER = 92 // unistd.h:255:1:
X_SC_THREAD_STACK_MIN = 93 // unistd.h:256:1:
X_SC_THREAD_THREADS_MAX = 94 // unistd.h:257:1:
X_SC_TIMEOUTS = 95 // unistd.h:258:1:
X_SC_TIMERS = 41 // unistd.h:207:1:
X_SC_TIMER_MAX = 52 // unistd.h:218:1:
X_SC_TRACE = 97 // unistd.h:260:1:
X_SC_TRACE_EVENT_FILTER = 98 // unistd.h:261:1:
X_SC_TRACE_INHERIT = 99 // unistd.h:262:1:
X_SC_TRACE_LOG = 100 // unistd.h:263:1:
X_SC_TTY_NAME_MAX = 101 // unistd.h:264:1:
X_SC_TYPED_MEMORY_OBJECTS = 102 // unistd.h:265:1:
X_SC_TZNAME_MAX = 27 // unistd.h:191:1:
X_SC_V6_ILP32_OFF32 = 103 // unistd.h:266:1:
X_SC_V6_ILP32_OFFBIG = 104 // unistd.h:267:1:
X_SC_V6_LP64_OFF64 = 105 // unistd.h:268:1:
X_SC_V6_LPBIG_OFFBIG = 106 // unistd.h:269:1:
X_SC_VERSION = 8 // unistd.h:172:1:
X_SC_XOPEN_CRYPT = 108 // unistd.h:279:1:
X_SC_XOPEN_ENH_I18N = 109 // unistd.h:280:1:
X_SC_XOPEN_LEGACY = 110 // unistd.h:281:1:
X_SC_XOPEN_REALTIME = 111 // unistd.h:282:1:
X_SC_XOPEN_REALTIME_THREADS = 112 // unistd.h:283:1:
X_SC_XOPEN_SHM = 113 // unistd.h:284:1:
X_SC_XOPEN_STREAMS = 114 // unistd.h:285:1:
X_SC_XOPEN_UNIX = 115 // unistd.h:286:1:
X_SC_XOPEN_VERSION = 116 // unistd.h:287:1:
X_SC_XOPEN_XCU_VERSION = 117 // unistd.h:288:1:
X_SELECT_DECLARED = 0 // select.h:103:1:
X_SIGSET_T_DECLARED = 0 // select.h:50:1:
X_SIG_MAXSIG = 128 // _sigset.h:47:1:
X_SIG_WORDS = 4 // _sigset.h:46:1:
X_SIZE_T_DECLARED = 0 // types.h:202:1:
X_SSIZE_T_DECLARED = 0 // types.h:207:1:
X_SUSECONDS_T_DECLARED = 0 // types.h:212:1:
X_SWAB_DECLARED = 0 // unistd.h:461:1:
X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1:
X_SYS_SELECT_H_ = 0 // select.h:35:1:
X_SYS_TIMESPEC_H_ = 0 // timespec.h:37:1:
X_SYS_TYPES_H_ = 0 // types.h:41:1:
X_SYS_UNISTD_H_ = 0 // unistd.h:36:1:
X_SYS__ENDIAN_H_ = 0 // _endian.h:33:1:
X_SYS__PTHREADTYPES_H_ = 0 // _pthreadtypes.h:39:1:
X_SYS__SIGSET_H_ = 0 // _sigset.h:41:1:
X_SYS__STDINT_H_ = 0 // _stdint.h:33:1:
X_SYS__TIMESPEC_H_ = 0 // _timespec.h:37:1:
X_SYS__TIMEVAL_H_ = 0 // _timeval.h:32:1:
X_SYS__TYPES_H_ = 0 // _types.h:32:1:
X_TIMER_T_DECLARED = 0 // types.h:222:1:
X_TIME_T_DECLARED = 0 // types.h:217:1:
X_TRUNCATE_DECLARED = 0 // types.h:429:1:
X_UID_T_DECLARED = 0 // types.h:234:1:
X_UINT16_T_DECLARED = 0 // _stdint.h:62:1:
X_UINT32_T_DECLARED = 0 // _stdint.h:67:1:
X_UINT64_T_DECLARED = 0 // _stdint.h:72:1:
X_UINT8_T_DECLARED = 0 // _stdint.h:57:1:
X_UINTMAX_T_DECLARED = 0 // _stdint.h:89:1:
X_UINTPTR_T_DECLARED = 0 // _stdint.h:81:1:
X_UNISTD_H_ = 0 // unistd.h:36:1:
X_USECONDS_T_DECLARED = 0 // types.h:239:1:
X_V6_ILP32_OFF32 = -1 // unistd.h:139:1:
X_V6_ILP32_OFFBIG = 0 // unistd.h:140:1:
X_V6_LP64_OFF64 = 0 // unistd.h:141:1:
X_V6_LPBIG_OFFBIG = -1 // unistd.h:142:1:
X_XOPEN_CRYPT = -1 // unistd.h:145:1:
X_XOPEN_ENH_I18N = -1 // unistd.h:146:1:
X_XOPEN_LEGACY = -1 // unistd.h:147:1:
X_XOPEN_REALTIME = -1 // unistd.h:148:1:
X_XOPEN_REALTIME_THREADS = -1 // unistd.h:149:1:
X_XOPEN_SHM = 1 // unistd.h:83:1:
X_XOPEN_STREAMS = -1 // unistd.h:84:1:
X_XOPEN_UNIX = -1 // unistd.h:150:1:
Unix = 1 // <predefined>:340:1:
)
type Ptrdiff_t = int64 /* <builtin>:3:26 */
type Size_t = uint64 /* <builtin>:9:23 */
type Wchar_t = int32 /* <builtin>:15:24 */
type X__int128_t = struct {
Flo int64
Fhi int64
} /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
type X__uint128_t = struct {
Flo uint64
Fhi uint64
} /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
type X__float128 = float64 /* <builtin>:47:21 */
// -
// SPDX-License-Identifier: BSD-3-Clause
//
// Copyright (c) 1991, 1993, 1994
// The Regents of the University of California. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// @(#)unistd.h 8.12 (Berkeley) 4/27/95
// $FreeBSD$
// -
// SPDX-License-Identifier: BSD-3-Clause
//
// Copyright (c) 1991, 1993
// The Regents of the University of California. All rights reserved.
//
// This code is derived from software contributed to Berkeley by
// Berkeley Software Design, Inc.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the University nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// @(#)cdefs.h 8.8 (Berkeley) 1/9/95
// $FreeBSD$
// Testing against Clang-specific extensions.
// This code has been put in place to help reduce the addition of
// compiler specific defines in FreeBSD code. It helps to aid in
// having a compiler-agnostic source tree.
// Compiler memory barriers, specific to gcc and clang.
// XXX: if __GNUC__ >= 2: not tested everywhere originally, where replaced
// Macro to test if we're using a specific version of gcc or later.
// The __CONCAT macro is used to concatenate parts of symbol names, e.g.
// with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo.
// The __CONCAT macro is a bit tricky to use if it must work in non-ANSI
// mode -- there must be no spaces between its arguments, and for nested
// __CONCAT's, all the __CONCAT's must be at the left. __CONCAT can also
// concatenate double-quoted strings produced by the __STRING macro, but
// this only works with ANSI C.
//
// __XSTRING is like __STRING, but it expands any macros in its argument
// first. It is only available with ANSI C.
// Compiler-dependent macros to help declare dead (non-returning) and
// pure (no side effects) functions, and unused variables. They are
// null except for versions of gcc that are known to support the features
// properly (old versions of gcc-2 supported the dead and pure features
// in a different (wrong) way). If we do not provide an implementation
// for a given compiler, let the compile fail if it is told to use
// a feature that we cannot live without.
// Keywords added in C11.
// Emulation of C11 _Generic(). Unlike the previously defined C11
// keywords, it is not possible to implement this using exactly the same
// syntax. Therefore implement something similar under the name
// __generic(). Unlike _Generic(), this macro can only distinguish
// between a single type, so it requires nested invocations to
// distinguish multiple cases.
// C99 Static array indices in function parameter declarations. Syntax such as:
// void bar(int myArray[static 10]);
// is allowed in C99 but not in C++. Define __min_size appropriately so
// headers using it can be compiled in either language. Use like this:
// void bar(int myArray[__min_size(10)]);
// XXX: should use `#if __STDC_VERSION__ < 199901'.
// C++11 exposes a load of C99 stuff
// GCC 2.95 provides `__restrict' as an extension to C90 to support the
// C99-specific `restrict' type qualifier. We happen to use `__restrict' as
// a way to define the `restrict' type qualifier without disturbing older
// software that is unaware of C99 keywords.
// GNU C version 2.96 adds explicit branch prediction so that
// the CPU back-end can hint the processor and also so that
// code blocks can be reordered such that the predicted path
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | true |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/modernc.org/libc/unistd/unistd_linux_s390x.go | vendor/modernc.org/libc/unistd/unistd_linux_s390x.go | // 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 -o unistd/unistd_linux_s390x.go -pkgname unistd', DO NOT EDIT.
package unistd
import (
"math"
"reflect"
"sync/atomic"
"unsafe"
)
var _ = math.Pi
var _ reflect.Kind
var _ atomic.Value
var _ unsafe.Pointer
const (
F_LOCK = 1
F_OK = 0
F_TEST = 3
F_TLOCK = 2
F_ULOCK = 0
L_INCR = 1
L_SET = 0
L_XTND = 2
R_OK = 4
SEEK_CUR = 1
SEEK_END = 2
SEEK_SET = 0
STDERR_FILENO = 2
STDIN_FILENO = 0
STDOUT_FILENO = 1
W_OK = 2
X_OK = 1
X_ATFILE_SOURCE = 1
X_BITS_POSIX_OPT_H = 1
X_BITS_TIME64_H = 1
X_BITS_TYPESIZES_H = 1
X_BITS_TYPES_H = 1
X_BSD_SIZE_T_ = 0
X_BSD_SIZE_T_DEFINED_ = 0
X_DEFAULT_SOURCE = 1
X_FEATURES_H = 1
X_FILE_OFFSET_BITS = 64
X_GCC_SIZE_T = 0
X_GETOPT_CORE_H = 1
X_GETOPT_POSIX_H = 1
X_LFS64_ASYNCHRONOUS_IO = 1
X_LFS64_LARGEFILE = 1
X_LFS64_STDIO = 1
X_LFS_ASYNCHRONOUS_IO = 1
X_LFS_LARGEFILE = 1
X_LP64 = 1
X_POSIX2_CHAR_TERM = 200809
X_POSIX2_C_BIND = 200809
X_POSIX2_C_DEV = 200809
X_POSIX2_C_VERSION = 200809
X_POSIX2_LOCALEDEF = 200809
X_POSIX2_SW_DEV = 200809
X_POSIX2_VERSION = 200809
X_POSIX_ADVISORY_INFO = 200809
X_POSIX_ASYNCHRONOUS_IO = 200809
X_POSIX_ASYNC_IO = 1
X_POSIX_BARRIERS = 200809
X_POSIX_CHOWN_RESTRICTED = 0
X_POSIX_CLOCK_SELECTION = 200809
X_POSIX_CPUTIME = 0
X_POSIX_C_SOURCE = 200809
X_POSIX_FSYNC = 200809
X_POSIX_IPV6 = 200809
X_POSIX_JOB_CONTROL = 1
X_POSIX_MAPPED_FILES = 200809
X_POSIX_MEMLOCK = 200809
X_POSIX_MEMLOCK_RANGE = 200809
X_POSIX_MEMORY_PROTECTION = 200809
X_POSIX_MESSAGE_PASSING = 200809
X_POSIX_MONOTONIC_CLOCK = 0
X_POSIX_NO_TRUNC = 1
X_POSIX_PRIORITIZED_IO = 200809
X_POSIX_PRIORITY_SCHEDULING = 200809
X_POSIX_RAW_SOCKETS = 200809
X_POSIX_READER_WRITER_LOCKS = 200809
X_POSIX_REALTIME_SIGNALS = 200809
X_POSIX_REENTRANT_FUNCTIONS = 1
X_POSIX_REGEXP = 1
X_POSIX_SAVED_IDS = 1
X_POSIX_SEMAPHORES = 200809
X_POSIX_SHARED_MEMORY_OBJECTS = 200809
X_POSIX_SHELL = 1
X_POSIX_SOURCE = 1
X_POSIX_SPAWN = 200809
X_POSIX_SPIN_LOCKS = 200809
X_POSIX_SPORADIC_SERVER = -1
X_POSIX_SYNCHRONIZED_IO = 200809
X_POSIX_THREADS = 200809
X_POSIX_THREAD_ATTR_STACKADDR = 200809
X_POSIX_THREAD_ATTR_STACKSIZE = 200809
X_POSIX_THREAD_CPUTIME = 0
X_POSIX_THREAD_PRIORITY_SCHEDULING = 200809
X_POSIX_THREAD_PRIO_INHERIT = 200809
X_POSIX_THREAD_PRIO_PROTECT = 200809
X_POSIX_THREAD_PROCESS_SHARED = 200809
X_POSIX_THREAD_ROBUST_PRIO_INHERIT = 200809
X_POSIX_THREAD_ROBUST_PRIO_PROTECT = -1
X_POSIX_THREAD_SAFE_FUNCTIONS = 200809
X_POSIX_THREAD_SPORADIC_SERVER = -1
X_POSIX_TIMEOUTS = 200809
X_POSIX_TIMERS = 200809
X_POSIX_TRACE = -1
X_POSIX_TRACE_EVENT_FILTER = -1
X_POSIX_TRACE_INHERIT = -1
X_POSIX_TRACE_LOG = -1
X_POSIX_TYPED_MEMORY_OBJECTS = -1
X_POSIX_V6_LP64_OFF64 = 1
X_POSIX_V6_LPBIG_OFFBIG = -1
X_POSIX_V7_LP64_OFF64 = 1
X_POSIX_V7_LPBIG_OFFBIG = -1
X_POSIX_VDISABLE = 0
X_POSIX_VERSION = 200809
X_SIZET_ = 0
X_SIZE_T = 0
X_SIZE_T_ = 0
X_SIZE_T_DECLARED = 0
X_SIZE_T_DEFINED = 0
X_SIZE_T_DEFINED_ = 0
X_STDC_PREDEF_H = 1
X_SYS_CDEFS_H = 1
X_SYS_SIZE_T_H = 0
X_T_SIZE = 0
X_T_SIZE_ = 0
X_UNISTD_H = 1
X_XBS5_LP64_OFF64 = 1
X_XBS5_LPBIG_OFFBIG = -1
X_XOPEN_ENH_I18N = 1
X_XOPEN_LEGACY = 1
X_XOPEN_REALTIME = 1
X_XOPEN_REALTIME_THREADS = 1
X_XOPEN_SHM = 1
X_XOPEN_UNIX = 1
X_XOPEN_VERSION = 700
X_XOPEN_XCU_VERSION = 4
X_XOPEN_XPG2 = 1
X_XOPEN_XPG3 = 1
X_XOPEN_XPG4 = 1
Linux = 1
Unix = 1
)
// Get the `_PC_*' symbols for the NAME argument to `pathconf' and `fpathconf';
// the `_SC_*' symbols for the NAME argument to `sysconf';
// and the `_CS_*' symbols for the NAME argument to `confstr'.
// `sysconf', `pathconf', and `confstr' NAME values. Generic version.
// Copyright (C) 1993-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// Values for the NAME argument to `pathconf' and `fpathconf'.
const ( /* confname.h:24:1: */
X_PC_LINK_MAX = 0
X_PC_MAX_CANON = 1
X_PC_MAX_INPUT = 2
X_PC_NAME_MAX = 3
X_PC_PATH_MAX = 4
X_PC_PIPE_BUF = 5
X_PC_CHOWN_RESTRICTED = 6
X_PC_NO_TRUNC = 7
X_PC_VDISABLE = 8
X_PC_SYNC_IO = 9
X_PC_ASYNC_IO = 10
X_PC_PRIO_IO = 11
X_PC_SOCK_MAXBUF = 12
X_PC_FILESIZEBITS = 13
X_PC_REC_INCR_XFER_SIZE = 14
X_PC_REC_MAX_XFER_SIZE = 15
X_PC_REC_MIN_XFER_SIZE = 16
X_PC_REC_XFER_ALIGN = 17
X_PC_ALLOC_SIZE_MIN = 18
X_PC_SYMLINK_MAX = 19
X_PC_2_SYMLINKS = 20
)
// Values for the NAME argument to `confstr'.
const ( /* confname.h:533:1: */
X_CS_PATH = 0 // The default search path.
X_CS_V6_WIDTH_RESTRICTED_ENVS = 1
X_CS_GNU_LIBC_VERSION = 2
X_CS_GNU_LIBPTHREAD_VERSION = 3
X_CS_V5_WIDTH_RESTRICTED_ENVS = 4
X_CS_V7_WIDTH_RESTRICTED_ENVS = 5
X_CS_LFS_CFLAGS = 1000
X_CS_LFS_LDFLAGS = 1001
X_CS_LFS_LIBS = 1002
X_CS_LFS_LINTFLAGS = 1003
X_CS_LFS64_CFLAGS = 1004
X_CS_LFS64_LDFLAGS = 1005
X_CS_LFS64_LIBS = 1006
X_CS_LFS64_LINTFLAGS = 1007
X_CS_XBS5_ILP32_OFF32_CFLAGS = 1100
X_CS_XBS5_ILP32_OFF32_LDFLAGS = 1101
X_CS_XBS5_ILP32_OFF32_LIBS = 1102
X_CS_XBS5_ILP32_OFF32_LINTFLAGS = 1103
X_CS_XBS5_ILP32_OFFBIG_CFLAGS = 1104
X_CS_XBS5_ILP32_OFFBIG_LDFLAGS = 1105
X_CS_XBS5_ILP32_OFFBIG_LIBS = 1106
X_CS_XBS5_ILP32_OFFBIG_LINTFLAGS = 1107
X_CS_XBS5_LP64_OFF64_CFLAGS = 1108
X_CS_XBS5_LP64_OFF64_LDFLAGS = 1109
X_CS_XBS5_LP64_OFF64_LIBS = 1110
X_CS_XBS5_LP64_OFF64_LINTFLAGS = 1111
X_CS_XBS5_LPBIG_OFFBIG_CFLAGS = 1112
X_CS_XBS5_LPBIG_OFFBIG_LDFLAGS = 1113
X_CS_XBS5_LPBIG_OFFBIG_LIBS = 1114
X_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS = 1115
X_CS_POSIX_V6_ILP32_OFF32_CFLAGS = 1116
X_CS_POSIX_V6_ILP32_OFF32_LDFLAGS = 1117
X_CS_POSIX_V6_ILP32_OFF32_LIBS = 1118
X_CS_POSIX_V6_ILP32_OFF32_LINTFLAGS = 1119
X_CS_POSIX_V6_ILP32_OFFBIG_CFLAGS = 1120
X_CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS = 1121
X_CS_POSIX_V6_ILP32_OFFBIG_LIBS = 1122
X_CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS = 1123
X_CS_POSIX_V6_LP64_OFF64_CFLAGS = 1124
X_CS_POSIX_V6_LP64_OFF64_LDFLAGS = 1125
X_CS_POSIX_V6_LP64_OFF64_LIBS = 1126
X_CS_POSIX_V6_LP64_OFF64_LINTFLAGS = 1127
X_CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS = 1128
X_CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS = 1129
X_CS_POSIX_V6_LPBIG_OFFBIG_LIBS = 1130
X_CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS = 1131
X_CS_POSIX_V7_ILP32_OFF32_CFLAGS = 1132
X_CS_POSIX_V7_ILP32_OFF32_LDFLAGS = 1133
X_CS_POSIX_V7_ILP32_OFF32_LIBS = 1134
X_CS_POSIX_V7_ILP32_OFF32_LINTFLAGS = 1135
X_CS_POSIX_V7_ILP32_OFFBIG_CFLAGS = 1136
X_CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS = 1137
X_CS_POSIX_V7_ILP32_OFFBIG_LIBS = 1138
X_CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS = 1139
X_CS_POSIX_V7_LP64_OFF64_CFLAGS = 1140
X_CS_POSIX_V7_LP64_OFF64_LDFLAGS = 1141
X_CS_POSIX_V7_LP64_OFF64_LIBS = 1142
X_CS_POSIX_V7_LP64_OFF64_LINTFLAGS = 1143
X_CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS = 1144
X_CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS = 1145
X_CS_POSIX_V7_LPBIG_OFFBIG_LIBS = 1146
X_CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS = 1147
X_CS_V6_ENV = 1148
X_CS_V7_ENV = 1149
)
// Values for the argument to `sysconf'.
const ( /* confname.h:71:1: */
X_SC_ARG_MAX = 0
X_SC_CHILD_MAX = 1
X_SC_CLK_TCK = 2
X_SC_NGROUPS_MAX = 3
X_SC_OPEN_MAX = 4
X_SC_STREAM_MAX = 5
X_SC_TZNAME_MAX = 6
X_SC_JOB_CONTROL = 7
X_SC_SAVED_IDS = 8
X_SC_REALTIME_SIGNALS = 9
X_SC_PRIORITY_SCHEDULING = 10
X_SC_TIMERS = 11
X_SC_ASYNCHRONOUS_IO = 12
X_SC_PRIORITIZED_IO = 13
X_SC_SYNCHRONIZED_IO = 14
X_SC_FSYNC = 15
X_SC_MAPPED_FILES = 16
X_SC_MEMLOCK = 17
X_SC_MEMLOCK_RANGE = 18
X_SC_MEMORY_PROTECTION = 19
X_SC_MESSAGE_PASSING = 20
X_SC_SEMAPHORES = 21
X_SC_SHARED_MEMORY_OBJECTS = 22
X_SC_AIO_LISTIO_MAX = 23
X_SC_AIO_MAX = 24
X_SC_AIO_PRIO_DELTA_MAX = 25
X_SC_DELAYTIMER_MAX = 26
X_SC_MQ_OPEN_MAX = 27
X_SC_MQ_PRIO_MAX = 28
X_SC_VERSION = 29
X_SC_PAGESIZE = 30
X_SC_RTSIG_MAX = 31
X_SC_SEM_NSEMS_MAX = 32
X_SC_SEM_VALUE_MAX = 33
X_SC_SIGQUEUE_MAX = 34
X_SC_TIMER_MAX = 35
// Values for the argument to `sysconf'
// corresponding to _POSIX2_* symbols.
X_SC_BC_BASE_MAX = 36
X_SC_BC_DIM_MAX = 37
X_SC_BC_SCALE_MAX = 38
X_SC_BC_STRING_MAX = 39
X_SC_COLL_WEIGHTS_MAX = 40
X_SC_EQUIV_CLASS_MAX = 41
X_SC_EXPR_NEST_MAX = 42
X_SC_LINE_MAX = 43
X_SC_RE_DUP_MAX = 44
X_SC_CHARCLASS_NAME_MAX = 45
X_SC_2_VERSION = 46
X_SC_2_C_BIND = 47
X_SC_2_C_DEV = 48
X_SC_2_FORT_DEV = 49
X_SC_2_FORT_RUN = 50
X_SC_2_SW_DEV = 51
X_SC_2_LOCALEDEF = 52
X_SC_PII = 53
X_SC_PII_XTI = 54
X_SC_PII_SOCKET = 55
X_SC_PII_INTERNET = 56
X_SC_PII_OSI = 57
X_SC_POLL = 58
X_SC_SELECT = 59
X_SC_UIO_MAXIOV = 60
X_SC_IOV_MAX = 60
X_SC_PII_INTERNET_STREAM = 61
X_SC_PII_INTERNET_DGRAM = 62
X_SC_PII_OSI_COTS = 63
X_SC_PII_OSI_CLTS = 64
X_SC_PII_OSI_M = 65
X_SC_T_IOV_MAX = 66
// Values according to POSIX 1003.1c (POSIX threads).
X_SC_THREADS = 67
X_SC_THREAD_SAFE_FUNCTIONS = 68
X_SC_GETGR_R_SIZE_MAX = 69
X_SC_GETPW_R_SIZE_MAX = 70
X_SC_LOGIN_NAME_MAX = 71
X_SC_TTY_NAME_MAX = 72
X_SC_THREAD_DESTRUCTOR_ITERATIONS = 73
X_SC_THREAD_KEYS_MAX = 74
X_SC_THREAD_STACK_MIN = 75
X_SC_THREAD_THREADS_MAX = 76
X_SC_THREAD_ATTR_STACKADDR = 77
X_SC_THREAD_ATTR_STACKSIZE = 78
X_SC_THREAD_PRIORITY_SCHEDULING = 79
X_SC_THREAD_PRIO_INHERIT = 80
X_SC_THREAD_PRIO_PROTECT = 81
X_SC_THREAD_PROCESS_SHARED = 82
X_SC_NPROCESSORS_CONF = 83
X_SC_NPROCESSORS_ONLN = 84
X_SC_PHYS_PAGES = 85
X_SC_AVPHYS_PAGES = 86
X_SC_ATEXIT_MAX = 87
X_SC_PASS_MAX = 88
X_SC_XOPEN_VERSION = 89
X_SC_XOPEN_XCU_VERSION = 90
X_SC_XOPEN_UNIX = 91
X_SC_XOPEN_CRYPT = 92
X_SC_XOPEN_ENH_I18N = 93
X_SC_XOPEN_SHM = 94
X_SC_2_CHAR_TERM = 95
X_SC_2_C_VERSION = 96
X_SC_2_UPE = 97
X_SC_XOPEN_XPG2 = 98
X_SC_XOPEN_XPG3 = 99
X_SC_XOPEN_XPG4 = 100
X_SC_CHAR_BIT = 101
X_SC_CHAR_MAX = 102
X_SC_CHAR_MIN = 103
X_SC_INT_MAX = 104
X_SC_INT_MIN = 105
X_SC_LONG_BIT = 106
X_SC_WORD_BIT = 107
X_SC_MB_LEN_MAX = 108
X_SC_NZERO = 109
X_SC_SSIZE_MAX = 110
X_SC_SCHAR_MAX = 111
X_SC_SCHAR_MIN = 112
X_SC_SHRT_MAX = 113
X_SC_SHRT_MIN = 114
X_SC_UCHAR_MAX = 115
X_SC_UINT_MAX = 116
X_SC_ULONG_MAX = 117
X_SC_USHRT_MAX = 118
X_SC_NL_ARGMAX = 119
X_SC_NL_LANGMAX = 120
X_SC_NL_MSGMAX = 121
X_SC_NL_NMAX = 122
X_SC_NL_SETMAX = 123
X_SC_NL_TEXTMAX = 124
X_SC_XBS5_ILP32_OFF32 = 125
X_SC_XBS5_ILP32_OFFBIG = 126
X_SC_XBS5_LP64_OFF64 = 127
X_SC_XBS5_LPBIG_OFFBIG = 128
X_SC_XOPEN_LEGACY = 129
X_SC_XOPEN_REALTIME = 130
X_SC_XOPEN_REALTIME_THREADS = 131
X_SC_ADVISORY_INFO = 132
X_SC_BARRIERS = 133
X_SC_BASE = 134
X_SC_C_LANG_SUPPORT = 135
X_SC_C_LANG_SUPPORT_R = 136
X_SC_CLOCK_SELECTION = 137
X_SC_CPUTIME = 138
X_SC_THREAD_CPUTIME = 139
X_SC_DEVICE_IO = 140
X_SC_DEVICE_SPECIFIC = 141
X_SC_DEVICE_SPECIFIC_R = 142
X_SC_FD_MGMT = 143
X_SC_FIFO = 144
X_SC_PIPE = 145
X_SC_FILE_ATTRIBUTES = 146
X_SC_FILE_LOCKING = 147
X_SC_FILE_SYSTEM = 148
X_SC_MONOTONIC_CLOCK = 149
X_SC_MULTI_PROCESS = 150
X_SC_SINGLE_PROCESS = 151
X_SC_NETWORKING = 152
X_SC_READER_WRITER_LOCKS = 153
X_SC_SPIN_LOCKS = 154
X_SC_REGEXP = 155
X_SC_REGEX_VERSION = 156
X_SC_SHELL = 157
X_SC_SIGNALS = 158
X_SC_SPAWN = 159
X_SC_SPORADIC_SERVER = 160
X_SC_THREAD_SPORADIC_SERVER = 161
X_SC_SYSTEM_DATABASE = 162
X_SC_SYSTEM_DATABASE_R = 163
X_SC_TIMEOUTS = 164
X_SC_TYPED_MEMORY_OBJECTS = 165
X_SC_USER_GROUPS = 166
X_SC_USER_GROUPS_R = 167
X_SC_2_PBS = 168
X_SC_2_PBS_ACCOUNTING = 169
X_SC_2_PBS_LOCATE = 170
X_SC_2_PBS_MESSAGE = 171
X_SC_2_PBS_TRACK = 172
X_SC_SYMLOOP_MAX = 173
X_SC_STREAMS = 174
X_SC_2_PBS_CHECKPOINT = 175
X_SC_V6_ILP32_OFF32 = 176
X_SC_V6_ILP32_OFFBIG = 177
X_SC_V6_LP64_OFF64 = 178
X_SC_V6_LPBIG_OFFBIG = 179
X_SC_HOST_NAME_MAX = 180
X_SC_TRACE = 181
X_SC_TRACE_EVENT_FILTER = 182
X_SC_TRACE_INHERIT = 183
X_SC_TRACE_LOG = 184
X_SC_LEVEL1_ICACHE_SIZE = 185
X_SC_LEVEL1_ICACHE_ASSOC = 186
X_SC_LEVEL1_ICACHE_LINESIZE = 187
X_SC_LEVEL1_DCACHE_SIZE = 188
X_SC_LEVEL1_DCACHE_ASSOC = 189
X_SC_LEVEL1_DCACHE_LINESIZE = 190
X_SC_LEVEL2_CACHE_SIZE = 191
X_SC_LEVEL2_CACHE_ASSOC = 192
X_SC_LEVEL2_CACHE_LINESIZE = 193
X_SC_LEVEL3_CACHE_SIZE = 194
X_SC_LEVEL3_CACHE_ASSOC = 195
X_SC_LEVEL3_CACHE_LINESIZE = 196
X_SC_LEVEL4_CACHE_SIZE = 197
X_SC_LEVEL4_CACHE_ASSOC = 198
X_SC_LEVEL4_CACHE_LINESIZE = 199
// Leave room here, maybe we need a few more cache levels some day.
X_SC_IPV6 = 235
X_SC_RAW_SOCKETS = 236
X_SC_V7_ILP32_OFF32 = 237
X_SC_V7_ILP32_OFFBIG = 238
X_SC_V7_LP64_OFF64 = 239
X_SC_V7_LPBIG_OFFBIG = 240
X_SC_SS_REPL_MAX = 241
X_SC_TRACE_EVENT_NAME_MAX = 242
X_SC_TRACE_NAME_MAX = 243
X_SC_TRACE_SYS_MAX = 244
X_SC_TRACE_USER_EVENT_MAX = 245
X_SC_XOPEN_STREAMS = 246
X_SC_THREAD_ROBUST_PRIO_INHERIT = 247
X_SC_THREAD_ROBUST_PRIO_PROTECT = 248
)
type Ptrdiff_t = int64 /* <builtin>:3:26 */
type Size_t = uint64 /* <builtin>:9:23 */
type Wchar_t = int32 /* <builtin>:15:24 */
type X__int128_t = struct {
Flo int64
Fhi int64
} /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
type X__uint128_t = struct {
Flo uint64
Fhi uint64
} /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
type X__float128 = float64 /* <builtin>:47:21 */
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// POSIX Standard: 2.10 Symbolic Constants <unistd.h>
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// These are defined by the user (or the compiler)
// to specify the desired environment:
//
// __STRICT_ANSI__ ISO Standard C.
// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99.
// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11.
// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X.
// __STDC_WANT_LIB_EXT2__
// Extensions to ISO C99 from TR 27431-2:2010.
// __STDC_WANT_IEC_60559_BFP_EXT__
// Extensions to ISO C11 from TS 18661-1:2014.
// __STDC_WANT_IEC_60559_FUNCS_EXT__
// Extensions to ISO C11 from TS 18661-4:2015.
// __STDC_WANT_IEC_60559_TYPES_EXT__
// Extensions to ISO C11 from TS 18661-3:2015.
//
// _POSIX_SOURCE IEEE Std 1003.1.
// _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2;
// if >=199309L, add IEEE Std 1003.1b-1993;
// if >=199506L, add IEEE Std 1003.1c-1995;
// if >=200112L, all of IEEE 1003.1-2004
// if >=200809L, all of IEEE 1003.1-2008
// _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if
// Single Unix conformance is wanted, to 600 for the
// sixth revision, to 700 for the seventh revision.
// _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions.
// _LARGEFILE_SOURCE Some more functions for correct standard I/O.
// _LARGEFILE64_SOURCE Additional functionality from LFS for large files.
// _FILE_OFFSET_BITS=N Select default filesystem interface.
// _ATFILE_SOURCE Additional *at interfaces.
// _GNU_SOURCE All of the above, plus GNU extensions.
// _DEFAULT_SOURCE The default set of features (taking precedence over
// __STRICT_ANSI__).
//
// _FORTIFY_SOURCE Add security hardening to many library functions.
// Set to 1 or 2; 2 performs stricter checks than 1.
//
// _REENTRANT, _THREAD_SAFE
// Obsolete; equivalent to _POSIX_C_SOURCE=199506L.
//
// The `-ansi' switch to the GNU C compiler, and standards conformance
// options such as `-std=c99', define __STRICT_ANSI__. If none of
// these are defined, or if _DEFAULT_SOURCE is defined, the default is
// to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to
// 200809L, as well as enabling miscellaneous functions from BSD and
// SVID. If more than one of these are defined, they accumulate. For
// example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together
// give you ISO C, 1003.1, and 1003.2, but nothing else.
//
// These are defined by this file and are used by the
// header files to decide what to declare or define:
//
// __GLIBC_USE (F) Define things from feature set F. This is defined
// to 1 or 0; the subsequent macros are either defined
// or undefined, and those tests should be moved to
// __GLIBC_USE.
// __USE_ISOC11 Define ISO C11 things.
// __USE_ISOC99 Define ISO C99 things.
// __USE_ISOC95 Define ISO C90 AMD1 (C95) things.
// __USE_ISOCXX11 Define ISO C++11 things.
// __USE_POSIX Define IEEE Std 1003.1 things.
// __USE_POSIX2 Define IEEE Std 1003.2 things.
// __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things.
// __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things.
// __USE_XOPEN Define XPG things.
// __USE_XOPEN_EXTENDED Define X/Open Unix things.
// __USE_UNIX98 Define Single Unix V2 things.
// __USE_XOPEN2K Define XPG6 things.
// __USE_XOPEN2KXSI Define XPG6 XSI things.
// __USE_XOPEN2K8 Define XPG7 things.
// __USE_XOPEN2K8XSI Define XPG7 XSI things.
// __USE_LARGEFILE Define correct standard I/O things.
// __USE_LARGEFILE64 Define LFS things with separate names.
// __USE_FILE_OFFSET64 Define 64bit interface as default.
// __USE_MISC Define things from 4.3BSD or System V Unix.
// __USE_ATFILE Define *at interfaces and AT_* constants for them.
// __USE_GNU Define GNU extensions.
// __USE_FORTIFY_LEVEL Additional security measures used, according to level.
//
// The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are
// defined by this file unconditionally. `__GNU_LIBRARY__' is provided
// only for compatibility. All new code should use the other symbols
// to test for features.
//
// All macros listed above as possibly being defined by this file are
// explicitly undefined if they are not explicitly defined.
// Feature-test macros that are not defined by the user or compiler
// but are implied by the other feature-test macros defined (or by the
// lack of any definitions) are defined by the file.
//
// ISO C feature test macros depend on the definition of the macro
// when an affected header is included, not when the first system
// header is included, and so they are handled in
// <bits/libc-header-start.h>, which does not have a multiple include
// guard. Feature test macros that can be handled from the first
// system header included are handled here.
// Undefine everything, so we get a clean slate.
// Suppress kernel-name space pollution unless user expressedly asks
// for it.
// Convenience macro to test the version of gcc.
// Use like this:
// #if __GNUC_PREREQ (2,8)
// ... code requiring gcc 2.8 or later ...
// #endif
// Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was
// added in 2.0.
// Similarly for clang. Features added to GCC after version 4.2 may
// or may not also be available in clang, and clang's definitions of
// __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such
// features can be queried via __has_extension/__has_feature.
// Whether to use feature set F.
// _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for
// _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not
// issue a warning; the expectation is that the source is being
// transitioned to use the new macro.
// If _GNU_SOURCE was defined by the user, turn on all the other features.
// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined,
// define _DEFAULT_SOURCE.
// This is to enable the ISO C2X extension.
// This is to enable the ISO C11 extension.
// This is to enable the ISO C99 extension.
// This is to enable the ISO C90 Amendment 1:1995 extension.
// If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE
// is defined, use POSIX.1-2008 (or another version depending on
// _XOPEN_SOURCE).
// Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be
// defined in all multithreaded code. GNU libc has not required this
// for many years. We now treat them as compatibility synonyms for
// _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with
// comprehensive support for multithreaded code. Using them never
// lowers the selected level of POSIX conformance, only raises it.
// The function 'gets' existed in C89, but is impossible to use
// safely. It has been removed from ISO C11 and ISO C++14. Note: for
// compatibility with various implementations of <cstdio>, this test
// must consider only the value of __cplusplus when compiling C++.
// GNU formerly extended the scanf functions with modified format
// specifiers %as, %aS, and %a[...] that allocate a buffer for the
// input using malloc. This extension conflicts with ISO C99, which
// defines %a as a standalone format specifier that reads a floating-
// point number; moreover, POSIX.1-2008 provides the same feature
// using the modifier letter 'm' instead (%ms, %mS, %m[...]).
//
// We now follow C99 unless GNU extensions are active and the compiler
// is specifically in C89 or C++98 mode (strict or not). For
// instance, with GCC, -std=gnu11 will have C99-compliant scanf with
// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the
// old extension.
// Get definitions of __STDC_* predefined macros, if the compiler has
// not preincluded this header automatically.
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// This macro indicates that the installed library is the GNU C Library.
// For historic reasons the value now is 6 and this will stay from now
// on. The use of this variable is deprecated. Use __GLIBC__ and
// __GLIBC_MINOR__ now (see below) when you want to test for a specific
// GNU C library version and use the values in <gnu/lib-names.h> to get
// the sonames of the shared libraries.
// Major and minor version number of the GNU C library package. Use
// these macros to test for features in specific releases.
// This is here only because every header file already includes this one.
// Copyright (C) 1992-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// We are almost always included from features.h.
// The GNU libc does not support any K&R compilers or the traditional mode
// of ISO C compilers anymore. Check for some of the combinations not
// anymore supported.
// Some user header file might have defined this before.
// All functions, except those with callbacks or those that
// synchronize memory, are leaf functions.
// GCC can always grok prototypes. For C++ programs we add throw()
// to help it optimize the function calls. But this works only with
// gcc 2.8.x and egcs. For gcc 3.2 and up we even mark C functions
// as non-throwing using a function attribute since programs can use
// the -fexceptions options for C code as well.
// Compilers that are not clang may object to
// #if defined __clang__ && __has_extension(...)
// even though they do not need to evaluate the right-hand side of the &&.
// These two macros are not used in glibc anymore. They are kept here
// only because some other projects expect the macros to be defined.
// For these things, GCC behaves the ANSI way normally,
// and the non-ANSI way under -traditional.
// This is not a typedef so `const __ptr_t' does the right thing.
// C++ needs to know that types and declarations are C, not C++.
// Fortify support.
// Support for flexible arrays.
// Headers that should use flexible arrays only if they're "real"
// (e.g. only if they won't affect sizeof()) should test
// #if __glibc_c99_flexarr_available.
// __asm__ ("xyz") is used throughout the headers to rename functions
// at the assembly language level. This is wrapped by the __REDIRECT
// macro, in order to support compilers that can do this some other
// way. When compilers don't support asm-names at all, we have to do
// preprocessor tricks instead (which don't have exactly the right
// semantics, but it's the best we can do).
//
// Example:
// int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid);
//
// #elif __SOME_OTHER_COMPILER__
//
// # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias)
// GCC has various useful declarations that can be made with the
// `__attribute__' syntax. All of the ways we use this do fine if
// they are omitted for compilers that don't understand it.
// At some point during the gcc 2.96 development the `malloc' attribute
// for functions was introduced. We don't want to use it unconditionally
// (although this would be possible) since it generates warnings.
// Tell the compiler which arguments to an allocation function
// indicate the size of the allocation.
// At some point during the gcc 2.96 development the `pure' attribute
// for functions was introduced. We don't want to use it unconditionally
// (although this would be possible) since it generates warnings.
// This declaration tells the compiler that the value is constant.
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.