Home
last modified time | relevance | path

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

12

/external/toybox/toys/other/
Dnsenter.c81 int bytes = sprintf(toybuf, "0 %u 1", eugid), fd = xopen(map, O_WRONLY);
144 if (setns(fd = xopen(filename, O_RDONLY), flags[i])) in unshare_main()
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()
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.c20 int fd = xopen(*toys.optargs, O_RDWR), pagesize = sysconf(_SC_PAGE_SIZE); in mkswap_main()
Dinsmod.c25 int fd = xopen(*toys.optargs, O_RDONLY); in insmod_main()
Dblockdev.c52 int fd = xopen(*ss, O_RDONLY), i;
Deject.c66 fd = xopen(device_name, O_RDONLY | O_NONBLOCK); in eject_main()
Dmix.c39 fd = xopen(TT.dev, O_RDWR|O_NONBLOCK);
Doneit.c96 xopen(TT.console ? TT.console : "/dev/tty0", O_RDWR|O_CLOEXEC); in oneit_main()
Dshred.c45 TT.ufd = xopen("/dev/urandom", O_RDONLY);
Dmakedevs.c50 fd = xopen(TT.fname, O_RDONLY);
Dnbd_client.c49 nbd = xopen(device, O_RDWR); in nbd_client_main()
/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()
Dhwclock.c85 if (fd == -1) fd = xopen(TT.fname, flag); in hwclock_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.c259 if (TT.infile) TT.filepatch = xopen(TT.infile, O_RDONLY); in patch_main()
394 TT.filein = xopen(name, O_RDONLY); in patch_main()
/external/toybox/lib/
Dinterestingtimes.c14 return xopen("/dev/tty", O_RDWR); in xgettty()

12