/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);
|
/external/libdrm/tests/ |
openclose.c | 32 int fd; local 34 fd = drm_open_any(); 35 close(fd);
|
getclient.c | 37 int fd, ret; local 40 fd = drm_open_any(); 47 ret = ioctl(fd, DRM_IOCTL_GET_CLIENT, &client); 56 ret = ioctl(fd, DRM_IOCTL_GET_CLIENT, &client); 59 close(fd);
|
getstats.c | 40 int fd, ret; local 43 fd = drm_open_any(); 45 ret = ioctl(fd, DRM_IOCTL_GET_STATS, &stats); 48 close(fd);
|
getversion.c | 36 int fd; local 39 fd = drm_open_any(); 40 v = drmGetVersion(fd); 47 close(fd);
|
name_from_fd.c | 43 int fd; local 47 fd = open("/dev/dri/card0", O_RDWR); 48 if (fd < 0) 51 v = drmGetDeviceNameFromFd(fd); 52 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);
|
/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);
|
/external/dbus/dbus/ |
dbus-pipe.h | 42 int fd; member in struct:DBusPipe 46 int fd);
|
/external/elfutils/tests/ |
early-offscn.c | 38 int fd = open (argv[1], O_RDONLY); local 39 if (fd < 0) 42 Elf *elf = elf_begin (fd, ELF_C_READ, NULL);
|
rdwrmmap.c | 31 int fd = open (argv[1], O_RDWR); local 32 if (fd < 0) 38 Elf *elf = elf_begin (fd, ELF_C_RDWR_MMAP, NULL); 46 close (fd);
|
/external/libselinux/src/ |
check_context.c | 15 int fd, ret; local 23 fd = open(path, O_RDWR); 24 if (fd < 0) 27 ret = write(fd, con, strlen(con) + 1); 28 close(fd);
|
load_policy.c | 22 int fd, ret; local 30 fd = open(path, O_RDWR); 31 if (fd < 0) 34 ret = write(fd, data, len); 35 close(fd);
|
/external/tlsdate/src/ |
rtc.h | 6 int fd; member in struct:rtc_handle
|