Searched refs:fp (Results 26 - 50 of 1012) sorted by relevance

1234567891011>>

/openbsd-current/lib/libc/stdio/
H A Dfeof.c43 feof(FILE *fp) argument
47 FLOCKFILE(fp);
48 ret = __sfeof(fp);
49 FUNLOCKFILE(fp);
H A Dferror.c43 ferror(FILE *fp) argument
47 FLOCKFILE(fp);
48 ret = __sferror(fp);
49 FUNLOCKFILE(fp);
H A Dfileno.c43 fileno(FILE *fp) argument
47 FLOCKFILE(fp);
48 ret = __sfileno(fp);
49 FUNLOCKFILE(fp);
H A Dfgetc.c37 fgetc(FILE *fp) argument
39 return (getc(fp));
H A Dfileext.h40 #define _EXT(fp) ((struct __sfileext *)((fp)->_ext._base))
41 #define _UB(fp) _EXT(fp)->_ub
43 #define _FILEEXT_INIT(fp) \
45 _UB(fp)._base = NULL; \
46 _UB(fp)._size = 0; \
47 WCIO_INIT(fp); \
H A Dputc.c43 putc_unlocked(int c, FILE *fp) argument
45 if (cantwrite(fp))
47 _SET_ORIENTATION(fp, -1);
48 return (__sputc(c, fp));
58 putc(int c, FILE *fp) argument
62 FLOCKFILE(fp);
63 ret = putc_unlocked(c, fp);
64 FUNLOCKFILE(fp);
H A Dflockfile.c7 flockfile(FILE *fp) argument
9 FLOCKFILE(fp);
15 ftrylockfile(FILE *fp) argument
18 return (_thread_cb.tc_ftrylockfile(fp));
25 funlockfile(FILE *fp) argument
27 FUNLOCKFILE(fp);
H A Dgetc.c43 getc_unlocked(FILE *fp) argument
45 return (__sgetc(fp));
55 getc(FILE *fp) argument
59 FLOCKFILE(fp);
60 c = __sgetc(fp);
61 FUNLOCKFILE(fp);
H A Dfputws.c40 fputws(const wchar_t * __restrict ws, FILE * __restrict fp) argument
42 FLOCKFILE(fp);
43 _SET_ORIENTATION(fp, 1);
46 if (__fputwc_unlock(*ws++, fp) == WEOF) {
47 FUNLOCKFILE(fp);
52 FUNLOCKFILE(fp);
H A Dmakebuf.c49 __smakebuf(FILE *fp) argument
56 if (fp->_flags & __SNBF) {
57 fp->_bf._base = fp->_p = fp->_nbuf;
58 fp->_bf._size = 1;
61 flags = __swhatbuf(fp, &size, &couldbetty);
63 fp->_flags |= __SNBF;
64 fp->_bf._base = fp
80 __swhatbuf(FILE *fp, size_t *bufsize, int *couldbetty) argument
[all...]
H A Dfopen.c46 FILE *fp; local
52 if ((fp = __sfp()) == NULL)
55 fp->_flags = 0; /* release */
61 fp->_flags = 0; /* release */
67 fp->_file = f;
68 fp->_flags = flags;
69 fp->_cookie = fp;
70 fp->_read = __sread;
71 fp
[all...]
H A Dfread.c43 fread(void *buf, size_t size, size_t count, FILE *fp) argument
56 fp->_flags |= __SERR;
65 FLOCKFILE(fp);
66 _SET_ORIENTATION(fp, -1);
67 if (fp->_r < 0)
68 fp->_r = 0;
73 * If we're unbuffered we know that the buffer in fp is empty so
75 * series of one byte reads into fp->_nbuf.
77 if ((fp->_flags & __SNBF) != 0 && buf != NULL) {
80 fp
[all...]
H A Dsetvbuf.c44 setvbuf(FILE *fp, char *buf, int mode, size_t size) argument
65 FLOCKFILE(fp);
67 (void)__sflush(fp);
68 if (HASUB(fp))
69 FREEUB(fp);
70 WCIO_FREE(fp);
71 fp->_r = fp->_lbfsize = 0;
72 flags = fp->_flags;
74 free(fp
[all...]
H A Dfflush.c38 /* Flush a single file, or (if fp is NULL) all files. */
40 fflush(FILE *fp) argument
44 if (fp == NULL)
46 FLOCKFILE(fp);
47 if ((fp->_flags & (__SWR | __SRW)) == 0) {
51 r = __sflush(fp);
52 FUNLOCKFILE(fp);
58 __sflush(FILE *fp) argument
63 t = fp->_flags;
67 if ((p = fp
90 __sflush_locked(FILE *fp) argument
[all...]
H A Dlocal.h74 #define cantwrite(fp) \
75 ((((fp)->_flags & __SWR) == 0 || (fp)->_bf._base == NULL) && \
76 __swsetup(fp))
82 #define HASUB(fp) (_UB(fp)._base != NULL)
83 #define FREEUB(fp) { \
84 if (_UB(fp)._base != (fp)->_ubuf) \
85 free(_UB(fp)
[all...]
H A Drewind.c38 rewind(FILE *fp) argument
40 fseeko(fp, 0, SEEK_SET);
41 clearerr(fp);
H A Dfwalk.c42 FILE *fp; local
48 for (fp = g->iobs, n = g->niobs; --n >= 0; fp++) {
49 if ((fp->_flags != 0) && ((fp->_flags & __SIGN) == 0))
50 ret |= (*function)(fp);
/openbsd-current/regress/lib/libm/trivial1/
H A DMakefile3 REGRESS_TARGETS=test-fp
5 test-fp: test-fp.pl
6 ${PERL} ${.CURDIR}/$@.pl | diff -u - ${.CURDIR}/test-fp.out
/openbsd-current/gnu/usr.bin/binutils/gas/
H A Ddebug.c50 dmp_frag (fp, indent)
51 struct frag *fp;
54 for (; fp; fp = fp->fr_next)
56 printf ("%sFRAGMENT @ 0x%x\n", indent, fp);
57 switch (fp->fr_type)
60 printf ("%srs_align(%d)\n", indent, fp->fr_offset);
63 printf ("%srs_fill(%d)\n", indent, fp->fr_offset);
65 var_chars (fp, f
[all...]
/openbsd-current/gnu/usr.bin/binutils-2.17/gas/
H A Ddebug.c50 dmp_frag (fp, indent)
51 struct frag *fp;
54 for (; fp; fp = fp->fr_next)
56 printf ("%sFRAGMENT @ 0x%x\n", indent, fp);
57 switch (fp->fr_type)
60 printf ("%srs_align(%d)\n", indent, fp->fr_offset);
63 printf ("%srs_fill(%d)\n", indent, fp->fr_offset);
65 var_chars (fp, f
[all...]
/openbsd-current/gnu/lib/libiberty/src/
H A Dfopen_unlocked.c82 unlock_1 (FILE *const fp ATTRIBUTE_UNUSED)
85 if (fp)
86 __fsetlocking (fp, FSETLOCKING_BYCALLER);
91 unlock_stream (FILE *fp) argument
93 unlock_1 (fp);
107 FILE *const fp = fopen (path, mode); local
108 unlock_1 (fp);
109 return fp;
115 FILE *const fp = fdopen (fildes, mode); local
116 unlock_1 (fp);
123 FILE *const fp = freopen (path, mode, stream); local
[all...]
/openbsd-current/gnu/lib/libstdc++/libstdc++/libio/
H A Diofclose.c39 _IO_new_fclose (fp)
40 _IO_FILE *fp;
44 CHECK_FILE(fp, EOF);
50 if (fp->_vtable_offset != 0)
51 return _IO_old_fclose (fp);
54 _IO_cleanup_region_start ((void (*) __P ((void *))) _IO_funlockfile, fp);
55 _IO_flockfile (fp);
56 if (fp->_IO_file_flags & _IO_IS_FILEBUF)
57 status = _IO_file_close_it (fp);
59 status = fp
[all...]
H A Dwgenops.c44 static int save_for_wbackup __P ((_IO_FILE *fp, wchar_t *end_p))
52 _IO_ssize_t _IO_least_wmarker __P ((_IO_FILE *fp, wchar_t *end_p));
55 _IO_least_wmarker (fp, end_p)
56 _IO_FILE *fp;
59 _IO_ssize_t least_so_far = end_p - fp->_wide_data->_IO_read_base;
61 for (mark = fp->_markers; mark != NULL; mark = mark->_next)
69 _IO_switch_to_main_wget_area (fp)
70 _IO_FILE *fp;
73 fp->_flags &= ~_IO_IN_BACKUP;
75 tmp = fp
[all...]
/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/gcc.dg/format/
H A Dext-2.c12 unsigned long long int *ullp, float *fp, char *s, void **pp, wchar_t *ls,
19 scanf ("%qf", fp); /* { dg-warning "length" "bad use of %q" } */
20 scanf ("%qF", fp); /* { dg-warning "length" "bad use of %q" } */
21 scanf ("%qe", fp); /* { dg-warning "length" "bad use of %q" } */
22 scanf ("%qE", fp); /* { dg-warning "length" "bad use of %q" } */
23 scanf ("%qg", fp); /* { dg-warning "length" "bad use of %q" } */
24 scanf ("%qG", fp); /* { dg-warning "length" "bad use of %q" } */
25 scanf ("%qa", fp); /* { dg-warning "length" "bad use of %q" } */
26 scanf ("%qA", fp); /* { dg-warning "length" "bad use of %q" } */
42 scanf ("%'d%'i%'u%'a%'A%'e%'E%'f%'F%'g%'G", ip, ip, up, fp, f
11 foo(quad_t *qp, u_quad_t *uqp, quad_t *qn, long long int *llp, unsigned long long int *ullp, float *fp, char *s, void **pp, wchar_t *ls, int *ip, unsigned int *up) argument
[all...]
/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/execute/
H A D930513-1.c4 f (fp)
5 int (*fp)(char *, const char *, ...);
7 (*fp)(buf, "%.0f", 5.0);

Completed in 130 milliseconds

1234567891011>>