Home
last modified time | relevance | path

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

12345678910>>...13

/bionic/libc/stdio/
Dvfwscanf.c136 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 …]
Dvfscanf.cpp93 int flags; /* flags as defined above */ in __svfscanf() local
120 flags = 0; in __svfscanf()
137 flags |= SUPPRESS; in __svfscanf()
140 flags |= MAXINT; in __svfscanf()
143 flags |= LONGDBL; in __svfscanf()
148 flags |= SHORTSHORT; in __svfscanf()
150 flags |= SHORT; in __svfscanf()
156 flags |= LLONG; in __svfscanf()
158 flags |= LONG; in __svfscanf()
162 flags |= ALLOCATE; in __svfscanf()
[all …]
Dvfwprintf.cpp50 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 …]
Dvfprintf.cpp50 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 …]
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* 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 …]
Dsocket.h41 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/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.cpp56 int flags; member
61 fd = open(path, flags, mode); in Do()
89 short flags; member
97 static void ApplyAttrs(short flags, const posix_spawnattr_t* attr) { in ApplyAttrs() argument
102 bool use_sigdefault = ((flags & POSIX_SPAWN_SETSIGDEF) != 0); in ApplyAttrs()
116 if ((flags & POSIX_SPAWN_SETPGROUP) != 0 && setpgid(0, (*attr)->pgroup) == -1) _exit(127); in ApplyAttrs()
117 if ((flags & POSIX_SPAWN_SETSID) != 0 && setsid() == -1) _exit(127); in ApplyAttrs()
121 if ((flags & POSIX_SPAWN_SETSCHEDULER) != 0) { in ApplyAttrs()
123 } else if ((flags & POSIX_SPAWN_SETSCHEDPARAM) != 0) { in ApplyAttrs()
127 if ((flags & POSIX_SPAWN_RESETIDS) != 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()
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.cpp45 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 …]
Dmmap.cpp44 void* mmap64(void* addr, size_t size, int prot, int flags, int fd, off64_t offset) { in mmap64() argument
58 (flags & (MAP_PRIVATE | MAP_ANONYMOUS)) == (MAP_PRIVATE | MAP_ANONYMOUS); in mmap64()
59 bool is_stack_or_grows_down = (flags & (MAP_STACK | MAP_GROWSDOWN)) != 0; in mmap64()
61 void* result = __mmap2(addr, size, prot, flags, fd, offset >> MMAP2_SHIFT); in mmap64()
75 void* mmap(void* addr, size_t size, int prot, int flags, int fd, off_t offset) { in mmap() argument
76 return mmap64(addr, size, prot, flags, fd, static_cast<off64_t>(offset)); in mmap()
/bionic/libc/upstream-openbsd/lib/libc/stdio/
Dsetvbuf.c45 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()
131 flags |= __SNPT; in setvbuf()
137 flags |= __SLBF; in setvbuf()
138 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.c114 char* serv, size_t servlen, int flags) in getnameinfo() argument
116 return android_getnameinfofornet(sa, salen, host, hostlen, serv, servlen, flags, in getnameinfo()
121 size_t hostlen, char* serv, size_t servlen, int flags, unsigned netid, in android_getnameinfofornet() argument
128 serv, servlen, flags, netid, mark); in android_getnameinfofornet()
131 serv, servlen, flags); in android_getnameinfofornet()
145 int flags __attribute__((unused))) in getnameinfo_local() argument
172 int flags, unsigned netid, unsigned mark) in getnameinfo_inet() argument
218 if (flags & NI_NUMERICSERV) in getnameinfo_inet()
222 (flags & NI_DGRAM) ? "udp" : "tcp"); in getnameinfo_inet()
242 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.h44 __u32 flags; member
54 __u32 flags; member
72 __u32 flags; member
135 __u32 flags; member
146 __u32 flags; member
198 __u32 flags; member
205 __u32 flags; member
212 __u32 flags; member
236 __u32 flags; member
249 __u32 flags; member
[all …]
Diommu.h46 __u32 flags; member
56 __u32 flags; member
81 __u32 flags; member
96 __u32 flags; member
106 __u32 flags; member
132 __u64 flags; member
142 __u64 flags; member
/bionic/tests/
Difaddrs_test.cpp194 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/linux/netfilter/
Dxt_set.h29 __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/upstream-openbsd/lib/libc/gen/
Dfnmatch.c144 static int fnmatch_ch(const char **pattern, const char **string, int flags) in fnmatch_ch() argument
147 const int nocase = !!(flags & FNM_CASEFOLD); in fnmatch_ch()
148 const int escape = !(flags & FNM_NOESCAPE); in fnmatch_ch()
149 const int slash = !!(flags & FNM_PATHNAME); in fnmatch_ch()
284 int fnmatch(const char *pattern, const char *string, int flags) in fnmatch() argument
287 const int escape = !(flags & FNM_NOESCAPE); in fnmatch()
288 const int slash = !!(flags & FNM_PATHNAME); in fnmatch()
289 const int leading_dir = !!(flags & FNM_LEADING_DIR); in fnmatch()
319 if ((flags & FNM_PERIOD) && (*string == '.')) { in fnmatch()
427 flags); in fnmatch()
[all …]

12345678910>>...13