Searched refs:fd (Results 51 - 75 of 1316) sorted by relevance

1234567891011>>

/external/iproute2/ip/
H A Dtunnel.c69 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
121 int fd; local
137 int fd; local
156 int fd; local
175 int fd; local
[all...]
/external/qemu/
H A Diolooper.h14 void iolooper_add_read( IoLooper* iol, int fd );
15 void iolooper_add_write( IoLooper* iol, int fd );
16 void iolooper_del_read( IoLooper* iol, int fd );
17 void iolooper_del_write( IoLooper* iol, int fd );
23 void iolooper_modify( IoLooper* iol, int fd, int oldflags, int newflags);
33 int iolooper_is_read( IoLooper* iol, int fd );
34 int iolooper_is_write( IoLooper* iol, int fd );
/external/webkit/Source/WebCore/platform/posix/
H A DSharedBufferPOSIX.cpp44 int fd = open(filename.data(), O_RDONLY); local
45 if (fd == -1)
49 if (fstat(fd, &fileStat)) {
50 close(fd);
56 close(fd);
65 while ((bytesRead = read(fd, result->m_buffer.data() + totalBytesRead, bytesToRead - totalBytesRead)) > 0)
68 close(fd);
/external/bison/lib/
H A Dopen.c56 int fd; local
118 fd = orig_open (filename, flags, mode);
127 if (REPLACE_OPEN_DIRECTORY && fd < 0 && errno == EACCES
135 fd = open ("/dev/null", flags, mode);
136 if (0 <= fd)
137 fd = _gl_register_fd (fd, filename);
145 /* If the filename ends in a slash and fd does not refer to a directory,
157 if (fd >= 0)
165 if (fstat (fd,
[all...]
H A Dspawn_faction_adddup2.c37 int fd, int newfd)
43 if (fd < 0 || newfd < 0 || fd >= maxfd || newfd >= maxfd)
47 return posix_spawn_file_actions_adddup2 (file_actions, fd, newfd);
61 rec->action.dup2_action.fd = fd;
36 posix_spawn_file_actions_adddup2(posix_spawn_file_actions_t *file_actions, int fd, int newfd) argument
H A Dspawn_faction_addopen.c37 int fd, const char *path, int oflag,
44 if (fd < 0 || fd >= maxfd)
48 return posix_spawn_file_actions_addopen (file_actions, fd, path, oflag, mode);
62 rec->action.open_action.fd = fd;
36 posix_spawn_file_actions_addopen(posix_spawn_file_actions_t *file_actions, int fd, const char *path, int oflag, mode_t mode) argument
H A Dspawn_int.h33 int fd; member in struct:__spawn_action::__anon354::__anon355
37 int fd; member in struct:__spawn_action::__anon354::__anon356
42 int fd; member in struct:__spawn_action::__anon354::__anon357
H A Dfopen-safer.c37 int fd = fileno (fp); local
39 if (0 <= fd && fd <= STDERR_FILENO)
41 int f = dup_safer (fd);
H A Dmsvc-nothrow.h36 extern intptr_t _gl_nothrow_get_osfhandle (int fd);
/external/openssh/openbsd-compat/
H A Dbsd-poll.c36 * 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, readfd
[all...]
/external/expat/xmlwf/
H A Dunixfilemap.c25 int fd; local
30 fd = open(name, O_RDONLY);
31 if (fd < 0) {
35 if (fstat(fd, &sb) < 0) {
37 close(fd);
41 close(fd);
51 close(fd);
55 MAP_FILE|MAP_PRIVATE, fd, (off_t)0);
58 close(fd);
63 close(fd);
[all...]
/external/llvm/autoconf/m4/
H A Dfunc_mmap_file.m414 int fd;
15 fd = creat ("foo",0777);
16 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
18 return (fd != (int) MAP_FAILED);]])],
/external/llvm/projects/sample/autoconf/m4/
H A Dfunc_mmap_file.m414 int fd;
15 fd = creat ("foo",0777);
16 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
18 return (fd != (int) MAP_FAILED);]])],
/external/qemu/target-i386/
H A Dhax-darwin.c24 int fd = open("/dev/HAX", O_RDWR); local
26 if (fd == -1)
32 return fd;
40 if (!hax_global.vm || !hax_global.vm->fd)
48 ret = ioctl(hax_global.vm->fd, HAX_VM_IOCTL_ALLOC_RAM, &info);
79 ret = ioctl(hax_global.vm->fd, HAX_VM_IOCTL_SET_RAM, pinfo);
92 ret = ioctl(hax->fd, HAX_IOCTL_CAPABILITY, cap);
106 ret = ioctl(hax->fd, HAX_IOCTL_VERSION, version);
158 if (hax_invalid_fd(hax->fd))
164 ret = ioctl(hax->fd, HAX_IOCTL_CREATE_V
171 hax_fd fd; local
220 hax_fd fd; local
270 int ret, fd; local
285 int ret, fd; local
299 int ret, fd; local
314 int ret, fd; local
[all...]
H A Dkvm-gs-restore.h5 int no_gs_ioctl(int fd, int type, void *arg);
/external/kernel-headers/original/linux/
H A Dfile.h2 * 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) argument
99 if (fd < fd
[all...]
/external/chromium/android/
H A Dexecinfo.h12 void backtrace_symbols_fd (void *const *array, int size, int fd);
/external/dhcpcd/
H A Dcontrol.h34 int fd; member in struct:fd_list
/external/e2fsprogs/e2fsck/
H A Dflushb.c40 int fd; local
46 fd = open(argv[1], O_RDONLY, 0);
47 if (fd < 0) {
56 if (ioctl(fd, BLKFLSBUF, 0) < 0) {
/external/e2fsprogs/lib/ext2fs/
H A Dflushb.c52 errcode_t ext2fs_sync_device(int fd, int flushb) argument
60 if (fsync (fd) == -1)
66 if (ioctl (fd, BLKFLSBUF, 0) == 0)
74 ioctl (fd, FDFLUSH, 0); /* In case this is a floppy */
/external/elfutils/tests/
H A Drdwrmmap.c11 int fd = open (argv[1], O_RDWR); local
12 if (fd < 0)
18 Elf *elf = elf_begin (fd, ELF_C_RDWR_MMAP, NULL);
26 close (fd);
/external/ppp/pppd/plugins/radius/
H A Dlock.c16 int do_lock_exclusive(int fd) argument
27 res = fcntl(fd, F_SETLK, &fl);
35 int do_unlock(int fd) argument
45 return fcntl(fd, F_SETLK, &fl);
/external/webkit/Source/WebKit2/mac/
H A DMainMac.cpp36 for (int fd = 3; fd < numFDs; ++fd)
37 close(fd);
/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/kernel-headers/original/asm-mips/
H A Dposix_types.h75 #define __FD_SET(fd, fdsetp) (((fd_set *)(fdsetp))->fds_bits[(fd) >> 5] |= (1<<((fd) & 31)))
78 #define __FD_CLR(fd, fdsetp) (((fd_set *)(fdsetp))->fds_bits[(fd) >> 5] &= ~(1<<((fd) & 31)))
81 #define __FD_ISSET(fd, fdsetp) ((((fd_set *)(fdsetp))->fds_bits[(fd) >> 5] & (1<<((fd) & 31))) != 0)

Completed in 621 milliseconds

1234567891011>>