Searched refs:fd (Results 1 - 25 of 62) sorted by relevance

123

/development/ndk/platforms/android-3/arch-arm/include/asm/
H A Dposix_types.h57 #define __FD_SET(fd, fdsetp) (((fd_set *)(fdsetp))->fds_bits[(fd) >> 5] |= (1<<((fd) & 31)))
60 #define __FD_CLR(fd, fdsetp) (((fd_set *)(fdsetp))->fds_bits[(fd) >> 5] &= ~(1<<((fd) & 31)))
63 #define __FD_ISSET(fd, fdsetp) ((((fd_set *)(fdsetp))->fds_bits[(fd) >> 5] & (1<<((fd) & 31))) != 0)
H A Dpoll.h31 int fd; member in struct:pollfd
/development/ndk/platforms/android-3/include/linux/
H A Dtime.h38 #define FD_SET(fd,fdsetp) __FD_SET(fd,fdsetp)
39 #define FD_CLR(fd,fdsetp) __FD_CLR(fd,fdsetp)
40 #define FD_ISSET(fd,fdsetp) __FD_ISSET(fd,fdsetp)
H A Dfile.h33 struct file ** fd; member in struct:fdtable
58 #define fcheck(fd) fcheck_files(current->files, fd)
/development/ndk/platforms/android-3/include/
H A Dtermios.h49 static __inline__ int tcgetattr(int fd, struct termios *s) argument
51 return ioctl(fd, TCGETS, s);
54 static __inline__ int tcsetattr(int fd, int __opt, const struct termios *s) argument
56 return ioctl(fd, __opt, (void *)s);
59 static __inline__ int tcflow(int fd, int action) argument
61 return ioctl(fd, TCXONC, (void *)(intptr_t)action);
64 static __inline__ int tcflush(int fd, int __queue) argument
66 return ioctl(fd, TCFLSH, (void *)(intptr_t)__queue);
69 static __inline__ pid_t tcgetsid(int fd) argument
72 return ioctl(fd, TIOCGSI
75 tcsendbreak(int fd, int __duration) argument
[all...]
H A Dfcntl.h47 extern int openat(int fd, const char* path, int mode, ...);
49 extern int fcntl(int fd, int command, ...);
/development/ndk/platforms/android-9/arch-mips/include/asm/
H A Dposix_types.h85 #define __FD_SET(fd, fdsetp) (((fd_set *)(fdsetp))->fds_bits[(fd) >> 5] |= (1<<((fd) & 31)))
87 #define __FD_CLR(fd, fdsetp) (((fd_set *)(fdsetp))->fds_bits[(fd) >> 5] &= ~(1<<((fd) & 31)))
90 #define __FD_ISSET(fd, fdsetp) ((((fd_set *)(fdsetp))->fds_bits[(fd) >> 5] & (1<<((fd) & 31))) != 0)
/development/ndk/platforms/android-9/include/sys/
H A Deventfd.h45 extern int eventfd_read(int fd, eventfd_t *counter);
46 extern int eventfd_write(int fd, const eventfd_t counter);
/development/ndk/sources/android/libportable/arch-arm/
H A Depoll.c19 int epoll_ctl_portable(int epfd, int op, int fd, struct epoll_event *event) argument
21 return epoll_ctl(epfd, op, fd, event);
H A Dstat.c25 int fstat_portable(int fd, struct stat_portable *s) argument
27 return fstat(fd, s);
/development/ndk/sources/android/libportable/arch-mips/
H A Depoll.c19 int epoll_ctl_portable(int epfd, int op, int fd, struct epoll_event *event) argument
21 return epoll_ctl(epfd, op, fd, event);
H A Dfcntl.c50 int fcntl_portable(int fd, int cmd, ...) argument
59 return __fcntl64(fd, mips_change_cmd(cmd), arg);
H A Dstat.c28 int fstat_portable(int fd, struct stat_portable *s) argument
31 int ret = fstat(fd, &mips_stat);
H A Dstatfs.c43 int fstatfs_portable(int fd, struct statfs_portable* stat) argument
46 int ret = fstatfs(fd, &mips_stat);
/development/ndk/sources/android/libportable/arch-x86/
H A Dioctl.c34 int ioctl_portable(int fd, int request, ...) argument
43 return __ioctl(fd, x86_change_request(request), arg);
H A Dfcntl.c23 int fcntl_portable(int fd, int cmd, ...) argument
36 int result = __fcntl64(fd, cmd, (void *) &x86_flock64);
49 return __fcntl64(fd, cmd, arg);
H A Depoll.c20 int epoll_ctl_portable(int epfd, int op, int fd, struct epoll_event_portable *event) argument
27 return epoll_ctl(epfd, op, fd, &x86_epoll_event);
H A Dstat.c28 int fstat_portable(int fd, struct stat_portable *s) argument
31 int ret = fstat(fd, &x86_stat);
/development/ndk/platforms/android-9/arch-x86/include/asm/
H A Dposix_types_32.h67 #define __FD_SET(fd,fdsetp) __asm__ __volatile__("btsl %1,%0": "+m" (*(__kernel_fd_set *) (fdsetp)):"r" ((int) (fd)))
70 #define __FD_CLR(fd,fdsetp) __asm__ __volatile__("btrl %1,%0": "+m" (*(__kernel_fd_set *) (fdsetp)):"r" ((int) (fd)))
72 #define __FD_ISSET(fd,fdsetp) (__extension__ ({ unsigned char __result; __asm__ __volatile__("btl %1,%2 ; setb %0" :"=q" (__result) :"r" ((int) (fd)), "m" (*(__kernel_fd_set *) (fdsetp))); __result; }))
/development/tools/line_endings/
H A Dline_endings.c46 int fd; local
52 fd = open(argv[i], O_RDWR);
53 if (fd < 0) {
58 len = lseek(fd, 0, SEEK_END);
59 lseek(fd, 0, SEEK_SET);
74 amt = read(fd, buf, amt2);
91 ftruncate(fd, 0);
92 lseek(fd, 0, SEEK_SET);
96 ssize_t amt = write(fd, root->buf, amt2);
107 close(fd);
[all...]
/development/ndk/platforms/android-9/include/android/
H A Dlooper.h158 typedef int (*ALooper_callbackFunc)(int fd, int events, void* data);
181 * events and data associated with the fd, otherwise they will be set to NULL.
207 * "fd" is the file descriptor to be added.
229 int ALooper_addFd(ALooper* looper, int fd, int ident, int events,
249 int ALooper_removeFd(ALooper* looper, int fd);
/development/ndk/platforms/android-3/include/sys/
H A Depoll.h54 int fd; member in union:epoll_data
66 int epoll_ctl(int epfd, int op, int fd, struct epoll_event *event);
/development/tools/emulator/system/qemud/
H A Dqemud.c208 fd_read(int fd, void* to, int len) argument
213 ret = read(fd, to, len);
220 fd_write(int fd, const void* from, int len) argument
225 ret = write(fd, from, len);
232 fd_setnonblock(int fd) argument
237 flags = fcntl(fd, F_GETFD);
241 fatal( "%s: could not get flags for fd %d: %s",
242 __FUNCTION__, fd, strerror(errno) );
246 ret = fcntl(fd, F_SETFD, flags | O_NONBLOCK);
250 fatal( "%s: could not set fd
257 fd_accept(int fd) argument
323 int fd; member in struct:__anon614
408 looper_add( Looper* l, int fd, EventFunc func, void* user ) argument
456 looper_enable( Looper* l, int fd, int events ) argument
481 looper_disable( Looper* l, int fd, int events ) argument
749 int fd; member in struct:FDHandler
951 fdhandler_new( int fd, FDHandlerList* list, Receiver* receiver ) argument
1010 fdhandler_new_accept( int fd, FDHandlerList* list, Receiver* receiver ) argument
1183 serial_init( Serial* s, int fd, FDHandlerList* list, Receiver* receiver ) argument
1382 client_new( Multiplexer* mult, int fd, FDHandlerList* pfdhandlers, Client** pclients ) argument
1597 int fd = p->channel; local
1615 int fd, control_fd; local
1678 int fd, len; local
[all...]
/development/tools/emulator/system/libqemu/
H A Dtest_util.c47 static int fd; local
52 fd = socket( AF_INET, SOCK_STREAM, 0 );
53 if (fd < 0) {
63 if ( connect(fd, (struct sockaddr*)&addr, sizeof(addr)) < 0 ) {
66 close(fd);
70 pipe->socket = fd;
/development/tools/emulator/system/sensors/
H A Dsensors_qemu.c128 int fd; member in struct:SensorPoll
141 if (ctl->fd < 0) {
142 ctl->fd = qemud_channel_open(SENSORS_SERVICE_NAME);
144 D("%s: fd=%d", __FUNCTION__, ctl->fd);
146 handle->data[0] = dup(ctl->fd);
160 D("%s: handle=%s (%d) fd=%d enabled=%d", __FUNCTION__,
161 _sensorIdToName(handle), handle, ctl->fd, enabled);
181 if (ctl->fd < 0) {
182 ctl->fd
294 int fd = data->events_fd; local
550 int fd = qemud_channel_open(SENSORS_SERVICE_NAME); local
[all...]

Completed in 2783 milliseconds

123