Home
last modified time | relevance | path

Searched refs:mode (Results 1 – 25 of 46) sorted by relevance

12

/third_party/ulib/musl/src/stdio/
A Dfwide.c4 int fwide(FILE* f, int mode) { in fwide() argument
6 if (mode) { in fwide()
9 if (!f->mode) in fwide()
10 f->mode = mode > 0 ? 1 : -1; in fwide()
12 mode = f->mode; in fwide()
14 return mode; in fwide()
A D__fmodeflags.c4 int __fmodeflags(const char* mode) { in __fmodeflags() argument
6 if (strchr(mode, '+')) in __fmodeflags()
8 else if (*mode == 'r') in __fmodeflags()
12 if (strchr(mode, 'x')) in __fmodeflags()
14 if (strchr(mode, 'e')) in __fmodeflags()
16 if (*mode != 'r') in __fmodeflags()
18 if (*mode == 'w') in __fmodeflags()
20 if (*mode == 'a') in __fmodeflags()
A D__fdopen.c9 FILE* __fdopen(int fd, const char* mode) { in __fdopen() argument
13 if (!strchr("rwa", *mode)) { in __fdopen()
32 if (!strchr(mode, '+')) in __fdopen()
33 f->flags = (*mode == 'r') ? F_NOWR : F_NORD; in __fdopen()
36 if (strchr(mode, 'e')) in __fdopen()
40 if (*mode == 'a') { in __fdopen()
A Dfopen.c7 FILE* fopen(const char* restrict filename, const char* restrict mode) { in fopen() argument
13 if (!strchr("rwa", *mode)) { in fopen()
19 flags = __fmodeflags(mode); in fopen()
27 f = __fdopen(fd, mode); in fopen()
A Dfmemopen.c9 int mode; member
56 if (c->mode == 'a') in mwrite()
77 FILE* fmemopen(void* restrict buf, size_t size, const char* restrict mode) { in fmemopen() argument
80 int plus = !!strchr(mode, '+'); in fmemopen()
82 if (!size || !strchr("rwa", *mode)) { in fmemopen()
105 c->mode = *mode; in fmemopen()
108 f->flags = (*mode == 'r') ? F_NOWR : F_NORD; in fmemopen()
109 if (*mode == 'r') in fmemopen()
111 else if (*mode == 'a') in fmemopen()
A Dpopen.c9 FILE* popen(const char* cmd, const char* mode) { in popen() argument
15 if (*mode == 'r') { in popen()
17 } else if (*mode == 'w') { in popen()
26 f = fdopen(p[op], mode); in popen()
56 if (!strchr(mode, 'e')) in popen()
A Dfreopen.c13 FILE* freopen(const char* restrict filename, const char* restrict mode, FILE* restrict f) { in freopen() argument
14 int fl = __fmodeflags(mode); in freopen()
28 f2 = fopen(filename, mode); in freopen()
A D__towrite.c4 f->mode |= f->mode - 1; in __towrite()
A D__toread.c4 f->mode |= f->mode - 1; in __toread()
A Dfread.c14 f->mode |= f->mode - 1; in fread()
A Dfgets.c15 f->mode |= f->mode - 1; in fgets()
/third_party/ulib/musl/include/sys/
A Dstat.h44 #define S_ISDIR(mode) (((mode)&S_IFMT) == S_IFDIR) argument
45 #define S_ISCHR(mode) (((mode)&S_IFMT) == S_IFCHR) argument
46 #define S_ISBLK(mode) (((mode)&S_IFMT) == S_IFBLK) argument
47 #define S_ISREG(mode) (((mode)&S_IFMT) == S_IFREG) argument
48 #define S_ISFIFO(mode) (((mode)&S_IFMT) == S_IFIFO) argument
49 #define S_ISLNK(mode) (((mode)&S_IFMT) == S_IFLNK) argument
50 #define S_ISSOCK(mode) (((mode)&S_IFMT) == S_IFSOCK) argument
/third_party/ulib/backtrace/
A Dinstall-sh85 mode=0755
144 -m) mode=$2
145 case $mode in
148 echo "$0: invalid mode: $mode" >&2
219 case $mode in
230 cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
237 cp_umask=$mode$u_plus_rw;;
336 mkdir_mode=-m$mode
449 test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
471 { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
/third_party/ulib/musl/src/process/
A Dposix_spawn_file_actions_addopen.c8 const char* restrict path, int flags, mode_t mode) { in posix_spawn_file_actions_addopen() argument
15 op->mode = mode; in posix_spawn_file_actions_addopen()
A Dfdop.h12 mode_t mode; member
/third_party/uapp/dash/src/
A Djobs.c144 switch (mode) { in set_curjob()
348 int mode; in fgcmd() local
357 if (mode == FORK_BG) { in fgcmd()
391 if (mode == FORK_FG) in restartjob()
472 if (mode & SHOW_PID) in showjob()
522 int mode, m; in jobscmd() local
525 mode = 0; in jobscmd()
528 mode = SHOW_PID; in jobscmd()
530 mode = SHOW_PGID; in jobscmd()
539 showjobs(out, mode); in jobscmd()
[all …]
/third_party/ulib/uboringssl/include/openssl/
A Dthread.h124 void (*func)(int mode, int lock_num, const char *file, int line));
131 OPENSSL_EXPORT void (*CRYPTO_get_locking_callback(void))(int mode, int lock_num,
167 int mode, struct CRYPTO_dynlock_value *l, const char *file, int line));
180 int mode, struct CRYPTO_dynlock_value *l, const char *file, int line);
/third_party/ulib/musl/src/stat/
A Dlchmod.c5 int lchmod(const char* path, mode_t mode) { in lchmod() argument
6 return fchmodat(AT_FDCWD, path, mode, AT_SYMLINK_NOFOLLOW); in lchmod()
A Dmkfifoat.c3 int mkfifoat(int fd, const char* path, mode_t mode) { in mkfifoat() argument
4 return mknodat(fd, path, mode | S_IFIFO, 0); in mkfifoat()
A Dmknodat.c4 int mknodat(int fd, const char* path, mode_t mode, dev_t dev) { in mknodat() argument
/third_party/ulib/musl/src/fcntl/
A Dcreat.c3 int creat(const char* path, mode_t mode) { in creat() argument
4 return open(path, O_CREAT | O_WRONLY | O_TRUNC, mode); in creat()
/third_party/uapp/dash/src/bltin/
A Dtest.c390 filstat(char *nm, enum token mode) in filstat() argument
394 if (mode == FILSYM ? lstat(nm, &s) : stat(nm, &s)) in filstat()
397 switch (mode) { in filstat()
515 static int test_file_access(const char *path, int mode) in test_file_access() argument
520 return !faccessat(AT_FDCWD, path, mode, AT_EACCESS); in test_file_access()
529 test_st_mode(const struct stat *st, int mode) in test_st_mode() argument
535 if (mode != X_OK) in test_st_mode()
540 mode = S_IXUSR | S_IXGRP | S_IXOTH; in test_st_mode()
542 mode <<= 6; in test_st_mode()
544 mode <<= 3; in test_st_mode()
[all …]
/third_party/ulib/musl/src/mman/
A Dshm_open.c28 int shm_open(const char* name, int flag, mode_t mode) { in shm_open() argument
32 return open(name, flag | O_NOFOLLOW | O_CLOEXEC | O_NONBLOCK, mode); in shm_open()
/third_party/ulib/musl/stubs/
A Diostubs.c170 static int stub_mkdir(const char* path, mode_t mode) { in stub_mkdir() argument
177 static int stub_mkdirat(int fd, const char* path, mode_t mode) { in stub_mkdirat() argument
334 static int stub_access(const char* path, int mode) { in stub_access() argument
348 static int stub_chmod(const char* path, mode_t mode) { in stub_chmod() argument
355 static int stub_fchmod(int fd, mode_t mode) { in stub_fchmod() argument
362 static int stub_fchmodat(int fd, const char* path, mode_t mode, int flag) { in stub_fchmodat() argument
432 static int stub_mkfifo(const char* path, mode_t mode) { in stub_mkfifo() argument
439 static int stub_mknod(const char* path, mode_t mode, dev_t dev) { in stub_mknod() argument
/third_party/ulib/musl/include/zircon/
A Ddlfcn.h18 void* dlopen_vmo(zx_handle_t vmo, int mode);

Completed in 747 milliseconds

12