Home
last modified time | relevance | path

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

/external/toybox/toys/other/
Dfreeramdisk.c24 fd = xopen(toys.optargs[0], O_RDWR); in freeramdisk_main()
Dmkswap.c25 int fd = xopen(*toys.optargs, O_RDWR), pagesize = sysconf(_SC_PAGE_SIZE);
Deject.c66 fd = xopen(device_name, O_RDONLY | O_NONBLOCK); in eject_main()
Dmix.c39 fd = xopen(TT.dev, O_RDWR|O_NONBLOCK);
Dnbd_client.c49 nbd = xopen(device, O_RDWR); in nbd_client_main()
Dnsenter.c83 int bytes = sprintf(toybuf, "0 %u 1", eugid), fd = xopen(map, O_WRONLY);
Dhwclock.c85 if (fd == -1) fd = xopen(TT.fname, flag); in hwclock_main()
Dlosetup.c69 if (file) ffd = xopen(file, TT.openflags);
Dhexedit.c122 fd = xopen(*toys.optargs, ro ? O_RDONLY : O_RDWR); in hexedit_main()
Dbzcat.c687 if (toys.optflags&FLAG_t) outfd = xopen("/dev/null", O_WRONLY); in do_bunzip2()
/external/toybox/toys/android/
Dsendevent.c24 int fd = xopen(*toys.optargs, O_RDWR); in sendevent_main()
/external/toybox/toys/net/
Dtunctl.c42 int fd = xopen("/dev/net/tun", O_RDWR);
Drfkill.c60 fd = xopen("/dev/rfkill", (tvar ? O_RDWR : O_RDONLY)|O_NONBLOCK); in rfkill_main()
Dmicrocom.c69 TT.fd = xopen(*toys.optargs, O_RDWR | O_NOCTTY | O_NDELAY); in microcom_main()
Dnetcat.c105 if (TT.filename) in1 = out2 = xopen(TT.filename, O_RDWR); in netcat_main()
Difconfig.c434 fd = xopen(toybuf, O_RDWR); in ifconfig_main()
/external/toybox/toys/pending/
Dopenvt.c92 fd = xopen("/dev/console", O_RDONLY | O_NONBLOCK); in openvt_main()
Ddmesg.c90 int fd = xopen("/dev/kmsg", O_RDONLY | ((toys.optflags&FLAG_w)?0:O_NONBLOCK)); in print_all()
Dtar.c478 fd = xopen((char *)flist->arg, O_RDONLY); in add_from_file()
Dfdisk.c1431 int fd = xopen("/dev/null", O_RDONLY); in move_fd()
/external/toybox/lib/
Dinterestingtimes.c14 return xopen("/dev/tty", O_RDWR); in xgettty()
Dxwrap.c380 int xopen(char *path, int flags) in xopen() function
390 return xopen(path, flags^WARN_ONLY); in openro()
Dlib.h140 int xopen(char *path, int flags);
/external/toybox/toys/posix/
Dpatch.c408 TT.fileout = xopen("/dev/null", O_RDWR); in patch_main()