HomeSort by relevance Sort by last modified time
    Searched defs:fd (Results 76 - 100 of 4383) sorted by null

1 2 34 5 6 7 8 91011>>

  /external/syslinux/com32/lib/
fopen.c 13 int fd; local
37 fd = open(file, flags, 0666);
39 if (fd < 0)
42 return fdopen(fd, mode);
fopendev.c 13 int fd; local
37 fd = opendev(file, flags);
39 if (fd < 0)
42 return fdopen(fd, mode);
  /external/syslinux/com32/lib/sys/
ftell.c 12 int fd = fileno(stream); local
13 struct file_info *fp = &__file_info[fd];
openmem.c 45 int fd; local
48 fd = opendev(&__file_dev, NULL, flags);
50 if (fd < 0)
53 fp = &__file_info[fd];
55 fp->i.fd.size = fp->i.nbytes = len;
57 fp->i.fd.handle = 0; /* No actual file */
60 return fd;
zfopen.c 14 int fd; local
38 fd = zopen(file, flags, 0666);
40 if (fd < 0)
43 return fdopen(fd, mode);
  /external/toybox/toys/other/
fallocate.c 29 int fd = xcreate(*toys.optargs, O_RDWR | O_CREAT, 0644); local
30 if ((errno = posix_fallocate(fd, TT.offset, TT.size)))
32 if (CFG_TOYBOX_FREE) close(fd);
flock.c 11 usage: flock [-sxun] fd
28 int fd = xstrtol(*toys.optargs, NULL, 10), op; local
35 if (flock(fd, op)) {
fsfreeze.c 26 int fd = xopenro(*toys.optargs); local
29 xioctl(fd, (toys.optflags & FLAG_f) ? FIFREEZE : FITHAW, &p);
30 xclose(fd);
  /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:__anon35811
  /external/valgrind/memcheck/tests/
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);
  /external/valgrind/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/go/darwin-x86/misc/cgo/testcshared/src/libgo2/
libgo2.go 24 fd = 100
34 if e := dup2(p[0], fd); e != nil {
23 fd = 100 const
  /prebuilts/go/linux-x86/misc/cgo/testcshared/src/libgo2/
libgo2.go 24 fd = 100
34 if e := dup2(p[0], fd); e != nil {
23 fd = 100 const
  /system/core/libcutils/
load_file.c 26 int fd; local
29 fd = open(fn, O_RDONLY);
30 if(fd < 0) return 0;
32 sz = lseek(fd, 0, SEEK_END);
35 if(lseek(fd, 0, SEEK_SET) != 0) goto oops;
40 if(read(fd, data, sz) != sz) goto oops;
41 close(fd);
48 close(fd);
  /system/core/libnativebridge/tests/
CodeCacheStatFail_test.cpp 29 int fd = creat(kCodeCache, O_RDWR); local
30 ASSERT_NE(-1, fd);
31 close(fd);
  /system/extras/tests/cpueater/
cpueater.c 32 int fd; local
60 for (fd = 3; fd < 256; fd++) {
61 close(fd);
  /test/vts-testcase/kernel/api/qtaguid/
SocketTagUserSpace.h 29 SockInfo() : fd(-1) {}
38 int fd; member in class:android::SockInfo
  /bionic/tests/
eventfd_test.cpp 39 int fd = eventfd(initial_value, O_NONBLOCK); local
40 ASSERT_NE(fd, -1);
43 ASSERT_EQ(0, eventfd_read(fd, &value));
47 ASSERT_EQ(-1, eventfd_read(fd, &value));
51 ASSERT_EQ(0, eventfd_write(fd, 1));
52 ASSERT_EQ(0, eventfd_write(fd, 1));
53 ASSERT_EQ(0, eventfd_write(fd, 1));
55 ASSERT_EQ(0, eventfd_read(fd, &value));
58 close(fd);
sys_statvfs_test.cpp 54 int fd = open("/proc", O_RDONLY); local
55 ASSERT_EQ(0, fstatvfs(fd, &sb));
56 close(fd);
62 int fd = open("/proc", O_RDONLY); local
63 ASSERT_EQ(0, fstatvfs64(fd, &sb));
64 close(fd);
sys_vfs_test.cpp 55 int fd = open("/proc", O_RDONLY); local
56 ASSERT_EQ(0, fstatfs(fd, &sb));
57 close(fd);
63 int fd = open("/proc", O_RDONLY); local
64 ASSERT_EQ(0, fstatfs64(fd, &sb));
65 close(fd);
  /cts/hostsidetests/security/securityPatch/CVE-2017-8263/
poc.c 26 int fd; local
30 fd = open("/dev/ashmem", 0, 0);
31 if (fd < 0) {
35 ret = ioctl(fd, ASHMEM_SET_SIZE, 0x1000);
41 0x12 /*flags=MAP_FIXED|MAP_PRIVATE*/, fd, 0x0 /*offset*/);
46 ret = ioctl(fd, ASHMEM_CACHE_FLUSH_RANGE, NULL);
  /device/google/contexthub/util/stm32_flash/
spi.h 25 int fd; member in struct:spi_handle
  /external/autotest/client/site_tests/security_AltSyscall/src/
mmap.c 17 int fd, ret; local
20 fd = open("/dev/zero", O_RDONLY);
21 if (fd < 0)
24 buf = mmap(NULL, 4096, PROT_READ, MAP_PRIVATE, fd, 0);
37 ret = close(fd);

Completed in 774 milliseconds

1 2 34 5 6 7 8 91011>>