HomeSort by relevance Sort by last modified time
    Searched defs:fd (Results 1 - 25 of 4383) 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/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/libdrm/tests/
openclose.c 32 int fd; local
34 fd = drm_open_any();
35 close(fd);
  /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/openssh/openbsd-compat/
daemon.c 54 int fd; local
71 if (!noclose && (fd = open(_PATH_DEVNULL, O_RDWR, 0)) != -1) {
72 (void)dup2(fd, STDIN_FILENO);
73 (void)dup2(fd, STDOUT_FILENO);
74 (void)dup2(fd, STDERR_FILENO);
75 if (fd > 2)
76 (void)close (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);
  /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-2016-8448/
poc.c 28 int fd = 0; local
31 fd = open("/dev/graphics/fb0", O_RDWR);
32 if (fd < 0) {
38 if(ioctl(fd, MTKFB_GET_OVERLAY_LAYER_INFO, &layerInfo) == -1) {
48 if(ioctl(fd, MTKFB_SET_OVERLAY_LAYER, &layerInfo) == -1) {
  /cts/hostsidetests/security/securityPatch/CVE-2017-0404/
poc.c 40 int fd = open("/proc/asound/version", O_RDWR); local
41 if(fd != -1){
42 lseek(fd, 0x1234567800000000, SEEK_SET);
43 write(fd, buf, sizeof(buf));
47 close(fd);
  /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/huawei/angler/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/lge/bullhead/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 851 milliseconds

1 2 3 4 5 6 7 8 91011>>