Searched refs:fp (Results 101 - 125 of 171) sorted by last modified time

1234567

/haiku/src/system/libroot/posix/glibc/libio/
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 Dfwide.c36 fwide(_IO_FILE *fp, int mode) argument
43 if (mode == 0 || fp->_mode != 0) {
46 return fp->_mode;
49 _IO_cleanup_region_start((void (*) __P ((void *)))_IO_funlockfile, fp);
50 _IO_flockfile(fp);
52 result = _IO_fwide(fp, mode);
54 _IO_funlockfile(fp);
H A Dgetc.c34 _IO_getc (fp)
35 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_getc_unlocked (fp);
42 _IO_funlockfile (fp);
H A Dgetc_u.c33 int __getc_unlocked(FILE *fp);
36 __getc_unlocked (FILE *fp) argument
38 CHECK_FILE (fp, EOF);
39 return _IO_getc_unlocked (fp);
H A Dgetwc.c35 _IO_getwc (fp)
36 FILE *fp;
39 CHECK_FILE (fp, WEOF);
40 _IO_cleanup_region_start ((void (*) __P ((void *))) _IO_funlockfile, fp);
41 _IO_flockfile (fp);
42 result = _IO_getwc_unlocked (fp);
43 _IO_funlockfile (fp);
H A Dgetwc_u.c34 __getwc_unlocked (FILE *fp) argument
36 CHECK_FILE (fp, EOF);
37 return _IO_getwc_unlocked (fp);
H A Diofclose.c41 _IO_new_fclose (fp)
42 _IO_FILE *fp;
46 if (fp == NULL)
49 CHECK_FILE(fp, EOF);
55 if (fp->_vtable_offset != 0)
56 return _IO_old_fclose (fp);
60 if (fp->_IO_file_flags & _IO_IS_FILEBUF)
61 INTUSE(_IO_un_link) ((struct _IO_FILE_plus *) fp);
63 _IO_cleanup_region_start ((void (*) __P ((void *))) _IO_funlockfile, fp);
64 _IO_flockfile (fp);
[all...]
H A Diofdopen.c46 struct _IO_FILE_plus fp; member in struct:locked_FILE
136 new_f->fp.file._lock = &new_f->lock;
141 _IO_no_init (&new_f->fp.file, 0, 0, &new_f->wd,
147 _IO_JUMPS (&new_f->fp) =
152 INTUSE(_IO_file_init) (&new_f->fp);
154 new_f->fp.vtable = NULL;
156 if (INTUSE(_IO_file_attach) ((_IO_FILE *) &new_f->fp, fd) == NULL)
158 INTUSE(_IO_setb) (&new_f->fp.file, NULL, NULL, 0);
159 INTUSE(_IO_un_link) (&new_f->fp);
163 new_f->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 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 Diofgetpos.c34 _IO_new_fgetpos (fp, posp)
35 _IO_FILE *fp;
40 CHECK_FILE (fp, EOF);
41 _IO_cleanup_region_start ((void (*) __P ((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 Diofgetpos64.c34 _IO_new_fgetpos64 (fp, posp)
35 _IO_FILE *fp;
40 CHECK_FILE (fp, EOF);
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 Diofgets.c32 _IO_fgets (buf, n, fp)
35 _IO_FILE *fp;
40 CHECK_FILE (fp, NULL);
43 _IO_cleanup_region_start ((void (*) __P ((void *))) _IO_funlockfile, fp);
44 _IO_flockfile (fp);
48 old_error = fp->_IO_file_flags & _IO_ERR_SEEN;
49 fp->_IO_file_flags &= ~_IO_ERR_SEEN;
50 count = INTUSE(_IO_getline) (fp, buf, n - 1, '\n', 1);
53 if (count == 0 || ((fp->_IO_file_flags & _IO_ERR_SEEN)
61 fp
[all...]
H A Diofgets_u.c32 fgets_unlocked (buf, n, fp)
35 _IO_FILE *fp;
40 CHECK_FILE (fp, NULL);
46 old_error = fp->_IO_file_flags & _IO_ERR_SEEN;
47 fp->_IO_file_flags &= ~_IO_ERR_SEEN;
48 count = INTUSE(_IO_getline) (fp, buf, n - 1, '\n', 1);
51 if (count == 0 || ((fp->_IO_file_flags & _IO_ERR_SEEN)
59 fp->_IO_file_flags |= old_error;
H A Diofgetws.c32 fgetws (buf, n, fp)
35 _IO_FILE *fp;
40 CHECK_FILE (fp, NULL);
43 _IO_cleanup_region_start ((void (*) __P ((void *))) _IO_funlockfile, fp);
44 _IO_flockfile (fp);
48 old_error = fp->_IO_file_flags & _IO_ERR_SEEN;
49 fp->_IO_file_flags &= ~_IO_ERR_SEEN;
50 count = _IO_getwline (fp, buf, n - 1, L'\n', 1);
53 if (count == 0 || (_IO_ferror_unlocked (fp) && errno != EAGAIN))
60 fp
[all...]
H A Diofgetws_u.c32 fgetws_unlocked (buf, n, fp)
35 _IO_FILE *fp;
40 CHECK_FILE (fp, NULL);
46 old_error = fp->_IO_file_flags & _IO_ERR_SEEN;
47 fp->_IO_file_flags &= ~_IO_ERR_SEEN;
48 count = _IO_getwline (fp, buf, n - 1, L'\n', 1);
51 if (count == 0 || ((fp->_IO_file_flags & _IO_ERR_SEEN)
59 fp->_IO_file_flags |= old_error;
H A Diofopen.c40 __fopen_maybe_mmap (fp)
41 _IO_FILE *fp;
44 if ((fp->_flags2 & _IO_FLAGS2_MMAP) && (fp->_flags & _IO_NO_WRITES))
51 if (fp->_mode <= 0)
52 _IO_JUMPS ((struct _IO_FILE_plus *) fp) = &_IO_file_jumps_maybe_mmap;
54 _IO_JUMPS ((struct _IO_FILE_plus *) fp) = &_IO_wfile_jumps_maybe_mmap;
55 fp->_wide_data->_wide_vtable = &_IO_wfile_jumps_maybe_mmap;
58 return fp;
70 struct _IO_FILE_plus fp; member in struct:locked_FILE
[all...]
H A Diofopncook.c34 static _IO_ssize_t _IO_cookie_read (register _IO_FILE* fp, void* buf,
36 static _IO_ssize_t _IO_cookie_write (register _IO_FILE* fp,
38 static _IO_off64_t _IO_cookie_seek (_IO_FILE *fp, _IO_off64_t offset, int dir);
39 static int _IO_cookie_close (_IO_FILE* fp);
42 _IO_cookie_read (fp, buf, size)
43 _IO_FILE *fp;
47 struct _IO_cookie_file *cfile = (struct _IO_cookie_file *) fp;
56 _IO_cookie_write (fp, buf, size)
57 _IO_FILE *fp;
61 struct _IO_cookie_file *cfile = (struct _IO_cookie_file *) fp;
[all...]
H A Diofputs.c32 _IO_fputs (str, fp)
34 _IO_FILE *fp;
39 CHECK_FILE (fp, EOF);
40 _IO_cleanup_region_start ((void (*) __P ((void *))) _IO_funlockfile, fp);
41 _IO_flockfile (fp);
42 if ((fp->_vtable_offset != 0 || _IO_fwide (fp, -1) == -1)
43 && _IO_sputn (fp, str, len) == len)
45 _IO_funlockfile (fp);
H A Diofputs_u.c33 fputs_unlocked (str, fp)
35 _IO_FILE *fp;
39 CHECK_FILE (fp, EOF);
40 if (_IO_fwide (fp, -1) == -1 && _IO_sputn (fp, str, len) == len)
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 Diofputws_u.c33 fputws_unlocked (str, fp)
35 _IO_FILE *fp;
39 CHECK_FILE (fp, EOF);
40 if (_IO_fwide (fp, 1) == 1
41 && _IO_sputn (fp, (char *) str, len) == len)
H A Diofread.c31 _IO_fread (buf, size, count, fp)
35 _IO_FILE *fp;
39 CHECK_FILE (fp, 0);
42 _IO_cleanup_region_start ((void (*) __P ((void *))) _IO_funlockfile, fp);
43 _IO_flockfile (fp);
44 bytes_read = INTUSE(_IO_sgetn) (fp, (char *) buf, bytes_requested);
45 _IO_funlockfile (fp);
H A Diofread_u.c34 fread_unlocked (buf, size, count, fp)
38 _IO_FILE *fp;
42 CHECK_FILE (fp, 0);
45 bytes_read = INTUSE(_IO_sgetn) (fp, (char *) buf, bytes_requested);
H A Diofsetpos.c33 _IO_new_fsetpos (fp, posp)
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_seekpos_unlocked (fp, posp->__pos, _IOS_INPUT|_IOS_OUTPUT)
55 if (fp->_mode > 0
56 && (*fp->_codecvt->__codecvt_do_encoding) (fp->_codecvt) < 0)
58 fp
[all...]

Completed in 66 milliseconds

1234567