Home
last modified time | relevance | path

Searched refs:flags (Results 1 – 25 of 342) sorted by relevance

12345678910>>...14

/bionic/libc/stdio/
Dvfwscanf.cpp85 int flags; /* flags as defined above */ in __vfwscanf() local
118 flags = 0; in __vfwscanf()
138 flags |= SUPPRESS; in __vfwscanf()
141 flags |= MAXINT; in __vfwscanf()
144 flags |= LONGDBL; in __vfwscanf()
149 flags |= SHORTSHORT; in __vfwscanf()
151 flags |= SHORT; in __vfwscanf()
157 flags |= LLONG; in __vfwscanf()
159 flags |= LONG; in __vfwscanf()
163 flags |= LLONG; /* deprecated */ in __vfwscanf()
[all …]
Dvfscanf.cpp48 int flags; /* flags as defined above */ in __svfscanf() local
72 flags = 0; in __svfscanf()
90 flags |= SUPPRESS; in __svfscanf()
93 flags |= MAXINT; in __svfscanf()
96 flags |= LONGDBL; in __svfscanf()
101 flags |= SHORTSHORT; in __svfscanf()
103 flags |= SHORT; in __svfscanf()
109 flags |= LLONG; in __svfscanf()
111 flags |= LONG; in __svfscanf()
115 flags |= ALLOCATE; in __svfscanf()
[all …]
Dvfwprintf.cpp73 int flags; /* flags as above */ in FUNCTION_NAME() local
179 flags = 0; in FUNCTION_NAME()
199 flags |= ALT; in FUNCTION_NAME()
217 flags |= LADJUST; in FUNCTION_NAME()
252 flags |= ZEROPAD; in FUNCTION_NAME()
282 flags |= LONGDBL; in FUNCTION_NAME()
287 flags |= CHARINT; in FUNCTION_NAME()
289 flags |= SHORTINT; in FUNCTION_NAME()
293 flags |= MAXINT; in FUNCTION_NAME()
298 flags |= LLONGINT; in FUNCTION_NAME()
[all …]
Dvfprintf.cpp70 int flags; /* flags as above */ in FUNCTION_NAME() local
176 flags = 0; in FUNCTION_NAME()
196 flags |= ALT; in FUNCTION_NAME()
214 flags |= LADJUST; in FUNCTION_NAME()
249 flags |= ZEROPAD; in FUNCTION_NAME()
279 flags |= LONGDBL; in FUNCTION_NAME()
284 flags |= CHARINT; in FUNCTION_NAME()
286 flags |= SHORTINT; in FUNCTION_NAME()
290 flags |= MAXINT; in FUNCTION_NAME()
295 flags |= LLONGINT; in FUNCTION_NAME()
[all …]
Dprintf_common.h235 ((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/include/bits/fortify/
Dfcntl.h46 #define __open_modes_useful(flags) (((flags) & O_CREAT) || ((flags) & O_TMPFILE) == O_TMPFILE) argument
49 int open(const char* _Nonnull pathname, int flags, mode_t modes, ...) __overloadable
59 int open(const char* _Nonnull 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* _Nonnull 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* _Nonnull pathname, int flags, mode_t modes, ...)
[all …]
Dsocket.h40 ssize_t recvfrom(int fd, void* _Nullable const buf __pass_object_size0, size_t len, int flags, stru… in recvfrom() argument
48 return __recvfrom_chk(fd, buf, len, bos, flags, src_addr, addr_len); in recvfrom()
51 return __call_bypassing_fortify(recvfrom)(fd, buf, len, flags, src_addr, addr_len); in recvfrom()
55 ssize_t sendto(int fd, const void* _Nonnull const buf __pass_object_size0, size_t len, int flags, c… in sendto() argument
63 return __sendto_chk(fd, buf, len, bos, flags, dest_addr, addr_len); in sendto()
66 return __call_bypassing_fortify(sendto)(fd, buf, len, flags, dest_addr, addr_len); in sendto()
70 ssize_t recv(int socket, void* _Nullable const buf __pass_object_size0, size_t len, int flags) in recv() argument
74 return recvfrom(socket, buf, len, flags, NULL, 0); in recv()
78 ssize_t send(int socket, const void* _Nonnull const buf __pass_object_size0, size_t len, int flags) in send() argument
82 return sendto(socket, buf, len, flags, NULL, 0); in send()
/bionic/libc/bionic/
Dopen.cpp39 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 …]
Dspawn.cpp82 int flags; member
87 fd = open(path, flags, mode); in Do()
108 int flags = fcntl(fd, F_GETFD, 0); in Do() local
109 if (flags == -1 || fcntl(fd, F_SETFD, flags & ~FD_CLOEXEC) == -1) _exit(127); in Do()
129 short flags; member
139 static void ApplyAttrs(short flags, const posix_spawnattr_t* attr) { in ApplyAttrs() argument
144 bool use_sigdefault = ((flags & POSIX_SPAWN_SETSIGDEF) != 0); in ApplyAttrs()
158 if ((flags & POSIX_SPAWN_SETPGROUP) != 0 && setpgid(0, (*attr)->pgroup) == -1) _exit(127); in ApplyAttrs()
159 if ((flags & POSIX_SPAWN_SETSID) != 0 && setsid() == -1) _exit(127); in ApplyAttrs()
163 if ((flags & POSIX_SPAWN_SETSCHEDULER) != 0) { in ApplyAttrs()
[all …]
Dsys_msg.cpp46 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()
Dpreadv_pwritev.cpp69 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()
Dpidfd.cpp33 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()
Dclone.cpp40 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()
DNetdClientDispatch.cpp57 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()
Dlfs64_support.cpp26 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()
Dsys_shm.cpp34 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()
Dpthread_attr.cpp46 attr->flags = 0; in pthread_attr_init()
64 attr->flags &= ~PTHREAD_ATTR_FLAG_INHERIT; in pthread_attr_setinheritsched()
65 attr->flags |= PTHREAD_ATTR_FLAG_EXPLICIT; in pthread_attr_setinheritsched()
67 attr->flags |= PTHREAD_ATTR_FLAG_INHERIT; in pthread_attr_setinheritsched()
68 attr->flags &= ~PTHREAD_ATTR_FLAG_EXPLICIT; in pthread_attr_setinheritsched()
77 if ((attr->flags & PTHREAD_ATTR_FLAG_INHERIT) != 0) { in pthread_attr_getinheritsched()
79 } else if ((attr->flags & PTHREAD_ATTR_FLAG_EXPLICIT) != 0) { in pthread_attr_getinheritsched()
91 attr->flags |= PTHREAD_ATTR_FLAG_DETACHED; in pthread_attr_setdetachstate()
93 attr->flags &= ~PTHREAD_ATTR_FLAG_DETACHED; in pthread_attr_setdetachstate()
102 …*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/
Dsetvbuf.c46 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 …]
Dmktemp.c45 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/
Dgetnameinfo.c117 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/
Dfcntl.h5 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/
Dvfio.h34 __u32 flags; member
44 __u32 flags; member
72 __u32 flags; member
80 __u32 flags; member
162 __u32 flags; member
173 __u32 flags; member
236 __u32 flags; member
245 __u32 flags; member
252 __u32 flags; member
277 __u32 flags; member
[all …]
/bionic/libc/kernel/uapi/linux/netfilter/
Dxt_set.h17 __u32 flags[IPSET_DIM_MAX + 1]; member
21 __u8 flags; member
35 __u8 flags; member
47 __u32 flags; member
54 __u32 flags; member
60 __u32 flags; member
67 __u32 flags; member
/bionic/tests/
Difaddrs_test.cpp199 static std::string FlagsToString(short flags) { in FlagsToString() argument
201 if ((flags & IFF_UP) != 0) result += " UP"; in FlagsToString()
202 if ((flags & IFF_BROADCAST) != 0) result += " BROADCAST"; in FlagsToString()
203 if ((flags & IFF_DEBUG) != 0) result += " DEBUG"; in FlagsToString()
204 if ((flags & IFF_LOOPBACK) != 0) result += " LOOPBACK"; in FlagsToString()
205 if ((flags & IFF_POINTOPOINT) != 0) result += " POINTOPOINT"; in FlagsToString()
206 if ((flags & IFF_NOTRAILERS) != 0) result += " NOTRAILERS"; in FlagsToString()
207 if ((flags & IFF_RUNNING) != 0) result += " RUNNING"; in FlagsToString()
208 if ((flags & IFF_NOARP) != 0) result += " NOARP"; in FlagsToString()
209 if ((flags & IFF_PROMISC) != 0) result += " PROMISC"; in FlagsToString()
[all …]
/bionic/libc/kernel/uapi/asm-arm64/asm/
Dptrace.h75 __u16 flags; member
85 #define SVE_PT_FPSIMD_SIZE(vq,flags) (sizeof(struct user_fpsimd_state)) argument
101 #define SVE_PT_SVE_SIZE(vq,flags) ((SVE_PT_SVE_FPCR_OFFSET(vq) + SVE_PT_SVE_FPCR_SIZE - SVE_PT_SVE_… argument
102flags) (((flags) & SVE_PT_REGS_MASK) == SVE_PT_REGS_SVE ? SVE_PT_SVE_OFFSET + SVE_PT_SVE_SIZE(vq, argument
121 __u16 flags; member

12345678910>>...14