| /third_party/ulib/musl/src/stdio/ |
| A D | __fmodeflags.c | 5 int flags; in __fmodeflags() local 7 flags = O_RDWR; in __fmodeflags() 9 flags = O_RDONLY; in __fmodeflags() 11 flags = O_WRONLY; in __fmodeflags() 13 flags |= O_EXCL; in __fmodeflags() 15 flags |= O_CLOEXEC; in __fmodeflags() 17 flags |= O_CREAT; in __fmodeflags() 19 flags |= O_TRUNC; in __fmodeflags() 21 flags |= O_APPEND; in __fmodeflags() 22 return flags; in __fmodeflags()
|
| A D | __fdopen.c | 19 int flags = fcntl(fd, F_GETFL); in __fdopen() local 20 if (flags < 0) { in __fdopen() 33 f->flags = (*mode == 'r') ? F_NOWR : F_NORD; in __fdopen() 41 if (!(flags & O_APPEND)) in __fdopen() 42 fcntl(fd, F_SETFL, flags | O_APPEND); in __fdopen() 43 f->flags |= F_APP; in __fdopen() 52 if (!(f->flags & F_NOWR) && isatty(fd)) in __fdopen()
|
| A D | fopen.c | 10 int flags; in fopen() local 19 flags = __fmodeflags(mode); in fopen() 21 fd = open(filename, flags, 0666); in fopen() 24 if (flags & O_CLOEXEC) in fopen()
|
| A D | __toread.c | 8 if (f->flags & F_NORD) { in __toread() 9 f->flags |= F_ERR; in __toread() 13 return (f->flags & F_EOF) ? EOF : 0; in __toread()
|
| /third_party/uapp/dash/src/ |
| A D | var.c | 201 flags |= VUNSET; in setvar() 255 if (flags & VNOSAVE) in setvareq() 262 if (flags & VNOSET) in setvareq() 281 flags |= vp->flags & ~(VTEXTFIXED|VSTACK|VNOSAVE|VUNSET); in setvareq() 283 if (flags & VNOSET) in setvareq() 296 vp->flags = flags; in setvareq() 508 lvp->flags = vp->flags; in mklocal() 554 vp->flags &= ~bits; in poplocalvars() 555 vp->flags |= (lvp->flags & bits); in poplocalvars() 557 if ((vp->flags & in poplocalvars() [all …]
|
| A D | cd.c | 78 int flags = 0; in cdopt() local 89 return flags; in cdopt() 100 int flags; in cdcmd() local 102 flags = cdopt(); in cdcmd() 108 flags |= CD_PRINT; in cdcmd() 135 flags |= CD_PRINT; in cdcmd() 137 if (!docd(p, flags)) in cdcmd() 151 if (flags & CD_PRINT) in cdcmd() 288 int flags; in pwdcmd() local 291 flags = cdopt(); in pwdcmd() [all …]
|
| A D | var.h | 57 int flags; /* flags are defined above */ member 68 int flags; /* saved flags */ member 112 #define ifsset() ((vifs.flags & VUNSET) == 0) 123 #define attyset() ((vatty.flags & VUNSET) == 0) 125 #define mpathset() ((vmpath.flags & VUNSET) == 0) 128 struct var *setvar(const char *name, const char *val, int flags); 130 struct var *setvareq(char *s, int flags);
|
| A D | eval.c | 158 evalstring(char *s, int flags) in evalstring() argument 194 evaltree(union node *n, int flags) in evaltree() argument 280 status = evalfn(n, flags); in evaltree() 307 if (flags & EV_EXIT) { in evaltree() 321 evaltree(n, flags); 358 flags &= EV_TESTED; in evalloop() 386 evalfor(union node *n, int flags) in evalfor() argument 407 flags &= EV_TESTED; in evalfor() 450 flags); in evalcase() 570 flags |= EV_EXIT; in evalpipe() [all …]
|
| /third_party/ulib/jemalloc/test/integration/ |
| A D | xallocx.c | 226 int flags = MALLOCX_ARENA(arena_ind()); in TEST_BEGIN() local 237 p = mallocx(large3, flags); in TEST_BEGIN() 249 p = rallocx(p, large3, flags); in TEST_BEGIN() 283 p = rallocx(p, large3, flags); in TEST_BEGIN() 290 dallocx(p, flags); in TEST_BEGIN() 341 p = mallocx(sz, flags); in test_zero() 356 if (xallocx(p, sz, 0, flags) != sz) { in test_zero() 357 p = rallocx(p, sz, flags); in test_zero() 364 nsz = nallocx(sz+1, flags); in test_zero() 366 p = rallocx(p, sz+1, flags); in test_zero() [all …]
|
| A D | extent.c | 16 int flags; in test_extent_body() local 19 flags = MALLOCX_ARENA(arena_ind) | MALLOCX_TCACHE_NONE; in test_extent_body() 37 p = mallocx(large0 * 2, flags); in test_extent_body() 44 xallocx_success_a = (xallocx(p, large0, 0, flags) == large0); in test_extent_body() 54 dallocx(p, flags); in test_extent_body() 60 p = mallocx(large0 * 2, flags); in test_extent_body() 67 xallocx_success_b = (xallocx(p, large0, 0, flags) == large0); in test_extent_body() 72 xallocx_success_c = (xallocx(p, large0 * 2, 0, flags) == large0 * 2); in test_extent_body() 79 dallocx(p, flags); in test_extent_body() 84 p = mallocx(42, flags); in test_extent_body() [all …]
|
| /third_party/ulib/musl/src/misc/ |
| A D | nftw.c | 21 int fd_limit, int flags, struct history* h) { in do_nftw() argument 30 if ((flags & FTW_PHYS) ? lstat(path, &st) : stat(path, &st) < 0) { in do_nftw() 31 if (!(flags & FTW_PHYS) && errno == ENOENT && !lstat(path, &st)) in do_nftw() 40 else if (flags & FTW_DEPTH) in do_nftw() 45 if (flags & FTW_PHYS) in do_nftw() 53 if ((flags & FTW_MOUNT) && h && st.st_dev != h->dev) in do_nftw() 65 if (!(flags & FTW_DEPTH) && (r = fn(path, &st, type, &lev))) in do_nftw() 87 if ((r = do_nftw(path, fn, fd_limit - 1, flags, &new))) { in do_nftw() 99 if ((flags & FTW_DEPTH) && (r = fn(path, &st, type, &lev))) in do_nftw() 106 int fd_limit, int flags) { in nftw() argument [all …]
|
| A D | wordexp.c | 31 int wordexp(const char* s, wordexp_t* we, int flags) { in wordexp() argument 36 const char* redir = (flags & WRDE_SHOWERR) ? "" : "2>/dev/null"; in wordexp() 44 if (flags & WRDE_REUSE) in wordexp() 47 if (flags & WRDE_NOCMD) in wordexp() 98 if (flags & WRDE_APPEND) { in wordexp() 104 if (flags & WRDE_DOOFFS) { in wordexp() 171 if (flags & WRDE_DOOFFS) { in wordexp() 180 if (!(flags & WRDE_APPEND)) { in wordexp()
|
| /third_party/ulib/musl/src/regex/ |
| A D | fnmatch.c | 55 if (pat[0] == '\\' && pat[1] && !(flags & FNM_NOESCAPE)) { in pat_next() 177 if (flags & FNM_PERIOD) { in fnmatch_internal() 182 switch ((c = pat_next(pat, m, &pinc, flags))) { in fnmatch_internal() 195 kfold = flags & FNM_CASEFOLD ? casefold(k) : k; in fnmatch_internal() 215 switch (pat_next(p, endpat - p, &pinc, flags)) { in fnmatch_internal() 254 c = pat_next(p, endpat - p, &pinc, flags); in fnmatch_internal() 262 kfold = flags & FNM_CASEFOLD ? casefold(k) : k; in fnmatch_internal() 280 c = pat_next(p, endpat - p, &pinc, flags); in fnmatch_internal() 319 if (flags & FNM_PATHNAME) in fnmatch() 334 else if (flags & FNM_LEADING_DIR) { in fnmatch() [all …]
|
| A D | glob.c | 60 ((flags & GLOB_NOESCAPE) ? FNM_NOESCAPE : 0) | ((!(flags & GLOB_PERIOD)) ? FNM_PERIOD : 0); in match_in_dir() 70 literal = is_literal(p, !(flags & GLOB_NOESCAPE)); in match_in_dir() 89 if (errfunc(d, error) || (flags & GLOB_ERR)) in match_in_dir() 120 if (flags & GLOB_MARK) { in match_in_dir() 136 if (error && (errfunc(d, error) || (flags & GLOB_ERR))) in match_in_dir() 162 size_t offs = (flags & GLOB_DOOFFS) ? g->gl_offs : 0; in glob() 179 if (!(flags & GLOB_APPEND)) { in glob() 186 error = match_in_dir(d, p, flags, errfunc, &tail); in glob() 195 if (flags & GLOB_NOCHECK) { in glob() 204 if (flags & GLOB_APPEND) { in glob() [all …]
|
| /third_party/ulib/musl/src/mman/ |
| A D | mmap.c | 17 void* __mmap(void* start, size_t len, int prot, int flags, int fd, off_t fd_off) { in __mmap() argument 30 if (!(flags & (MAP_PRIVATE | MAP_SHARED)) || in __mmap() 31 (flags & MAP_PRIVATE && flags & MAP_SHARED)) { in __mmap() 47 if (flags & MAP_FIXED) { in __mmap() 61 if (flags & MAP_ANON) { in __mmap() 68 status = _mmap_file(offset, len, zx_options, flags, fd, fd_off, &ptr); in __mmap()
|
| /third_party/ulib/musl/src/temp/ |
| A D | mkostemps.c | 10 int __mkostemps(char* template, int len, int flags) { in __mkostemps() argument 17 flags -= flags & O_ACCMODE; in __mkostemps() 21 if ((fd = open(template, flags | O_RDWR | O_CREAT | O_EXCL, 0600)) >= 0) in __mkostemps()
|
| /third_party/ulib/jemalloc/include/jemalloc/ |
| A D | jemalloc_protos.h | 29 void JEMALLOC_NOTHROW *je_mallocx(size_t size, int flags) 33 int flags) JEMALLOC_ALLOC_SIZE(2); 35 size_t extra, int flags); 37 int flags) JEMALLOC_ATTR(pure); 38 JEMALLOC_EXPORT void JEMALLOC_NOTHROW je_dallocx(void *ptr, int flags); 40 int flags); 41 JEMALLOC_EXPORT size_t JEMALLOC_NOTHROW je_nallocx(size_t size, int flags)
|
| A D | jemalloc_protos_jet.h | 29 void JEMALLOC_NOTHROW *jet_mallocx(size_t size, int flags) 33 int flags) JEMALLOC_ALLOC_SIZE(2); 35 size_t extra, int flags); 37 int flags) JEMALLOC_ATTR(pure); 38 JEMALLOC_EXPORT void JEMALLOC_NOTHROW jet_dallocx(void *ptr, int flags); 40 int flags); 41 JEMALLOC_EXPORT size_t JEMALLOC_NOTHROW jet_nallocx(size_t size, int flags)
|
| A D | jemalloc_protos.h.in | 29 void JEMALLOC_NOTHROW *@je_@mallocx(size_t size, int flags) 33 int flags) JEMALLOC_ALLOC_SIZE(2); 35 size_t extra, int flags); 37 int flags) JEMALLOC_ATTR(pure); 38 JEMALLOC_EXPORT void JEMALLOC_NOTHROW @je_@dallocx(void *ptr, int flags); 40 int flags); 41 JEMALLOC_EXPORT size_t JEMALLOC_NOTHROW @je_@nallocx(size_t size, int flags)
|
| /third_party/ulib/jemalloc/test/unit/ |
| A D | prof_tctx.c | 10 int flags; in TEST_BEGIN() local 19 flags = MALLOCX_TCACHE_NONE; in TEST_BEGIN() 22 p = mallocx(1024, flags); in TEST_BEGIN() 33 q = rallocx(p, 2048, flags); in TEST_BEGIN() 45 dallocx(q, flags); in TEST_BEGIN()
|
| /third_party/ulib/musl/stubs/ |
| A D | socketstubs.c | 47 static int stub_accept4(int fd, struct sockaddr* restrict addr, socklen_t* restrict len, int flags)… in stub_accept4() argument 65 static ssize_t stub_sendto(int fd, const void* buf, size_t buflen, int flags, const struct sockaddr… in stub_sendto() argument 71 static ssize_t stub_recvfrom(int fd, void* restrict buf, size_t buflen, int flags, struct sockaddr*… in stub_recvfrom() argument 77 static ssize_t stub_sendmsg(int fd, const struct msghdr* msg, int flags) { in stub_sendmsg() argument 83 static ssize_t stub_recvmsg(int fd, struct msghdr* msg, int flags) { in stub_recvmsg() argument 89 static int stub_sendmmsg(int fd, struct mmsghdr* msgvec, unsigned int vlen, unsigned int flags) { in stub_sendmmsg() argument 95 static int stub_recvmmsg(int fd, struct mmsghdr* msgvec, unsigned int vlen, unsigned int flags, str… in stub_recvmmsg() argument
|
| /third_party/ulib/musl/include/net/ |
| A D | route.h | 88 #define RT_ADDRCLASS(flags) ((uint32_t)flags >> 23) argument 92 #define RT_LOCALADDR(flags) ((flags & RTF_ADDRCLASSMASK) == (RTF_LOCAL | RTF_INTERFACE)) argument
|
| /third_party/ulib/uboringssl/crypto/fipsmodule/cipher/ |
| A D | cipher.c | 118 if (in->cipher->flags & EVP_CIPH_CUSTOM_COPY) { in EVP_CIPHER_CTX_copy() 168 ctx->flags = 0; in EVP_CipherInit_ex() 170 if (ctx->cipher->flags & EVP_CIPH_CTRL_INIT) { in EVP_CipherInit_ex() 331 if (ctx->flags & EVP_CIPH_NO_PADDING) { in EVP_EncryptFinal_ex() 374 if (ctx->flags & EVP_CIPH_NO_PADDING) { in EVP_DecryptUpdate() 426 if (ctx->flags & EVP_CIPH_NO_PADDING) { in EVP_DecryptFinal_ex() 528 return ctx->cipher->flags & EVP_CIPH_MODE_MASK; in EVP_CIPHER_CTX_mode() 554 ctx->flags &= ~EVP_CIPH_NO_PADDING; in EVP_CIPHER_CTX_set_padding() 556 ctx->flags |= EVP_CIPH_NO_PADDING; in EVP_CIPHER_CTX_set_padding() 590 return cipher->flags & ~EVP_CIPH_MODE_MASK; in EVP_CIPHER_flags() [all …]
|
| /third_party/ulib/musl/src/process/ |
| A D | posix_spawnattr_getflags.c | 3 int posix_spawnattr_getflags(const posix_spawnattr_t* restrict attr, short* restrict flags) { in posix_spawnattr_getflags() argument 4 *flags = attr->__flags; in posix_spawnattr_getflags()
|
| A D | posix_spawnattr_setflags.c | 3 int posix_spawnattr_setflags(posix_spawnattr_t* attr, short flags) { in posix_spawnattr_setflags() argument 4 attr->__flags = flags; in posix_spawnattr_setflags()
|