/external/elfutils/tests/ |
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/expat/xmlwf/ |
readfilemap.c | 49 int fd; local 54 fd = open(name, O_RDONLY|O_BINARY); 55 if (fd < 0) { 59 if (fstat(fd, &sb) < 0) { 61 close(fd); 66 close(fd); 74 close(fd); 80 close(fd); 83 n = read(fd, p, nbytes); 87 close(fd); [all...] |
/external/iproute2/ip/ |
tunnel.c | 69 int fd; local 73 fd = socket(preferred_family, SOCK_DGRAM, 0); 74 err = ioctl(fd, SIOCGIFINDEX, &ifr); 79 close(fd); 86 int fd; local 90 fd = socket(preferred_family, SOCK_DGRAM, 0); 91 err = ioctl(fd, SIOCGIFHWADDR, &ifr); 96 close(fd); 104 int fd; local 108 fd = socket(preferred_family, SOCK_DGRAM, 0) 121 int fd; local 137 int fd; local 156 int fd; local 175 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/ |
enabled.c | 76 int fd, ret, enabled = 0; local 82 fd = open(path, O_RDONLY); 83 if (fd < 0) 89 ret = read(fd, buf, sizeof buf - 1); 91 close(fd);
|
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/llvm/unittests/Support/ |
FileOutputBufferTest.cpp | 41 int fd; local 43 fs::unique_file("FileOutputBuffer-test-%%-%%-%%-%%/dir", fd, 45 ::close(fd);
|
/external/mesa3d/src/glsl/glcpp/ |
glcpp.c | 43 /* Read from fd until EOF and return a string of everything read. 46 load_text_fd (void *ctx, int fd) 63 bytes = read (fd, text + total_read, CHUNK); 87 int fd; local 92 fd = open (filename, O_RDONLY); 93 if (fd < 0) { 99 text = load_text_fd (ctx, fd); 101 close(fd);
|
/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...] |
bsd-poll.h | 35 int fd; member in struct:pollfd
|
mktemp.c | 53 int fd; local 55 return (_gettemp(path, &fd, 0, slen) ? fd : -1); 61 int fd; local 63 return (_gettemp(path, &fd, 0, 0) ? fd : -1);
|
port-tun.c | 61 int fd = -1; local 64 if ((fd = open("/dev/net/tun", O_RDWR)) == -1) { 90 if (ioctl(fd, TUNSETIFF, &ifr) == -1) { 97 debug("%s: tunnel mode %d fd %d", __func__, mode, fd); 99 debug("%s: %s mode %d fd %d", __func__, ifr.ifr_name, mode, fd); 101 return (fd); 104 close(fd); 122 int fd = -1, sock, flag local [all...] |
port-uw.c | 94 FILE *fd; local 97 if ((fd = fopen (password_file, "r")) == NULL) { 111 while (ent = fgetpwent(fd)) { 114 fclose (fd); 119 fclose (fd);
|