/development/ndk/platforms/android-L/include/sys/ |
D | select.h | 48 #define __FDELT(fd) ((fd) / NFDBITS) argument 49 #define __FDMASK(fd) (1UL << ((fd) % NFDBITS)) argument 58 #define FD_CLR(fd, set) __FD_CLR_chk(fd, set, __bos(set)) argument 59 #define FD_SET(fd, set) __FD_SET_chk(fd, set, __bos(set)) argument 60 #define FD_ISSET(fd, set) __FD_ISSET_chk(fd, set, __bos(set)) argument 62 #define FD_CLR(fd, set) (__FDS_BITS(set)[__FDELT(fd)] &= ~__FDMASK(fd)) argument 63 #define FD_SET(fd, set) (__FDS_BITS(set)[__FDELT(fd)] |= __FDMASK(fd)) argument 64 #define FD_ISSET(fd, set) ((__FDS_BITS(set)[__FDELT(fd)] & __FDMASK(fd)) != 0) argument
|
D | xattr.h | 38 extern int fsetxattr(int fd, const char *name, const void *value, size_t size, int flags); 42 extern ssize_t fgetxattr(int fd, const char *name, void *value, size_t size); 48 extern ssize_t flistxattr(int fd, char *list, size_t size); 52 extern int fremovexattr(int fd, const char *name);
|
D | eventfd.h | 45 extern int eventfd_read(int fd, eventfd_t* value); 46 extern int eventfd_write(int fd, eventfd_t value);
|
/development/ndk/sources/android/libportable/arch-mips/ |
D | filefd.c | 111 int fd; in export_fd_env() local 133 for (fd = 0; fd < __FD_SETSIZE; fd++) { in export_fd_env() 134 fd_type = filefd_mapped_file[fd]; in export_fd_env() 138 fd_type, fd, fd_count); in export_fd_env() 140 fd_cloexec = filefd_FD_CLOEXEC_file[fd]; in export_fd_env() 142 fd_cloexec, fd); in export_fd_env() 145 rv = snprintf(fd_env, fd_env_bytes_remaining, "%d,", fd); in export_fd_env() 149 rv = snprintf(type_env, type_env_bytes_remaining, "%d,", filefd_mapped_file[fd]); in export_fd_env() 237 int fd; in import_fd_env() local 292 fd = atoi(fd_token); in import_fd_env() [all …]
|
D | fcntl.c | 289 int WRAP(fcntl)(int fd, int portable_cmd, ...) in WRAP() 304 fd, portable_cmd, in WRAP() 338 result = __fcntl64(fd, mips_cmd, (void *) &flock); in WRAP() 370 result = __fcntl64(fd, mips_cmd, (void *) &flock); in WRAP() 381 result = __fcntl64(fd, mips_cmd, (void *)flags); in WRAP() 385 result = __fcntl64(fd, mips_cmd, arg); in WRAP() 401 fd, mips_cmd, arg); in WRAP() 403 result = __fcntl64(fd, mips_cmd, arg); in WRAP() 407 result, fd, mips_cmd, arg); in WRAP() 415 filefd_CLOEXEC_enabled(fd); in WRAP() [all …]
|
D | epoll.c | 20 int WRAP(epoll_ctl)(int epfd, int op, int fd, struct epoll_event *event) in WRAP() 22 return REAL(epoll_ctl)(epfd, op, fd, event); in WRAP()
|
/development/ndk/platforms/android-3/arch-arm/include/asm/ |
D | posix_types.h | 57 #define __FD_SET(fd, fdsetp) (((fd_set *)(fdsetp))->fds_bits[(fd) >> 5] |= (1<<((fd) & 31))) argument 60 #define __FD_CLR(fd, fdsetp) (((fd_set *)(fdsetp))->fds_bits[(fd) >> 5] &= ~(1<<((fd) & 31))) argument 63 #define __FD_ISSET(fd, fdsetp) ((((fd_set *)(fdsetp))->fds_bits[(fd) >> 5] & (1<<((fd) & 31))) !=… argument
|
/development/ndk/platforms/android-3/include/ |
D | termios.h | 49 static __inline__ int tcgetattr(int fd, struct termios *s) in tcgetattr() argument 51 return ioctl(fd, TCGETS, s); in tcgetattr() 54 static __inline__ int tcsetattr(int fd, int __opt, const struct termios *s) in tcsetattr() argument 56 return ioctl(fd, __opt, (void *)s); in tcsetattr() 59 static __inline__ int tcflow(int fd, int action) in tcflow() argument 61 return ioctl(fd, TCXONC, (void *)(intptr_t)action); in tcflow() 64 static __inline__ int tcflush(int fd, int __queue) in tcflush() argument 66 return ioctl(fd, TCFLSH, (void *)(intptr_t)__queue); in tcflush() 69 static __inline__ pid_t tcgetsid(int fd) in tcgetsid() argument 72 return ioctl(fd, TIOCGSID, &_pid) ? (pid_t)-1 : _pid; in tcgetsid() [all …]
|
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/ |
D | posix_types.h | 85 #define __FD_SET(fd, fdsetp) (((fd_set *)(fdsetp))->fds_bits[(fd) >> 5] |= (1<<((fd) & 31))) argument 87 #define __FD_CLR(fd, fdsetp) (((fd_set *)(fdsetp))->fds_bits[(fd) >> 5] &= ~(1<<((fd) & 31))) argument 90 #define __FD_ISSET(fd, fdsetp) ((((fd_set *)(fdsetp))->fds_bits[(fd) >> 5] & (1<<((fd) & 31))) != 0) argument
|
/development/ndk/sources/android/libportable/common/include/ |
D | filefd_portable.h | 34 extern __hidden void filefd_opened(int fd, enum filefd_type fd_type); 35 extern __hidden void filefd_closed(int fd); 36 extern __hidden void filefd_CLOEXEC_enabled(int fd); 37 extern __hidden void filefd_CLOEXEC_disabled(int fd); 40 extern int WRAP(close)(int fd); 41 extern int WRAP(read)(int fd, void *buf, size_t count);
|
D | vfs_portable.h | 83 int WRAP(fstatfs)(int fd, struct statfs_portable* stat) { in WRAP() 86 int ret = REAL(fstatfs)(fd, &native_stat); in WRAP() 92 int WRAP(fstatfs64)(int fd, struct statfs64_portable* stat) { in WRAP() 93 return WRAP(fstatfs)(fd, (struct statfs_portable*)stat); in WRAP()
|
D | eventfd_portable.h | 57 extern int eventfd_read(int fd, eventfd_t *counter); 58 extern int eventfd_write(int fd, const eventfd_t counter);
|
/development/ndk/platforms/android-3/include/linux/ |
D | time.h | 38 #define FD_SET(fd,fdsetp) __FD_SET(fd,fdsetp) argument 39 #define FD_CLR(fd,fdsetp) __FD_CLR(fd,fdsetp) argument 40 #define FD_ISSET(fd,fdsetp) __FD_ISSET(fd,fdsetp) argument
|
D | file.h | 33 struct file ** fd; member 58 #define fcheck(fd) fcheck_files(current->files, fd) argument
|
/development/tools/line_endings/ |
D | line_endings.c | 46 int fd; in main() local 52 fd = open(argv[i], O_RDWR); in main() 53 if (fd < 0) { in main() 58 len = lseek(fd, 0, SEEK_END); in main() 59 lseek(fd, 0, SEEK_SET); in main() 74 amt = read(fd, buf, amt2); in main() 91 ftruncate(fd, 0); in main() 92 lseek(fd, 0, SEEK_SET); in main() 96 ssize_t amt = write(fd, root->buf, amt2); in main() 107 close(fd); in main()
|
/development/ndk/platforms/android-9/arch-x86/include/asm/ |
D | posix_types_32.h | 67 #define __FD_SET(fd,fdsetp) __asm__ __volatile__("btsl %1,%0": "+m" (*(__kernel_fd_set *) (fdse… argument 70 #define __FD_CLR(fd,fdsetp) __asm__ __volatile__("btrl %1,%0": "+m" (*(__kernel_fd_set *) (fdse… argument 72 …FD_ISSET(fd,fdsetp) (__extension__ ({ unsigned char __result; __asm__ __volatile__("btl %1,%2 … argument
|
/development/ndk/platforms/android-L/include/linux/ |
D | if_pppol2tp.h | 25 int fd; member 34 int fd; member 42 int fd; member 51 int fd; member
|
/development/ndk/platforms/android-9/include/android/ |
D | looper.h | 159 typedef int (*ALooper_callbackFunc)(int fd, int events, void* data); 230 int ALooper_addFd(ALooper* looper, int fd, int ident, int events, 250 int ALooper_removeFd(ALooper* looper, int fd);
|
/development/ndk/sources/android/libportable/arch-x86/ |
D | fcntl.c | 24 int WRAP(fcntl)(int fd, int cmd, ...) in WRAP() 37 int result = __fcntl64(fd, cmd, (void *) &x86_flock64); in WRAP() 50 return __fcntl64(fd, cmd, arg); in WRAP()
|
/development/ndk/sources/android/libportable/arch-x86_64/ |
D | stat.c | 22 int WRAP(fstat)(int fd, struct stat_portable *s) { in WRAP() 24 int ret = REAL(fstat)(fd, &x86_64_stat); in WRAP() 28 static inline int WRAP(fstat64)(int fd, struct stat64_portable *s) { in WRAP() 29 return WRAP(fstat)(fd, (struct stat_portable*)s); in WRAP()
|
/development/ndk/sources/android/libportable/arch-mips64/ |
D | stat.c | 22 int WRAP(fstat)(int fd, struct stat_portable *s) { in WRAP() 24 int ret = REAL(fstat)(fd, &mips64_stat); in WRAP() 28 static inline int WRAP(fstat64)(int fd, struct stat64_portable *s) { in WRAP() 29 return WRAP(fstat)(fd, (struct stat_portable*)s); in WRAP()
|
/development/tools/elftree/ |
D | elftree.c | 152 int fd; in dump_needed() local 158 fd = open(path, O_RDONLY); in dump_needed() 159 if (fd >= 0) { in dump_needed() 160 close(fd); in dump_needed() 206 int fd; in dump_file() local 226 fd = open(file, O_RDONLY); in dump_file() 227 if (fd < 0) { in dump_file() 232 f.e = elf_begin(fd, ELF_C_READ, NULL); in dump_file() 251 close(fd); in dump_file()
|
/development/ndk/platforms/android-9/include/sys/ |
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/platforms/android-L/include/ |
D | unistd.h | 192 extern pid_t tcgetpgrp(int fd); 193 extern int tcsetpgrp(int fd, pid_t _pid); 221 ssize_t read(int fd, void* buf, size_t count) { in read() argument 230 return __read_real(fd, buf, count); in read() 238 return __read_real(fd, buf, count); in read() 242 return __read_chk(fd, buf, count, bos); in read()
|