Searched defs:fd (Results 226 - 250 of 1426) sorted by relevance

1234567891011>>

/external/boringssl/src/tool/
H A Dpkcs12.cc67 int fd = open(args_map["-dump"].c_str(), O_RDONLY); local
68 if (fd < 0) {
74 if (fstat(fd, &st)) {
76 close(fd);
85 n = read(fd, &contents[off], size - off);
93 close(fd);
97 close(fd);
/external/clang/test/Analysis/
H A Dunix-api.c15 int fd; local
16 fd = open(path, O_RDONLY); // no-warning
17 if (fd > -1)
18 close(fd);
22 int fd; local
24 fd = open(path, O_RDONLY, mode, NULL); // expected-warning{{Call to 'open' with more than three arguments}}
25 if (fd > -1)
26 close(fd);
30 int fd; local
31 fd
37 int fd; local
44 int fd; local
54 int fd; local
64 int fd; local
71 int fd; local
[all...]
/external/clang/test/Sema/
H A Ddarwin-align-cast.c19 ssize_t sendFileDescriptor(int fd, void *data, size_t nbytes, int sendfd) { argument
/external/compiler-rt/lib/dfsan/
H A Ddfsan_interceptors.cc20 int fd, OFF_T offset) {
21 void *res = REAL(mmap)(addr, length, prot, flags, fd, offset);
28 int fd, OFF64_T offset) {
29 void *res = REAL(mmap64)(addr, length, prot, flags, fd, offset);
19 INTERCEPTOR(void *, mmap, void *addr, SIZE_T length, int prot, int flags, int fd, OFF_T offset) argument
27 INTERCEPTOR(void *, mmap64, void *addr, SIZE_T length, int prot, int flags, int fd, OFF64_T offset) argument
/external/compiler-rt/test/asan/TestCases/Posix/
H A Dcoverage-sandboxing.cc66 int fd = creat("coverage_sandboxing_test.sancov.packed", 0660); local
69 args.coverage_fd = fd;
/external/compiler-rt/test/sanitizer_common/TestCases/Posix/
H A Ddecorate_proc_maps.cc31 int fd = open("/proc/self/maps", O_RDONLY); local
32 bool res = CopyFdToFd(fd, 2);
33 close(fd);
/external/compiler-rt/test/tsan/
H A Dgetline_nohang.cc16 int fd[2]; local
17 pipe(fd);
19 FILE *stream = fdopen(fd[0], "r");
/external/curl/src/
H A Dtool_cb_see.c67 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) argument
121 if(_lseeki64(fd, where, SEEK_SET) < 0)
124 if(!SetEndOfFile((HANDLE)_get_osfhandle(fd)))
H A Dtool_xattr.c55 int fwrite_xattr(CURL *curl, int fd) argument
66 err = fsetxattr(fd, mappings[i].attr, value, strlen(value), 0, 0);
68 err = fsetxattr(fd, mappings[i].attr, value, strlen(value), 0);
70 err = extattr_set_fd(fd, EXTATTR_NAMESPACE_USER, mappings[i].attr, value,
83 int fwrite_xattr(CURL *curl, int fd) argument
86 (void)fd;
/external/dhcpcd-6.8.2/
H A Dcontrol.h33 /* Limit queue size per fd */
47 int fd; member in struct:fd_list
61 int control_queue(struct fd_list *fd, char *data, size_t data_len, uint8_t fit);
/external/drm_hwcomposer/
H A Ddrmresources.h38 int fd() const { function in class:android::DrmResources
/external/e2fsprogs/contrib/
H A Dmake-sparse.c23 int full_read(int fd, char *buf, size_t count) argument
29 got = read(fd, buf, count);
50 int fd, got, i; local
58 fd = open(argv[1], O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0777);
59 if (fd < 0) {
72 lseek(fd, sizeof(buf), SEEK_CUR);
78 write(fd, buf, got);
81 lseek(fd, -1, SEEK_CUR);
83 write(fd, buf, 1);
/external/e2fsprogs/e2fsck/
H A Dextend.c31 int fd; local
55 fd = open(filename, O_RDWR);
56 if (fd < 0) {
60 ret = lseek(fd, nblocks*blocksize, SEEK_SET);
65 ret = read(fd, block, blocksize);
70 ret = lseek(fd, nblocks*blocksize, SEEK_SET);
75 ret = write(fd, block, blocksize);
/external/e2fsprogs/lib/blkid/
H A Dllseek.c41 extern long long llseek(int fd, long long offset, int origin);
64 static _syscall5(int, _llseek, unsigned int, fd, unsigned long, offset_high,
69 static blkid_loff_t my_llseek(int fd, blkid_loff_t offset, int origin) argument
75 retval = _llseek(fd, ((unsigned long long) offset) >> 32,
79 retval = syscall(__NR__llseek, fd, ((unsigned long long) offset) >> 32,
90 blkid_loff_t blkid_llseek(int fd, blkid_loff_t offset, int whence) argument
97 return lseek(fd, (off_t) offset, whence);
104 result = my_llseek(fd, offset, whence);
126 blkid_loff_t blkid_llseek(int fd, blkid_loff_t offset, int origin) argument
129 return lseek64 (fd, offse
[all...]
/external/e2fsprogs/lib/ext2fs/
H A Dgetsectsize.c26 #include <linux/fd.h>
46 int fd; local
48 fd = ext2fs_open_file(file, O_RDONLY, 0);
49 if (fd < 0)
53 if (ioctl(fd, BLKSSZGET, sectsize) >= 0) {
54 close(fd);
59 close(fd);
66 int ext2fs_get_dio_alignment(int fd) argument
71 if (ioctl(fd, BLKSSZGET, &align) < 0)
94 int fd; local
[all...]
H A Dllseek.c42 extern long long llseek (int fd, long long offset, int origin);
65 static _syscall5(int,_llseek,unsigned int,fd,unsigned long,offset_high,
70 static ext2_loff_t my_llseek (int fd, ext2_loff_t offset, int origin) argument
76 retval = _llseek(fd, ((unsigned long long) offset) >> 32,
78 retval = syscall(__NR__llseek, fd, (unsigned long long) (offset >> 32),
90 ext2_loff_t ext2fs_llseek (int fd, ext2_loff_t offset, int origin) argument
93 return my_llseek (fd, offset, origin);
101 result = my_llseek (fd, offset, origin);
110 return lseek(fd, (off_t) offset, origin);
124 ext2_loff_t ext2fs_llseek (int fd, ext2_loff_ argument
[all...]
/external/elfutils/lib/
H A Dcrc32_file.c40 crc32_file (int fd, uint32_t *resp) argument
48 if (fstat (fd, &st) == 0)
52 void *mapped = mmap (NULL, mapsize, PROT_READ, MAP_PRIVATE, fd, 0);
59 fd, 0)) == MAP_FAILED && errno == ENOMEM)
76 fd, off) == mapped);
81 while ((count = TEMP_FAILURE_RETRY (pread (fd, buffer, sizeof buffer,
/external/elfutils/libdwfl/
H A Ddwfl_build_id_find_debuginfo.c43 int fd = -1; local
56 fd = __libdwfl_open_by_build_id (mod, true, debuginfo_file_name,
59 if (fd >= 0)
64 Dwfl_Error error = __libdw_open_file (&fd, &mod->alt_elf,
75 return fd;
81 close (fd);
82 fd = -1;
89 return fd;
98 fd = __libdwfl_open_mod_by_build_id (mod, true, debuginfo_file_name);
99 if (fd >
[all...]
/external/elfutils/tests/
H A Dalldts.c71 int fd = open (fname, O_RDWR | O_CREAT | O_TRUNC, 0666); local
72 if (fd == -1)
82 Elf *elf = elf_begin (fd, ELF_C_WRITE, NULL);
H A Darextract.c34 int fd; local
45 fd = open (argv[1], O_RDONLY);
46 if (fd == -1)
57 elf = elf_begin (fd, cmd, NULL);
72 while ((subelf = elf_begin (fd, cmd, elf)) != NULL)
110 ssize_t n = pread (fd, buf, MIN (sizeof buf, todo), offset);
139 close (fd);
H A Darls.c50 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);
H A Dasm-tst7.c40 int fd; local
74 fd = open (fname, O_RDONLY);
75 if (fd == -1)
82 elf = elf_begin (fd, ELF_C_READ, NULL);
173 close (fd);
H A Dasm-tst8.c40 int fd; local
75 fd = open (fname, O_RDONLY);
76 if (fd == -1)
83 elf = elf_begin (fd, ELF_C_READ, NULL);
181 close (fd);
H A Ddebugaltlink.c45 int fd = open (file, O_RDONLY); local
46 if (fd < 0)
49 Dwarf *dwarf = dwarf_begin (fd, DWARF_C_READ);
53 close (fd);
79 close (fd);
H A Ddwarf-ranges.c37 int fd = open (name, O_RDONLY); local
38 Dwarf *dbg = dwarf_begin (fd, DWARF_C_READ);

Completed in 488 milliseconds

1234567891011>>