Home
last modified time | relevance | path

Searched refs:fd (Results 1 – 25 of 78) sorted by relevance

1234

/development/ndk/platforms/android-L/include/sys/
Dselect.h48 #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
Dxattr.h38 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);
Deventfd.h45 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/
Dfilefd.c111 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 …]
Dfcntl.c289 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 …]
Depoll.c20 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/
Dposix_types.h57 #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/
Dtermios.h49 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 …]
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/
Dposix_types.h85 #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/
Dfilefd_portable.h34 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);
Dvfs_portable.h83 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()
Deventfd_portable.h57 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/
Dtime.h38 #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
Dfile.h33 struct file ** fd; member
58 #define fcheck(fd) fcheck_files(current->files, fd) argument
/development/tools/line_endings/
Dline_endings.c46 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/
Dposix_types_32.h67 #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/
Dif_pppol2tp.h25 int fd; member
34 int fd; member
42 int fd; member
51 int fd; member
/development/ndk/platforms/android-9/include/android/
Dlooper.h159 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/
Dfcntl.c24 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/
Dstat.c22 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/
Dstat.c22 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/
Delftree.c152 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/
Deventfd.h45 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/
Dunistd.h192 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()

1234