Home
last modified time | relevance | path

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

12

/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()
Ddevmem.c40 fd = xopen("/dev/mem", (writing ? O_RDWR : O_RDONLY) | O_SYNC); in devmem_main()
Dmix.c37 fd = xopen(TT.d, O_RDWR|O_NONBLOCK); in mix_main()
Dnbd_client.c49 nbd = xopen(device, O_RDWR); in nbd_client_main()
Dnsenter.c85 int bytes = sprintf(toybuf, "0 %u 1", eugid), fd = xopen(map, O_WRONLY);
Dhwclock.c87 if (fd == -1) fd = xopen(TT.f, flag); in hwclock_main()
Dlosetup.c58 if (file) ffd = xopen(file, TT.openflags);
Dhexedit.c122 fd = xopen(*toys.optargs, ro ? O_RDONLY : O_RDWR); in hexedit_main()
Di2ctools.c92 fd = xopen(toybuf, O_RDONLY); in i2c_open()
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);
Dmicrocom.c45 TT.fd = xopen(*toys.optargs, O_RDWR | O_NOCTTY | O_NDELAY); in microcom_main()
Drfkill.c60 fd = xopen("/dev/rfkill", (tvar ? O_RDWR : O_RDONLY)|O_NONBLOCK); in rfkill_main()
Dnetcat.c96 if (TT.f) in1 = out2 = xopen(TT.f, O_RDWR); in netcat_main()
Difconfig.c463 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()
Dstty.c454 else TT.fd=xopen(TT.device, (O_RDWR*!!*toys.optargs)|O_NOCTTY|O_NONBLOCK); in stty_main()
Dtar.c479 fd = xopen((char *)flist->arg, O_RDONLY); in add_from_file()
/external/toybox/lib/
Dportability.c41 fd = xopen(flags ? "/dev/random" : "/dev/urandom",O_RDONLY|(flags&WARN_ONLY)); in xgetrandom()
Dxwrap.c437 int xopen(char *path, int flags) in xopen() function
447 return xopen(path, flags^WARN_ONLY); in openro()
Dlib.h146 int xopen(char *path, int flags);
/external/toybox/toys/posix/
Dpatch.c399 if (FLAG(dry_run)) TT.fileout = xopen("/dev/null", O_RDWR); in patch_main()

12