- t2ex
- bsd_source/lib/libc/src_bsd/stdio/fflush.c - 3.1KB - 97 lines
47: if ((fp->_flags & (__SWR | __SRW)) == 0) {
48: __sseterr(fp, EBADF);
49: r = EOF;
- bsd_source/lib/libc/src_bsd/stdio/fgets.c - 3.9KB - 105 lines
52: if (n <= 0) { /* sanity check */
53: __sseterr(fp, EINVAL);
54: return (NULL);
- bsd_source/lib/libc/src_bsd/stdio/fseek.c - 8.9KB - 261 lines
64: if ((seekfn = fp->_seek) == NULL || isatty(__sfileno(fp))) {
65: __sseterr(fp, ESPIPE); /* historic practice */
66: return (EOF);
- More results from fseek.c
- bsd_source/lib/libc/src_bsd/stdio/ftell.c - 3.5KB - 101 lines
46: if (fp->_seek == NULL) {
47: __sseterr(fp, ESPIPE); /* historic practice */
48: pos = -1;
- bsd_source/lib/libc/src_bsd/stdio/fvwrite.c - 8.5KB - 204 lines
60: if (cantwrite(fp)) {
61: __sseterr(fp, EBADF);
62: return (EOF);
- bsd_source/lib/libc/src_bsd/stdio/putc.c - 2.3KB - 68 lines
46: if (cantwrite(fp)) {
47: __sseterr(fp, EBADF);
48: return (EOF);
- bsd_source/lib/libc/src_bsd/stdio/refill.c - 4.7KB - 128 lines
67: if ((fp->_flags & __SRW) == 0) {
68: __sseterr(fp, EBADF);
69: fp->_flags |= __SERR;
- bsd_source/lib/libc/src_bsd/stdio/stdio.c - 3.3KB - 92 lines
53: else
54: {fp->_flags &= ~__SOFF; __sseterr(fp, ret); ret = -1; } /* paranoia */
55: return (ret);
- More results from stdio.c
- bsd_source/lib/libc/src_bsd/stdio/wbuf.c - 3.4KB - 84 lines
57: if (cantwrite(fp)) {
58: __sseterr(fp, EBADF);
59: return (EOF);