/external/syslinux/com32/lib/sys/ |
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/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);
|
/hardware/qcom/data/ipacfg-mgr/msm8998/ipacm/inc/ |
IPACM_Filtering.h | 72 int fd; /* File descriptor of the IPA device node /dev/ipa */ member in class:IPACM_Filtering
|
/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.cpp | 28 int fd; local 31 fd = open(fn, O_RDONLY); 32 if(fd < 0) return 0; 34 sz = lseek(fd, 0, SEEK_END); 37 if(lseek(fd, 0, SEEK_SET) != 0) goto oops; 42 if(read(fd, data, sz) != sz) goto oops; 43 close(fd); 50 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);
|
/system/libhidl/transport/allocator/1.0/utils/ |
FrameworkUtils.cpp | 26 int fd = dup(heap->getHeapID()); local 28 if (fd < 0) { 35 return HidlMemory::getInstance("ashmem", fd, heap->getSize());
|
/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);
|
/device/google/contexthub/util/stm32_flash/ |
spi.h | 25 int fd; member in struct:spi_handle
|
/external/adhd/cras/src/common/ |
cras_shm.c | 23 int fd; local 28 fd = ashmem_create_region(name, size); 29 if (fd < 0) { 30 fd = -errno; 32 name, strerror(-fd)); 34 return fd; 37 int cras_shm_reopen_ro (const char *name, int fd) 41 if (ashmem_set_prot_region(fd, PROT_READ) != 0) { 42 fd = -errno; 45 name, strerror(-fd)); 59 int fd; local [all...] |
/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);
|
read.c | 16 int fd, ret; local 19 fd = open("/dev/zero", O_RDONLY); 20 if (fd < 0) 23 ret = read(fd, buf, sizeof(buf)); 32 ret = close(fd);
|
/external/autotest/client/site_tests/security_Minijail_seccomp/src/ |
ok.c | 14 int fd = syscall(__NR_open, "/dev/zero", O_RDONLY); local 15 int n = syscall(__NR_read, fd, buf, SIZE); 16 syscall(__NR_close, fd);
|
/external/clang/test/CodeGen/ |
ms-align-tentative.c | 18 char fd; variable
|