/bionic/libc/bionic/ |
D | open.cpp | 38 static inline int force_O_LARGEFILE(int flags) { in force_O_LARGEFILE() argument 40 return flags; // No need, and aarch64's strace gets confused. in force_O_LARGEFILE() 42 return flags | O_LARGEFILE; in force_O_LARGEFILE() 51 int open(const char* pathname, int flags, ...) { in open() argument 54 if ((flags & O_CREAT) != 0) { in open() 56 va_start(args, flags); in open() 61 return __openat(AT_FDCWD, pathname, force_O_LARGEFILE(flags), mode); in open() 65 int __open_2(const char* pathname, int flags) { in __open_2() argument 66 if (__predict_false((flags & O_CREAT) != 0)) { in __open_2() 70 return __openat(AT_FDCWD, pathname, force_O_LARGEFILE(flags), 0); in __open_2() [all …]
|
D | mmap.cpp | 42 void* mmap64(void* addr, size_t size, int prot, int flags, int fd, off64_t offset) { in mmap64() argument 48 bool is_private_anonymous = (flags & (MAP_PRIVATE | MAP_ANONYMOUS)) != 0; in mmap64() 49 void* result = __mmap2(addr, size, prot, flags, fd, offset >> MMAP2_SHIFT); in mmap64() 62 void* mmap(void* addr, size_t size, int prot, int flags, int fd, off_t offset) { in mmap() argument 63 return mmap64(addr, size, prot, flags, fd, static_cast<off64_t>(offset)); in mmap()
|
D | signalfd.cpp | 33 extern "C" int __signalfd4(int fd, kernel_sigset_t* mask, size_t sizemask, int flags); 35 int signalfd(int fd, const sigset_t* mask, int flags) { in signalfd() argument 37 return __signalfd4(fd, &in_set, sizeof(in_set), flags); in signalfd()
|
D | clone.cpp | 36 extern "C" pid_t __bionic_clone(uint32_t flags, void* child_stack, int* parent_tid, void* tls, int*… 45 int clone(int (*fn)(void*), void* child_stack, int flags, void* arg, ...) { in clone() argument 53 if ((flags & (CLONE_PARENT_SETTID|CLONE_SETTLS|CLONE_CHILD_SETTID|CLONE_CHILD_CLEARTID)) != 0) { in clone() 56 if ((flags & (CLONE_SETTLS|CLONE_CHILD_SETTID|CLONE_CHILD_CLEARTID)) != 0) { in clone() 59 if ((flags & (CLONE_CHILD_SETTID|CLONE_CHILD_CLEARTID)) != 0) { in clone() 74 int clone_result = __bionic_clone(flags, child_stack, parent_tid, new_tls, child_tid, fn, arg); in clone()
|
D | pthread_detach.cpp | 39 if (thread->attr.flags & PTHREAD_ATTR_FLAG_DETACHED) { in pthread_detach() 43 if (thread->attr.flags & PTHREAD_ATTR_FLAG_JOINED) { in pthread_detach() 53 thread->attr.flags |= PTHREAD_ATTR_FLAG_DETACHED; in pthread_detach()
|
D | send.cpp | 31 ssize_t send(int socket, const void* buf, size_t len, int flags) { in send() argument 32 return sendto(socket, buf, len, flags, NULL, 0); in send()
|
D | accept4.cpp | 21 int accept4(int sockfd, sockaddr* addr, socklen_t* addrlen, int flags) { in accept4() argument 22 return __netdClientDispatch.accept4(sockfd, addr, addrlen, flags); in accept4()
|
D | recv.cpp | 32 ssize_t recv(int socket, void *buf, size_t len, int flags) { in recv() argument 33 return recvfrom(socket, buf, len, flags, NULL, 0); in recv()
|
D | pthread_join.cpp | 47 if ((thread->attr.flags & PTHREAD_ATTR_FLAG_DETACHED) != 0) { in pthread_join() 51 if ((thread->attr.flags & PTHREAD_ATTR_FLAG_JOINED) != 0) { in pthread_join() 56 thread->attr.flags |= PTHREAD_ATTR_FLAG_JOINED; in pthread_join()
|
D | __recvfrom_chk.cpp | 36 int flags, const struct sockaddr* src_addr, in __recvfrom_chk() argument 42 return recvfrom(socket, buf, len, flags, src_addr, addrlen); in __recvfrom_chk()
|
/bionic/libc/upstream-openbsd/lib/libc/stdio/ |
D | vfwscanf.c | 108 int flags; /* flags as defined above */ in __vfwscanf() local 154 flags = 0; in __vfwscanf() 173 flags |= SUPPRESS; in __vfwscanf() 176 flags |= MAXINT; in __vfwscanf() 179 flags |= LONGDBL; in __vfwscanf() 184 flags |= SHORTSHORT; in __vfwscanf() 186 flags |= SHORT; in __vfwscanf() 192 flags |= LLONG; in __vfwscanf() 194 flags |= LONG; in __vfwscanf() 198 flags |= LLONG; /* deprecated */ in __vfwscanf() [all …]
|
D | vfscanf.c | 106 int flags; /* flags as defined above */ in __svfscanf() local 141 flags = 0; in __svfscanf() 159 flags |= SUPPRESS; in __svfscanf() 162 flags |= MAXINT; in __svfscanf() 165 flags |= LONGDBL; in __svfscanf() 170 flags |= SHORTSHORT; in __svfscanf() 172 flags |= SHORT; in __svfscanf() 178 flags |= LLONG; in __svfscanf() 180 flags |= LONG; in __svfscanf() 184 flags |= LLONG; /* deprecated */ in __svfscanf() [all …]
|
D | setvbuf.c | 45 int ret, flags; in setvbuf() local 71 flags = fp->_flags; in setvbuf() 72 if (flags & __SMBF) in setvbuf() 74 flags &= ~(__SLBF | __SNBF | __SMBF | __SOPT | __SNPT | __SEOF); in setvbuf() 85 flags |= __swhatbuf(fp, &iosize, &ttyflag); in setvbuf() 107 fp->_flags = flags | __SNBF; in setvbuf() 114 flags |= __SMBF; in setvbuf() 124 flags |= __SNPT; in setvbuf() 131 flags |= __SLBF; in setvbuf() 132 fp->_flags = flags; in setvbuf() [all …]
|
D | vfwprintf.c | 285 int flags; /* flags as above */ in __vfwprintf() local 383 ((intmax_t)(flags&MAXINT ? GETARG(intmax_t) : \ in __vfwprintf() 384 flags&LLONGINT ? GETARG(long long) : \ in __vfwprintf() 385 flags&LONGINT ? GETARG(long) : \ in __vfwprintf() 386 flags&PTRINT ? GETARG(ptrdiff_t) : \ in __vfwprintf() 387 flags&SIZEINT ? GETARG(ssize_t) : \ in __vfwprintf() 388 flags&SHORTINT ? (short)GETARG(int) : \ in __vfwprintf() 389 flags&CHARINT ? (signed char)GETARG(int) : \ in __vfwprintf() 392 ((uintmax_t)(flags&MAXINT ? GETARG(uintmax_t) : \ in __vfwprintf() 393 flags&LLONGINT ? GETARG(unsigned long long) : \ in __vfwprintf() [all …]
|
D | vfprintf.c | 280 int flags; /* flags as above */ in __vfprintf() local 395 ((intmax_t)(flags&MAXINT ? GETARG(intmax_t) : \ in __vfprintf() 396 flags&LLONGINT ? GETARG(long long) : \ in __vfprintf() 397 flags&LONGINT ? GETARG(long) : \ in __vfprintf() 398 flags&PTRINT ? GETARG(ptrdiff_t) : \ in __vfprintf() 399 flags&SIZEINT ? GETARG(ssize_t) : \ in __vfprintf() 400 flags&SHORTINT ? (short)GETARG(int) : \ in __vfprintf() 401 flags&CHARINT ? (signed char)GETARG(int) : \ in __vfprintf() 404 ((uintmax_t)(flags&MAXINT ? GETARG(uintmax_t) : \ in __vfprintf() 405 flags&LLONGINT ? GETARG(unsigned long long) : \ in __vfprintf() [all …]
|
D | funopen.c | 44 int flags; in funopen() local 51 flags = __SWR; /* write only */ in funopen() 54 flags = __SRD; /* read only */ in funopen() 56 flags = __SRW; /* read-write */ in funopen() 60 fp->_flags = flags; in funopen()
|
D | makebuf.c | 52 int flags; in __smakebuf() local 61 flags = __swhatbuf(fp, &size, &couldbetty); in __smakebuf() 69 flags |= __SMBF; in __smakebuf() 73 flags |= __SLBF; in __smakebuf() 74 fp->_flags |= flags; in __smakebuf()
|
/bionic/libc/include/ |
D | fcntl.h | 96 int open(const char* pathname, int flags, ...) { in open() argument 97 if (__builtin_constant_p(flags)) { in open() 98 if ((flags & O_CREAT) && __builtin_va_arg_pack_len() == 0) { in open() 107 if ((__builtin_va_arg_pack_len() == 0) && !__builtin_constant_p(flags)) { in open() 108 return __open_2(pathname, flags); in open() 111 return __open_real(pathname, flags, __builtin_va_arg_pack()); in open() 115 int openat(int dirfd, const char* pathname, int flags, ...) { in openat() argument 116 if (__builtin_constant_p(flags)) { in openat() 117 if ((flags & O_CREAT) && __builtin_va_arg_pack_len() == 0) { in openat() 126 if ((__builtin_va_arg_pack_len() == 0) && !__builtin_constant_p(flags)) { in openat() [all …]
|
/bionic/libc/kernel/uapi/linux/netfilter/ |
D | xt_set.h | 31 __u32 flags[IPSET_DIM_MAX + 1]; member 36 __u8 flags; member 54 __u8 flags; member 69 __u32 flags; member 77 __u32 flags; member
|
D | xt_socket.h | 29 __u8 flags; member 34 __u8 flags; member
|
/bionic/libc/dns/net/ |
D | getnameinfo.c | 110 char* serv, size_t servlen, int flags) in getnameinfo() argument 112 return android_getnameinfofornet(sa, salen, host, hostlen, serv, servlen, flags, in getnameinfo() 117 size_t hostlen, char* serv, size_t servlen, int flags, unsigned netid, in android_getnameinfofornet() argument 124 serv, servlen, flags, netid, mark); in android_getnameinfofornet() 127 serv, servlen, flags); in android_getnameinfofornet() 141 int flags __attribute__((unused))) in getnameinfo_local() argument 168 int flags, unsigned netid, unsigned mark) in getnameinfo_inet() argument 214 if (flags & NI_NUMERICSERV) in getnameinfo_inet() 218 (flags & NI_DGRAM) ? "udp" : "tcp"); in getnameinfo_inet() 238 flags |= NI_NUMERICHOST; in getnameinfo_inet() [all …]
|
/bionic/libc/kernel/uapi/linux/ |
D | vfio.h | 36 __u32 flags; member 49 __u32 flags; member 60 __u32 flags; member 75 __u32 flags; member 89 __u32 flags; member 142 __u32 flags; member 151 __u32 flags; member 160 __u32 flags; member 169 __u32 flags; member 181 __u32 flags; member [all …]
|
D | virtio_ring.h | 35 __u16 flags; member 40 __u16 flags; member 51 __u16 flags; member
|
/bionic/libc/kernel/uapi/asm-arm/asm/ |
D | mman.h | 20 #define arch_mmap_check(addr, len, flags) (((flags) & MAP_FIXED && (addr) < FIRST_USER_ADDRESS) ?… argument
|
/bionic/libc/upstream-openbsd/lib/libc/gen/ |
D | fnmatch.c | 146 static int fnmatch_ch(const char **pattern, const char **string, int flags) in fnmatch_ch() argument 149 const int nocase = !!(flags & FNM_CASEFOLD); in fnmatch_ch() 150 const int escape = !(flags & FNM_NOESCAPE); in fnmatch_ch() 151 const int slash = !!(flags & FNM_PATHNAME); in fnmatch_ch() 280 int fnmatch(const char *pattern, const char *string, int flags) in fnmatch() argument 283 const int escape = !(flags & FNM_NOESCAPE); in fnmatch() 284 const int slash = !!(flags & FNM_PATHNAME); in fnmatch() 285 const int leading_dir = !!(flags & FNM_LEADING_DIR); in fnmatch() 319 if ((flags & FNM_PERIOD) && (*string == '.')) in fnmatch() 422 fnmatch_ch(&matchptr, &dummyptr, flags); in fnmatch() [all …]
|