Home
last modified time | relevance | path

Searched refs:EOF (Results 1 – 25 of 131) sorted by relevance

123456

/haiku/src/system/libroot/posix/glibc/stdio-common/
H A Dvfscanf.c103 # undef EOF
104 # define EOF WEOF macro
106 # define ungetc(c, s) ((void) ((int) c == EOF \
111 # define inchar() (c == EOF ? EOF \
113 (void) (c != EOF && ++read_in), c))
121 return EOF
146 return done ?: EOF; \
152 return EOF; \
158 CHECK_FILE (s, EOF); \
162 return EOF; \
[all …]
/haiku/src/libs/stdc++/legacy/
H A Dparsestream.cc46 if (c == EOF) in pbackfail()
48 if (seekoff(-1, ios::cur) == EOF) in pbackfail()
49 return EOF; in pbackfail()
66 return EOF; in seekoff()
69 return EOF; in seekoff()
71 return EOF; in seekoff()
97 return EOF; in underflow()
161 if (ch == EOF) in underflow()
177 if (ch != EOF || _line_length > 0) in underflow()
180 return ptr == cur_pos ? EOF : cur_pos[0]; in underflow()
[all …]
H A Dstdiostream.cc78 if (ch == EOF) in sys_read()
116 return EOF; in sync()
119 return EOF; in sync()
125 if (filebuf::overflow(c) == EOF) in overflow()
126 return EOF; in overflow()
127 if (c != EOF) in overflow()
H A Disgetline.cc44 if (ch != EOF) in getline()
46 if (ch == EOF) in getline()
57 ch = EOF; in getline()
79 if (_gcount == 0 && ch == EOF) in get()
105 if (ch != EOF) in _sb_readline()
109 if (ch != EOF && ch != terminator) { in _sb_readline()
H A Diostream.cc66 if (ch == EOF || !isspace(ch)) in skip_ws()
77 if (ch == EOF) { in get()
96 return EOF; in peek()
100 if (ch == EOF) in peek()
130 if (delim == EOF) { in ignore()
141 if (ch == EOF) { in ignore()
177 return EOF; in sync()
181 return EOF; in sync()
190 if (pos == streampos(EOF)) in seekg()
198 if (pos == streampos(EOF)) in seekg()
[all …]
H A Dindstream.cc59 if (c == EOF) in overflow()
86 if (pbuf && ret_val != EOF) in seekoff()
94 int ret_val = EOF; in seekpos()
103 if (pbuf && ret_val != EOF) in seekpos()
H A Dstreambuf.cc60 { return EOF; } in underflow()
66 { return EOF; } in overflow()
85 if (more == 0 || __underflow(this) == EOF) in ignore()
103 if (sync() == EOF) in setbuf()
231 return EOF; in seekoff()
299 return EOF; in sys_seek()
325 #define BAD_DELTA EOF
/haiku/src/system/libroot/posix/glibc/libio/
H A Diosetvbuf.c42 CHECK_FILE (fp, EOF);
68 result = EOF;
93 result = EOF;
96 result = _IO_SETBUF (fp, buf, size) == NULL ? EOF : 0;
H A Dioungetc.c36 CHECK_FILE (fp, EOF);
37 if (c == EOF)
38 return EOF;
H A Dgenops.c179 if (_IO_OVERFLOW (fp, EOF) == EOF)
180 return EOF;
272 return EOF; /* FIXME */
330 return EOF; in __underflow()
336 if (_IO_in_put_mode(file) && INTUSE(_IO_switch_to_get_mode)(file) == EOF) in __underflow()
337 return EOF; in __underflow()
350 return EOF; in __underflow()
364 return EOF; in libc_hidden_def()
370 if (_IO_in_put_mode(file) && INTUSE(_IO_switch_to_get_mode)(file) == EOF) in libc_hidden_def()
371 return EOF; in libc_hidden_def()
[all …]
H A Diofsetpos64.c39 CHECK_FILE (fp, EOF);
51 result = EOF;
66 return EOF;
H A Dstrops.c129 int flush_only = c == EOF;
132 return flush_only ? 0 : EOF;
143 return EOF;
154 return EOF;
201 return EOF;
240 new_pos = EOF;
257 return EOF;
278 return EOF;
292 if ((fp->_flags & _IO_NO_WRITES) && c != EOF)
293 return EOF;
H A Diofgetpos64.c40 CHECK_FILE (fp, EOF);
59 return EOF;
69 return EOF;
H A Diofgetpos.c40 CHECK_FILE (fp, EOF);
57 result = EOF;
64 result = EOF;
H A Diofflush_u.c39 CHECK_FILE (fp, EOF);
40 return _IO_SYNC (fp) ? EOF : 0;
H A Diofputs_u.c38 int result = EOF;
39 CHECK_FILE (fp, EOF);
H A Diofputws_u.c38 int result = EOF;
39 CHECK_FILE (fp, EOF);
H A Diofputws.c37 int result = EOF;
38 CHECK_FILE (fp, EOF);
H A Dioputs.c37 int result = EOF; in _IO_puts()
45 && _IO_putc_unlocked('\n', _IO_stdout) != EOF) in _IO_puts()
H A Diofflush.c40 CHECK_FILE (fp, EOF);
43 result = _IO_SYNC (fp) ? EOF : 0;
H A Diofputs.c37 int result = EOF;
39 CHECK_FILE (fp, EOF);
/haiku/src/tools/fs_shell/
H A Dfs_shell_command_unix.cpp38 if (fputs(command, out) == EOF || fputc('\n', out) == EOF in send_external_command()
39 || fflush(out) == EOF) { in send_external_command()
/haiku/src/add-ons/translators/sgi/
H A DSGIImage.cpp926 if (_WriteChar(128 | i) == EOF) in _WriteRLE8()
927 return EOF; in _WriteRLE8()
931 if (_WriteChar(*start) == EOF) in _WriteRLE8()
932 return EOF; in _WriteRLE8()
958 if (_WriteChar(i) == EOF) in _WriteRLE8()
959 return EOF; in _WriteRLE8()
962 if (_WriteChar(repeat) == EOF) in _WriteRLE8()
970 if (_WriteChar(0) == EOF) in _WriteRLE8()
971 return EOF; in _WriteRLE8()
1012 if (_WriteShort(128 | i) == EOF) in _WriteRLE16()
[all …]
/haiku/src/tests/system/benchmarks/
H A Dcompile_bench.sh8 cat << EOF > hello_world.cpp heredoc
18 EOF
/haiku/src/tests/system/libroot/posix/
H A Dgnulib-test-mbsnrtowcs.c185 assert(wctob (buf[0]) == EOF); in main()
186 assert(wctob (buf[1]) == EOF); in main()
221 assert(wctob (wc) == EOF); in main()
250 assert(wctob (buf[0]) == EOF); in main()
251 assert(wctob (buf[1]) == EOF); in main()
306 assert(wctob (buf[0]) == EOF); in main()
307 assert(wctob (buf[1]) == EOF); in main()

123456