| /src/lib/libc/stdio/ |
| ungetc.c | 53 * Expand the ungetc buffer `in place'. That is, adjust fp->_p when 59 __submore(FILE *fp) 64 _DIAGASSERT(fp != NULL); 66 if (_UB(fp)._base == fp->_ubuf) { 72 _UB(fp)._base = p; 73 _UB(fp)._size = BUFSIZ; 74 p += BUFSIZ - sizeof(fp->_ubuf); 75 for (i = sizeof(fp->_ubuf); --i >= 0;) 76 p[i] = fp->_ubuf[i] [all...] |
| wsetup.c | 57 __swsetup(FILE *fp) 60 _DIAGASSERT(fp != NULL); 69 if ((fp->_flags & __SWR) == 0) { 70 if ((fp->_flags & __SRW) == 0) 72 if (fp->_flags & __SRD) { 74 if (HASUB(fp)) 75 FREEUB(fp); 76 fp->_flags &= ~(__SRD|__SEOF); 77 fp->_r = 0; 78 fp->_p = fp->_bf._base [all...] |
| flockfile.c | 59 flockfile(FILE *fp) 62 __flockfile_internal(fp, 0); 66 ftrylockfile(FILE *fp) 74 mutex_lock(&_LOCK(fp)); 76 if (_LOCKOWNER(fp) == thr_self()) { 77 _LOCKCOUNT(fp)++; 78 } else if (_LOCKOWNER(fp) == NULL) { 79 _LOCKOWNER(fp) = thr_self(); 80 _LOCKCOUNT(fp) = 1; 84 mutex_unlock(&_LOCK(fp)); [all...] |
| fpurge.c | 57 fpurge(FILE *fp) 60 _DIAGASSERT(fp != NULL); 62 if (fp->_flags == 0) { 66 FLOCKFILE(fp); 67 if (HASUB(fp)) 68 FREEUB(fp); 69 WCIO_FREE(fp); 70 fp->_p = fp->_bf._base; 71 fp->_r = 0 [all...] |
| fclose.c | 52 fclose(FILE *fp) 56 _DIAGASSERT(fp != NULL); 58 if (fp->_flags == 0) { /* not open! */ 62 FLOCKFILE(fp); 63 WCIO_FREE(fp); 64 r = fp->_flags & __SWR ? __sflush(fp) : 0; 65 if (fp->_close != NULL && (*fp->_close)(fp->_cookie) < 0 [all...] |
| refill.c | 56 lflush(FILE *fp) 59 _DIAGASSERT(fp != NULL); 61 if ((fp->_flags & (__SLBF|__SWR)) == (__SLBF|__SWR)) 62 return __sflush(fp); 71 __srefill(FILE *fp) 74 _DIAGASSERT(fp != NULL); 80 fp->_r = 0; /* largely a convenience for callers */ 83 if (fp->_flags & __SEOF) 87 if ((fp->_flags & __SRD) == 0) { 88 if ((fp->_flags & __SRW) == 0) [all...] |
| ftell.c | 54 ftell(FILE *fp) 59 FLOCKFILE(fp); 61 if (fp->_seek == NULL) { 62 FUNLOCKFILE(fp); 71 (void)__sflush(fp); /* may adjust seek offset on append stream */ 72 if (fp->_flags & __SOFF) 73 pos = fp->_offset; 75 pos = (*fp->_seek)(fp->_cookie, (off_t)0, SEEK_CUR); 77 FUNLOCKFILE(fp); [all...] |
| ftello.c | 55 ftello(FILE *fp) 60 FLOCKFILE(fp); 62 if (fp->_seek == NULL) { 63 FUNLOCKFILE(fp); 72 (void)__sflush(fp); /* may adjust seek offset on append stream */ 73 if (fp->_flags & __SOFF) 74 pos = fp->_offset; 76 pos = (*fp->_seek)(fp->_cookie, (off_t)0, SEEK_CUR); 78 FUNLOCKFILE(fp); [all...] |
| wbuf.c | 56 __swbuf(int c, FILE *fp) 60 _DIAGASSERT(fp != NULL); 62 _SET_ORIENTATION(fp, -1); 71 fp->_w = fp->_lbfsize; 72 if (cantwrite(fp)) { 87 _DIAGASSERT(__type_fit(int, fp->_p - fp->_bf._base)); 88 n = (int)(fp->_p - fp->_bf._base) [all...] |
| getc.c | 57 getc(FILE *fp) 61 _DIAGASSERT(fp != NULL); 63 FLOCKFILE(fp); 64 r = __sgetc(fp); 65 FUNLOCKFILE(fp); 70 getc_unlocked(FILE *fp) 73 _DIAGASSERT(fp != NULL); 75 return __sgetc(fp);
|
| rewind.c | 51 rewind(FILE *fp) 54 _DIAGASSERT(fp != NULL); 56 FLOCKFILE(fp); 57 (void) fseek(fp, 0L, SEEK_SET); 58 __sclearerr(fp); 59 FUNLOCKFILE(fp);
|
| rget.c | 56 __srget(FILE *fp) 59 _DIAGASSERT(fp != NULL); 61 _SET_ORIENTATION(fp, -1); 62 if (__srefill(fp) == 0) { 63 fp->_r--; 64 return *fp->_p++;
|
| fgetwc.c | 44 __fgetwc_unlock(FILE *fp) 50 _DIAGASSERT(fp != NULL); 52 _SET_ORIENTATION(fp, 1); 53 wcio = WCIO_GET(fp); 60 if (fp->_r <= 0) { 62 if (__srefill(fp) != 0) 65 nr = mbrtowc(&wc, (const char *)fp->_p, 66 (size_t)fp->_r, &wcio->wcio_mbstate_in); 68 fp->_flags |= __SERR; 71 fp->_p += fp->_r [all...] |
| /src/sys/arch/epoc32/include/ |
| fp.h | 1 /* $NetBSD: fp.h,v 1.1 2013/04/28 12:11:26 kiyohara Exp $ */ 3 #include <arm/fp.h>
|
| /src/external/bsd/ipf/dist/lib/ |
| printfr.c | 18 printfr(fp, iocfunc) 19 struct frentry *fp; 30 type = fp->fr_type & ~FR_T_BUILTIN; 32 if ((fp->fr_type & FR_T_BUILTIN) != 0) 35 if (fp->fr_collect != 0) 36 PRINTF("%u ", fp->fr_collect); 38 if (fp->fr_type == FR_T_CALLFUNC) { 40 } else if (fp->fr_func != NULL) { 42 if ((fp->fr_flags & FR_CALLNOW) != 0) 44 s = kvatoname(fp->fr_func, iocfunc) [all...] |
| /src/external/gpl2/gettext/dist/gettext-runtime/gnulib-lib/ |
| fwriteerror.h | 43 /* Write out the not yet written buffered contents of the stream FP, close 44 the stream FP, and test whether some error occurred on the stream FP. 45 FP must be a stream opened for writing. 46 Return 0 if no error occurred and fclose (fp) succeeded. 49 For any given stream FP other than stdout, fwriteerror (FP) may only be 51 extern int fwriteerror (FILE *fp); 53 /* Likewise, but don't consider it an error if FP has an invalid file 54 descriptor and no output was done to FP. * [all...] |
| /src/external/gpl2/gettext/dist/gettext-tools/gnulib-lib/ |
| fwriteerror.h | 43 /* Write out the not yet written buffered contents of the stream FP, close 44 the stream FP, and test whether some error occurred on the stream FP. 45 FP must be a stream opened for writing. 46 Return 0 if no error occurred and fclose (fp) succeeded. 49 For any given stream FP other than stdout, fwriteerror (FP) may only be 51 extern int fwriteerror (FILE *fp); 53 /* Likewise, but don't consider it an error if FP has an invalid file 54 descriptor and no output was done to FP. * [all...] |
| /src/external/gpl2/gettext/dist/gettext-tools/libgettextpo/ |
| fwriteerror.h | 43 /* Write out the not yet written buffered contents of the stream FP, close 44 the stream FP, and test whether some error occurred on the stream FP. 45 FP must be a stream opened for writing. 46 Return 0 if no error occurred and fclose (fp) succeeded. 49 For any given stream FP other than stdout, fwriteerror (FP) may only be 51 extern int fwriteerror (FILE *fp); 53 /* Likewise, but don't consider it an error if FP has an invalid file 54 descriptor and no output was done to FP. * [all...] |
| /src/external/gpl3/gcc/dist/libgcc/config/m68k/ |
| crtn.S | 35 unlk %fp 39 unlk %fp
|
| /src/external/gpl3/gcc.old/dist/libgcc/config/m68k/ |
| crtn.S | 35 unlk %fp 39 unlk %fp
|
| /src/lib/csu/arch/arm/ |
| crtn.S | 41 ldmea fp, {fp, sp, pc} 44 ldmea fp, {fp, sp, pc}
|
| /src/sys/arch/m68k/fpe/ |
| fpu_getexp.c | 44 struct fpn *fp = &fe->fe_f2; local 48 if (fp->fp_class == FPC_INF) { 49 fp = fpu_newnan(fe); 51 } else if (fp->fp_class == FPC_NUM) { /* a number */ 52 fpu_explode(fe, &fe->fe_f3, FTYPE_LNG, &fp->fp_exp); 53 fp = &fe->fe_f3; 54 } else if (fp->fp_class == FPC_SNAN) { /* signaling NaN */ 56 } /* else if fp == zero or fp == quiet NaN, return itself */ 57 return fp; 63 struct fpn *fp = &fe->fe_f2; local [all...] |
| /src/external/gpl3/gdb/dist/libctf/testsuite/libctf-lookup/ |
| add-to-opened.c | 11 ctf_dict_t *fp; local 28 if ((fp = ctf_dict_open (ctf, NULL, &err)) == NULL) 34 if (ctf_add_integer (fp, CTF_ADD_ROOT, "int", &en) == 0) 37 if (ctf_errno (fp) != ECTF_RDONLY) 38 fprintf (stderr, "unexpected error %s attempting to add integer in readonly portion\n", ctf_errmsg (ctf_errno (fp))); 40 if (ctf_add_typedef (fp, CTF_ADD_ROOT, "a_typedef", 0) == 0) 43 if (ctf_errno (fp) != ECTF_RDONLY) 44 fprintf (stderr, "unexpected error %s attempting to add typedef in readonly portion\n", ctf_errmsg (ctf_errno (fp))); 46 if (ctf_add_struct (fp, CTF_ADD_ROOT, "a_struct") == 0) 49 if (ctf_errno (fp) != ECTF_RDONLY [all...] |
| /src/external/gpl3/gdb.old/dist/libctf/testsuite/libctf-lookup/ |
| add-to-opened.c | 11 ctf_dict_t *fp; local 28 if ((fp = ctf_dict_open (ctf, NULL, &err)) == NULL) 34 if (ctf_add_integer (fp, CTF_ADD_ROOT, "int", &en) == 0) 37 if (ctf_errno (fp) != ECTF_RDONLY) 38 fprintf (stderr, "unexpected error %s attempting to add integer in readonly portion\n", ctf_errmsg (ctf_errno (fp))); 40 if (ctf_add_typedef (fp, CTF_ADD_ROOT, "a_typedef", 0) == 0) 43 if (ctf_errno (fp) != ECTF_RDONLY) 44 fprintf (stderr, "unexpected error %s attempting to add typedef in readonly portion\n", ctf_errmsg (ctf_errno (fp))); 46 if (ctf_add_struct (fp, CTF_ADD_ROOT, "a_struct") == 0) 49 if (ctf_errno (fp) != ECTF_RDONLY [all...] |
| /src/external/gpl3/binutils/dist/gas/ |
| debug.c | 53 dmp_frag (struct frag *fp, char *indent) 55 for (; fp; fp = fp->fr_next) 57 printf ("%sFRAGMENT @ 0x%x\n", indent, fp); 58 switch (fp->fr_type) 61 printf ("%srs_align(%d)\n", indent, fp->fr_offset); 64 printf ("%srs_fill(%d)\n", indent, fp->fr_offset); 66 var_chars (fp, fp->fr_var + fp->fr_fix) [all...] |