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

<<11121314151617181920>>

  /external/dropbear/
compat.c 163 int fd; local
180 if (!noclose && (fd = open(_PATH_DEVNULL, O_RDWR, 0)) != -1) {
181 (void)dup2(fd, STDIN_FILENO);
182 (void)dup2(fd, STDOUT_FILENO);
183 (void)dup2(fd, STDERR_FILENO);
184 if (fd > STDERR_FILENO)
185 (void)close(fd);
  /external/e2fsprogs/e2fsck/
iscan.c 79 int fd = open(device_name, O_RDONLY, 0); local
81 if (fd < 0) {
86 if ((retval = ext2fs_sync_device(fd, 1))) {
91 close(fd);
  /external/e2fsprogs/lib/blkid/
getsize.c 30 #include <linux/fd.h>
61 static int valid_offset(int fd, blkid_loff_t offset)
65 if (blkid_llseek(fd, offset, 0) < 0)
67 if (read(fd, &ch, 1) < 1)
75 blkid_loff_t blkid_get_dev_size(int fd)
96 if (ioctl(fd, DKIOCGETBLOCKCOUNT, &size64) >= 0) {
112 ioctl(fd, BLKGETSIZE64, &size64) >= 0) {
121 if (ioctl(fd, BLKGETSIZE, &size) >= 0)
127 if (ioctl(fd, DIOCGMEDIASIZE, &size64) >= 0)
132 if (ioctl(fd, FDGETPRM, &this_floppy) >= 0
190 int fd; local
    [all...]
  /external/e2fsprogs/lib/ext2fs/
ismounted.c 21 #include <linux/fd.h>
52 int fd; local
152 fd = open(TEST_FILE, O_RDWR|O_CREAT, 0600);
153 if (fd < 0) {
157 close(fd);
306 int fd; local
332 fd = open(device, O_RDONLY | O_EXCL);
333 if (fd < 0) {
337 close(fd);
  /external/e2fsprogs/misc/
findsuper.c 117 int fd; local
176 fd = open(device_name, O_RDONLY);
177 if (fd < 0) {
188 for (; lseek64(fd, sk, SEEK_SET) != -1 &&
189 read(fd, &ext2, 512) == 512; sk += skiprate) {
257 close(fd);
  /external/e2fsprogs/tests/progs/
random_exercise.c 50 int fd; local
53 fd = ((int) random()) % MAXFDS;
54 if (fd > 2)
55 return fd;
59 unsigned int get_inode_num(int fd)
63 if (fstat(fd, &st) < 0) {
74 int fd; local
83 fd = open(template, O_RDONLY, 0600);
84 printf("Created temp directory %s, fd = %d\n",
85 template, fd);
144 int i, fd; local
    [all...]
  /external/e2fsprogs/util/
copy_sparse.c 41 #include <linux/fd.h>
48 static unsigned long get_bmap(int fd, unsigned long block)
54 ret = ioctl(fd, FIBMAP, &b);
65 static int full_read(int fd, char *buf, size_t count)
71 got = read(fd, buf, count);
93 long lb, i, fd, ofd, bs, block, numblocks; local
110 fd = open(src, O_RDONLY | O_LARGEFILE);
111 if (fd < 0) {
115 if (ioctl(fd, FIGETBSZ, &bs) < 0) {
117 close(fd);
    [all...]
  /external/elfutils/libdwfl/
find-debuginfo.c 74 int fd = TEMP_FAILURE_RETRY (open64 (fname, O_RDONLY)); local
75 if (fd < 0)
80 return fd;
83 /* Return true iff the FD's contents CRC matches DEBUGLINK_CRC. */
85 check_crc (int fd, GElf_Word debuglink_crc)
88 return (__libdwfl_crc32_file (fd, &file_crc) == 0
93 validate (Dwfl_Module *mod, int fd, bool check, GElf_Word debuglink_crc)
101 mod->debug.elf = elf_begin (fd, ELF_C_READ_MMAP_PRIVATE, NULL);
116 return !check || check_crc (fd, debuglink_crc);
211 int fd = try_open (dir, subdir, debuglink_file, &fname) local
270 int fd = INTUSE(dwfl_build_id_find_debuginfo) (mod, local
279 int fd = find_debuginfo_in_path (mod, file_name, local
    [all...]
  /external/elfutils/libelf/
nlist.c 83 int fd; local
95 fd = open (filename, O_RDONLY);
96 if (fd == -1)
109 elf = INTUSE(elf_begin) (fd, ELF_C_READ_MMAP, NULL);
234 (void) close (fd);
247 (void) close (fd);
  /external/elfutils/src/
ranlib.c 166 int fd = open (fname, O_RDONLY); local
167 if (fd == -1)
174 if (fstat (fd, &st) != 0)
177 close (fd);
183 Elf *arelf = elf_begin (fd, ELF_C_READ_MMAP, NULL);
188 close (fd);
196 close (fd);
208 while ((elf = elf_begin (fd, cmd, arelf)) != NULL)
258 // XXX Use /prof/self/fd/%d ???
303 close (fd);
    [all...]
  /external/elfutils/tests/
asm-tst3.c 68 int fd; local
148 fd = open (fname, O_RDONLY);
149 if (fd == -1)
156 elf = elf_begin (fd, ELF_C_READ, NULL);
339 close (fd);
get-lines.c 46 int fd = open (argv[cnt], O_RDONLY); local
48 Dwarf *dbg = dwarf_begin (fd, DWARF_C_READ);
52 close (fd);
141 close (fd);
  /external/expat/xmlwf/
xmlfile.c 157 int fd = 0; /* 0 is the fileno for stdin */ local
160 fd = topen(filename, O_BINARY|O_RDONLY);
161 if (fd < 0) {
171 close(fd);
176 nread = read(fd, buf, READ_SIZE);
180 close(fd);
186 close(fd);
191 close(fd);
  /external/iproute2/include/
libnetlink.h 13 int fd; member in struct:rtnl_handle
  /external/ipsec-tools/src/racoon/
isakmp_unity.c 125 int fd; local
129 if ((fd = open(filename, O_RDONLY, 0)) == -1) {
135 if ((len = read(fd, buf, MAXMOTD)) == -1) {
138 close(fd);
141 close(fd);
  /external/kernel-headers/original/linux/
file.h 2 * Wrapper functions for accessing the file_struct fd array.
16 * The default fd array needs to be at least BITS_PER_LONG,
37 struct file ** fd; /* current fd array */ member in struct:fdtable
76 extern struct file * FASTCALL(fget(unsigned int fd));
77 extern struct file * FASTCALL(fget_light(unsigned int fd, int *fput_needed));
78 extern void FASTCALL(set_close_on_exec(unsigned int fd, int flag));
81 extern void FASTCALL(put_unused_fd(unsigned int fd));
94 static inline struct file * fcheck_files(struct files_struct *files, unsigned int fd)
99 if (fd < fdt->max_fds
    [all...]
  /external/libcap-ng/libcap-ng-0.7/utils/
pscap.c 72 int fd, len; local
89 fd = open(buf, O_RDONLY|O_CLOEXEC, 0);
90 if (fd < 0)
92 len = read(fd, buf, sizeof buf - 1);
93 close(fd);
149 len = read(fd, buf, sizeof buf - 1);
150 close(fd);
  /external/libpcap/
fad-glifc.c 86 register int fd4, fd6, fd; local
176 fd = fd6;
178 fd = fd4;
216 if (ioctl(fd, SIOCGLIFFLAGS, (char *)&ifrflags) < 0) {
237 if (ioctl(fd, SIOCGLIFNETMASK, (char *)&ifrnetmask) < 0) {
264 if (ioctl(fd, SIOCGLIFBRDADDR,
299 if (ioctl(fd, SIOCGLIFDSTADDR,
pcap-nit.c 109 cc = read(p->fd, (char *)p->buffer, p->bufsize);
203 ret = sendto(p->fd, buf, size, 0, &sa, sizeof(sa));
213 nit_setflags(int fd, int promisc, int to_ms, char *ebuf)
233 if (ioctl(fd, SIOCSNIT, &nioc) < 0) {
253 int fd; local
270 p->fd = fd = socket(AF_NIT, SOCK_RAW, NITPROTO_RAW);
271 if (fd < 0) {
279 if (bind(fd, (struct sockaddr *)&snit, sizeof(snit))) {
285 nit_setflags(p->fd, promisc, to_ms, ebuf)
    [all...]
pcap-snoop.c 83 cc = read(p->fd, (char *)p->buffer, p->bufsize);
147 ret = write(p->fd, buf, size);
164 if (ioctl(p->fd, SIOCRAWSTATS, (char *)rs) < 0) {
201 int fd; local
217 fd = socket(PF_RAW, SOCK_RAW, RAWPROTO_SNOOP);
218 if (fd < 0) {
223 p->fd = fd;
227 if (bind(fd, (struct sockaddr *)&sr, sizeof(sr))) {
233 if (ioctl(fd, SIOCADDSNOOP, &sf) < 0)
    [all...]
  /external/libppp/src/
chap.h 43 int fd; member in struct:chap::__anon10745
  /external/libselinux/src/
booleans.c 88 int fd, len; local
107 fd = open(fname, O_RDONLY);
108 if (fd < 0)
111 len = read(fd, *buf, STRBUF_SIZE);
112 close(fd);
163 int fd, ret, len; local
181 fd = open(fname, O_WRONLY);
182 if (fd < 0) {
193 ret = write(fd, buf, 2);
194 close(fd);
207 int fd, ret; local
    [all...]
  /external/linux-tools-perf/util/
cgroup.c 62 int fd; local
70 fd = open(path, O_RDONLY);
71 if (fd == -1)
74 return fd;
102 cgrp->fd = open_cgroup(str);
103 if (cgrp->fd == -1) {
136 close(cgrp->fd);
debugfs.c 173 int fd; local
187 fd = open(path, O_RDWR);
188 if (fd < 0)
193 ret = write(fd, value, count);
197 close(fd);
204 close(fd);
218 int fd; local
229 fd = open(path, O_RDONLY);
230 if (fd < 0)
235 ret = read(fd, buffer, size)
    [all...]
  /external/openssh/
auth2.c 108 int fd; local
110 if ((fd = open(options.banner, O_RDONLY)) == -1)
112 if (fstat(fd, &st) == -1) {
113 close(fd);
117 close(fd);
123 n = atomicio(read, fd, banner, len);
124 close(fd);

Completed in 1615 milliseconds

<<11121314151617181920>>