Home
last modified time | relevance | path

Searched refs:nullfd (Results 1 – 6 of 6) sorted by relevance

/xen-4.10.0-shim-comet/tools/libs/toolcore/
A Dhandlereg.c75 int nullfd = -1, r; in xentoolcore__restrict_by_dup2_null() local
81 nullfd = open("/dev/null", O_RDONLY); in xentoolcore__restrict_by_dup2_null()
82 if (nullfd < 0) goto err; in xentoolcore__restrict_by_dup2_null()
84 r = dup2(nullfd, fd); in xentoolcore__restrict_by_dup2_null()
87 close(nullfd); in xentoolcore__restrict_by_dup2_null()
91 if (nullfd >= 0) close(nullfd); in xentoolcore__restrict_by_dup2_null()
/xen-4.10.0-shim-comet/tools/xl/
A Dxl_utils.c255 int nullfd, ret = 0; in do_daemonize() local
277 CHK_SYSCALL(nullfd = open("/dev/null", O_RDONLY)); in do_daemonize()
278 assert(nullfd >= 3); in do_daemonize()
280 dup2(nullfd, 0); in do_daemonize()
284 close(nullfd); in do_daemonize()
A DCODING_STYLE33 int nullfd = -1;
45 if (nullfd >= 0) close(nullfd);
/xen-4.10.0-shim-comet/tools/ocaml/xenstored/
A Dstdext.ml103 let nullfd = Unix.openfile "/dev/null" [ Unix.O_WRONLY ] 0 in
106 Unix.dup2 nullfd Unix.stdout;
107 Unix.dup2 nullfd Unix.stderr;
108 with exn -> Unix.close nullfd; raise exn
110 Unix.close nullfd
/xen-4.10.0-shim-comet/tools/libxl/
A Dlibxl_device.c1106 int hotplug, nullfd = -1; in device_hotplug() local
1186 nullfd = open("/dev/null", O_RDONLY); in device_hotplug()
1187 if (nullfd < 0) { in device_hotplug()
1199 aes->stdfds[0] = nullfd; in device_hotplug()
1207 close(nullfd); in device_hotplug()
1213 if (nullfd >= 0) close(nullfd); in device_hotplug()
A DCODING_STYLE81 int nullfd = -1;
93 if (nullfd >= 0) close(nullfd);

Completed in 9 milliseconds