Home
last modified time | relevance | path

Searched refs:c (Results 1 – 25 of 29) sorted by relevance

12

/libio/
A Doldfmemopen.c99 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 Dfmemopen.c50 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 DMakefile99 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 Dbug-wsetpos.c34 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 Dtst-mmap2-eofsync.c45 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 Dioungetc.c30 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 Dtst_swscanf.c10 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 Dtst-mmap-eofsync.c39 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 Diogetline.c60 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 Dioungetwc.c31 ungetwc (wint_t c, FILE *fp) in ungetwc() argument
37 if (c == WEOF) in ungetwc()
40 result = _IO_sputbackwc (fp, c); in ungetwc()
A Dfputc.c31 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 Dputc.c24 _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 Dputchar_u.c24 putchar_unlocked (int c) in putchar_unlocked() argument
27 return _IO_putc_unlocked (c, stdout); in putchar_unlocked()
A Dtst-fgetwc.c23 wint_t c; in do_test() local
24 while ((c = fgetwc (stdin)) != WEOF) in do_test()
25 buf[nbuf++] = c; in do_test()
A Dfputc_u.c33 fputc_unlocked (int c, FILE *fp) in fputc_unlocked() argument
36 return _IO_putc_unlocked (c, fp); in fputc_unlocked()
A Dputc_u.c24 __putc_unlocked (int c, FILE *fp) in __putc_unlocked() argument
27 return _IO_putc_unlocked (c, fp); in __putc_unlocked()
A Dputchar.c24 putchar (int c) in putchar() argument
28 result = _IO_putc_unlocked (c, stdout); in putchar()
A Dtst-mmap-fflushsync.c39 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 Dbug-ungetc2.c56 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 Dtst-bz24228.map1 # Hide the symbol from libc.so.6 to switch to the libio/oldfileops.c
A Dobprintf.c39 _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 Dvsnprintf.c30 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 Dvswprintf.c31 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 Dstrops.c81 _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 Dwstrops.c70 _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()

Completed in 43 milliseconds

12