/development/ndk/platforms/android-3/arch-arm/include/asm/ |
H A D | posix_types.h | 57 #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 D | poll.h | 31 int fd; member in struct:pollfd
|
/development/ndk/platforms/android-3/include/linux/ |
H A D | time.h | 38 #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 D | file.h | 33 struct file ** fd; member in struct:fdtable 58 #define fcheck(fd) fcheck_files(current->files, fd)
|
/development/ndk/platforms/android-3/include/ |
H A D | termios.h | 49 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 D | fcntl.h | 47 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 D | posix_types.h | 85 #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 D | eventfd.h | 45 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 D | epoll.c | 19 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 D | stat.c | 25 int fstat_portable(int fd, struct stat_portable *s) argument 27 return fstat(fd, s);
|
/development/ndk/sources/android/libportable/arch-mips/ |
H A D | epoll.c | 19 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 D | fcntl.c | 50 int fcntl_portable(int fd, int cmd, ...) argument 59 return __fcntl64(fd, mips_change_cmd(cmd), arg);
|
H A D | stat.c | 28 int fstat_portable(int fd, struct stat_portable *s) argument 31 int ret = fstat(fd, &mips_stat);
|
H A D | statfs.c | 43 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 D | ioctl.c | 34 int ioctl_portable(int fd, int request, ...) argument 43 return __ioctl(fd, x86_change_request(request), arg);
|
H A D | fcntl.c | 23 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 D | epoll.c | 20 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 D | stat.c | 28 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 D | posix_types_32.h | 67 #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 D | line_endings.c | 46 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 D | looper.h | 158 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 D | epoll.h | 54 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 D | qemud.c | 208 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 D | test_util.c | 47 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 D | sensors_qemu.c | 128 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...] |