Changeset View
Changeset View
Standalone View
Standalone View
head/sys/sys/unistd.h
Show First 20 Lines • Show All 182 Lines • ▼ Show 20 Lines | |||||
#define RFSTOPPED (1<<17) /* leave child in a stopped state */ | #define RFSTOPPED (1<<17) /* leave child in a stopped state */ | ||||
#define RFHIGHPID (1<<18) /* use a pid higher than 10 (idleproc) */ | #define RFHIGHPID (1<<18) /* use a pid higher than 10 (idleproc) */ | ||||
#define RFTSIGZMB (1<<19) /* select signal for exit parent notification */ | #define RFTSIGZMB (1<<19) /* select signal for exit parent notification */ | ||||
#define RFTSIGSHIFT 20 /* selected signal number is in bits 20-27 */ | #define RFTSIGSHIFT 20 /* selected signal number is in bits 20-27 */ | ||||
#define RFTSIGMASK 0xFF | #define RFTSIGMASK 0xFF | ||||
#define RFTSIGNUM(flags) (((flags) >> RFTSIGSHIFT) & RFTSIGMASK) | #define RFTSIGNUM(flags) (((flags) >> RFTSIGSHIFT) & RFTSIGMASK) | ||||
#define RFTSIGFLAGS(signum) ((signum) << RFTSIGSHIFT) | #define RFTSIGFLAGS(signum) ((signum) << RFTSIGSHIFT) | ||||
#define RFPROCDESC (1<<28) /* return a process descriptor */ | #define RFPROCDESC (1<<28) /* return a process descriptor */ | ||||
#define RFPPWAIT (1<<31) /* parent sleeps until child exits (vfork) */ | /* kernel: parent sleeps until child exits (vfork) */ | ||||
#define RFPPWAIT (1<<31) | |||||
/* user: vfork(2) semantics, clear signals */ | |||||
#define RFSPAWN (1U<<31) | |||||
#define RFFLAGS (RFFDG | RFPROC | RFMEM | RFNOWAIT | RFCFDG | \ | #define RFFLAGS (RFFDG | RFPROC | RFMEM | RFNOWAIT | RFCFDG | \ | ||||
RFTHREAD | RFSIGSHARE | RFLINUXTHPN | RFSTOPPED | RFHIGHPID | RFTSIGZMB | \ | RFTHREAD | RFSIGSHARE | RFLINUXTHPN | RFSTOPPED | RFHIGHPID | RFTSIGZMB | \ | ||||
RFPROCDESC | RFPPWAIT) | RFPROCDESC | RFSPAWN | RFPPWAIT) | ||||
#define RFKERNELONLY (RFSTOPPED | RFHIGHPID | RFPPWAIT | RFPROCDESC) | #define RFKERNELONLY (RFSTOPPED | RFHIGHPID | RFPROCDESC) | ||||
#endif /* __BSD_VISIBLE */ | #endif /* __BSD_VISIBLE */ | ||||
#endif /* !_SYS_UNISTD_H_ */ | #endif /* !_SYS_UNISTD_H_ */ |