/haiku-fatelf/src/bin/findutils/gnulib/lib/ |
H A D | fopen-safer.c | 37 FILE *fp = fopen (file, mode); local 39 if (fp) 41 int fd = fileno (fp); 50 fclose (fp); 55 if (fclose (fp) != 0 56 || ! (fp = fdopen (f, mode))) 66 return fp;
|
H A D | ftello.c | 32 rpl_ftello (FILE *fp) argument 36 if (lseek (fileno (fp), 0, SEEK_CUR) == -1) 41 if ((fp->_flags & __SL64) == 0) 48 fp->_flags |= __SL64; 49 fp->_seek64 = tmp->_seek64; 53 return ftello (fp);
|
/haiku-fatelf/src/system/libroot/posix/glibc/libio/ |
H A D | iofread.c | 31 _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 D | memstream.c | 33 static int _IO_mem_sync __P ((_IO_FILE* fp)); 34 static void _IO_mem_finish __P ((_IO_FILE* fp, int)); 35 static int _IO_wmem_sync __P ((_IO_FILE* fp)); 36 static void _IO_wmem_finish __P ((_IO_FILE* fp, int)); 97 struct _IO_FILE_memstream fp; member in struct:locked_FILE 109 new_f->fp._sf._sbf._f._lock = &new_f->lock; 115 _IO_no_init (&new_f->fp._sf._sbf._f, 0, 0, &new_f->wd, &_IO_wmem_jumps); 116 _IO_JUMPS ((struct _IO_FILE_plus *) &new_f->fp._sf._sbf) = &_IO_mem_jumps; 117 INTUSE(_IO_str_init_static) (&new_f->fp._sf, buf, _IO_BUFSIZ, buf); 118 new_f->fp [all...] |
H A D | wfiledoalloc.c | 84 _IO_wfile_doallocate (fp) 85 _IO_FILE *fp; 93 if (fp->_IO_buf_base == NULL) 94 INTUSE(_IO_file_doallocate) (fp); 96 if (fp->_fileno < 0 || _IO_SYSSTAT (fp, &st) < 0) 102 fp->_flags |= __SNPT; 115 INTUSE(_IO_wsetb) (fp, p, p + size, 1); 116 if (couldbetty && isatty (fp->_fileno)) 117 fp [all...] |
H A D | iofwrite_u.c | 34 fwrite_unlocked (buf, size, count, fp) 38 _IO_FILE *fp; 42 CHECK_FILE (fp, 0); 45 if (_IO_fwide (fp, -1) == -1) 47 written = _IO_sputn (fp, (const char *) buf, request);
|
H A D | iofgetpos.c | 34 _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 D | iosetvbuf.c | 35 _IO_setvbuf (fp, buf, mode, size) 36 _IO_FILE *fp; 42 CHECK_FILE (fp, EOF); 43 _IO_cleanup_region_start ((void (*) (void *)) _IO_funlockfile, fp); 44 _IO_flockfile (fp); 48 fp->_IO_file_flags &= ~_IO_LINE_BUF|_IO_UNBUFFERED; 51 if (fp->_IO_buf_base == NULL) 66 if (_IO_DOALLOCATE (fp) < 0) 71 fp->_IO_file_flags &= ~_IO_LINE_BUF; 78 fp [all...] |
H A D | iofwrite.c | 31 _IO_fwrite (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 if (fp->_vtable_offset != 0 || _IO_fwide (fp, -1) == -1) 45 written = _IO_sputn (fp, (const char *) buf, request); 46 _IO_funlockfile (fp);
|
H A D | iofopen.c | 40 __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 D | iogetdelim.c | 41 _IO_getdelim(char **lineptr, _IO_size_t *n, int delimiter, _IO_FILE *fp) argument 52 CHECK_FILE (fp, -1); 53 _IO_cleanup_region_start ((void (*) __P ((void *))) _IO_funlockfile, fp); 54 _IO_flockfile (fp); 55 if (_IO_ferror_unlocked (fp)) 72 len = fp->_IO_read_end - fp->_IO_read_ptr; 75 if (__underflow (fp) == EOF) 80 len = fp->_IO_read_end - fp [all...] |
H A D | iogetline.c | 34 _IO_getline (fp, buf, n, delim, extract_delim) 35 _IO_FILE *fp; 41 return INTUSE(_IO_getline_info) (fp, buf, n, delim, extract_delim, 55 _IO_getline_info (fp, buf, n, delim, extract_delim, eof) 56 _IO_FILE *fp; 66 if (__builtin_expect (fp->_mode, -1) == 0) 67 _IO_fwide (fp, -1); 70 _IO_ssize_t len = fp->_IO_read_end - fp->_IO_read_ptr; 73 int c = __uflow (fp); [all...] |
H A D | iogetwline.c | 39 _IO_getwline (fp, buf, n, delim, extract_delim) 40 _IO_FILE *fp; 46 return _IO_getwline_info (fp, buf, n, delim, extract_delim, (wint_t *) 0); 58 _IO_getwline_info (fp, buf, n, delim, extract_delim, eof) 59 _IO_FILE *fp; 69 if (__builtin_expect (fp->_mode, 1) == 0) 70 _IO_fwide (fp, 1); 73 _IO_ssize_t len = (fp->_wide_data->_IO_read_end 74 - fp->_wide_data->_IO_read_ptr); 77 wint_t wc = __wuflow (fp); [all...] |
H A D | iofread_u.c | 34 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);
|
/haiku-fatelf/src/bin/coreutils/lib/ |
H A D | fseterr.c | 27 fseterr (FILE *fp) argument 33 fp->_flags |= _IO_ERR_SEEN; 37 fp->_flags |= _IOERR; 41 fp->__modeflags |= __FLAG_ERROR; 43 fp->_Mode |= 0x200 /* _MERR */; 45 fp->__error = 1; 57 fflush (fp); 58 fd = fileno (fp); 63 fputc ('\0', fp); /* This should set the error indicator. */ 64 fflush (fp); /* O [all...] |
H A D | xfreopen.c | 30 xfreopen (char const *filename, char const *mode, FILE *fp) argument 32 if (!freopen (filename, mode, fp)) 35 : (fp == stdin ? _("stdin") 36 : (fp == stdout ? _("stdout") 37 : (fp == stderr ? _("stderr")
|
H A D | ftello.c | 32 rpl_ftello (FILE *fp) argument 36 if (lseek (fileno (fp), 0, SEEK_CUR) == -1) 41 if ((fp->_flags & __SL64) == 0) 48 fp->_flags |= __SL64; 49 fp->_seek64 = tmp->_seek64; 53 return ftello (fp);
|
H A D | freadseek.c | 34 freadptrinc (FILE *fp, size_t increment) argument 38 fp->_IO_read_ptr += increment; 43 fp->_ptr += increment; 44 fp->_rcount -= increment; 50 fp->__bufpos += increment; 55 fp->_Next += increment; 57 fp->__bufp += increment; 65 freadseek (FILE *fp, size_t offset) argument 75 total_buffered = freadahead (fp); 82 if (freadptr (fp, [all...] |
H A D | fseterr.h | 30 extern void fseterr (FILE *fp);
|
/haiku-fatelf/src/system/libroot/posix/stdio/ |
H A D | fwalk.c | 53 register FILE *fp; local 59 for (fp = g->iobs, n = g->niobs; --n >= 0; fp++) 60 if (fp->_flags != 0) 61 ret |= (*function)(fp);
|
H A D | stdio.c | 53 register FILE *fp = cookie; local 56 ret = read(fp->_file, buf, n); 59 fp->_offset += ret; 61 fp->_flags &= ~__SOFF; /* paranoia */ 71 register FILE *fp = cookie; local 73 if (fp->_flags & __SAPP) 74 (void) lseek(fp->_file, (off_t)0, SEEK_END); 75 fp->_flags &= ~__SOFF; /* in case FAPPEND mode is set */ 77 return (write(fp->_file, buf, n)); 86 register FILE *fp local [all...] |
H A D | fprintf.c | 42 fprintf(FILE *fp, const char *fmt, ...) argument 44 fprintf(fp, fmt, va_alist) 45 FILE *fp; 58 ret = vfprintf(fp, fmt, ap);
|
H A D | putw.c | 45 putw(w, fp) 47 FILE *fp; 56 return (__sfvwrite(fp, &uio));
|
/haiku-fatelf/src/system/libroot/posix/glibc/include/ |
H A D | stdio_ext.h | 8 # define __fsetlocking(fp, type) INTUSE(__fsetlocking) (fp, type)
|
/haiku-fatelf/src/bin/gdb/gdb/gdbserver/ |
H A D | i387-fp.c | 23 #include "i387-fp.h" 75 struct i387_fsave *fp = (struct i387_fsave *) buf; local 81 collect_register (i + st0_regnum, ((char *) &fp->st_space[0]) + i * 10); 83 collect_register_by_name ("fioff", &fp->fioff); 84 collect_register_by_name ("fooff", &fp->fooff); 88 fp->fop = (val2 & 0x7FF) | (fp->fop & 0xF800); 92 *(unsigned short *) &fp->fctrl = val; 96 *(unsigned short *) &fp->fstat = val; 100 *(unsigned short *) &fp 114 struct i387_fsave *fp = (struct i387_fsave *) buf; local 148 struct i387_fxsave *fp = (struct i387_fxsave *) buf; local 197 i387_ftag(struct i387_fxsave *fp, int regno) argument 246 struct i387_fxsave *fp = (struct i387_fxsave *) buf; local [all...] |