Searched refs:mode (Results 1 - 25 of 70) sorted by relevance

123

/bionic/libc/upstream-openbsd/lib/libc/stdio/
H A Dfwide.c37 fwide(FILE *fp, int mode) argument
43 * for mode value.
47 if (mode > 0)
48 mode = 1;
49 else if (mode < 0)
50 mode = -1;
57 if (wcio->wcio_mode == 0 && mode != 0)
58 wcio->wcio_mode = mode;
60 mode = wcio->wcio_mode;
63 return mode;
[all...]
H A Dflags.c41 * Return the (stdio) flags for a given mode. Store the flags
46 __sflags(const char *mode, int *optr) argument
50 switch (*mode++) {
70 default: /* illegal mode */
75 while (*mode != '\0')
76 switch (*mode++) {
92 * Lots of software passes other extension mode
H A Dsetvbuf.c43 setvbuf(FILE *fp, char *buf, int mode, size_t size) argument
54 if (mode != _IONBF)
55 if ((mode != _IOFBF && mode != _IOLBF) || (int)size < 0)
76 /* If setting unbuffered mode, skip all the hard work. */
77 if (mode == _IONBF)
136 if (mode == _IOLBF)
/bionic/libc/bionic/
H A D__umask_chk.cpp40 * Validate that umask is called with sane mode.
45 extern "C" mode_t __umask_chk(mode_t mode) { argument
46 if (__predict_false((mode & 0777) != mode)) {
50 return umask(mode);
H A Dfaccessat.cpp35 int faccessat(int dirfd, const char* pathname, int mode, int flags) { argument
36 // "The mode specifies the accessibility check(s) to be performed,
39 if ((mode != F_OK) && ((mode & ~(R_OK | W_OK | X_OK)) != 0) &&
40 ((mode & (R_OK | W_OK | X_OK)) == 0)) {
58 return ___faccessat(dirfd, pathname, mode);
H A Daccess.cpp32 int access(const char* path, int mode) { argument
33 return faccessat(AT_FDCWD, path, mode, 0);
H A Dreboot.cpp34 int reboot(int mode) { argument
35 return __reboot(LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2, mode, NULL);
H A Dmkfifo.cpp33 int mkfifo(const char* path, mode_t mode) { argument
34 return mkfifoat(AT_FDCWD, path, mode);
37 int mkfifoat(int fd, const char* path, mode_t mode) { argument
38 return mknodat(fd, path, (mode & ~S_IFMT) | S_IFIFO, 0);
H A Dchmod.cpp33 int chmod(const char* path, mode_t mode) { argument
34 return fchmodat(AT_FDCWD, path, mode, 0);
H A Dmkdir.cpp33 int mkdir(const char* path, mode_t mode) { argument
34 return mkdirat(AT_FDCWD, path, mode);
H A Dmknod.cpp34 int mknod(const char* path, mode_t mode, dev_t dev) { argument
35 return mknodat(AT_FDCWD, path, mode, dev);
H A Dopen.cpp46 int creat(const char* pathname, mode_t mode) { argument
47 return open(pathname, O_CREAT | O_TRUNC | O_WRONLY, mode);
52 mode_t mode = 0; local
57 mode = static_cast<mode_t>(va_arg(args, int));
61 return __openat(AT_FDCWD, pathname, force_O_LARGEFILE(flags), mode);
67 __fortify_chk_fail("open(O_CREAT): called without specifying a mode", 0);
74 mode_t mode = 0; local
79 mode = static_cast<mode_t>(va_arg(args, int));
83 return __openat(fd, pathname, force_O_LARGEFILE(flags), mode);
89 __fortify_chk_fail("openat(O_CREAT): called without specifying a mode",
[all...]
H A Dfchmod.cpp38 int fchmod(int fd, mode_t mode) { argument
40 int result = ___fchmod(fd, mode);
63 result = chmod(buf, mode);
65 // Linux does not support changing the mode of a symlink.
H A Dfchmodat.cpp39 int fchmodat(int dirfd, const char* pathname, mode_t mode, int flags) { argument
56 // doesn't support setting the mode of a symbolic link.
60 int result = fchmod(fd, mode);
66 return ___fchmodat(dirfd, pathname, mode);
/bionic/libc/kernel/uapi/linux/netfilter/
H A Dxt_CONNSECMARK.h29 __u8 mode; member in struct:xt_connsecmark_target_info
H A Dxt_SECMARK.h26 __u8 mode; member in struct:xt_secmark_target_info
H A Dxt_connmark.h31 __u8 mode; member in struct:xt_connmark_tginfo1
H A Dxt_hashlimit.h37 __u32 mode; member in struct:hashlimit_cfg
60 __u32 mode; member in struct:hashlimit_cfg1
/bionic/libc/kernel/uapi/linux/netfilter_ipv4/
H A Dipt_ttl.h31 __u8 mode; member in struct:ipt_ttl_info
H A Dipt_TTL.h31 __u8 mode; member in struct:ipt_TTL_info
/bionic/libc/kernel/uapi/linux/netfilter_ipv6/
H A Dip6t_hl.h31 __u8 mode; member in struct:ip6t_hl_info
H A Dip6t_HL.h31 __u8 mode; member in struct:ip6t_HL_info
/bionic/libc/kernel/uapi/asm-generic/
H A Dipcbuf.h29 __kernel_mode_t mode; member in struct:ipc64_perm
/bionic/libc/upstream-openbsd/lib/libc/gdtoa/
H A Dldtoa.c49 __ldtoa(long double *ld, int mode, int ndigits, int *decpt, int *sign, argument
104 ret = gdtoa(&fpi, be, vbits, &kind, mode, ndigits, decpt, rve);
113 __ldtoa(long double *ld, int mode, int ndigits, int *decpt, int *sign, argument
118 ret = dtoa((double)*ld, mode, ndigits, decpt, sign, rve);
/bionic/libc/kernel/uapi/linux/hsi/
H A Dhsi_char.h46 uint32_t mode; member in struct:hsc_rx_config
52 uint32_t mode; member in struct:hsc_tx_config

Completed in 5841 milliseconds

123