File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed
src/unix/bsd/freebsdlike/freebsd Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -922,6 +922,15 @@ REG_NOTEOL
922
922
REG_PEND
923
923
REG_STARTEND
924
924
REG_TRACE
925
+ RFCFDG
926
+ RFFDG
927
+ RFLINUXTHPN
928
+ RFMEM
929
+ RFNOWAIT
930
+ RFPROC
931
+ RFSPAWN
932
+ RFTHREAD
933
+ RFTSIGZMB
925
934
RLIMIT_AS
926
935
RLIMIT_CORE
927
936
RLIMIT_CPU
Original file line number Diff line number Diff line change @@ -1234,6 +1234,17 @@ pub const HOSTNAME_INCORRECTNAME: ::c_int = 1;
1234
1234
pub const HOSTNAME_INVALIDADDR : :: c_int = 2 ;
1235
1235
pub const HOSTNAME_INVALIDNAME : :: c_int = 3 ;
1236
1236
1237
+ // For rfork
1238
+ pub const RFFDG : :: c_int = 4 ;
1239
+ pub const RFPROC : :: c_int = 16 ;
1240
+ pub const RFMEM : :: c_int = 32 ;
1241
+ pub const RFNOWAIT : :: c_int = 64 ;
1242
+ pub const RFCFDG : :: c_int = 4096 ;
1243
+ pub const RFTHREAD : :: c_int = 8192 ;
1244
+ pub const RFLINUXTHPN : :: c_int = 65536 ;
1245
+ pub const RFTSIGZMB : :: c_int = 524288 ;
1246
+ pub const RFSPAWN : :: c_int = 2147483648 ;
1247
+
1237
1248
const_fn ! {
1238
1249
{ const } fn _ALIGN( p: usize ) -> usize {
1239
1250
( p + _ALIGNBYTES) & !_ALIGNBYTES
@@ -1580,6 +1591,7 @@ extern "C" {
1580
1591
1581
1592
pub fn nmount ( iov : * mut :: iovec , niov : :: c_uint , flags : :: c_int ) -> :: c_int ;
1582
1593
pub fn setproctitle ( fmt : * const :: c_char , ...) ;
1594
+ pub fn rfork ( flags : :: c_int ) -> :: c_int ;
1583
1595
pub fn cpuset_getaffinity (
1584
1596
level : cpulevel_t ,
1585
1597
which : cpuwhich_t ,
You can’t perform that action at this time.
0 commit comments