HomeSort by relevance Sort by last modified time
    Searched defs:fd (Results 251 - 275 of 1622) sorted by null

<<11121314151617181920>>

  /external/dhcpcd/
bpf.c 54 int fd = -1; local
64 fd = open(_PATH_BPF, O_RDWR | O_NONBLOCK);
72 fd = open(device, O_RDWR | O_NONBLOCK);
73 } while (fd == -1 && errno == EBUSY);
77 if (fd == -1)
80 if (ioctl(fd, BIOCVERSION, &pv) == -1)
90 if (ioctl(fd, BIOCSETIF, &ifr) == -1)
94 if (ioctl(fd, BIOCGBLEN, &buf_len) == -1)
105 if (ioctl(fd, BIOCIMMEDIATE, &flags) == -1)
119 if (ioctl(fd, BIOCSETF, &pf) == -1
143 int fd; local
165 int fd = -1; local
    [all...]
  /external/dropbear/
svr-agentfwd.c 45 static int send_msg_channel_open_agent(int fd);
46 static int bindagent(int fd, struct ChanSess * chansess);
53 int fd; local
60 fd = socket(PF_UNIX, SOCK_STREAM, 0);
61 if (fd < 0) {
66 if (bindagent(fd, chansess) == DROPBEAR_FAILURE) {
71 if (listen(fd, 20) < 0) {
76 setnonblocking(fd);
79 chansess->agentlistener = new_listener( &fd, 1, 0, chansess,
100 int fd; local
    [all...]
svr-x11fwd.c 41 static int bindport(int fd);
42 static int send_msg_channel_open_x11(int fd, struct sockaddr_in* addr);
48 int fd; local
61 fd = socket(PF_INET, SOCK_STREAM, 0);
62 if (fd < 0) {
67 chansess->x11port = bindport(fd);
73 if (listen(fd, 20) < 0) {
78 setnonblocking(fd);
83 chansess->x11listener = new_listener( &fd, 1, 0, chansess, x11accept, NULL);
94 close(fd);
103 int fd; local
    [all...]
  /external/e2fsprogs/lib/ss/
help.c 47 int fd, child; local
83 for (fd = -1, idx = 0; info->info_dirs[idx] != (char *)NULL; idx++) {
95 fd = open(buffer, O_RDONLY);
97 if (fd >= 0)
100 if (fd < 0) {
114 (void) dup2(fd, 0); /* put file on stdin */
117 (void) close(fd); /* what can we do if it fails? */
  /external/elfutils/libdwfl/
argp-std.c 214 int fd = open64 (arg, O_RDONLY); local
215 if (fd < 0)
218 Elf *core = elf_begin (fd, ELF_C_READ_MMAP_PRIVATE, NULL);
221 close (fd);
234 close (fd);
238 /* From now we leak FD and CORE. */
  /external/elfutils/tests/
asm-tst1.c 76 int fd; local
125 fd = open (fname, O_RDONLY);
126 if (fd == -1)
133 elf = elf_begin (fd, ELF_C_READ, NULL);
256 close (fd);
asm-tst2.c 76 int fd; local
141 fd = open (fname, O_RDONLY);
142 if (fd == -1)
149 elf = elf_begin (fd, ELF_C_READ, NULL);
278 close (fd);
asm-tst9.c 96 int fd; local
175 fd = open (fname, O_RDONLY);
176 if (fd == -1)
183 elf = elf_begin (fd, ELF_C_READ, NULL);
335 close (fd);
get-files.c 45 int fd = open (argv[cnt], O_RDONLY); local
47 Dwarf *dbg = dwarf_begin (fd, DWARF_C_READ);
52 if (fd != -1)
53 close (fd);
111 close (fd);
sectiondump.c 48 int fd; local
56 fd = open (argv[1], O_RDONLY);
57 if (fd == -1)
64 elf = elf_begin (fd, ELF_C_READ, NULL);
show-abbrev.c 42 int fd = open (argv[cnt], O_RDONLY); local
43 Dwarf *dbg = dwarf_begin (fd, DWARF_C_READ);
47 close (fd);
135 close (fd);
  /external/expat/tests/benchmark/
benchmark.c 29 FILE *fd; local
55 fd = fopen (argv[j + 1], "r");
56 if (!fd) {
70 fileSize = fread (XMLBuf, sizeof (char), fileAttr.st_size, fd);
71 fclose (fd);
  /external/jpeg/
jmem-android.c 134 FILE * fd = fopen(path, "w+"); local
136 return fd;
142 FILE * fd = getTempFileFromPath(path); local
143 if (fd == NULL) {
146 // fd = getTempFileFromPath(path);
148 return fd;
jmem-ashmem.c 125 int fd = ashmem_create_region(path, total_bytes_needed); local
126 if (fd == -1) {
129 int err = ashmem_set_prot_region(fd, PROT_READ | PROT_WRITE);
133 info->addr = mmap(NULL, total_bytes_needed, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0);
135 info->temp_file = fd;
136 return fd;
  /external/kernel-headers/original/asm-arm/
poll.h 22 int fd; member in struct:pollfd
  /external/kernel-headers/original/asm-generic/
poll.h 32 int fd; member in struct:pollfd
  /external/kernel-headers/original/linux/
genlock.h 10 struct genlock_handle *genlock_get_handle_fd(int fd);
13 struct genlock *genlock_attach_lock(struct genlock_handle *, int fd);
28 int fd; member in struct:genlock_lock
if_pppol2tp.h 28 __kernel_pid_t pid; /* pid that owns the fd.
30 int fd; /* FD of UDP socket to use */ member in struct:pppol2tp_addr
42 pid_t pid; /* pid that owns the fd.
44 int fd; /* FD of UDP or IP socket to use */ member in struct:pppol2tpv3_addr
  /external/libmtp/examples/
albumart.c 47 int fd; local
108 if ( (fd = open(path, O_RDONLY|O_BINARY) == -1) ) {
110 if ( (fd = open(path, O_RDONLY)) == -1) {
116 read(fd, imagedata, filesize);
117 close(fd);
  /external/linux-tools-perf/util/
run-command.c 5 static inline void close_pair(int fd[2])
7 close(fd[0]);
8 close(fd[1]);
13 int fd = open("/dev/null", O_RDWR); local
14 dup2(fd, to);
15 close(fd);
  /external/openfst/src/lib/
mapped-file.cc 67 int fd = open(opts.source.c_str(), O_RDONLY); local
68 if (fd != -1) {
72 void *map = mmap(0, upsize, PROT_READ, MAP_SHARED, fd, pos - offset);
74 if (close(fd) == 0 && map != MAP_FAILED) {
  /external/openssh/
auth-rhosts.c 61 int fd; local
65 if ((fd = open(filename, O_RDONLY|O_NONBLOCK)) == -1)
67 if (fstat(fd, &st) == -1) {
68 close(fd);
74 close(fd);
77 unset_nonblock(fd);
78 if ((f = fdopen(fd, "r")) == NULL) {
79 close(fd);
entropy.c 76 int fd, addr_len, rval, errors; local
112 fd = socket(addr.ss_family, SOCK_STREAM, 0);
113 if (fd == -1) {
118 if (connect(fd, (struct sockaddr*)&addr, addr_len) == -1) {
133 if (atomicio(vwrite, fd, msg, sizeof(msg)) != sizeof(msg)) {
135 close(fd);
144 if (atomicio(read, fd, buf, len) != (size_t)len) {
146 close(fd);
158 if (fd != -1)
159 close(fd);
    [all...]
  /external/openssl/crypto/rand/
rand_egd.c 141 int fd = -1; local
151 fd = socket(AF_UNIX, SOCK_STREAM, 0);
152 if (fd == -1) return (-1);
156 if (connect(fd, (struct sockaddr *)&addr, len) == 0)
194 num = write(fd, egdbuf + numbytes, 2 - numbytes);
218 num = read(fd, egdbuf, 1);
250 num = read(fd, retrievebuf + numbytes, egdbuf[0] - numbytes);
279 if (fd != -1) close(fd);
  /external/oprofile/libpopt/
poptconfig.c 101 int fd, rc; local
104 fd = open(fn, O_RDONLY);
105 if (fd < 0)
108 fileLength = lseek(fd, 0, SEEK_END);
109 if (fileLength == -1 || lseek(fd, 0, 0) == -1) {
111 (void) close(fd);
117 if (read(fd, (char *)file, fileLength) != fileLength) {
119 (void) close(fd);
123 if (close(fd) == -1)

Completed in 2595 milliseconds

<<11121314151617181920>>