HomeSort by relevance Sort by last modified time
    Searched defs:fd (Results 1 - 25 of 2475) 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);
  /external/libdrm/tests/
openclose.c 32 int fd; local
34 fd = drm_open_any();
35 close(fd);
getclient.c 36 int fd, ret; local
39 fd = drm_open_any();
46 ret = ioctl(fd, DRM_IOCTL_GET_CLIENT, &client);
55 ret = ioctl(fd, DRM_IOCTL_GET_CLIENT, &client);
58 close(fd);
getstats.c 39 int fd, ret; local
42 fd = drm_open_any();
44 ret = ioctl(fd, DRM_IOCTL_GET_STATS, &stats);
49 close(fd);
getversion.c 36 int fd; local
39 fd = drm_open_any();
40 v = drmGetVersion(fd);
47 close(fd);
  /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);
fallocate.c 28 int fd = xcreate(*toys.optargs, O_RDWR | O_CREAT, 0644); local
29 if (posix_fallocate(fd, 0, TT.size)) error_exit("Not enough space");
30 if (CFG_TOYBOX_FREE) close(fd);
fsfreeze.c 26 int fd = xopen(*toys.optargs, O_RDONLY); local
29 xioctl(fd, (toys.optflags & FLAG_f) ? FIFREEZE : FITHAW, &p);
30 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);
erringfds.c 10 int fd, n; local
12 fd = open("foo/bar/xyzzy", O_RDONLY); /* fails */
13 printf("fd = %d\n", fd);
14 n = read ( fd, buf, 10 );
fwrite.c 8 int fd = open("/dev/null", O_WRONLY); local
9 if (fd < 0) {
12 (void)write(fd, arr, 10);
13 (void)close(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/
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/asan/TestCases/
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);
  /external/compiler-rt/test/msan/Linux/
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);
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);
  /external/elfutils/src/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 27 int fd = open (argv[1], O_RDWR); local
28 if (fd < 0)
34 Elf *elf = elf_begin (fd, ELF_C_RDWR_MMAP, NULL);
42 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/toybox/lib/
net.c 5 int fd = socket(domain, type, protocol); local
7 if (fd < 0) perror_exit("socket %x %x", type, protocol);
8 return fd;
11 void xsetsockopt(int fd, int level, int opt, void *val, socklen_t len)
13 if (-1 == setsockopt(fd, level, opt, val, len)) perror_exit("setsockopt");
  /external/valgrind/coregrind/
pub_core_libcprint.h 42 or not the fd is a socket. */
44 struct { Int fd; Bool is_socket; } member in struct:__anon20503

Completed in 1388 milliseconds

1 2 3 4 5 6 7 8 91011>>