Home
last modified time | relevance | path

Searched refs:xopen (Results 1 – 25 of 46) sorted by relevance

12

/external/toybox/toys/other/
Drfkill.c60 fd = xopen("/dev/rfkill", (tvar ? O_RDWR : O_RDONLY)|O_NONBLOCK); in rfkill_main()
83 tvar = xopen(toybuf, O_RDONLY); in rfkill_main()
Dnsenter.c82 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()
Dfreeramdisk.c24 fd = xopen(toys.optargs[0], O_RDWR); in freeramdisk_main()
Dfsfreeze.c26 int fd = xopen(*toys.optargs, O_RDONLY); in fsfreeze_main()
Dmkswap.c25 int fd = xopen(*toys.optargs, O_RDWR), pagesize = sysconf(_SC_PAGE_SIZE);
Dblockdev.c49 int fd = xopen(*ss, O_RDONLY), i;
Dinsmod.c24 int fd = !strcmp(*toys.optargs, "-") ? 0 : xopen(*toys.optargs, O_RDONLY); in insmod_main()
Deject.c66 fd = xopen(device_name, O_RDONLY | O_NONBLOCK); in eject_main()
Doneit.c99 xopen(TT.console ? TT.console : "/dev/tty0", O_RDWR|O_CLOEXEC); in oneit_main()
Dmix.c39 fd = xopen(TT.dev, O_RDWR|O_NONBLOCK);
Dshred.c45 TT.ufd = xopen("/dev/urandom", O_RDONLY);
Dnbd_client.c49 nbd = xopen(device, O_RDWR); in nbd_client_main()
Dmakedevs.c50 fd = xopen(TT.fname, O_RDONLY);
Dhwclock.c85 if (fd == -1) fd = xopen(TT.fname, flag); in hwclock_main()
Dlosetup.c69 if (file) ffd = xopen(file, TT.openflags);
/external/toybox/toys/pending/
Dopenvt.c91 fd = xopen("/dev/console", O_RDONLY | O_NONBLOCK); in openvt_main()
102 vt_fd = xopen(toybuf, O_RDWR); in openvt_main()
Dcrontab.c116 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()
Ddumpleases.c45 fd = xopen(TT.file, O_RDONLY); in dumpleases_main()
Dklogd.c77 TT.fd = xopen("/proc/kmsg", O_RDONLY); //_PATH_KLOG in paths.h in klogd_main()
Dsulogin.c91 dup2((fd = xopen(toys.optargs[0], O_RDWR)), 0); in sulogin_main()
/external/toybox/toys/android/
Dload_policy.c23 int fd = xopen(path, O_RDONLY); in load_policy_main()
/external/toybox/toys/posix/
Duuencode.c29 if (toys.optc > 1) fd = xopen(toys.optargs[0], O_RDONLY); in uuencode_main()
Dcomm.c52 ? xopen(toys.optargs[i], O_RDONLY) : 0; in comm_main()
Duudecode.c33 if (toys.optc) ifd = xopen(*toys.optargs, O_RDONLY);
Dpatch.c264 if (TT.infile) TT.filepatch = xopen(TT.infile, O_RDONLY); in patch_main()
399 TT.filein = xopen(name, O_RDONLY); in patch_main()

12