Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/sysent.h
Show First 20 Lines • Show All 159 Lines • ▼ Show 20 Lines | void (*sv_set_fork_retval)(struct thread *); | ||||
/* Only used on x86 */ | /* Only used on x86 */ | ||||
}; | }; | ||||
#define SV_ILP32 0x000100 /* 32-bit executable. */ | #define SV_ILP32 0x000100 /* 32-bit executable. */ | ||||
#define SV_LP64 0x000200 /* 64-bit executable. */ | #define SV_LP64 0x000200 /* 64-bit executable. */ | ||||
#define SV_IA32 0x004000 /* Intel 32-bit executable. */ | #define SV_IA32 0x004000 /* Intel 32-bit executable. */ | ||||
#define SV_AOUT 0x008000 /* a.out executable. */ | #define SV_AOUT 0x008000 /* a.out executable. */ | ||||
#define SV_SHP 0x010000 /* Shared page. */ | #define SV_SHP 0x010000 /* Shared page. */ | ||||
#define SV_CAPSICUM 0x020000 /* Force cap_enter() on startup. */ | #define SV_AVAIL1 0x020000 /* Unused */ | ||||
#define SV_TIMEKEEP 0x040000 /* Shared page timehands. */ | #define SV_TIMEKEEP 0x040000 /* Shared page timehands. */ | ||||
#define SV_ASLR 0x080000 /* ASLR allowed. */ | #define SV_ASLR 0x080000 /* ASLR allowed. */ | ||||
#define SV_RNG_SEED_VER 0x100000 /* random(4) reseed generation. */ | #define SV_RNG_SEED_VER 0x100000 /* random(4) reseed generation. */ | ||||
#define SV_SIG_DISCIGN 0x200000 /* Do not discard ignored signals */ | #define SV_SIG_DISCIGN 0x200000 /* Do not discard ignored signals */ | ||||
#define SV_SIG_WAITNDQ 0x400000 /* Wait does not dequeue SIGCHLD */ | #define SV_SIG_WAITNDQ 0x400000 /* Wait does not dequeue SIGCHLD */ | ||||
#define SV_ABI_MASK 0xff | #define SV_ABI_MASK 0xff | ||||
#define SV_PROC_FLAG(p, x) ((p)->p_sysent->sv_flags & (x)) | #define SV_PROC_FLAG(p, x) ((p)->p_sysent->sv_flags & (x)) | ||||
#define SV_PROC_ABI(p) ((p)->p_sysent->sv_flags & SV_ABI_MASK) | #define SV_PROC_ABI(p) ((p)->p_sysent->sv_flags & SV_ABI_MASK) | ||||
#define SV_CURPROC_FLAG(x) SV_PROC_FLAG(curproc, x) | #define SV_CURPROC_FLAG(x) SV_PROC_FLAG(curproc, x) | ||||
#define SV_CURPROC_ABI() SV_PROC_ABI(curproc) | #define SV_CURPROC_ABI() SV_PROC_ABI(curproc) | ||||
/* same as ELFOSABI_XXX, to prevent header pollution */ | /* same as ELFOSABI_XXX, to prevent header pollution */ | ||||
#define SV_ABI_LINUX 3 | #define SV_ABI_LINUX 3 | ||||
#define SV_ABI_FREEBSD 9 | #define SV_ABI_FREEBSD 9 | ||||
#define SV_ABI_CLOUDABI 17 | |||||
#define SV_ABI_UNDEF 255 | #define SV_ABI_UNDEF 255 | ||||
/* sv_coredump flags */ | /* sv_coredump flags */ | ||||
#define SVC_PT_COREDUMP 0x00000001 /* dump requested by ptrace(2) */ | #define SVC_PT_COREDUMP 0x00000001 /* dump requested by ptrace(2) */ | ||||
#define SVC_NOCOMPRESS 0x00000002 /* disable compression. */ | #define SVC_NOCOMPRESS 0x00000002 /* disable compression. */ | ||||
#define SVC_ALL 0x00000004 /* dump everything */ | #define SVC_ALL 0x00000004 /* dump everything */ | ||||
#ifdef _KERNEL | #ifdef _KERNEL | ||||
▲ Show 20 Lines • Show All 145 Lines • Show Last 20 Lines |