/external/linux-kselftest/tools/testing/selftests/sync/ |
sync.c | 58 int sync_wait(int fd, int timeout) 62 fds.fd = fd; 84 static struct sync_file_info *sync_file_info(int fd) 94 err = ioctl(fd, SYNC_IOC_FILE_INFO, info); 114 err = ioctl(fd, SYNC_IOC_FILE_INFO, info); 131 int sync_fence_size(int fd) 134 struct sync_file_info *info = sync_file_info(fd); 146 int sync_fence_count_with_status(int fd, int status) 150 struct sync_file_info *info = sync_file_info(fd); [all...] |
/external/ltp/testcases/kernel/syscalls/lseek/ |
lseek11.c | 65 static int fd; variable 103 SAFE_CLOSE(fd); 112 SAFE_FSTAT(fd, &st); 117 SAFE_FTRUNCATE(fd, 0); 118 SAFE_PWRITE(1, fd, "a", 1, offset); 119 SAFE_FSYNC(fd); 120 pos = lseek(fd, 0, SEEK_DATA); 133 SAFE_FTRUNCATE(fd, 0); 134 SAFE_PWRITE(1, fd, "a", 1, offset); 135 SAFE_FSYNC(fd); [all...] |
/system/extras/simpleperf/ |
IOEventLoop_test.cpp | 26 int fd[2]; local 27 ASSERT_EQ(0, pipe(fd)); 31 ASSERT_NE(nullptr, loop.AddReadEvent(fd[0], [&]() { 34 int ret = read(fd[0], &c, 1); 52 write(fd[1], &c, 1); 60 close(fd[0]); 61 close(fd[1]); 65 int fd[2]; local 66 ASSERT_EQ(0, pipe(fd)); 69 ASSERT_NE(nullptr, loop.AddWriteEvent(fd[1], [&]() 158 int fd[2]; local 183 int fd[2]; local [all...] |
/external/libchrome/base/posix/ |
global_descriptors.cc | 14 GlobalDescriptors::Descriptor::Descriptor(Key key, int fd) 15 : key(key), fd(fd), region(base::MemoryMappedFile::Region::kWholeFile) { 19 int fd, 21 : key(key), fd(fd), region(region) { 44 return i->fd; 53 base::ScopedFD fd; local 58 fd.reset(i->fd); [all...] |
/external/ltp/testcases/kernel/syscalls/readahead/ |
readahead01.c | 86 int fd; local 94 fd = mkstemp(tempname); 95 if (fd == -1) 97 close(fd); 98 fd = open(tempname, O_WRONLY); 99 if (fd == -1) 101 TEST(readahead(fd, 0, getpagesize())); 104 close(fd); 110 int fd[2]; local 113 if (pipe(fd) < 0 [all...] |
/external/strace/tests/ |
sockname.c | 76 test_sockname_syscall(const int fd) 83 int rc = TEST_SYSCALL_NAME(fd PREFIX_S_ARGS, (void *) addr, 89 TEST_SYSCALL_STR, fd, PREFIX_S_STR, addr->sun_path, 94 rc = TEST_SYSCALL_NAME(fd PREFIX_S_ARGS, (void *) addr, 100 TEST_SYSCALL_STR, fd, PREFIX_S_STR, addr->sun_path, 104 rc = TEST_SYSCALL_NAME(fd PREFIX_F_ARGS, (void *) addr, 0 SUFFIX_ARGS); 106 TEST_SYSCALL_STR, fd, PREFIX_F_STR, addr, SUFFIX_STR, 110 rc = TEST_SYSCALL_NAME(fd PREFIX_S_ARGS, 0, 0 SUFFIX_ARGS); 112 TEST_SYSCALL_STR, fd, rc == -1 ? PREFIX_F_STR : PREFIX_S_STR, 116 rc = TEST_SYSCALL_NAME(fd PREFIX_F_ARGS, (void *) addr [all...] |
/external/strace/tests-m32/ |
sockname.c | 76 test_sockname_syscall(const int fd) 83 int rc = TEST_SYSCALL_NAME(fd PREFIX_S_ARGS, (void *) addr, 89 TEST_SYSCALL_STR, fd, PREFIX_S_STR, addr->sun_path, 94 rc = TEST_SYSCALL_NAME(fd PREFIX_S_ARGS, (void *) addr, 100 TEST_SYSCALL_STR, fd, PREFIX_S_STR, addr->sun_path, 104 rc = TEST_SYSCALL_NAME(fd PREFIX_F_ARGS, (void *) addr, 0 SUFFIX_ARGS); 106 TEST_SYSCALL_STR, fd, PREFIX_F_STR, addr, SUFFIX_STR, 110 rc = TEST_SYSCALL_NAME(fd PREFIX_S_ARGS, 0, 0 SUFFIX_ARGS); 112 TEST_SYSCALL_STR, fd, rc == -1 ? PREFIX_F_STR : PREFIX_S_STR, 116 rc = TEST_SYSCALL_NAME(fd PREFIX_F_ARGS, (void *) addr [all...] |
/external/strace/tests-mx32/ |
sockname.c | 76 test_sockname_syscall(const int fd) 83 int rc = TEST_SYSCALL_NAME(fd PREFIX_S_ARGS, (void *) addr, 89 TEST_SYSCALL_STR, fd, PREFIX_S_STR, addr->sun_path, 94 rc = TEST_SYSCALL_NAME(fd PREFIX_S_ARGS, (void *) addr, 100 TEST_SYSCALL_STR, fd, PREFIX_S_STR, addr->sun_path, 104 rc = TEST_SYSCALL_NAME(fd PREFIX_F_ARGS, (void *) addr, 0 SUFFIX_ARGS); 106 TEST_SYSCALL_STR, fd, PREFIX_F_STR, addr, SUFFIX_STR, 110 rc = TEST_SYSCALL_NAME(fd PREFIX_S_ARGS, 0, 0 SUFFIX_ARGS); 112 TEST_SYSCALL_STR, fd, rc == -1 ? PREFIX_F_STR : PREFIX_S_STR, 116 rc = TEST_SYSCALL_NAME(fd PREFIX_F_ARGS, (void *) addr [all...] |
/hardware/google/av/codec2/vndk/internal/ |
C2ParamInternal.h | 23 inline static uint32_t GetOffset(const C2FieldDescriptor &fd) { 24 return fd._mFieldId._mOffset; 27 inline static void SetOffset(C2FieldDescriptor &fd, uint32_t offset) { 28 fd._mFieldId._mOffset = offset; 31 inline static uint32_t GetEndOffset(const C2FieldDescriptor &fd, uint32_t paramSize = 0) { 32 uint32_t endOffset = fd._mFieldId._mOffset + fd._mExtent * fd._mFieldId._mSize; 34 return fd._mExtent ? endOffset : std::max(endOffset, paramSize); 37 inline static uint32_t GetSize(const C2FieldDescriptor &fd) { [all...] |
/frameworks/native/services/utils/tests/ |
PriorityDumper_test.cpp | 50 PriorityDumperTest() : dumper_(), dumpAlldumper_(), fd(1) {} 53 int fd; member in class:PriorityDumperTest 64 EXPECT_CALL(dumper_, dumpAll(fd, ElementsAreArray(args), /*asProto=*/false)); 65 dumper_.priorityDump(fd, args); 71 EXPECT_CALL(dumper_, dumpAll(fd, ElementsAreArray(args), /*asProto=*/false)); 72 dumper_.priorityDump(fd, args); 79 EXPECT_CALL(dumper_, dumpCritical(fd, ElementsAreArray(strippedArgs), /*asProto=*/false)); 80 dumper_.priorityDump(fd, args); 89 EXPECT_CALL(dumper_, dumpCritical(fd, ElementsAreArray(strippedArgs), /*asProto=*/false)); 90 dumper_.priorityDump(fd, args) [all...] |
/prebuilts/go/darwin-x86/src/internal/poll/ |
fd_posix.go | 14 // eofError returns io.EOF when fd is available for reading end of 16 func (fd *FD) eofError(n int, err error) error { 17 if n == 0 && err == nil && fd.ZeroReadIsEOF { 24 func (fd *FD) Fchmod(mode uint32) error { 25 if err := fd.incref(); err != nil { 28 defer fd.decref() 29 return syscall.Fchmod(fd.Sysfd, mode) 33 func (fd *FD) Fchown(uid, gid int) error [all...] |
/prebuilts/go/linux-x86/src/internal/poll/ |
fd_posix.go | 14 // eofError returns io.EOF when fd is available for reading end of 16 func (fd *FD) eofError(n int, err error) error { 17 if n == 0 && err == nil && fd.ZeroReadIsEOF { 24 func (fd *FD) Fchmod(mode uint32) error { 25 if err := fd.incref(); err != nil { 28 defer fd.decref() 29 return syscall.Fchmod(fd.Sysfd, mode) 33 func (fd *FD) Fchown(uid, gid int) error [all...] |
/toolchain/binutils/binutils-2.27/gas/testsuite/gas/i386/ |
x86-64-avx512f_vl-wig1-intel.d | 12 [ ]*[a-f0-9]+:[ ]*62 02 fd 08 21 f5[ ]*vpmovsxbd xmm30,xmm29 13 [ ]*[a-f0-9]+:[ ]*62 02 fd 0f 21 f5[ ]*vpmovsxbd xmm30\{k7\},xmm29 14 [ ]*[a-f0-9]+:[ ]*62 02 fd 8f 21 f5[ ]*vpmovsxbd xmm30\{k7\}\{z\},xmm29 15 [ ]*[a-f0-9]+:[ ]*62 62 fd 08 21 31[ ]*vpmovsxbd xmm30,DWORD PTR \[rcx\] 16 [ ]*[a-f0-9]+:[ ]*62 22 fd 08 21 b4 f0 23 01 00 00[ ]*vpmovsxbd xmm30,DWORD PTR \[rax\+r14\*8\+0x123\] 17 [ ]*[a-f0-9]+:[ ]*62 62 fd 08 21 72 7f[ ]*vpmovsxbd xmm30,DWORD PTR \[rdx\+0x1fc\] 18 [ ]*[a-f0-9]+:[ ]*62 62 fd 08 21 b2 00 02 00 00[ ]*vpmovsxbd xmm30,DWORD PTR \[rdx\+0x200\] 19 [ ]*[a-f0-9]+:[ ]*62 62 fd 08 21 72 80[ ]*vpmovsxbd xmm30,DWORD PTR \[rdx-0x200\] 20 [ ]*[a-f0-9]+:[ ]*62 62 fd 08 21 b2 fc fd ff ff[ ]*vpmovsxbd xmm30,DWORD PTR \[rdx-0x204\ [all...] |
/bionic/libc/bionic/ |
sys_epoll.cpp | 44 int epoll_pwait(int fd, epoll_event* events, int max_events, int timeout, const sigset_t* ss) { 52 return epoll_pwait64(fd, events, max_events, timeout, ss_ptr); 55 int epoll_pwait64(int fd, epoll_event* events, int max_events, int timeout, const sigset64_t* ss) { 56 return __epoll_pwait(fd, events, max_events, timeout, ss, sizeof(*ss)); 59 int epoll_wait(int fd, struct epoll_event* events, int max_events, int timeout) { 60 return epoll_pwait64(fd, events, max_events, timeout, nullptr);
|
sys_time.cpp | 37 static int futimesat(int fd, const char* path, const timeval tv[2], int flags) { 43 return utimensat(fd, path, tv ? ts : nullptr, flags); 54 int futimesat(int fd, const char* path, const timeval tv[2]) { 55 return futimesat(fd, path, tv, 0); 58 int futimes(int fd, const timeval tv[2]) { 64 return futimens(fd, tv ? ts : nullptr);
|
/bionic/tests/ |
TemporaryFile.h | 31 if (fd == -1) { 41 close(fd); 46 close(fd); 47 fd = open(filename, O_RDWR); 50 int fd; member in class:GenericTemporaryFile 58 fd = mk_fn(filename);
|
/external/boringssl/src/crypto/fipsmodule/rand/ |
urandom.c | 118 int fd = *urandom_fd_requested_bss_get(); local 147 if (fd == kUnset) { 149 fd = open("/dev/urandom", O_RDONLY); 150 } while (fd == -1 && errno == EINTR); 153 if (fd < 0) { 158 if (fd == kUnset) { 162 fd = dup(fd); 165 if (fd <= 0) { 177 if (ioctl(fd, RNDGETENTCNT, &entropy_bits)) [all...] |
/external/compiler-rt/test/tsan/ |
race_on_read.cc | 8 int fd; variable 13 read(fd, &buf, 1); 18 read(fd, &buf, 1); 25 fd = open("/dev/random", O_RDONLY); 26 if (fd < 0) { 35 close(fd);
|
/external/curl/docs/examples/ |
fileupload.c | 37 FILE *fd; local 39 fd = fopen("debugit", "rb"); /* open file to upload */ 40 if(!fd) 44 if(fstat(fileno(fd), &file_info) != 0) 57 curl_easy_setopt(curl, CURLOPT_READDATA, fd); 85 fclose(fd);
|
/external/e2fsprogs/lib/e2p/ |
fsetproject.c | 48 int fd, r, save_errno = 0; 51 fd = open (name, OPEN_FLAGS); 52 if (fd == -1) 54 r = ioctl (fd, FS_IOC_FSGETXATTR, &fsx); 60 r = ioctl (fd, FS_IOC_FSSETXATTR, &fsx); 64 close (fd);
|
/external/libdrm/tests/tegra/ |
openclose.c | 41 int err, fd; local 48 fd = open(device, O_RDWR); 49 if (fd < 0) 52 version = drmGetVersion(fd); 63 err = drm_tegra_new(&tegra, fd); 68 close(fd);
|
/external/ltp/lib/ |
tst_fill_fs.c | 33 int fd; local 43 fd = open(file, O_WRONLY | O_CREAT, 0700); 44 if (fd == -1) { 53 ret = write(fd, buf, MIN(len, sizeof(buf))); 56 SAFE_CLOSE(fd); 68 SAFE_CLOSE(fd);
|
/external/ltp/testcases/cve/ |
cve-2016-7042.c | 39 static int fd; variable 52 fd = SAFE_OPEN(PATH_KEYS, O_RDONLY); 56 SAFE_READ(0, fd, buf, BUFSIZ); 60 SAFE_CLOSE(fd); 78 if (fd > 0) 79 SAFE_CLOSE(fd);
|
/external/ltp/testcases/kernel/input/ |
input02.c | 38 static int fd; variable 83 fd = open_uinput(); 84 setup_mouse_events(fd); 85 create_device(fd); 96 send_rel_move(fd, 10, 1); 105 destroy_device(fd);
|
input04.c | 37 static int fd, fd2; variable 80 fd = open_uinput(); 81 setup_mouse_events(fd); 82 create_device(fd); 92 send_rel_move(fd, 0, 0); 102 destroy_device(fd);
|