/external/boringssl/src/crypto/rand_extra/ |
forkunsafe.c | 29 void RAND_enable_fork_unsafe_buffering(int fd) { 31 if (fd != -1) {
|
/external/curl/src/ |
tool_cb_see.c | 67 if(LSEEK_ERROR == lseek(in->fd, 0, SEEK_SET)) 73 if(LSEEK_ERROR == lseek(in->fd, step, SEEK_CUR)) 82 if(LSEEK_ERROR == lseek(in->fd, offset, whence)) 112 # define _get_osfhandle(fd) (fd) 119 int tool_ftruncate64(int fd, curl_off_t where) 121 if(_lseeki64(fd, where, SEEK_SET) < 0) 124 if(!SetEndOfFile((HANDLE)_get_osfhandle(fd)))
|
/external/dhcpcd-6.8.2/compat/ |
closefrom.c | 33 closefrom(int fd) 44 for (i = fd; i < max; i++) {
|
/external/e2fsprogs/lib/e2p/ |
getversion.c | 29 int getversion (int fd, unsigned long * version) 34 r = ioctl (fd, EXT2_IOC_GETVERSION, &ver);
|
setversion.c | 29 int setversion (int fd, unsigned long version) 35 return ioctl (fd, EXT2_IOC_SETVERSION, &ver);
|
/external/e2fsprogs/misc/ |
partinfo.c | 30 int fd, i; local 48 fd = open(argv[i], O_RDONLY); 50 if (fd < 0) { 56 if (ioctl(fd, HDIO_GETGEO, &loc) < 0) { 59 close(fd); 64 if (ioctl(fd, BLKGETSIZE, &size) < 0) { 67 close(fd); 75 close(fd);
|
/external/elfutils/libdwfl/ |
find-debuginfo.c | 57 int fd = TEMP_FAILURE_RETRY (open (fname, O_RDONLY)); local 58 if (fd < 0) 60 else if (fstat (fd, &st) == 0 66 close (fd); 68 fd = -1; 73 return fd; 76 /* Return true iff the FD's contents CRC matches DEBUGLINK_CRC. */ 78 check_crc (int fd, GElf_Word debuglink_crc) 81 return (__libdwfl_crc32_file (fd, &file_crc) == 0 86 validate (Dwfl_Module *mod, int fd, bool check, GElf_Word debuglink_crc 282 int fd = try_open (&main_stat, dir, subdir, file, &fname); local 351 int fd = INTUSE(dwfl_build_id_find_debuginfo) (mod, local 366 int fd = find_debuginfo_in_path (mod, file_name, local [all...] |
/external/elfutils/tests/ |
arls.c | 50 int fd = open (fname, O_RDONLY); local 51 if (fd == -1) 57 Elf *elf = elf_begin (fd, ELF_C_READ_MMAP, NULL); 62 close (fd); 70 close (fd); 77 while ((subelf = elf_begin (fd, cmd, elf)) != NULL) 86 close (fd); 108 close (fd);
|
/external/libchrome/base/files/ |
scoped_file.cc | 24 void ScopedFDCloseTraits::Free(int fd) { 32 int ret = IGNORE_EINTR(close(fd)); 43 // close other than EBADF do not indicate failure to actually close the fd.
|
/external/libdrm/libkms/ |
internal.h | 57 int fd; member in struct:kms_driver 70 drm_private int linux_create(int fd, struct kms_driver **out); 72 drm_private int vmwgfx_create(int fd, struct kms_driver **out); 74 drm_private int intel_create(int fd, struct kms_driver **out); 76 drm_private int dumb_create(int fd, struct kms_driver **out); 78 drm_private int nouveau_create(int fd, struct kms_driver **out); 80 drm_private int radeon_create(int fd, struct kms_driver **out); 82 drm_private int exynos_create(int fd, struct kms_driver **out);
|
/external/ltp/testcases/kernel/fs/acls/ |
acl_file_test.c | 18 int fd; local 27 fd = open(file, O_RDONLY); 28 if (fd < 0) { 33 if (-1 == (s = flistxattr(fd, list, 1024))) { 43 s = fgetxattr(fd, tok, (void *)value, 1024); 48 s = fsetxattr(fd, tok, (void *)value, s, 0); 57 //s = syscall(237, fd,tok); //fremovexattr 59 s = syscall(__NR_fremovexattr, fd, tok); //fremovexattr 71 close(fd);
|
/external/ltp/testcases/kernel/syscalls/fanotify/ |
fanotify.h | 49 static long fanotify_mark(int fd, unsigned int flags, uint64_t mask, 52 return syscall(__NR_fanotify_mark, fd, flags, mask, dfd, pathname);
|
/external/ltp/testcases/kernel/syscalls/ioctl/ |
ioctl04.c | 29 static int fd; variable 35 SAFE_IOCTL(fd, BLKROGET, &ro); 43 SAFE_IOCTL(fd, BLKROSET, &ro); 46 SAFE_IOCTL(fd, BLKROGET, &ro); 80 SAFE_IOCTL(fd, BLKROSET, &ro); 86 fd = SAFE_OPEN(tst_device->dev, O_RDONLY); 91 if (fd > 0) 92 SAFE_CLOSE(fd);
|
/external/ltp/testcases/kernel/syscalls/lseek/ |
lseek01.c | 34 static int fd; variable 55 SAFE_READ(0, fd, read_buf, sizeof(read_buf)); 59 TEST(lseek(fd, tc->off, tc->whence)); 72 SAFE_READ(1, fd, read_buf, tc->exp_size); 85 fd = SAFE_OPEN(TFILE, O_RDWR | O_CREAT, 0644); 87 SAFE_WRITE(1, fd, WRITE_STR, sizeof(WRITE_STR) - 1); 92 if (fd > 0) 93 SAFE_CLOSE(fd);
|
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_svc_destroy/ |
rpc_svc_destroy.c | 44 int fd = 0; local 48 svcr = svcfd_create(fd, 0, 0);
|
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_svcfd_create/ |
rpc_svcfd_create.c | 44 int fd = 0; local 48 svcr = svcfd_create(fd, 0, 0);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/ |
2-1.c | 30 int fd, ret; local 40 fd = open(tmpfname, O_CREAT | O_RDWR | O_EXCL, S_IRUSR | S_IWUSR); 41 if (fd == -1) { 49 aiocb_write.aio_fildes = fd; 59 aiocb_fsync.aio_fildes = fd; 76 close(fd); 84 close(fd); 88 close(fd);
|
3-1.c | 30 int fd, ret; local 40 fd = open(tmpfname, O_CREAT | O_RDWR | O_EXCL, S_IRUSR | S_IWUSR); 41 if (fd == -1) { 49 aiocb_write.aio_fildes = fd; 59 aiocb_fsync.aio_fildes = fd; 75 close(fd); 83 close(fd); 87 close(fd);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_return/ |
1-1.c | 44 int fd, retval; local 52 fd = open(tmpfname, O_CREAT | O_RDWR | O_EXCL, S_IRUSR | S_IWUSR); 54 if (fd == -1) { 63 aiocb.aio_fildes = fd; 68 close(fd); 81 close(fd); 86 close(fd); 92 close(fd);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_write/ |
9-1.c | 46 int fd; local 55 fd = open(tmpfname, O_CREAT | O_RDWR | O_EXCL, S_IRUSR | S_IWUSR); 56 if (fd == -1) { 64 aiocb.aio_fildes = fd; 80 close(fd); 85 close(fd); 93 close(fd); 98 close(fd);
|
9-2.c | 46 int fd; local 55 fd = open(tmpfname, O_CREAT | O_RDWR | O_EXCL, S_IRUSR | S_IWUSR); 56 if (fd == -1) { 64 aiocb.aio_fildes = fd; 80 close(fd); 85 close(fd); 93 close(fd); 98 close(fd);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/ |
6-4.c | 40 int fd; local 46 fd = open(tmpfname, O_CREAT | O_RDWR | O_EXCL, S_IRUSR | S_IWUSR); 47 if (fd == -1) { 51 if (ftruncate(fd, size) == -1) { 55 close(fd); 58 fd = open(tmpfname, O_RDONLY, S_IRUSR | S_IWUSR); 59 if (fd == -1) { 65 pa = mmap(NULL, size, PROT_WRITE, MAP_SHARED, fd, 0);
|
6-6.c | 39 int fd; local 44 fd = open(tmpfname, O_CREAT | O_RDWR | O_EXCL, S_IRUSR | S_IWUSR); 45 if (fd == -1) { 49 if (ftruncate(fd, size) == -1) { 53 close(fd); 56 fd = open(tmpfname, O_WRONLY, S_IRUSR | S_IWUSR); 57 if (fd == -1) { 64 pa = mmap(NULL, size, PROT_READ, MAP_PRIVATE, fd, 0);
|
7-1.c | 47 int fd; local 51 fd = open(tmpfname, O_CREAT | O_RDWR | O_EXCL, S_IRUSR | S_IWUSR); 52 if (fd == -1) { 59 if (write(fd, data, size) != size) { 64 pa = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); 81 pa = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); 91 close(fd); 97 close(fd);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/shm_open/ |
1-1.c | 40 int fd; local 44 fd = shm_open(SHM_NAME, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR); 45 if (fd == -1) { 50 if (ftruncate(fd, BUF_SIZE) != 0) { 56 buf = mmap(NULL, BUF_SIZE, PROT_WRITE, MAP_SHARED, fd, 0); 65 fd = shm_open(SHM_NAME, O_RDONLY, S_IRUSR | S_IWUSR); 66 if (fd == -1) { 72 buf = mmap(NULL, BUF_SIZE, PROT_READ, MAP_SHARED, fd, 0);
|