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

1 2 3 4 5 6 7 8 91011>>

  /external/valgrind/main/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);
  /hardware/intel/img/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 35 int fd; local
38 fd = drm_open_any();
39 v = drmGetVersion(fd);
46 close(fd);
  /bionic/libc/bionic/
daemon.c 41 int fd = open("/dev/null", O_RDWR); local
43 if ( fd < 0 )
46 if ( dup2( fd, 0 ) < 0 ||
47 dup2( fd, 1 ) < 0 ||
48 dup2( fd, 2 ) < 0 )
50 close(fd);
53 close(fd);
  /bionic/tests/
sys_statvfs_test.cpp 49 int fd = open("/proc", O_RDONLY); local
50 ASSERT_EQ(0, fstatvfs(fd, &sb));
51 close(fd);
56 int fd = open("/proc", O_RDONLY); local
57 ASSERT_EQ(0, fstatvfs64(fd, &sb));
58 close(fd);
sys_vfs_test.cpp 50 int fd = open("/proc", O_RDONLY); local
51 ASSERT_EQ(0, fstatfs(fd, &sb));
52 close(fd);
57 int fd = open("/proc", O_RDONLY); local
58 ASSERT_EQ(0, fstatfs64(fd, &sb));
59 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/Linux/
coverage-maybe-open-file.cc 19 int fd = __sanitizer_maybe_open_cov_file("test"); local
20 if (fd > 0) {
23 write(fd, s, strlen(s));
24 close(fd);
  /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/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/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/qemu/distrib/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/strace/test/
skodic.c 19 int fd; local
21 fd = open("/tmp/delme", O_RDWR);
22 c = mmap(0, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
32 if ((fd = open(c, 0)) != -1)
33 close(fd);
  /external/valgrind/main/coregrind/
pub_core_libcprint.h 42 or not the fd is a socket. */
44 struct { Int fd; Bool is_socket; } member in struct:__anon36430
  /external/valgrind/main/none/tests/
closeall.c 9 int fd; local
13 for ( fd = 3; fd < lim.rlim_cur; fd++ )
14 close( fd );
rlimit_nofile.c 13 int fd; local
92 if ((fd = open("/dev/null", O_RDONLY)) >= 0)
94 fprintf(stderr, "open succeeded with fd %d - it should have failed!\n", 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)

Completed in 1735 milliseconds

1 2 3 4 5 6 7 8 91011>>