/bionic/libc/unistd/ |
H A D | daemon.c | 41 int fd = open("/dev/null", O_RDWR); local 43 if ( fd < 0 ) 46 if ( dup2( fd, 0 ) < 0 || 47 dup2( fd, 1 ) < 0 || 48 dup2( fd, 2 ) < 0 ) 50 close(fd); 53 close(fd);
|
H A D | fstatfs.c | 32 int fstatfs(int fd, struct statfs* stat) argument 34 return __fstatfs64(fd, sizeof(struct statfs), stat);
|
H A D | isatty.c | 34 isatty (int fd) argument 38 return tcgetattr (fd, &term) == 0;
|
H A D | tcsetpgrp.c | 30 int tcsetpgrp(int fd, pid_t _pid) argument 32 return ioctl(fd, TIOCSPGRP, &_pid);
|
H A D | unlockpt.c | 31 int unlockpt( int fd ) 35 return ioctl( fd, TIOCSPTLCK, &unlock );
|
H A D | eventfd.c | 35 int eventfd_read(int fd, eventfd_t *counter) argument 37 int ret = read(fd, counter, sizeof(*counter)); 45 int eventfd_write(int fd, eventfd_t counter) argument 47 int ret = write(fd, &counter, sizeof(counter));
|
H A D | pread.c | 31 ssize_t pread(int fd, void *buf, size_t nbytes, off_t offset) argument 33 return pread64(fd, buf, nbytes, (off64_t)offset);
|
H A D | pwrite.c | 31 ssize_t pwrite(int fd, const void *buf, size_t nbytes, off_t offset) argument 33 return pwrite64(fd, buf, nbytes, (off64_t)offset);
|
H A D | tcgetpgrp.c | 30 pid_t tcgetpgrp(int fd) argument 33 return ioctl(fd, TIOCGPGRP, &_pid) ? (pid_t)-1 : _pid;
|
H A D | lseek64.c | 30 extern int __llseek(int fd, unsigned long offset_hi, unsigned long offset_lo, loff_t* result, int whence); 32 off64_t lseek64(int fd, off64_t off, int whence) argument 36 if ( __llseek(fd, (unsigned long)(off >> 32),(unsigned long)(off), &result, whence ) < 0 )
|
H A D | openat.c | 36 int openat(int fd, const char *pathname, int flags, ...) argument 51 return __openat(fd, pathname, flags, mode); 54 int __openat_2(int fd, const char *pathname, int flags) argument 64 return __openat(fd, pathname, flags, 0);
|
H A D | fcntl.c | 33 int fcntl(int fd, int cmd, ...) argument 42 return __fcntl64(fd, cmd, arg);
|
H A D | ptsname.c | 34 char* ptsname( int fd ) 39 if ( ioctl( fd, TIOCGPTN, &pty_num ) != 0 )
|
/bionic/libc/kernel/arch-arm/asm/ |
H A D | posix_types.h | 67 #define __FD_SET(fd, fdsetp) (((fd_set *)(fdsetp))->fds_bits[(fd) >> 5] |= (1<<((fd) & 31))) 70 #define __FD_CLR(fd, fdsetp) (((fd_set *)(fdsetp))->fds_bits[(fd) >> 5] &= ~(1<<((fd) & 31))) 72 #define __FD_ISSET(fd, fdsetp) ((((fd_set *)(fdsetp))->fds_bits[(fd) >> 5] & (1<<((fd) & 31))) != 0)
|
/bionic/libc/bionic/ |
H A D | cpuacct.c | 38 int fd; local 44 fd = open(buf, O_RDWR | O_CREAT, 0666); 45 if (fd == -1) { 53 fd = open(buf, O_RDWR | O_CREAT, 0666); 55 if (fd == -1) 58 n = TEMP_FAILURE_RETRY(write(fd, "0", 1)); 64 if (TEMP_FAILURE_RETRY(close(fd)) == -1)
|
H A D | fdprintf.c | 34 int vfdprintf(int fd, const char * __restrict format, __va_list ap) argument 42 ret = write(fd, buf, ret); 48 int fdprintf(int fd, const char * __restrict format, ...) argument 54 ret = vfdprintf(fd, format, ap);
|
H A D | ioctl.c | 32 int ioctl(int fd, int request, ...) argument 41 return __ioctl(fd, request, arg);
|
/bionic/libc/stdio/ |
H A D | tmpfile.c | 49 int fd, sverrno; local 59 fd = mkstemp(buf); 60 if (fd != -1) { 66 (void)fchmod(fd, 0666 & ~u); 71 if (fd == -1) 74 if ((fp = fdopen(fd, "w+")) == NULL) { 76 (void)close(fd);
|
/bionic/libc/kernel/common/linux/ |
H A D | time.h | 44 #define FD_SET(fd,fdsetp) __FD_SET(fd,fdsetp) 45 #define FD_CLR(fd,fdsetp) __FD_CLR(fd,fdsetp) 46 #define FD_ISSET(fd,fdsetp) __FD_ISSET(fd,fdsetp)
|
H A D | if_pppol2tp.h | 25 int fd; member in struct:pppol2tp_addr 34 int fd; member in struct:pppol2tpv3_addr
|
/bionic/libc/kernel/arch-mips/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)
|
/bionic/libc/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);
|
H A 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);
|
/bionic/libc/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__ int tcdrain(int fd) argument 71 return ioctl(fd, TCSBR 74 tcgetsid(int fd) argument 80 tcsendbreak(int fd, int __duration) argument [all...] |
/bionic/libc/kernel/arch-x86/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; }))
|