Searched refs:fp (Results 1 - 25 of 171) sorted by relevance

1234567

/haiku/src/system/libroot/posix/glibc/libio/
H A Dclearerr_u.c23 clearerr_unlocked (fp)
24 FILE *fp;
26 CHECK_FILE (fp, /*nothing*/);
27 _IO_clearerr (fp);
H A Dclearerr.c23 clearerr (fp)
24 FILE *fp;
26 CHECK_FILE (fp, /*nothing*/);
27 _IO_flockfile (fp);
28 _IO_clearerr (fp);
29 _IO_funlockfile (fp);
H A Dfeof_u.c34 feof_unlocked (fp)
35 _IO_FILE* fp;
37 CHECK_FILE (fp, EOF);
38 return _IO_feof_unlocked (fp);
H A Dferror_u.c34 ferror_unlocked (fp)
35 _IO_FILE* fp;
37 CHECK_FILE (fp, EOF);
38 return _IO_ferror_unlocked (fp);
H A Dfputc_u.c34 fputc_unlocked (c, fp)
36 _IO_FILE *fp;
38 CHECK_FILE (fp, EOF);
39 return _IO_putc_unlocked (c, fp);
H A Dputc_u.c25 putc_unlocked (c, fp)
27 _IO_FILE *fp;
29 CHECK_FILE (fp, EOF);
30 return _IO_putc_unlocked (c, fp);
H A Dfputwc.c32 fputwc (wc, fp)
34 _IO_FILE *fp;
37 CHECK_FILE (fp, EOF);
38 _IO_cleanup_region_start ((void (*) __P ((void *))) _IO_funlockfile, fp);
39 _IO_flockfile (fp);
40 if (_IO_fwide (fp, 1) < 0)
43 result = _IO_putwc_unlocked (wc, fp);
44 _IO_funlockfile (fp);
H A Drewind.c32 rewind (fp)
33 _IO_FILE *fp;
35 CHECK_FILE (fp, );
36 _IO_cleanup_region_start ((void (*) __P ((void *))) _IO_funlockfile, fp);
37 _IO_flockfile (fp);
38 _IO_rewind (fp);
39 _IO_clearerr (fp);
40 _IO_funlockfile (fp);
H A Diofflush_u.c32 fflush_unlocked (fp)
33 _IO_FILE *fp;
35 if (fp == NULL)
39 CHECK_FILE (fp, EOF);
40 return _IO_SYNC (fp) ? EOF : 0;
H A Dfputc.c32 fputc (c, fp)
34 _IO_FILE *fp;
37 CHECK_FILE (fp, EOF);
38 _IO_cleanup_region_start ((void (*) __P ((void *))) _IO_funlockfile, fp);
39 _IO_flockfile (fp);
40 result = _IO_putc_unlocked (c, fp);
41 _IO_funlockfile (fp);
H A Dfseek.c32 fseek (fp, offset, whence)
33 _IO_FILE* fp;
38 CHECK_FILE (fp, -1);
39 _IO_cleanup_region_start ((void (*) __P ((void *))) _IO_funlockfile, fp);
40 _IO_flockfile (fp);
41 result = _IO_fseek (fp, offset, whence);
42 _IO_funlockfile (fp);
H A Dfseeko.c32 fseeko (fp, offset, whence)
33 _IO_FILE* fp;
38 CHECK_FILE (fp, -1);
39 _IO_cleanup_region_start ((void (*) __P ((void *))) _IO_funlockfile, fp);
40 _IO_flockfile (fp);
41 result = _IO_fseek (fp, offset, whence);
42 _IO_funlockfile (fp);
H A Dfseeko64.c33 fseeko64 (fp, offset, whence)
34 _IO_FILE* fp;
40 CHECK_FILE (fp, -1);
41 _IO_cleanup_region_start ((void (*) __P ((void *))) _IO_funlockfile, fp);
42 _IO_flockfile (fp);
43 result = _IO_fseek (fp, offset, whence);
44 _IO_funlockfile (fp);
H A Dioungetc.c31 _IO_ungetc (c, fp)
33 _IO_FILE *fp;
36 CHECK_FILE (fp, EOF);
39 _IO_cleanup_region_start ((void (*) __P ((void *))) _IO_funlockfile, fp);
40 _IO_flockfile (fp);
41 result = INTUSE(_IO_sputbackc) (fp, (unsigned char) c);
42 _IO_funlockfile (fp);
H A Dpeekc.c34 _IO_peekc_locked (fp)
35 _IO_FILE *fp;
38 CHECK_FILE (fp, EOF);
39 _IO_cleanup_region_start ((void (*) __P ((void *))) _IO_funlockfile, fp);
40 _IO_flockfile (fp);
41 result = _IO_peekc_unlocked (fp);
42 _IO_funlockfile (fp);
H A Dputwc.c23 putwc (wc, fp)
25 _IO_FILE *fp;
28 CHECK_FILE (fp, WEOF);
29 _IO_cleanup_region_start ((void (*) __P ((void *))) _IO_funlockfile, fp);
30 _IO_flockfile (fp);
31 result = _IO_putwc_unlocked (wc, fp);
32 _IO_funlockfile (fp);
H A Dioseekpos.c34 _IO_seekpos_unlocked(_IO_FILE *fp, _IO_off64_t pos, int mode) argument
41 if (_IO_fwide(fp, 0) <= 0) {
42 if (_IO_have_backup(fp))
43 INTUSE(_IO_free_backup_area)(fp);
45 if (_IO_have_wbackup(fp))
46 INTUSE(_IO_free_wbackup_area)(fp);
49 return _IO_SEEKPOS(fp, pos, mode);
54 _IO_seekpos(_IO_FILE *fp, _IO_off64_t pos, int mode) argument
58 _IO_cleanup_region_start((void (*) __P ((void *)))_IO_funlockfile, fp);
59 _IO_flockfile(fp);
[all...]
H A Diosetbuffer.c31 _IO_setbuffer (fp, buf, size)
32 _IO_FILE *fp;
36 CHECK_FILE (fp, );
37 _IO_cleanup_region_start ((void (*) (void *)) _IO_funlockfile, fp);
38 _IO_flockfile (fp);
39 fp->_flags &= ~_IO_LINE_BUF;
42 (void) _IO_SETBUF (fp, buf, size);
43 if (fp->_vtable_offset == 0 && fp->_mode == 0 && _IO_CHECK_WIDE (fp))
[all...]
H A Dsetbuf.c32 setbuf (fp, buf)
33 _IO_FILE *fp;
36 INTUSE(_IO_setbuffer) (fp, buf, _IO_BUFSIZ);
H A Dputwc_u.c23 putwc_unlocked (wc, fp)
25 _IO_FILE *fp;
27 CHECK_FILE (fp, WEOF);
28 return _IO_putwc_unlocked (wc, fp);
H A Dftello.c35 ftello (fp)
36 _IO_FILE *fp;
39 CHECK_FILE (fp, -1L);
40 _IO_cleanup_region_start ((void (*) (void *)) _IO_funlockfile, fp);
41 _IO_flockfile (fp);
42 pos = _IO_seekoff_unlocked (fp, 0, _IO_seek_cur, 0);
43 if (_IO_in_backup (fp))
45 if (fp->_mode <= 0)
46 pos -= fp->_IO_save_end - fp
[all...]
H A Dftello64.c35 ftello64 (fp)
36 _IO_FILE *fp;
40 CHECK_FILE (fp, -1L);
41 _IO_cleanup_region_start ((void (*) (void *)) _IO_funlockfile, fp);
42 _IO_flockfile (fp);
43 pos = _IO_seekoff_unlocked (fp, 0, _IO_seek_cur, 0);
44 if (_IO_in_backup (fp))
46 if (fp->_mode <= 0)
47 pos -= fp->_IO_save_end - fp
[all...]
H A Diofflush.c32 _IO_fflush (fp)
33 _IO_FILE *fp;
35 if (fp == NULL)
40 CHECK_FILE (fp, EOF);
41 _IO_cleanup_region_start ((void (*) __P ((void *))) _IO_funlockfile, fp);
42 _IO_flockfile (fp);
43 result = _IO_SYNC (fp) ? EOF : 0;
44 _IO_funlockfile (fp);
H A Diofputws.c32 fputws (str, fp)
34 _IO_FILE *fp;
38 CHECK_FILE (fp, EOF);
39 _IO_cleanup_region_start ((void (*) __P ((void *))) _IO_funlockfile, fp);
40 _IO_flockfile (fp);
41 if (_IO_fwide (fp, 1) == 1
42 && _IO_sputn (fp, (char *) str, len) == len)
44 _IO_funlockfile (fp);
H A Dioungetwc.c32 ungetwc (c, fp)
34 _IO_FILE *fp;
37 CHECK_FILE (fp, WEOF);
38 _IO_cleanup_region_start ((void (*) __P ((void *))) _IO_funlockfile, fp);
39 _IO_flockfile (fp);
40 _IO_fwide (fp, 1);
44 result = INTUSE(_IO_sputbackwc) (fp, c);
45 _IO_funlockfile (fp);

Completed in 102 milliseconds

1234567