Searched refs:xopen (Results 1 – 25 of 46) sorted by relevance
12
/external/toybox/toys/other/ |
D | rfkill.c | 60 fd = xopen("/dev/rfkill", (tvar ? O_RDWR : O_RDONLY)|O_NONBLOCK); in rfkill_main() 83 tvar = xopen(toybuf, O_RDONLY); in rfkill_main()
|
D | nsenter.c | 82 int bytes = sprintf(toybuf, "0 %u 1", eugid), fd = xopen(map, O_WRONLY); 155 if (setns(fd = xopen(filename, O_RDONLY), flags[i])) in unshare_main()
|
D | freeramdisk.c | 24 fd = xopen(toys.optargs[0], O_RDWR); in freeramdisk_main()
|
D | fsfreeze.c | 26 int fd = xopen(*toys.optargs, O_RDONLY); in fsfreeze_main()
|
D | mkswap.c | 25 int fd = xopen(*toys.optargs, O_RDWR), pagesize = sysconf(_SC_PAGE_SIZE);
|
D | blockdev.c | 49 int fd = xopen(*ss, O_RDONLY), i;
|
D | insmod.c | 24 int fd = !strcmp(*toys.optargs, "-") ? 0 : xopen(*toys.optargs, O_RDONLY); in insmod_main()
|
D | eject.c | 66 fd = xopen(device_name, O_RDONLY | O_NONBLOCK); in eject_main()
|
D | oneit.c | 99 xopen(TT.console ? TT.console : "/dev/tty0", O_RDWR|O_CLOEXEC); in oneit_main()
|
D | mix.c | 39 fd = xopen(TT.dev, O_RDWR|O_NONBLOCK);
|
D | shred.c | 45 TT.ufd = xopen("/dev/urandom", O_RDONLY);
|
D | nbd_client.c | 49 nbd = xopen(device, O_RDWR); in nbd_client_main()
|
D | makedevs.c | 50 fd = xopen(TT.fname, O_RDONLY);
|
D | hwclock.c | 85 if (fd == -1) fd = xopen(TT.fname, flag); in hwclock_main()
|
D | losetup.c | 69 if (file) ffd = xopen(file, TT.openflags);
|
/external/toybox/toys/pending/ |
D | openvt.c | 91 fd = xopen("/dev/console", O_RDONLY | O_NONBLOCK); in openvt_main() 102 vt_fd = xopen(toybuf, O_RDWR); in openvt_main()
|
D | crontab.c | 116 int lno, fd = xopen(fname, O_RDONLY); in parse_crontab() 235 fdin = xopen(src, O_RDONLY); in update_crontab() 279 srcfd = xopen(toybuf, O_RDONLY); in do_edit()
|
D | dumpleases.c | 45 fd = xopen(TT.file, O_RDONLY); in dumpleases_main()
|
D | klogd.c | 77 TT.fd = xopen("/proc/kmsg", O_RDONLY); //_PATH_KLOG in paths.h in klogd_main()
|
D | sulogin.c | 91 dup2((fd = xopen(toys.optargs[0], O_RDWR)), 0); in sulogin_main()
|
/external/toybox/toys/android/ |
D | load_policy.c | 23 int fd = xopen(path, O_RDONLY); in load_policy_main()
|
/external/toybox/toys/posix/ |
D | uuencode.c | 29 if (toys.optc > 1) fd = xopen(toys.optargs[0], O_RDONLY); in uuencode_main()
|
D | comm.c | 52 ? xopen(toys.optargs[i], O_RDONLY) : 0; in comm_main()
|
D | uudecode.c | 33 if (toys.optc) ifd = xopen(*toys.optargs, O_RDONLY);
|
D | patch.c | 264 if (TT.infile) TT.filepatch = xopen(TT.infile, O_RDONLY); in patch_main() 399 TT.filein = xopen(name, O_RDONLY); in patch_main()
|
12