| /libio/ |
| A D | oldfmemopen.c | 99 if (c->pos + s > c->size) in fmemopen_read() 101 if ((size_t) c->pos == c->size) in fmemopen_read() 103 s = c->size - c->pos; in fmemopen_read() 106 memcpy (b, &(c->buffer[c->pos]), s); in fmemopen_read() 109 if ((size_t) c->pos > c->maxpos) in fmemopen_read() 110 c->maxpos = c->pos; in fmemopen_read() 139 if ((size_t) c->pos > c->maxpos) in fmemopen_write() 141 c->maxpos = c->pos; in fmemopen_write() 143 c->buffer[c->maxpos] = '\0'; in fmemopen_write() 169 np = (c->binmode ? c->size : c->maxpos) - *p; in fmemopen_seek() [all …]
|
| A D | fmemopen.c | 50 if (c->pos + s > c->maxpos) in fmemopen_read() 52 s = c->maxpos - c->pos; in fmemopen_read() 53 if ((size_t) c->pos > c->maxpos) in fmemopen_read() 57 memcpy (b, &(c->buffer[c->pos]), s); in fmemopen_read() 69 off64_t pos = c->append ? c->maxpos : c->pos; in fmemopen_write() 85 if ((size_t) c->pos > c->maxpos) in fmemopen_write() 87 c->maxpos = c->pos; in fmemopen_write() 88 if (c->maxpos < c->size && addnullc) in fmemopen_write() 89 c->buffer[c->maxpos] = '\0'; in fmemopen_write() 92 c->buffer[c->size-1] = '\0'; in fmemopen_write() [all …]
|
| A D | Makefile | 99 CFLAGS-fputc.c += -fexceptions 100 CFLAGS-fputwc.c += -fexceptions 103 CFLAGS-fseek.c += -fexceptions 105 CFLAGS-fseeko.c += -fexceptions 107 CFLAGS-ftello.c += -fexceptions 108 CFLAGS-fwide.c += -fexceptions 110 CFLAGS-getc.c += -fexceptions 112 CFLAGS-getwc.c += -fexceptions 144 CFLAGS-peekc.c += -fexceptions 145 CFLAGS-putc.c += -fexceptions [all …]
|
| A D | bug-wsetpos.c | 34 wchar_t c; in do_test() local 42 c = fgetwc (fp); assert (c == L'1'); in do_test() 43 c = fgetwc (fp); assert (c == L'2'); in do_test() 58 c = fgetwc (fp); assert (c == L'1'); in do_test() 66 c = fgetwc (fp); in do_test() 67 if (c != L'3') in do_test()
|
| A D | tst-mmap2-eofsync.c | 45 int c; in do_test() local 69 c = fgetc (f); in do_test() 70 if (c == EOF) in do_test() 76 c, feof (f), ferror (f)); in do_test() 80 c = write (temp_fd, pages + pagesize, pagesize); in do_test() 81 if (c == (ssize_t) pagesize) in do_test() 108 c = fgetc (f); in do_test() 109 if (c != 'a') in do_test() 123 c = fgetc (f); in do_test() 124 if (c == EOF) in do_test() [all …]
|
| A D | ioungetc.c | 30 ungetc (int c, FILE *fp) in ungetc() argument 34 if (c == EOF) in ungetc() 37 return _IO_sputbackc (fp, (unsigned char) c); in ungetc() 39 result = _IO_sputbackc (fp, (unsigned char) c); in ungetc()
|
| A D | tst_swscanf.c | 10 int a, b, c; in main() local 19 a = b = c = 0; in main() 20 n = swscanf (in, L"%d + %d is %d", &a, &b, &c); in main() 21 if (n != 3 || a + b != c || c != 42) in main() 23 printf ("*** FAILED, n = %Zu, a = %d, b = %d, c = %d\n", n, a, b, c); in main()
|
| A D | tst-mmap-eofsync.c | 39 int c; in do_test() local 63 c = fgetc (f); in do_test() 64 if (c == EOF) in do_test() 70 c, feof (f), ferror (f)); in do_test() 74 c = write (temp_fd, text2, sizeof text2 - 1); in do_test() 75 if (c == sizeof text2 - 1) in do_test() 79 printf ("wrote %d != %zd (%m)\n", c, sizeof text2 - 1); in do_test()
|
| A D | iogetline.c | 60 int c = __uflow (fp); in libc_hidden_def() local 61 if (c == EOF) in libc_hidden_def() 64 *eof = c; in libc_hidden_def() 67 if (c == delim) in libc_hidden_def() 70 *ptr++ = c; in libc_hidden_def() 72 _IO_sputbackc (fp, c); in libc_hidden_def() 77 *ptr++ = c; in libc_hidden_def()
|
| A D | ioungetwc.c | 31 ungetwc (wint_t c, FILE *fp) in ungetwc() argument 37 if (c == WEOF) in ungetwc() 40 result = _IO_sputbackwc (fp, c); in ungetwc()
|
| A D | fputc.c | 31 fputc (int c, FILE *fp) in fputc() argument 36 return _IO_putc_unlocked (c, fp); in fputc() 38 result = _IO_putc_unlocked (c, fp); in fputc()
|
| A D | putc.c | 24 _IO_putc (int c, FILE *fp) in _IO_putc() argument 29 return _IO_putc_unlocked (c, fp); in _IO_putc() 31 result = _IO_putc_unlocked (c, fp); in _IO_putc()
|
| A D | putchar_u.c | 24 putchar_unlocked (int c) in putchar_unlocked() argument 27 return _IO_putc_unlocked (c, stdout); in putchar_unlocked()
|
| A D | tst-fgetwc.c | 23 wint_t c; in do_test() local 24 while ((c = fgetwc (stdin)) != WEOF) in do_test() 25 buf[nbuf++] = c; in do_test()
|
| A D | fputc_u.c | 33 fputc_unlocked (int c, FILE *fp) in fputc_unlocked() argument 36 return _IO_putc_unlocked (c, fp); in fputc_unlocked()
|
| A D | putc_u.c | 24 __putc_unlocked (int c, FILE *fp) in __putc_unlocked() argument 27 return _IO_putc_unlocked (c, fp); in __putc_unlocked()
|
| A D | putchar.c | 24 putchar (int c) in putchar() argument 28 result = _IO_putc_unlocked (c, stdout); in putchar()
|
| A D | tst-mmap-fflushsync.c | 39 int c; in do_test() local 69 c = write (temp_fd, text2, sizeof text2 - 1); in do_test() 70 if (c == sizeof text2 - 1) in do_test() 74 printf ("wrote %d != %zd (%m)\n", c, sizeof text2 - 1); in do_test()
|
| A D | bug-ungetc2.c | 56 int c = fgetc (fp); in do_test() local 57 if (c != 'h') in do_test() 59 printf ("read %c, not %c\n", c, 'h'); in do_test()
|
| A D | tst-bz24228.map | 1 # Hide the symbol from libc.so.6 to switch to the libio/oldfileops.c
|
| A D | obprintf.c | 39 _IO_obstack_overflow (FILE *fp, int c) in _IO_obstack_overflow() argument 46 assert (c != EOF); in _IO_obstack_overflow() 47 obstack_1grow (obstack, c); in _IO_obstack_overflow() 57 return c; in _IO_obstack_overflow()
|
| A D | vsnprintf.c | 30 static int _IO_strn_overflow (FILE *fp, int c) __THROW; 33 _IO_strn_overflow (FILE *fp, int c) in _IO_strn_overflow() argument 63 return c; in _IO_strn_overflow()
|
| A D | vswprintf.c | 31 static wint_t _IO_wstrn_overflow (FILE *fp, wint_t c) __THROW; 34 _IO_wstrn_overflow (FILE *fp, wint_t c) in _IO_wstrn_overflow() argument 62 return c; in _IO_wstrn_overflow()
|
| A D | strops.c | 81 _IO_str_overflow (FILE *fp, int c) in _IO_str_overflow() argument 83 int flush_only = c == EOF; in _IO_str_overflow() 133 *fp->_IO_write_ptr++ = (unsigned char) c; in _IO_str_overflow() 136 return c; in _IO_str_overflow() 335 _IO_str_pbackfail (FILE *fp, int c) in libc_hidden_def() 337 if ((fp->_flags & _IO_NO_WRITES) && c != EOF) in libc_hidden_def() 339 return _IO_default_pbackfail (fp, c); in libc_hidden_def()
|
| A D | wstrops.c | 70 _IO_wstr_overflow (FILE *fp, wint_t c) in _IO_wstr_overflow() argument 72 int flush_only = c == WEOF; in _IO_wstr_overflow() 130 *fp->_wide_data->_IO_write_ptr++ = c; in _IO_wstr_overflow() 133 return c; in _IO_wstr_overflow() 345 _IO_wstr_pbackfail (FILE *fp, wint_t c) in _IO_wstr_pbackfail() argument 347 if ((fp->_flags & _IO_NO_WRITES) && c != WEOF) in _IO_wstr_pbackfail() 349 return _IO_wdefault_pbackfail (fp, c); in _IO_wstr_pbackfail()
|