/bionic/libc/include/bits/fortify/ |
D | fcntl.h | 46 #define __open_modes_useful(flags) (((flags) & O_CREAT) || ((flags) & O_TMPFILE) == O_TMPFILE) argument 49 int open(const char* pathname, int flags, mode_t modes, ...) __overloadable 59 int open(const char* const __pass_object_size pathname, int flags) in open() argument 61 __clang_error_if(__open_modes_useful(flags), "'open' " __open_too_few_args_error) { in open() 63 return __open_2(pathname, flags); in open() 65 return __open_real(pathname, flags); in open() 70 int open(const char* const __pass_object_size pathname, int flags, mode_t modes) in open() argument 72 __clang_warning_if(!__open_modes_useful(flags) && modes, in open() 74 return __open_real(pathname, flags, modes); in open() 78 int openat(int dirfd, const char* pathname, int flags, mode_t modes, ...) [all …]
|
D | socket.h | 41 ssize_t recvfrom(int fd, void* const buf __pass_object_size0, size_t len, int flags, struct sockadd… in recvfrom() argument 49 return __recvfrom_chk(fd, buf, len, bos, flags, src_addr, addr_len); in recvfrom() 52 return __call_bypassing_fortify(recvfrom)(fd, buf, len, flags, src_addr, addr_len); in recvfrom() 56 ssize_t sendto(int fd, const void* const buf __pass_object_size0, size_t len, int flags, const stru… in sendto() argument 64 return __sendto_chk(fd, buf, len, bos, flags, dest_addr, addr_len); in sendto() 67 return __call_bypassing_fortify(sendto)(fd, buf, len, flags, dest_addr, addr_len); in sendto() 71 ssize_t recv(int socket, void* const buf __pass_object_size0, size_t len, int flags) in recv() argument 75 return recvfrom(socket, buf, len, flags, NULL, 0); in recv() 79 ssize_t send(int socket, const void* const buf __pass_object_size0, size_t len, int flags) in send() argument 83 return sendto(socket, buf, len, flags, NULL, 0); in send()
|
/bionic/libc/stdio/ |
D | vfwscanf.cpp | 139 int flags; /* flags as defined above */ in __vfwscanf() local 172 flags = 0; in __vfwscanf() 191 flags |= SUPPRESS; in __vfwscanf() 194 flags |= MAXINT; in __vfwscanf() 197 flags |= LONGDBL; in __vfwscanf() 202 flags |= SHORTSHORT; in __vfwscanf() 204 flags |= SHORT; in __vfwscanf() 210 flags |= LLONG; in __vfwscanf() 212 flags |= LONG; in __vfwscanf() 216 flags |= LLONG; /* deprecated */ in __vfwscanf() [all …]
|
D | vfscanf.cpp | 94 int flags; /* flags as defined above */ in __svfscanf() local 118 flags = 0; in __svfscanf() 135 flags |= SUPPRESS; in __svfscanf() 138 flags |= MAXINT; in __svfscanf() 141 flags |= LONGDBL; in __svfscanf() 146 flags |= SHORTSHORT; in __svfscanf() 148 flags |= SHORT; in __svfscanf() 154 flags |= LLONG; in __svfscanf() 156 flags |= LONG; in __svfscanf() 160 flags |= ALLOCATE; in __svfscanf() [all …]
|
D | vfwprintf.cpp | 50 int flags; /* flags as above */ in FUNCTION_NAME() local 163 flags = 0; in FUNCTION_NAME() 183 flags |= ALT; in FUNCTION_NAME() 201 flags |= LADJUST; in FUNCTION_NAME() 236 flags |= ZEROPAD; in FUNCTION_NAME() 266 flags |= LONGDBL; in FUNCTION_NAME() 271 flags |= CHARINT; in FUNCTION_NAME() 273 flags |= SHORTINT; in FUNCTION_NAME() 277 flags |= MAXINT; in FUNCTION_NAME() 282 flags |= LLONGINT; in FUNCTION_NAME() [all …]
|
D | vfprintf.cpp | 50 int flags; /* flags as above */ in FUNCTION_NAME() local 174 flags = 0; in FUNCTION_NAME() 194 flags |= ALT; in FUNCTION_NAME() 212 flags |= LADJUST; in FUNCTION_NAME() 247 flags |= ZEROPAD; in FUNCTION_NAME() 277 flags |= LONGDBL; in FUNCTION_NAME() 282 flags |= CHARINT; in FUNCTION_NAME() 284 flags |= SHORTINT; in FUNCTION_NAME() 288 flags |= MAXINT; in FUNCTION_NAME() 293 flags |= LLONGINT; in FUNCTION_NAME() [all …]
|
D | printf_common.h | 235 ((intmax_t)(flags & MAXINT \ 237 : flags & LLONGINT \ 239 : flags & LONGINT \ 241 : flags & PTRINT \ 243 : flags & SIZEINT \ 245 : flags & SHORTINT \ 247 : flags & CHARINT ? (signed char)GETARG(int) \ 250 ((uintmax_t)(flags & MAXINT \ 252 : flags & LLONGINT \ 254 : flags & LONGINT \ [all …]
|
/bionic/libc/bionic/ |
D | open.cpp | 39 static inline int force_O_LARGEFILE(int flags) { in force_O_LARGEFILE() argument 41 return flags; // No need, and aarch64's strace gets confused. in force_O_LARGEFILE() 43 return flags | O_LARGEFILE; in force_O_LARGEFILE() 47 static inline bool needs_mode(int flags) { in needs_mode() argument 48 return ((flags & O_CREAT) == O_CREAT) || ((flags & O_TMPFILE) == O_TMPFILE); in needs_mode() 56 int open(const char* pathname, int flags, ...) { in open() argument 59 if (needs_mode(flags)) { in open() 61 va_start(args, flags); in open() 66 return FDTRACK_CREATE(__openat(AT_FDCWD, pathname, force_O_LARGEFILE(flags), mode)); in open() 70 int __open_2(const char* pathname, int flags) { in __open_2() argument [all …]
|
D | spawn.cpp | 83 int flags; member 88 fd = open(path, flags, mode); in Do() 109 int flags = fcntl(fd, F_GETFD, 0); in Do() local 110 if (flags == -1 || fcntl(fd, F_SETFD, flags & ~FD_CLOEXEC) == -1) _exit(127); in Do() 130 short flags; member 138 static void ApplyAttrs(short flags, const posix_spawnattr_t* attr) { in ApplyAttrs() argument 143 bool use_sigdefault = ((flags & POSIX_SPAWN_SETSIGDEF) != 0); in ApplyAttrs() 157 if ((flags & POSIX_SPAWN_SETPGROUP) != 0 && setpgid(0, (*attr)->pgroup) == -1) _exit(127); in ApplyAttrs() 158 if ((flags & POSIX_SPAWN_SETSID) != 0 && setsid() == -1) _exit(127); in ApplyAttrs() 162 if ((flags & POSIX_SPAWN_SETSCHEDULER) != 0) { in ApplyAttrs() [all …]
|
D | sys_msg.cpp | 46 int msgget(key_t key, int flags) { in msgget() argument 48 return syscall(SYS_msgget, key, flags); in msgget() 50 return syscall(SYS_ipc, MSGGET, key, flags, 0, 0, 0); in msgget() 54 ssize_t msgrcv(int id, void* msg, size_t n, long type, int flags) { in msgrcv() argument 56 return syscall(SYS_msgrcv, id, msg, n, type, flags); in msgrcv() 58 return syscall(SYS_ipc, IPCCALL(1, MSGRCV), id, n, flags, msg, type); in msgrcv() 62 int msgsnd(int id, const void* msg, size_t n, int flags) { in msgsnd() argument 64 return syscall(SYS_msgsnd, id, msg, n, flags); in msgsnd() 66 return syscall(SYS_ipc, MSGSND, id, n, flags, msg, 0); in msgsnd()
|
D | preadv_pwritev.cpp | 69 ssize_t preadv2(int fd, const struct iovec* ios, int count, off_t offset, int flags) { in preadv2() argument 70 return preadv64v2(fd, ios, count, offset, flags); in preadv2() 73 ssize_t preadv64v2(int fd, const struct iovec* ios, int count, off64_t offset, int flags) { in preadv64v2() argument 75 return __preadv64v2(fd, ios, count, offset, 0, flags); in preadv64v2() 77 return __preadv64v2(fd, ios, count, offset, offset >> 32, flags); in preadv64v2() 81 ssize_t pwritev2(int fd, const struct iovec* ios, int count, off_t offset, int flags) { in pwritev2() argument 82 return pwritev64v2(fd, ios, count, offset, flags); in pwritev2() 85 ssize_t pwritev64v2(int fd, const struct iovec* ios, int count, off64_t offset, int flags) { in pwritev64v2() argument 87 return __pwritev64v2(fd, ios, count, offset, 0, flags); in pwritev64v2() 89 return __pwritev64v2(fd, ios, count, offset, offset >> 32, flags); in pwritev64v2()
|
D | pidfd.cpp | 33 extern "C" int __pidfd_open(pid_t pid, unsigned int flags); 34 extern "C" int __pidfd_getfd(int pidfd, int targetfd, unsigned int flags); 36 int pidfd_open(pid_t pid, unsigned int flags) { in pidfd_open() argument 37 return FDTRACK_CREATE(__pidfd_open(pid, flags)); in pidfd_open() 40 int pidfd_getfd(int pidfd, int targetfd, unsigned int flags) { in pidfd_getfd() argument 41 return FDTRACK_CREATE(__pidfd_getfd(pidfd, targetfd, flags)); in pidfd_getfd()
|
D | clone.cpp | 40 extern "C" pid_t __bionic_clone(uint32_t flags, void* child_stack, int* parent_tid, void* tls, int*… 58 int clone(int (*fn)(void*), void* child_stack, int flags, void* arg, ...) { in clone() argument 71 if ((flags & (CLONE_PARENT_SETTID|CLONE_SETTLS|CLONE_CHILD_SETTID|CLONE_CHILD_CLEARTID)) != 0) { in clone() 74 if ((flags & (CLONE_SETTLS|CLONE_CHILD_SETTID|CLONE_CHILD_CLEARTID)) != 0) { in clone() 77 if ((flags & (CLONE_CHILD_SETTID|CLONE_CHILD_CLEARTID)) != 0) { in clone() 96 if (!(flags & (CLONE_VM|CLONE_VFORK))) { in clone() 103 clone_result = __bionic_clone(flags, child_stack, parent_tid, new_tls, child_tid, fn, arg); in clone() 106 clone_result = syscall(__NR_clone, flags, child_stack, parent_tid, child_tid, new_tls); in clone() 108 clone_result = syscall(__NR_clone, flags, child_stack, parent_tid, new_tls, child_tid); in clone()
|
D | NetdClientDispatch.cpp | 57 int accept4(int fd, sockaddr* addr, socklen_t* addr_length, int flags) { in accept4() argument 58 return FDTRACK_CREATE(__netdClientDispatch.accept4(fd, addr, addr_length, flags)); in accept4() 65 int sendmmsg(int fd, const struct mmsghdr* msgs, unsigned int msg_count, int flags) { in sendmmsg() argument 66 return __netdClientDispatch.sendmmsg(fd, msgs, msg_count, flags); in sendmmsg() 69 ssize_t sendmsg(int fd, const struct msghdr* msg, int flags) { in sendmsg() argument 70 return __netdClientDispatch.sendmsg(fd, msg, flags); in sendmsg() 73 ssize_t sendto(int fd, const void* buf, size_t n, int flags, in sendto() argument 75 return __netdClientDispatch.sendto(fd, buf, n, flags, dst_addr, dst_addr_length); in sendto()
|
D | lfs64_support.cpp | 26 int mkostemp64(char* path, int flags) { in mkostemp64() argument 27 return mkostemp(path, flags); in mkostemp64() 32 int mkostemps64(char* path, int suffix_length, int flags) { in mkostemps64() argument 33 return mkostemps(path, suffix_length, flags); in mkostemps64() 46 int nopenfd, int flags) { in nftw64() argument 47 return nftw(dirpath, reinterpret_cast<nftw_fn>(fn), nopenfd, flags); in nftw64()
|
D | sys_shm.cpp | 34 void* shmat(int id, const void* address, int flags) { in shmat() argument 36 return reinterpret_cast<void*>(syscall(SYS_shmat, id, address, flags)); in shmat() 40 if (syscall(SYS_ipc, SHMAT, id, flags, &result, address, 0) == -1) { in shmat() 67 int shmget(key_t key, size_t size, int flags) { in shmget() argument 69 return syscall(SYS_shmget, key, size, flags); in shmget() 71 return syscall(SYS_ipc, SHMGET, key, size, flags, 0, 0); in shmget()
|
D | pthread_attr.cpp | 45 attr->flags = 0; in pthread_attr_init() 63 attr->flags &= ~PTHREAD_ATTR_FLAG_INHERIT; in pthread_attr_setinheritsched() 64 attr->flags |= PTHREAD_ATTR_FLAG_EXPLICIT; in pthread_attr_setinheritsched() 66 attr->flags |= PTHREAD_ATTR_FLAG_INHERIT; in pthread_attr_setinheritsched() 67 attr->flags &= ~PTHREAD_ATTR_FLAG_EXPLICIT; in pthread_attr_setinheritsched() 76 if ((attr->flags & PTHREAD_ATTR_FLAG_INHERIT) != 0) { in pthread_attr_getinheritsched() 78 } else if ((attr->flags & PTHREAD_ATTR_FLAG_EXPLICIT) != 0) { in pthread_attr_getinheritsched() 90 attr->flags |= PTHREAD_ATTR_FLAG_DETACHED; in pthread_attr_setdetachstate() 92 attr->flags &= ~PTHREAD_ATTR_FLAG_DETACHED; in pthread_attr_setdetachstate() 101 …*state = (attr->flags & PTHREAD_ATTR_FLAG_DETACHED) ? PTHREAD_CREATE_DETACHED : PTHREAD_CREATE_JOI… in pthread_attr_getdetachstate() [all …]
|
/bionic/libc/upstream-openbsd/lib/libc/stdio/ |
D | setvbuf.c | 46 int ret, flags; in setvbuf() local 72 flags = fp->_flags; in setvbuf() 73 if (flags & __SMBF) in setvbuf() 75 flags &= ~(__SLBF | __SNBF | __SMBF | __SOPT | __SNPT | __SEOF); in setvbuf() 86 flags |= __swhatbuf(fp, &iosize, &ttyflag); in setvbuf() 108 fp->_flags = flags | __SNBF; in setvbuf() 115 flags |= __SMBF; in setvbuf() 132 flags |= __SNPT; in setvbuf() 139 flags |= __SLBF; in setvbuf() 140 fp->_flags = flags; in setvbuf() [all …]
|
D | mktemp.c | 45 mktemp_internal(char *path, int slen, int mode, int flags) in mktemp_internal() argument 68 if (flags & ~MKOTEMP_FLAGS) { in mktemp_internal() 72 flags |= O_CREAT | O_EXCL | O_RDWR; in mktemp_internal() 96 fd = open(path, flags, S_IRUSR|S_IWUSR); in mktemp_internal() 131 mkostemps(char *path, int slen, int flags) in mkostemps() argument 133 return(mktemp_internal(path, slen, MKTEMP_FILE, flags)); in mkostemps() 144 mkostemp(char *path, int flags) in mkostemp() argument 146 return(mktemp_internal(path, 0, MKTEMP_FILE, flags)); in mkostemp()
|
/bionic/libc/dns/net/ |
D | getnameinfo.c | 117 char* serv, size_t servlen, int flags) in getnameinfo() argument 119 return android_getnameinfofornet(sa, salen, host, hostlen, serv, servlen, flags, in getnameinfo() 124 size_t hostlen, char* serv, size_t servlen, int flags, unsigned netid, in android_getnameinfofornet() argument 131 serv, servlen, flags, netid, mark); in android_getnameinfofornet() 134 serv, servlen, flags); in android_getnameinfofornet() 148 int flags __attribute__((unused))) in getnameinfo_local() argument 175 int flags, unsigned netid, unsigned mark) in getnameinfo_inet() argument 221 if (flags & NI_NUMERICSERV) in getnameinfo_inet() 225 (flags & NI_DGRAM) ? "udp" : "tcp"); in getnameinfo_inet() 245 flags |= NI_NUMERICHOST; in getnameinfo_inet() [all …]
|
/bionic/tools/versioner/tests/fortify_inline/headers/ |
D | fcntl.h | 5 extern int open_real(const char* name, int flags, ...) __asm__("open"); 12 int open(const char* name, int flags) in open() argument 15 __attribute__((enable_if(!(flags & O_CREAT), ""))) { in open() 16 return open_real(name, flags); in open() 20 int open(const char* name, int flags, mode_t mode) in open() argument 23 __attribute__((enable_if(flags & O_CREAT, ""))) { in open() 24 return open_real(name, flags, mode); in open()
|
/bionic/libc/kernel/uapi/linux/netfilter/ |
D | xt_set.h | 29 __u32 flags[IPSET_DIM_MAX + 1]; member 33 __u8 flags; member 47 __u8 flags; member 59 __u32 flags; member 66 __u32 flags; member 72 __u32 flags; member 79 __u32 flags; member
|
/bionic/libc/kernel/uapi/linux/ |
D | vfio.h | 46 __u32 flags; member 56 __u32 flags; member 81 __u32 flags; member 163 __u32 flags; member 174 __u32 flags; member 228 __u32 flags; member 235 __u32 flags; member 242 __u32 flags; member 266 __u32 flags; member 279 __u32 flags; member [all …]
|
/bionic/tests/ |
D | ifaddrs_test.cpp | 194 static std::string FlagsToString(short flags) { in FlagsToString() argument 196 if ((flags & IFF_UP) != 0) result += " UP"; in FlagsToString() 197 if ((flags & IFF_BROADCAST) != 0) result += " BROADCAST"; in FlagsToString() 198 if ((flags & IFF_DEBUG) != 0) result += " DEBUG"; in FlagsToString() 199 if ((flags & IFF_LOOPBACK) != 0) result += " LOOPBACK"; in FlagsToString() 200 if ((flags & IFF_POINTOPOINT) != 0) result += " POINTOPOINT"; in FlagsToString() 201 if ((flags & IFF_NOTRAILERS) != 0) result += " NOTRAILERS"; in FlagsToString() 202 if ((flags & IFF_RUNNING) != 0) result += " RUNNING"; in FlagsToString() 203 if ((flags & IFF_NOARP) != 0) result += " NOARP"; in FlagsToString() 204 if ((flags & IFF_PROMISC) != 0) result += " PROMISC"; in FlagsToString() [all …]
|
/bionic/libc/kernel/uapi/asm-arm64/asm/ |
D | ptrace.h | 87 __u16 flags; member 97 #define SVE_PT_FPSIMD_SIZE(vq,flags) (sizeof(struct user_fpsimd_state)) argument 113 #define SVE_PT_SVE_SIZE(vq,flags) ((SVE_PT_SVE_FPCR_OFFSET(vq) + SVE_PT_SVE_FPCR_SIZE - SVE_PT_SVE_… argument 114 …flags) (((flags) & SVE_PT_REGS_MASK) == SVE_PT_REGS_SVE ? SVE_PT_SVE_OFFSET + SVE_PT_SVE_SIZE(vq, … argument 133 __u16 flags; member
|