HomeSort by relevance Sort by last modified time
    Searched defs:fd (Results 1 - 25 of 3995) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /bionic/libc/upstream-openbsd/lib/libc/gen/
daemon.c 39 int fd; local
56 if (!noclose && (fd = open(_PATH_DEVNULL, O_RDWR, 0)) != -1) {
57 (void)dup2(fd, STDIN_FILENO);
58 (void)dup2(fd, STDOUT_FILENO);
59 (void)dup2(fd, STDERR_FILENO);
60 if (fd > 2)
61 (void)close(fd);
  /device/google/cuttlefish_common/guest/commands/usbforward/
main.cpp 29 cvd::SharedFD fd = cvd::SharedFD::Open(argv[1], O_RDWR | O_NOCTTY); local
30 if (!fd->IsOpen()) {
31 ALOGE("Could not open %s: %s", argv[1], fd->StrError());
35 usb_forward::USBServer server(fd);
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
tf_inherit_check.py 10 fd = int(sys.argv[2]) variable
13 os.write(fd, "blat")
15 # Success -- could not write to fd.
19 sys.stderr.write("fd %d is open in child" % fd)
  /device/linaro/bootloader/edk2/StdLib/PosixLib/Gen/
closedir.c 66 int fd; local
74 fd = dirp->dd_fd;
87 return(close(fd));
  /external/ltp/testcases/commands/eject/
eject_check_tray.c 44 int fd; local
49 if ((fd = open(argv[1], O_RDONLY | O_NONBLOCK)) == -1)
52 exit(ioctl(fd, CDROM_DRIVE_STATUS));
  /external/ltp/testcases/kernel/controllers/cpuctl_fj/
cpuctl_fj_simple_echo.c 48 int fd = 1; local
57 if ((fd = open(argv[2], O_RDWR | O_SYNC)) == -1)
60 if (write(fd, argv[1], strlen(argv[1])) == -1)
63 if (fd != 1)
64 if (close(fd) == -1)
  /external/python/cpython2/Lib/test/
tf_inherit_check.py 10 fd = int(sys.argv[2]) variable
13 os.write(fd, "blat")
15 # Success -- could not write to fd.
19 sys.stderr.write("fd %d is open in child" % fd)
  /external/python/cpython3/Lib/test/
tf_inherit_check.py 12 fd = int(sys.argv[2]) variable
15 os.write(fd, b"blat")
17 # Success -- could not write to fd.
21 sys.stderr.write("fd %d is open in child" % fd)
  /external/toybox/toys/other/
freeramdisk.c 22 int fd; local
24 fd = xopen(toys.optargs[0], O_RDWR);
25 xioctl(fd, BLKFLSBUF, toys.optargs[0]);
26 if (CFG_TOYBOX_FREE) xclose(fd);
reset.c 21 int fd = tty_fd(); local
24 xwrite(fd<0 ? 1 : fd, "\033c", 2);
  /external/valgrind/memcheck/tests/
mmaptest.c 9 int fd; local
12 fd = open("dir", O_RDONLY);
13 mmap(NULL, 4711, PROT_READ, MAP_PRIVATE, fd, 0);
  /prebuilts/gdb/darwin-x86/lib/python2.7/test/
tf_inherit_check.py 10 fd = int(sys.argv[2]) variable
13 os.write(fd, "blat")
15 # Success -- could not write to fd.
19 sys.stderr.write("fd %d is open in child" % fd)
  /prebuilts/gdb/linux-x86/lib/python2.7/test/
tf_inherit_check.py 10 fd = int(sys.argv[2]) variable
13 os.write(fd, "blat")
15 # Success -- could not write to fd.
19 sys.stderr.write("fd %d is open in child" % fd)
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/
tf_inherit_check.py 10 fd = int(sys.argv[2]) variable
13 os.write(fd, "blat")
15 # Success -- could not write to fd.
19 sys.stderr.write("fd %d is open in child" % fd)
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/
tf_inherit_check.py 10 fd = int(sys.argv[2]) variable
13 os.write(fd, "blat")
15 # Success -- could not write to fd.
19 sys.stderr.write("fd %d is open in child" % fd)
  /bionic/libc/bionic/
fchmodat.cpp 50 int fd = openat(dirfd, pathname, O_PATH | O_NOFOLLOW | O_CLOEXEC); local
51 if (fd == -1) {
60 int result = fchmod(fd, mode);
62 close(fd);
  /cts/hostsidetests/security/securityPatch/CVE-2017-0426/
poc.c 36 int fd = lstat("/bugreports", &buf); local
37 if (fd < 0) {
  /device/google/marlin/recovery/nanohub/
nanohub_recovery_ui.cpp 35 int fd; local
37 fd = open("/sys/class/nanohub/nanohub/erase_shared", O_WRONLY);
38 if (fd < 0) {
41 if (write(fd, "1\n", 2) != 2) {
46 close(fd);
  /device/linaro/bootloader/edk2/StdLib/LibC/Stdio/
mkstemp.c 69 int fd; local
73 return (GETTEMP(path, &fd, 0) ? fd : -1);
  /external/android-clat/
mtu.c 33 int fd; local
36 fd = socket(AF_INET, SOCK_STREAM, 0);
37 if(fd < 0) {
42 if(ioctl(fd, SIOCGIFMTU, &if_mtu) < 0) {
  /external/compiler-rt/test/asan/TestCases/Posix/
coverage-maybe-open-file.cc 20 int fd = __sanitizer_maybe_open_cov_file("test"); local
21 if (fd > 0) {
24 write(fd, s, strlen(s));
25 close(fd);
ioctl.cc 14 int fd = socket(AF_INET, SOCK_DGRAM, 0); local
17 int res = ioctl(fd, FIONBIO, &nonblock + 1);
22 close(fd);
  /external/compiler-rt/test/msan/Linux/
ioctl_sound.cc 16 int fd = open("/dev/snd/controlC0", O_RDONLY); local
17 if (fd < 0) {
24 assert(ioctl(fd, SNDRV_CTL_IOCTL_CARD_INFO, info) >= 0);
26 close(fd);
tcgetattr.cc 11 int fd = getpt(); local
12 assert(fd >= 0);
15 int res = tcgetattr(fd, &t);
  /external/compiler-rt/test/msan/
ioctl.cc 11 int fd = socket(AF_INET, SOCK_DGRAM, 0); local
14 int res = ioctl(fd, FIOGETOWN, &z);
16 close(fd);

Completed in 288 milliseconds

1 2 3 4 5 6 7 8 91011>>