Home
last modified time | relevance | path

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

123456

/picolibc-3.7.0-3.6.0/newlib/libc/tinystdio/
Dvfprintf.c141 #define SKIP_FLOAT_ARG(flags, ap) do { \ argument
142 if ((flags & (FL_LONG | FL_REPD_TYPE)) == (FL_LONG | FL_REPD_TYPE)) \
149 #define SKIP_FLOAT_ARG(flags, ap) (void) va_arg(ap, uint32_t) argument
152 #define SKIP_FLOAT_ARG(flags, ap) (void) va_arg(ap, double) argument
160 #define arg_to_t(ap, flags, _s_, _result_) \ argument
161 if ((flags) & FL_LONG) { \
162 if ((flags) & FL_REPD_TYPE) \
168 if ((flags) & FL_SHORT) { \
169 if ((flags) & FL_REPD_TYPE) \
179 #define arg_to_t(ap, flags, _s_, _result_) \ argument
[all …]
Dvfscanf.c87 putval (void *addr, int_scanf_t val, uint16_t flags) in putval() argument
90 if (flags & FL_CHAR) in putval()
93 else if (flags & FL_LONGLONG) in putval()
96 else if (flags & FL_LONG) in putval()
98 else if (flags & FL_SHORT) in putval()
106 conv_int (FILE *stream, int *lenp, width_t width, void *addr, uint16_t flags, unsigned int base) in conv_int() argument
115 flags |= FL_MINUS; in conv_int()
129 flags |= FL_ANY; in conv_int()
153 flags |= FL_ANY; in conv_int()
157 if (!(flags & FL_ANY)) in conv_int()
[all …]
Dstrtoi.h57 unsigned char flags = 0; in strtoi() local
68 flags = FLAG_NEG; in strtoi()
93 strtoi_utype ucutoff = (strtoi_utype) strtoi_max + flags; in strtoi()
119 flags |= FLAG_OFLOW; in strtoi()
123 flags |= FLAG_OFLOW; in strtoi()
135 if (flags & FLAG_NEG) in strtoi()
138 if (flags & FLAG_OFLOW) { in strtoi()
Dftoa_engine.c92 uint8_t flags = 0; in __ftoa_engine() local
109 flags = DTOA_MINUS; in __ftoa_engine()
120 flags |= DTOA_ZERO; in __ftoa_engine()
125 flags |= DTOA_INF; in __ftoa_engine()
127 flags |= DTOA_NAN; in __ftoa_engine()
246 flags |= DTOA_CARRY; in __ftoa_engine()
251 ftoa->flags = flags; in __ftoa_engine()
Dconv_flt.c96 # define CHECK_LONG() (flags & FL_LONG)
97 # define CHECK_LONG_LONG() (flags & FL_LONGLONG)
99 # define CHECK_LONG() (flags & (FL_LONG|FL_LONGLONG))
196 conv_flt (FLT_STREAM *stream, int *lenp, width_t width, void *addr, uint16_t flags) in conv_flt() argument
210 flags |= FL_MINUS; in conv_flt()
290 if ((flags & FL_FHEX) && (c = TOLOWER(i) - 'a') <= 5) in conv_flt()
297 flags |= FL_ANY; in conv_flt()
298 if (flags & FL_OVFL) { in conv_flt()
300 if (!(flags & FL_DOT)) in conv_flt()
303 if (flags & FL_DOT) in conv_flt()
[all …]
Ddtoa_engine.c72 uint8_t flags = 0; in __dtoa_engine() local
75 flags |= DTOA_MINUS; in __dtoa_engine()
78 flags |= DTOA_NAN; in __dtoa_engine()
80 flags |= DTOA_INF; in __dtoa_engine()
84 flags |= DTOA_ZERO; in __dtoa_engine()
220 dtoa->flags = flags; in __dtoa_engine()
Dmktemp.c99 int flags) in _gettemp() argument
134 fd = open (path, flags | O_CREAT | O_EXCL | O_RDWR, in _gettemp()
196 mkostemps(char *template, int suffixlen, int flags) in mkostemps() argument
200 flags &= (O_APPEND | O_CLOEXEC | O_SYNC | O_BINARY | O_TEXT); in mkostemps()
201 return (_gettemp (template, suffixlen, &fd, flags) ? fd : -1); in mkostemps()
Dfwide.c42 stream->flags = (stream->flags & ~__SWIDE) | ((mode > 0) ? __SWIDE : 0); in fwide()
43 return (stream->flags & __SWIDE) ? 1 : -1; in fwide()
/picolibc-3.7.0-3.6.0/newlib/libc/posix/
Dfnmatch.c57 fnmatch(const char *pattern, const char *string, int flags) in fnmatch() argument
66 if ((flags & FNM_LEADING_DIR) && *string == '/') in fnmatch()
72 if (*string == '/' && (flags & FNM_PATHNAME)) in fnmatch()
74 if (*string == '.' && (flags & FNM_PERIOD) && in fnmatch()
76 ((flags & FNM_PATHNAME) && *(string - 1) == '/'))) in fnmatch()
86 if (*string == '.' && (flags & FNM_PERIOD) && in fnmatch()
88 ((flags & FNM_PATHNAME) && *(string - 1) == '/'))) in fnmatch()
93 if (flags & FNM_PATHNAME) in fnmatch()
94 return ((flags & FNM_LEADING_DIR) || in fnmatch()
99 else if (c == '/' && flags & FNM_PATHNAME) { in fnmatch()
[all …]
Dnftw.c49 …(const char *, const struct stat *, int, struct FTW *), int fd_limit, int flags, struct history *h) in do_nftw() argument
58 if ((flags & FTW_PHYS) ? lstat(path, &st) : stat(path, &st) < 0) { in do_nftw()
59 if (!(flags & FTW_PHYS) && errno==ENOENT && !lstat(path, &st)) in do_nftw()
65 else if (flags & FTW_DEPTH) type = FTW_DP; in do_nftw()
68 if (flags & FTW_PHYS) type = FTW_SL; in do_nftw()
74 if ((flags & FTW_MOUNT) && h && st.st_dev != h->dev) in do_nftw()
93 if (!(flags & FTW_DEPTH) && (r=fn(path, &st, type, &lev))) in do_nftw()
116 if ((r=do_nftw(path, fn, fd_limit-1, flags, &new))) { in do_nftw()
128 if ((flags & FTW_DEPTH) && (r=fn(path, &st, type, &lev))) in do_nftw()
134 …ar *path, int (*fn)(const char *, const struct stat *, int, struct FTW *), int fd_limit, int flags) in nftw() argument
[all …]
/picolibc-3.7.0-3.6.0/semihost/machine/m68k/
Dm68k_open.c45 static int gdb_flags(int flags) { in gdb_flags() argument
48 gdb = flags & 3; in gdb_flags()
49 if (flags & O_RDWR) in gdb_flags()
51 if (flags & O_APPEND) in gdb_flags()
53 if (flags & O_CREAT) in gdb_flags()
55 if (flags & O_TRUNC) in gdb_flags()
57 if (flags & O_EXCL) in gdb_flags()
63 open(const char *pathname, int flags, ...) in open() argument
67 va_start(ap,flags); in open()
72 gdb_flags(flags), mode); in open()
/picolibc-3.7.0-3.6.0/semihost/machine/nios2/
Dnios2_open.c45 static int gdb_flags(int flags) { in gdb_flags() argument
48 gdb = flags & 3; in gdb_flags()
49 if (flags & O_RDWR) in gdb_flags()
51 if (flags & O_APPEND) in gdb_flags()
53 if (flags & O_CREAT) in gdb_flags()
55 if (flags & O_TRUNC) in gdb_flags()
57 if (flags & O_EXCL) in gdb_flags()
63 open(const char *pathname, int flags, ...) in open() argument
67 va_start(ap,flags); in open()
72 gdb_flags(flags), mode); in open()
/picolibc-3.7.0-3.6.0/newlib/libc/stdio/
Dvfscanf.c387 register int flags; /* flags as defined above */ in _SVFSCANF() local
612 flags = 0; in _SVFSCANF()
644 if ((flags & (CHAR | SHORT | LONG | LONGDBL | SUPPRESS | MALLOC)) in _SVFSCANF()
647 flags |= SUPPRESS; in _SVFSCANF()
650 if (flags & (CHAR | SHORT | LONG | LONGDBL)) in _SVFSCANF()
656 flags |= LONGDBL; in _SVFSCANF()
660 flags |= LONG; in _SVFSCANF()
663 if (flags & (CHAR | SHORT | LONG | LONGDBL)) in _SVFSCANF()
665 flags |= LONGDBL; in _SVFSCANF()
668 if (flags & (CHAR | SHORT | LONG | LONGDBL)) in _SVFSCANF()
[all …]
Dvfwscanf.c291 register int flags; /* flags as defined above */ in _SVFWSCANF() local
522 flags = 0; in _SVFWSCANF()
551 if ((flags & (CHAR | SHORT | LONG | LONGDBL | SUPPRESS | MALLOC)) in _SVFWSCANF()
554 flags |= SUPPRESS; in _SVFWSCANF()
557 if (flags & (CHAR | SHORT | LONG | LONGDBL)) in _SVFWSCANF()
563 flags |= LONGDBL; in _SVFWSCANF()
567 flags |= LONG; in _SVFWSCANF()
570 if (flags & (CHAR | SHORT | LONG | LONGDBL)) in _SVFWSCANF()
572 flags |= LONGDBL; in _SVFWSCANF()
576 if (flags & (CHAR | SHORT | LONG | LONGDBL)) in _SVFWSCANF()
[all …]
Dnano-vfscanf_float.c67 pdata->flags |= SIGNOK | NDIGITS | DPTOK | EXPOK; in _scanf_float()
78 if (pdata->flags & NDIGITS) in _scanf_float()
80 pdata->flags &= ~SIGNOK; in _scanf_float()
101 pdata->flags &= ~(SIGNOK | NDIGITS); in _scanf_float()
108 if (pdata->flags & SIGNOK) in _scanf_float()
110 pdata->flags &= ~SIGNOK; in _scanf_float()
117 && (pdata->flags & (NDIGITS | DPTOK | EXPOK)) == in _scanf_float()
120 pdata->flags &= ~(SIGNOK | DPTOK | EXPOK | NDIGITS); in _scanf_float()
146 && (pdata->flags & (NDIGITS | DPTOK | EXPOK)) == in _scanf_float()
149 pdata->flags &= ~(SIGNOK | DPTOK | EXPOK | NDIGITS); in _scanf_float()
[all …]
Dnano-vfprintf_i.c76 if (pdata->flags & HEXPREFIX) in _printf_common()
80 if ((pdata->flags & (LADJUST|ZEROPAD)) == 0) in _printf_common()
88 if (pdata->flags & HEXPREFIX) in _printf_common()
96 if ((pdata->flags & (LADJUST|ZEROPAD)) != ZEROPAD || n < 0) in _printf_common()
129 _uquad = SARG (pdata->flags); in _printf_i()
139 _uquad = UARG (pdata->flags); in _printf_i()
153 pdata->flags |= HEXPREFIX; in _printf_i()
155 pdata->flags |= LONGINT; in _printf_i()
162 _uquad = UARG (pdata->flags); in _printf_i()
164 if (pdata->flags & ALT) in _printf_i()
[all …]
Dvfwprintf.c362 register int flags; /* flags as above */ in VFWPRINTF() local
541 (flags&QUADINT ? GET_ARG (N, ap, quad_t) : \ in VFWPRINTF()
542 flags&LONGINT ? GET_ARG (N, ap, long) : \ in VFWPRINTF()
543 flags&SHORTINT ? (long)(short)GET_ARG (N, ap, int) : \ in VFWPRINTF()
544 flags&CHARINT ? (long)(signed char)GET_ARG (N, ap, int) : \ in VFWPRINTF()
547 (flags&QUADINT ? GET_ARG (N, ap, u_quad_t) : \ in VFWPRINTF()
548 flags&LONGINT ? GET_ARG (N, ap, u_long) : \ in VFWPRINTF()
549 flags&SHORTINT ? (u_long)(u_short)GET_ARG (N, ap, int) : \ in VFWPRINTF()
550 flags&CHARINT ? (u_long)(unsigned char)GET_ARG (N, ap, int) : \ in VFWPRINTF()
554 (flags&LONGINT ? GET_ARG (N, ap, long) : \ in VFWPRINTF()
[all …]
Dvfprintf.c396 register int flags; /* flags as above */ in VFPRINTF() local
558 (flags&QUADINT ? GET_ARG (N, ap, quad_t) : \ in VFPRINTF()
559 flags&LONGINT ? GET_ARG (N, ap, long) : \ in VFPRINTF()
560 flags&SHORTINT ? (long)(short)GET_ARG (N, ap, int) : \ in VFPRINTF()
561 flags&CHARINT ? (long)(signed char)GET_ARG (N, ap, int) : \ in VFPRINTF()
565 (flags&QUADINT ? GET_ARG (N, ap, u_quad_t) : \ in VFPRINTF()
566 flags&LONGINT ? GET_ARG (N, ap, u_long) : \ in VFPRINTF()
567 flags&SHORTINT ? (u_long)(u_short)GET_ARG (N, ap, int) : \ in VFPRINTF()
568 flags&CHARINT ? (u_long)(GET_ARG (N, ap, int) & 0xff) : \ in VFPRINTF()
572 (flags&QUADINT ? GET_ARG (N, ap, u_quad_t) : \ in VFPRINTF()
[all …]
Dnano-vfscanf_i.c59 if ((pdata->flags & SUPPRESS) == 0) in _scanf_chars()
68 if ((pdata->flags & SUPPRESS) == 0) in _scanf_chars()
84 if ((pdata->flags & SUPPRESS) == 0) in _scanf_chars()
122 pdata->flags |= NDIGITS | NZDIGITS | NNZDIGITS; in _scanf_i()
135 pdata->flags |= PFXOK; in _scanf_i()
137 pdata->flags &= ~(NZDIGITS | NDIGITS); in _scanf_i()
141 if ((pdata->flags & (PFXOK | NZDIGITS)) != PFXOK) in _scanf_i()
150 pdata->flags |= NDIGITS; in _scanf_i()
178 else if (n == '0' && (pdata->flags & NNZDIGITS)) in _scanf_i()
188 pdata->flags &= ~(NDIGITS | NNZDIGITS); in _scanf_i()
[all …]
Dnano-vfprintf_float.c53 int flags, char *sign, int *decpt, int ch, int *length,
68 __cvt (struct _reent *data, _PRINTF_FLOAT_TYPE value, int ndigits, int flags, in __cvt() argument
105 if ((ch != 'g' && ch != 'G') || flags & ALT) in __cvt()
189 if (pdata->flags & LONGDBL) in _printf_float()
212 pdata->flags &= ~ZEROPAD; in _printf_float()
224 pdata->flags &= ~ZEROPAD; in _printf_float()
237 pdata->flags |= FPT; in _printf_float()
239 cp = __cvt (data, _fpvalue, pdata->prec, pdata->flags, &softsign, in _printf_float()
256 if (ndig > 1 || pdata->flags & ALT) in _printf_float()
267 if (pdata->prec || pdata->flags & ALT) in _printf_float()
[all …]
Dnano-vfprintf_local.h149 #define SARG(flags) \ argument
150 (flags&LONGINT ? GET_ARG (N, (*ap), long) : \
151 flags&SHORTINT ? (long)(short)GET_ARG (N, (*ap), int) : \
152 flags&CHARINT ? (long)(signed char)GET_ARG (N, (*ap), int) : \
154 #define UARG(flags) \ argument
155 (flags&LONGINT ? GET_ARG (N, (*ap), u_long) : \
156 flags&SHORTINT ? (u_long)(u_short)GET_ARG (N, (*ap), int) : \
157 flags&CHARINT ? (u_long)(unsigned char)GET_ARG (N, (*ap), int) : \
191 int flags; /* Flags. */ member
/picolibc-3.7.0-3.6.0/newlib/libc/machine/riscv/machine/
Dfenv-fp.h129 fexcept_t flags; in fegetexceptflag() local
130 __asm__ volatile("frflags %0" : "=r"(flags)); in fegetexceptflag()
134 *flagp = flags & excepts; in fegetexceptflag()
328 fexcept_t flags = *flagp & FE_ALL_EXCEPT; in fesetexceptflag() local
333 __asm__ volatile("csrs fflags, %0" : : "r"(flags & excepts)); in fesetexceptflag()
397 fexcept_t flags; in fetestexcept() local
398 __asm__ volatile("frflags %0" : "=r"(flags)); in fetestexcept()
406 return (flags & excepts); in fetestexcept()
428 fexcept_t flags; in feupdateenv() local
429 __asm__ volatile("frflags %0" : "=r"(flags)); in feupdateenv()
[all …]
/picolibc-3.7.0-3.6.0/test/libc-testsuite/
Dfnmatch.c49 static void printflags(const struct xlat *map, int flags) { in printflags() argument
52 if (! flags) { in printflags()
59 if (map->val && (flags & map->val) == map->val) { in printflags()
62 flags &= ~(map->val); in printflags()
65 if (flags) printf("%sunknown=%#x", sep, flags); in printflags()
74 int flags; member
158 r = fnmatch(tests[i].pattern, tests[i].string, tests[i].flags); in test_fnmatch()
164 printflags(fnmatch_flags, tests[i].flags); in test_fnmatch()
/picolibc-3.7.0-3.6.0/newlib/libc/search/
Dhash_buf.c182 if (hashp->nbufs || (bp->flags & BUF_PIN)) { in newbuf()
205 if ((bp->addr != 0) || (bp->flags & BUF_BUCKET)) { in newbuf()
213 if ((bp->flags & BUF_MOD) && __put_page(hashp, bp->page, in newbuf()
214 bp->addr, (int)IS_BUCKET(bp->flags), 0)) in newbuf()
224 if (IS_BUCKET(bp->flags)) { in newbuf()
232 ((bp->flags & BUF_MOD) || in newbuf()
249 if (IS_BUCKET(xbp->flags) || in newbuf()
257 if ((xbp->flags & BUF_MOD) && __put_page(hashp, in newbuf()
261 xbp->flags = 0; in newbuf()
286 bp->flags = 0; in newbuf()
[all …]
/picolibc-3.7.0-3.6.0/semihost/
Dopen.c55 open(const char *pathname, int flags, ...) in open() argument
59 switch (flags & (O_RDONLY|O_WRONLY|O_RDWR)) { in open()
64 if (flags & O_TRUNC) in open()
70 if (flags & O_TRUNC) in open()

123456