Home
last modified time | relevance | path

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

1234

/bionic/libc/upstream-openbsd/lib/libc/stdio/
Dfwide.c37 fwide(FILE *fp, int mode) in fwide() argument
47 if (mode > 0) in fwide()
48 mode = 1; in fwide()
49 else if (mode < 0) in fwide()
50 mode = -1; in fwide()
59 if (wcio->wcio_mode == 0 && mode != 0) in fwide()
60 wcio->wcio_mode = mode; in fwide()
62 mode = wcio->wcio_mode; in fwide()
65 return mode; in fwide()
Dflags.c46 __sflags(const char *mode, int *optr) in __sflags() argument
50 switch (*mode++) { in __sflags()
75 while (*mode != '\0') in __sflags()
76 switch (*mode++) { in __sflags()
Dsetvbuf.c43 setvbuf(FILE *fp, char *buf, int mode, size_t size) in setvbuf() argument
54 if (mode != _IONBF) in setvbuf()
55 if ((mode != _IOFBF && mode != _IOLBF) || (int)size < 0) in setvbuf()
77 if (mode == _IONBF) in setvbuf()
136 if (mode == _IOLBF) in setvbuf()
/bionic/libc/bionic/
Dfaccessat.cpp35 int faccessat(int dirfd, const char* pathname, int mode, int flags) { in faccessat() argument
39 if ((mode != F_OK) && ((mode & ~(R_OK | W_OK | X_OK)) != 0) && in faccessat()
40 ((mode & (R_OK | W_OK | X_OK)) == 0)) { in faccessat()
59 return __faccessat(dirfd, pathname, mode); in faccessat()
Dopen.cpp51 int creat(const char* pathname, mode_t mode) { in creat() argument
52 return open(pathname, O_CREAT | O_TRUNC | O_WRONLY, mode); in creat()
57 mode_t mode = 0; in open() local
62 mode = static_cast<mode_t>(va_arg(args, int)); in open()
66 return FDTRACK_CREATE(__openat(AT_FDCWD, pathname, force_O_LARGEFILE(flags), mode)); in open()
76 mode_t mode = 0; in openat() local
81 mode = static_cast<mode_t>(va_arg(args, int)); in openat()
85 return FDTRACK_CREATE_NAME("openat", __openat(fd, pathname, force_O_LARGEFILE(flags), mode)); in openat()
Dmkfifo.cpp33 int mkfifo(const char* path, mode_t mode) { in mkfifo() argument
34 return mkfifoat(AT_FDCWD, path, mode); in mkfifo()
37 int mkfifoat(int fd, const char* path, mode_t mode) { in mkfifoat() argument
38 return mknodat(fd, path, (mode & ~S_IFMT) | S_IFIFO, 0); in mkfifoat()
Dfchmodat.cpp39 int fchmodat(int dirfd, const char* pathname, mode_t mode, int flags) { in fchmodat() argument
58 return fchmod(fd.get(), mode); in fchmodat()
61 return __fchmodat(dirfd, pathname, mode); in fchmodat()
Dfchmod.cpp40 int fchmod(int fd, mode_t mode) { in fchmod() argument
42 int result = __fchmod(fd, mode); in fchmod()
62 result = chmod(FdPath(fd).c_str(), mode); in fchmod()
Diconv.cpp80 static bool __parse_encoding(const char* s, Encoding* encoding, Mode* mode) { in __parse_encoding() argument
83 if (!mode) return false; in __parse_encoding()
85 *mode = IGNORE; in __parse_encoding()
87 *mode = TRANSLIT; in __parse_encoding()
115 Mode mode; member
117 __iconv_t() : mode(ERROR) { in __iconv_t()
210 switch (mode) { in GetNext()
269 if (mode == IGNORE) { in Convert()
274 } else if (mode == TRANSLIT) { in Convert()
332 if (mode == TRANSLIT) return replacement_count; in Done()
[all …]
Daccess.cpp32 int access(const char* path, int mode) { in access() argument
33 return faccessat(AT_FDCWD, path, mode, 0); in access()
Dmkdir.cpp33 int mkdir(const char* path, mode_t mode) { in mkdir() argument
34 return mkdirat(AT_FDCWD, path, mode); in mkdir()
Dreboot.cpp34 int reboot(int mode) { in reboot() argument
35 return __reboot(LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2, mode, nullptr); in reboot()
Dchmod.cpp33 int chmod(const char* path, mode_t mode) { in chmod() argument
34 return fchmodat(AT_FDCWD, path, mode, 0); in chmod()
Dmknod.cpp34 int mknod(const char* path, mode_t mode, dev_t dev) { in mknod() argument
35 return mknodat(AT_FDCWD, path, mode, dev); in mknod()
/bionic/libc/include/bits/fortify/
Dstat.h32 mode_t __umask_real(mode_t mode) __RENAME(umask);
38 mode_t umask(mode_t mode) in umask() argument
41 __clang_error_if(mode & ~0777, "'umask' called with invalid mode") { in umask()
43 return __umask_chk(mode); in umask()
45 return __umask_real(mode); in umask()
/bionic/benchmarks/spawn/
Dbench_cxa_atexit.cpp55 std::string mode = argv[2]; in main() local
56 if (mode != "_Exit" && mode != "exit") usage(); in main()
62 if (mode == "_Exit") { in main()
/bionic/libc/upstream-openbsd/lib/libc/gdtoa/
Dldtoa.c47 __ldtoa(long double *ld, int mode, int ndigits, int *decpt, int *sign, in __ldtoa() argument
102 ret = gdtoa(&fpi, be, vbits, &kind, mode, ndigits, decpt, rve); in __ldtoa()
112 __ldtoa(long double *ld, int mode, int ndigits, int *decpt, int *sign, in __ldtoa() argument
117 ret = dtoa((double)*ld, mode, ndigits, decpt, sign, rve); in __ldtoa()
Ddtoa.c78 (d0, mode, ndigits, decpt, sign, rve) in dtoa() argument
79 double d0; int mode, ndigits, *decpt, *sign; char **rve; in dtoa()
81 (double d0, int mode, int ndigits, int *decpt, int *sign, char **rve)
287 if (mode < 0 || mode > 9)
288 mode = 0;
298 if (mode > 5) {
299 mode -= 4;
305 switch(mode) {
334 if (mode > 1 && Rounding != 1)
470 if (mode > 1)
[all …]
Dgdtoa.c116 (fpi, be, bits, kindp, mode, ndigits, decpt, rve) in gdtoa() argument
118 int *kindp, mode, ndigits, *decpt; char **rve;
120 (FPI *fpi, int be, ULong *bits, int *kindp, int mode, int ndigits, int *decpt, char **rve)
284 if (mode < 0 || mode > 9)
285 mode = 0;
287 if (mode > 5) {
288 mode -= 4;
296 switch(mode) {
513 if (be - i++ < fpi->emin && mode != 3 && mode != 5) {
516 if (mode >= 2 && ilim > 0 && ilim < i)
[all …]
/bionic/libc/kernel/uapi/linux/netfilter/
Dxt_connmark.h33 __u8 mode; member
37 __u8 shift_dir, shift_bits, mode; member
Dxt_policy.h37 __u8 saddr : 1, daddr : 1, proto : 1, mode : 1, spi : 1, reqid : 1; member
55 __u8 mode; member
/bionic/libc/stdio/
Dfmemopen.cpp113 FILE* fmemopen(void* buf, size_t capacity, const char* mode) { in fmemopen() argument
115 if (__sflags(mode, &flags) == 0) { in fmemopen()
142 if (mode[0] == 'a') { in fmemopen()
146 } else if (mode[0] == 'r') { in fmemopen()
149 } else if (mode[0] == 'w') { in fmemopen()
/bionic/tools/versioner/tests/fortify_inline/headers/
Dfcntl.h20 int open(const char* name, int flags, mode_t mode) in open() argument
24 return open_real(name, flags, mode); in open()
/bionic/libc/kernel/uapi/linux/
Duserfaultfd.h103 __u64 mode; member
112 __u64 mode; member
118 __u64 mode; member
125 __u64 mode; member
/bionic/tests/headers/posix/
Dsys_ipc_h.c40 STRUCT_MEMBER(struct ipc_perm, unsigned short, mode); in sys_ipc_h()
42 STRUCT_MEMBER(struct ipc_perm, mode_t, mode); in sys_ipc_h()

1234