File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
src/unix/bsd/freebsdlike/freebsd Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -287,6 +287,7 @@ fn main() {
287
287
cfg. header ( "sys/ipc.h" ) ;
288
288
cfg. header ( "sys/msg.h" ) ;
289
289
cfg. header ( "sys/shm.h" ) ;
290
+ cfg. header ( "sys/procdesc.h" ) ;
290
291
}
291
292
292
293
if netbsd {
Original file line number Diff line number Diff line change @@ -841,6 +841,11 @@ pub const _SC_CPUSET_SIZE: ::c_int = 122;
841
841
pub const XU_NGROUPS : :: c_int = 16 ;
842
842
pub const XUCRED_VERSION : :: c_uint = 0 ;
843
843
844
+ // Flags which can be passed to pdfork(2)
845
+ pub const PD_DAEMON : :: c_int = 0x00000001 ;
846
+ pub const PD_CLOEXEC : :: c_int = 0x00000002 ;
847
+ pub const PD_ALLOWED_AT_FORK : :: c_int = PD_DAEMON | PD_CLOEXEC ;
848
+
844
849
extern {
845
850
pub fn __error ( ) -> * mut :: c_int ;
846
851
@@ -896,6 +901,10 @@ extern {
896
901
pub fn fexecve ( fd : :: c_int , argv : * const * const :: c_char ,
897
902
envp : * const * const :: c_char )
898
903
-> :: c_int ;
904
+
905
+ pub fn pdfork ( fdp : * mut :: c_int , flags : :: c_int ) -> :: pid_t ;
906
+ pub fn pdgetpid ( fd : :: c_int , pidp : * mut :: pid_t ) -> :: c_int ;
907
+ pub fn pdkill ( fd : :: c_int , signum : :: c_int ) -> :: c_int ;
899
908
}
900
909
901
910
cfg_if ! {
You can’t perform that action at this time.
0 commit comments