Home
last modified time | relevance | path

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

12345

/bionic/libc/unistd/
Dfnmatch.c54 fnmatch(const char *pattern, const char *string, int flags) in fnmatch() argument
63 if ((flags & FNM_LEADING_DIR) && *string == '/') in fnmatch()
69 if (*string == '/' && (flags & FNM_PATHNAME)) in fnmatch()
71 if (*string == '.' && (flags & FNM_PERIOD) && in fnmatch()
73 ((flags & FNM_PATHNAME) && *(string - 1) == '/'))) in fnmatch()
83 if (*string == '.' && (flags & FNM_PERIOD) && in fnmatch()
85 ((flags & FNM_PATHNAME) && *(string - 1) == '/'))) in fnmatch()
90 if (flags & FNM_PATHNAME) in fnmatch()
91 return ((flags & FNM_LEADING_DIR) || in fnmatch()
96 } else if (c == '/' && (flags & FNM_PATHNAME)) { in fnmatch()
[all …]
Dopen.c34 int open(const char *pathname, int flags, ...) in open() argument
39 flags |= O_LARGEFILE; in open()
42 if (flags & O_CREAT) in open()
46 va_start(args, flags); in open()
51 return __open(pathname, flags, mode); in open()
Dopenat.c34 int openat(int fd, const char *pathname, int flags, ...) in openat() argument
39 flags |= O_LARGEFILE; in openat()
42 if (flags & O_CREAT) in openat()
46 va_start(args, flags); in openat()
51 return __openat(fd, pathname, flags, mode); in openat()
Drecv.c31 ssize_t recv(int socket, void *buf, size_t buflen, unsigned int flags) in recv() argument
33 return recvfrom(socket, buf, buflen, flags, NULL, 0); in recv()
Dsend.c31 ssize_t send(int socket, const void *buf, size_t buflen, unsigned int flags) in send() argument
33 return (ssize_t) sendto(socket, buf, buflen, flags, NULL, 0); in send()
Dmmap.c35 void* mmap( void* addr, size_t size, int prot, int flags, int fd, long offset ) in mmap() argument
42 return __mmap2(addr, size, prot, flags, fd, (size_t)offset >> MMAP2_SHIFT); in mmap()
/bionic/libc/stdio/
Dvfscanf.c108 int flags; /* flags as defined above */ in VFSCANF() local
138 flags = 0; in VFSCANF()
156 flags |= SUPPRESS; in VFSCANF()
159 flags |= MAXINT; in VFSCANF()
162 flags |= LONGDBL; in VFSCANF()
167 flags |= SHORTSHORT; in VFSCANF()
169 flags |= SHORT; in VFSCANF()
175 flags |= LLONG; in VFSCANF()
177 flags |= LONG; in VFSCANF()
181 flags |= LLONG; /* deprecated */ in VFSCANF()
[all …]
Dsetvbuf.c45 int ret, flags; in setvbuf() local
70 flags = fp->_flags; in setvbuf()
71 if (flags & __SMBF) in setvbuf()
73 flags &= ~(__SLBF | __SNBF | __SMBF | __SOPT | __SNPT | __SEOF); in setvbuf()
84 flags |= __swhatbuf(fp, &iosize, &ttyflag); in setvbuf()
106 fp->_flags = flags | __SNBF; in setvbuf()
112 flags |= __SMBF; in setvbuf()
122 flags |= __SNPT; in setvbuf()
129 flags |= __SLBF; in setvbuf()
130 fp->_flags = flags; in setvbuf()
[all …]
Dvfprintf.c167 int flags; /* flags as above */ in vfprintf() local
246 ((intmax_t)(flags&MAXINT ? GETARG(intmax_t) : \ in vfprintf()
247 flags&LLONGINT ? GETARG(long long) : \ in vfprintf()
248 flags&LONGINT ? GETARG(long) : \ in vfprintf()
249 flags&PTRINT ? GETARG(ptrdiff_t) : \ in vfprintf()
250 flags&SIZEINT ? GETARG(ssize_t) : \ in vfprintf()
251 flags&SHORTINT ? (short)GETARG(int) : \ in vfprintf()
252 flags&CHARINT ? (__signed char)GETARG(int) : \ in vfprintf()
255 ((uintmax_t)(flags&MAXINT ? GETARG(uintmax_t) : \ in vfprintf()
256 flags&LLONGINT ? GETARG(unsigned long long) : \ in vfprintf()
[all …]
Dfunopen.c44 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()
Dmakebuf.c52 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()
Dfopen.c47 int flags, oflags; in fopen() local
49 if ((flags = __sflags(mode, &oflags)) == 0) in fopen()
58 fp->_flags = flags; in fopen()
Dfdopen.c45 int flags, oflags, fdflags, tmp; in fdopen() local
47 if ((flags = __sflags(mode, &oflags)) == 0) in fdopen()
61 fp->_flags = flags; in fdopen()
/bionic/libc/kernel/arch-sh/asm/
Dirqflags.h17 #define raw_local_save_flags(flags) do { (flags) = __raw_local_save_flags(); } while (0) argument
19 #define raw_local_irq_save(flags) do { (flags) = __raw_local_irq_save(); } while (0) argument
Dflat.h17 #define flat_old_ram_flag(flags) (flags) argument
19 #define flat_get_addr_from_rp(rp, relval, flags, p) get_unaligned(rp) argument
Dmmu.h48 unsigned long flags; member
58 unsigned long flags);
/bionic/libc/kernel/common/linux/
Dspinlock_api_up.h29 #define __LOCK_IRQSAVE(lock, flags) do { local_irq_save(flags); __LOCK(lock); } while (0) argument
37 #define __UNLOCK_IRQRESTORE(lock, flags) do { local_irq_restore(flags); __UNLOCK(lock); } while (… argument
49 #define _spin_lock_irqsave(lock, flags) __LOCK_IRQSAVE(lock, flags) argument
50 #define _read_lock_irqsave(lock, flags) __LOCK_IRQSAVE(lock, flags) argument
51 #define _write_lock_irqsave(lock, flags) __LOCK_IRQSAVE(lock, flags) argument
65 #define _spin_unlock_irqrestore(lock, flags) __UNLOCK_IRQRESTORE(lock, flags) argument
66 #define _read_unlock_irqrestore(lock, flags) __UNLOCK_IRQRESTORE(lock, flags) argument
67 #define _write_unlock_irqrestore(lock, flags) __UNLOCK_IRQRESTORE(lock, flags) argument
Dseqlock.h34 #define write_seqlock_irqsave(lock, flags) do { local_irq_save(flags); write_seqlock(lock); } whi… argument
37 #define write_sequnlock_irqrestore(lock, flags) do { write_sequnlock(lock); local_irq_restore(fla… argument
40 #define read_seqbegin_irqsave(lock, flags) ({ local_irq_save(flags); read_seqbegin(lock); }) argument
41 …ine read_seqretry_irqrestore(lock, iv, flags) ({ int ret = read_seqretry(lock, iv); local_ir… argument
Dspinlock.h47 #define _raw_spin_lock_flags(lock, flags) __raw_spin_lock_flags(&(lock)->raw_lock, *(flags)) argument
71 #define spin_lock_irqsave(lock, flags) _spin_lock_irqsave(lock, flags) argument
72 #define read_lock_irqsave(lock, flags) _read_lock_irqsave(lock, flags) argument
73 #define write_lock_irqsave(lock, flags) _write_lock_irqsave(lock, flags) argument
91 #define spin_unlock_irqrestore(lock, flags) _spin_unlock_irqrestore(lock, flags) argument
94 #define read_unlock_irqrestore(lock, flags) _read_unlock_irqrestore(lock, flags) argument
97 #define write_unlock_irqrestore(lock, flags) _write_unlock_irqrestore(lock, flags) argument
104 …ne spin_trylock_irqsave(lock, flags) ({ local_irq_save(flags); _spin_trylock(lock) ? 1 : ({… argument
Dirqflags.h31 #define raw_local_irq_save(flags) local_irq_save(flags) argument
32 #define raw_local_irq_restore(flags) local_irq_restore(flags) argument
/bionic/libc/kernel/arch-x86/asm/
Dirqflags_32.h27 #define raw_local_save_flags(flags) do { (flags) = __raw_local_save_flags(); } while (0) argument
28 #define raw_local_irq_save(flags) do { (flags) = __raw_local_irq_save(); } while (0) argument
/bionic/libc/bionic/
Dbionic_clone.c58 clone(int (*fn)(void *), void *child_stack, int flags, void* arg, ...) in clone() argument
68 if (flags & (CLONE_PARENT_SETTID|CLONE_SETTLS|CLONE_CHILD_SETTID)) { in clone()
71 if (flags & (CLONE_SETTLS|CLONE_CHILD_SETTID)) { in clone()
74 if (flags & CLONE_CHILD_SETTID) { in clone()
79 ret = __bionic_clone(flags, child_stack, parent_tidptr, new_tls, child_tidptr, fn, arg); in clone()
/bionic/libc/netbsd/net/
Dgetnameinfo.c110 …t sockaddr* sa, socklen_t salen, char* host, size_t hostlen, char* serv, size_t servlen, int flags) in getnameinfo() argument
116 serv, servlen, flags); in getnameinfo()
120 serv, servlen, flags); in getnameinfo()
133 getnameinfo_inet(sa, salen, host, hostlen, serv, servlen, flags) in getnameinfo_inet() argument
140 int flags;
188 if (flags & NI_NUMERICSERV)
192 (flags & NI_DGRAM) ? "udp" : "tcp");
212 flags |= NI_NUMERICHOST;
215 flags |= NI_NUMERICHOST;
229 flags |= NI_NUMERICHOST;
[all …]
/bionic/libc/kernel/common/linux/netfilter/
Dxt_multiport.h26 u_int8_t flags; member
33 u_int8_t flags; member
/bionic/libc/kernel/common/linux/mmc/
Dmmc.h27 unsigned int flags; member
46 #define mmc_resp_type(cmd) ((cmd)->flags & (MMC_RSP_PRESENT|MMC_RSP_136|MMC_RSP_CRC|MMC_RSP_BUSY|MM…
48 #define mmc_cmd_type(cmd) ((cmd)->flags & MMC_CMD_MASK)
71 unsigned int flags; member

12345