/external/e2fsprogs/resize/ |
online.c | 34 int fd, overhead; local 64 fd = open(mtpt, O_RDONLY); 65 if (fd < 0) { 72 if (ioctl(fd, EXT2_IOC_GROUP_EXTEND, &size)) { 118 if (ioctl(fd, EXT2_IOC_GROUP_EXTEND, &size)) { 164 ioctl(fd, EXT2_IOC_GROUP_ADD, &input) == 0) 177 if (ioctl(fd, EXT4_IOC_GROUP_ADD, &input64) < 0) { 186 close(fd);
|
/external/elfutils/libdwfl/ |
dwfl_build_id_find_elf.c | 97 int fd = -1; local 99 while (fd < 0 && (dir = strsep (&path, ":")) != NULL) 113 fd = TEMP_FAILURE_RETRY (open64 (name, O_RDONLY)); 114 if (fd >= 0) 138 if (fd < 0 && errno == ENOENT) 141 return fd; 152 int fd = __libdwfl_open_by_build_id (mod, false, file_name); local 153 if (fd >= 0) 155 *elfp = elf_begin (fd, ELF_C_READ_MMAP_PRIVATE, NULL); 164 close (fd); [all...] |
/external/elfutils/tests/ |
allfcts.c | 54 int fd = open (argv[i], O_RDONLY); local 56 Dwarf *dbg = dwarf_begin (fd, DWARF_C_READ); 76 close (fd);
|
arextract.c | 42 int fd; local 53 fd = open (argv[1], O_RDONLY); 54 if (fd == -1) 65 elf = elf_begin (fd, cmd, NULL); 80 while ((subelf = elf_begin (fd, cmd, elf)) != NULL) 118 ssize_t n = pread (fd, buf, MIN (sizeof buf, todo), offset); 147 close (fd);
|
asm-tst7.c | 48 int fd; local 82 fd = open (fname, O_RDONLY); 83 if (fd == -1) 90 elf = elf_begin (fd, ELF_C_READ, NULL); 181 close (fd);
|
asm-tst8.c | 48 int fd; local 83 fd = open (fname, O_RDONLY); 84 if (fd == -1) 91 elf = elf_begin (fd, ELF_C_READ, NULL); 189 close (fd);
|
get-aranges.c | 54 int fd = open (argv[cnt], O_RDONLY); local 56 Dwarf *dbg = dwarf_begin (fd, DWARF_C_READ); 61 close (fd); 146 close (fd);
|
get-pubnames.c | 82 int fd = open (argv[cnt], O_RDONLY); local 83 Dwarf *dbg = dwarf_begin (fd, DWARF_C_READ); 88 close (fd); 102 close (fd);
|
newfile.c | 65 int fd; local 68 fd = mkstemp (fname); 69 if (fd == -1) 78 elf = elf_begin (fd, ELF_C_WRITE, NULL);
|
saridx.c | 98 int fd; local 117 fd = open (argv[arg], O_RDONLY); 118 if (fd == -1) 133 elf = elf_begin (fd, cmd, NULL); 155 while ((subelf = elf_begin (fd, cmd, elf)) != NULL) 262 close (fd);
|
showptable.c | 39 int fd; local 49 fd = open (argv[1], O_RDONLY); 50 if (fd == -1) 58 elf = elf_begin (fd, ELF_C_READ, NULL);
|
update3.c | 45 int fd; local 56 fd = open (fname, O_RDWR | O_CREAT | O_TRUNC, 0666); 57 if (fd == -1) 67 elf = elf_begin (fd, ELF_C_WRITE, NULL);
|
update4.c | 46 int fd; local 61 fd = open (fname, O_RDWR | O_CREAT | O_TRUNC, 0666); 62 if (fd == -1) 72 elf = elf_begin (fd, ELF_C_WRITE, NULL);
|
/external/iproute2/ip/ |
tunnel.c | 69 int fd; local 74 fd = socket(preferred_family, SOCK_DGRAM, 0); 75 err = ioctl(fd, SIOCGETTUNNEL, &ifr); 80 close(fd); 87 int fd; local 95 fd = socket(preferred_family, SOCK_DGRAM, 0); 96 err = ioctl(fd, cmd, &ifr); 100 close(fd); 107 int fd; local 116 fd = socket(preferred_family, SOCK_DGRAM, 0) 129 int fd; local [all...] |
/external/kernel-headers/original/linux/usb/ |
f_mtp.h | 38 int fd; member in struct:mtp_file_range
|
/external/libcap-ng/libcap-ng-0.7/utils/ |
filecap.c | 52 int fd = open(fpath, O_RDONLY|O_CLOEXEC); local 53 if (fd >= 0) { 57 capng_get_caps_fd(fd); 72 close(fd); 172 int fd = open(path, O_WRONLY|O_NOFOLLOW|O_CLOEXEC); 173 if (fd < 0) { 178 capng_apply_caps_fd(fd); 179 close(fd);
|
/external/libmtp/examples/ |
thumb.c | 47 int fd; local 88 if ( (fd = open(path, O_RDONLY|O_BINARY) == -1) ) { 90 if ( (fd = open(path, O_RDONLY)) == -1) { 96 read(fd, imagedata, filesize); 97 close(fd);
|
/external/libppp/src/ |
server.h | 33 int fd; member in struct:server
|
/external/libselinux/src/ |
procattr.c | 23 int fd, rc; local 37 fd = open(path, O_RDONLY); 39 if (fd < 0) 51 ret = read(fd, buf, size - 1); 71 close(fd); 80 int fd, rc; local 94 fd = open(path, O_RDWR); 96 if (fd < 0) 100 ret = write(fd, context, strlen(context) + 1); 104 ret = write(fd, NULL, 0); /* clear * [all...] |
/external/libvpx/libvpx/ |
vpxstats.c | 31 int fd; local 33 fd = open(fpf, O_RDONLY); 34 stats->file = fdopen(fd, "rb"); 35 fstat(fd, &stat_buf); 37 stats->buf.buf = mmap(NULL, stats->buf.sz, PROT_READ, MAP_PRIVATE, fd, 0);
|
/external/marisa-trie/tests/ |
io-test.cc | 101 int fd = -1; local 102 ASSERT(::_sopen_s(&fd, "io-test.dat", 106 int fd = ::creat("io-test.dat", 0644); local 107 ASSERT(fd != -1); 109 marisa::Writer writer(fd); 115 ASSERT(::_close(fd) == 0); 117 ASSERT(::close(fd) == 0); 123 int fd = -1; local 124 ASSERT(::_sopen_s(&fd, "io-test.dat", _O_BINARY | _O_RDONLY, 127 int fd = ::open("io-test.dat", O_RDONLY) local [all...] |
/external/marisa-trie/v0_1_5/tests/ |
io-test.cc | 102 int fd = -1; local 103 ASSERT(::_sopen_s(&fd, "io-test.dat", 107 int fd = ::creat("io-test.dat", 0644); local 108 ASSERT(fd != -1); 110 marisa_alpha::Writer writer(fd); 116 ASSERT(::_close(fd) == 0); 118 ASSERT(::close(fd) == 0); 124 int fd = -1; local 125 ASSERT(::_sopen_s(&fd, "io-test.dat", _O_BINARY | _O_RDONLY, 128 int fd = ::open("io-test.dat", O_RDONLY) local [all...] |
/external/openssh/ |
monitor_fdpass.c | 47 mm_send_fd(int sock, int fd) 65 msg.msg_accrights = (caddr_t)&fd; 66 msg.msg_accrightslen = sizeof(fd); 74 *(int *)CMSG_DATA(cmsg) = fd; 82 pfd.fd = sock; 86 debug3("%s: sendmsg(%d): %s", __func__, fd, strerror(errno)); 90 error("%s: sendmsg(%d): %s", __func__, fd, 122 int fd; local 131 msg.msg_accrights = (caddr_t)&fd; 132 msg.msg_accrightslen = sizeof(fd); [all...] |
/external/openssh/openbsd-compat/ |
bsd-closefrom.c | 71 long fd, maxfd; local 78 /* Check for a /proc/$$/fd directory. */ 79 len = snprintf(fdpath, sizeof(fdpath), "/proc/%ld/fd", (long)getpid()); 82 fd = strtol(dent->d_name, &endp, 10); 84 fd >= 0 && fd < INT_MAX && fd >= lowfd && fd != dirfd(dirp)) 85 (void) close((int) fd); 94 * and then drop the rlimit such that it is below the open fd [all...] |
bsd-poll.c | 36 * Supports pfd.fd = -1 meaning "unused" although it's not standard. 43 int saved_errno, ret, fd, maxfd = 0; local 49 fd = fds[i].fd; 50 if (fd >= FD_SETSIZE) { 54 maxfd = MAX(maxfd, fd); 68 fd = fds[i].fd; 69 if (fd == -1) 72 FD_SET(fd, readfds) [all...] |