/freebsd-11-stable/contrib/llvm-project/llvm/lib/IR/ |
H A D | FPEnv.cpp | 20 Optional<fp::RoundingMode> StrToRoundingMode(StringRef RoundingArg) { 23 return StringSwitch<Optional<fp::RoundingMode>>(RoundingArg) 24 .Case("round.dynamic", fp::rmDynamic) 25 .Case("round.tonearest", fp::rmToNearest) 26 .Case("round.downward", fp::rmDownward) 27 .Case("round.upward", fp::rmUpward) 28 .Case("round.towardzero", fp::rmTowardZero) 32 Optional<StringRef> RoundingModeToStr(fp::RoundingMode UseRounding) { 35 case fp::rmDynamic: 38 case fp [all...] |
/freebsd-11-stable/contrib/gcclibs/libiberty/ |
H A D | fopen_unlocked.c | 82 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...] |
/freebsd-11-stable/contrib/sendmail/libsm/ |
H A D | wbuf.c | 31 ** fp -- the file pointer 41 sm_wbuf(fp, timeout, c) 42 register SM_FILE_T *fp; 56 fp->f_w = fp->f_lbfsize; 57 if (cantwrite(fp)) 75 n = fp->f_p - fp->f_bf.smb_base; 76 if (n >= fp->f_bf.smb_size) 78 if (sm_io_flush(fp, timeou [all...] |
H A D | refill.c | 49 ** fp -- the file pointer for the active file 50 ** fd -- raw file descriptor (from 'fp') to use for select() 59 #define SM_IO_RD_TIMEOUT(fp, fd, to, timeout, sel_ret) \ 88 fp->f_r = 0; \ 89 fp->f_flags |= SMERR; \ 109 ** fp -- file pointer to flush 118 sm_lflush(fp, timeout) 119 SM_FILE_T *fp; 123 if ((fp->f_flags & (SMLBF|SMWR)) == (SMLBF|SMWR)) 124 return sm_flush(fp, timeou [all...] |
H A D | rewind.c | 28 ** fp -- the flie pointer for rewind 36 sm_io_rewind(fp, timeout) 37 register SM_FILE_T *fp; 40 SM_REQUIRE_ISA(fp, SmFileMagic); 41 (void) sm_io_seek(fp, timeout, 0L, SM_IO_SEEK_SET); 42 (void) sm_io_clearerr(fp);
|
H A D | syslogio.c | 30 ** which we store in fp->f_ival. 37 ** fp -- file pointer assigned for the open 47 sm_syslogopen(fp, info, flags, rpool) 48 SM_FILE_T *fp; 55 fp->f_ival = *priority; 66 ** fp -- the file pointer 75 sm_syslogread(fp, buf, n) 76 SM_FILE_T *fp; 91 ** fp -- the file pointer 104 sm_syslogwrite(fp, bu [all...] |
H A D | fpos.c | 61 ** fp -- the file pointer to get repositioned 70 sm_io_tell(fp, timeout) 71 register SM_FILE_T *fp; 77 SM_REQUIRE_ISA(fp, SmFileMagic); 78 if (fp->f_seek == NULL) 85 timeout = fp->f_timeout; 102 (void) sm_flush(fp, (int *) &timeout); 116 if (fp->f_flags & SMOFF) 117 pos = fp->f_lseekoff; 121 pos = (*fp [all...] |
H A D | fclose.c | 63 ** fp -- file pointer to be closed 71 ** file pointer 'fp' will no longer be valid. 75 sm_io_close(fp, timeout) 76 register SM_FILE_T *fp; 82 if (fp == NULL) 88 SM_REQUIRE_ISA(fp, SmFileMagic); 91 if (fp->sm_magic == NULL) 97 if (fp->f_close == NULL) 103 if (fp->f_dup_cnt > 0) 106 fp [all...] |
H A D | smstdio.c | 27 ** stdio. fp->f_cookie is the FILE* of stdio. The cookie may be 29 ** When binding late (when fp->f_cookie==NULL) then the value of 30 ** fp->f_ival is used (0, 1 or 2) to map to stdio's stdin, stdout or 38 ** fp -- file pointer assign for this open 50 sm_stdioopen(fp, info, flags, rpool) 51 SM_FILE_T *fp; 98 fp->f_cookie = s; 106 ** fp - the file pointer to get the cookie assigned 113 setup(fp) 114 SM_FILE_T *fp; 332 SM_FILE_T *fp; local [all...] |
H A D | fseek.c | 66 ** fp -- the file pointer to be seek'd 77 sm_io_seek(fp, timeout, offset, whence) 78 register SM_FILE_T *fp; 91 SM_REQUIRE_ISA(fp, SmFileMagic); 98 if ((seekfn = fp->f_seek) == NULL) 105 timeout = fp->f_timeout; 145 sm_flush(fp, (int *) &timeout); 147 if (fp->f_flags & SMOFF) 148 curoff = fp->f_lseekoff; 151 curoff = (*seekfn)(fp, (off_ [all...] |
/freebsd-11-stable/lib/libc/stdio/ |
H A D | wbuf.c | 51 __swbuf(int c, FILE *fp) argument 62 fp->_w = fp->_lbfsize; 63 if (prepwrite(fp) != 0) { 69 ORIENT(fp, -1); 80 n = fp->_p - fp->_bf._base; 81 if (n >= fp->_bf._size) { 82 if (__fflush(fp)) 86 fp [all...] |
H A D | _flock_stub.c | 62 _flockfile(FILE *fp) argument 66 if (fp->_fl_owner == curthread) 67 fp->_fl_count++; 73 _pthread_mutex_lock(&fp->_fl_mutex); 74 fp->_fl_owner = curthread; 75 fp->_fl_count = 1; 83 _flockfile_debug_stub(FILE *fp, char *fname, int lineno) argument 85 _flockfile(fp); 89 _ftrylockfile(FILE *fp) argument 94 if (fp 110 _funlockfile(FILE *fp) argument [all...] |
H A D | rewind.c | 47 rewind(FILE *fp) argument 55 FLOCKFILE(fp); 56 if (_fseeko(fp, (off_t)0, SEEK_SET, 1) == 0) 58 clearerr_unlocked(fp); /* POSIX: clear stdio error regardless */ 59 FUNLOCKFILE(fp);
|
H A D | getc.c | 49 getc(FILE *fp) argument 52 FLOCKFILE_CANCELSAFE(fp); 54 /* ORIENT(fp, -1); */ 55 retval = __sgetc(fp); 61 getc_unlocked(FILE *fp) argument 64 return (__sgetc(fp));
|
H A D | fputc.c | 48 fputc_unlocked(int c, FILE *fp) argument 52 /* ORIENT(fp, -1); */ 53 return (__sputc(c, fp)); 57 fputc(int c, FILE *fp) argument 61 FLOCKFILE_CANCELSAFE(fp); 62 retval = fputc_unlocked(c, fp);
|
H A D | fgetln.c | 57 __slbexpand(FILE *fp, size_t newsize) argument 64 if (fp->_lb._size >= newsize) 70 if ((p = realloc(fp->_lb._base, newsize)) == NULL) 72 fp->_lb._base = p; 73 fp->_lb._size = newsize; 85 fgetln(FILE *fp, size_t *lenp) argument 92 FLOCKFILE_CANCELSAFE(fp); 93 ORIENT(fp, -1); 95 if (fp->_r <= 0 && __srefill(fp)) { [all...] |
H A D | setvbuf.c | 51 setvbuf(FILE * __restrict fp, char * __restrict buf, int mode, size_t size) argument 66 FLOCKFILE_CANCELSAFE(fp); 74 (void)__sflush(fp); 75 if (HASUB(fp)) 76 FREEUB(fp); 77 fp->_r = fp->_lbfsize = 0; 78 flags = fp->_flags; 80 free((void *)fp->_bf._base); 92 flags |= __swhatbuf(fp, [all...] |
H A D | fgetws.c | 46 fgetws_l(wchar_t * __restrict ws, int n, FILE * __restrict fp, locale_t locale) argument 56 FLOCKFILE_CANCELSAFE(fp); 57 ORIENT(fp, 1); 60 fp->_flags |= __SERR; 69 if (fp->_r <= 0 && __srefill(fp)) 75 src = fp->_p; 76 nl = memchr(fp->_p, '\n', fp->_r); 78 nl != NULL ? (nl - fp 127 fgetws(wchar_t * __restrict ws, int n, FILE * __restrict fp) argument [all...] |
H A D | fgetwc.c | 50 fgetwc_l(FILE *fp, locale_t locale) argument 55 FLOCKFILE_CANCELSAFE(fp); 56 ORIENT(fp, 1); 57 r = __fgetwc(fp, locale); 64 fgetwc(FILE *fp) argument 66 return fgetwc_l(fp, __get_locale()); 72 * wide streams, this should always be fp->_mbstate. On return, *nread 76 __fgetwc_mbs(FILE *fp, mbstate_t *mbs, int *nread, locale_t locale) argument 83 if (fp->_r <= 0 && __srefill(fp)) [all...] |
H A D | fgetc.c | 46 fgetc(FILE *fp) argument 49 FLOCKFILE_CANCELSAFE(fp); 51 /* ORIENT(fp, -1); */ 52 retval = __sgetc(fp);
|
H A D | makebuf.c | 58 __smakebuf(FILE *fp) argument 65 if (fp->_flags & __SNBF) { 66 fp->_bf._base = fp->_p = fp->_nbuf; 67 fp->_bf._size = 1; 70 flags = __swhatbuf(fp, &size, &couldbetty); 72 fp->_flags |= __SNBF; 73 fp->_bf._base = fp 90 __swhatbuf(FILE *fp, size_t *bufsize, int *couldbetty) argument [all...] |
H A D | fvwrite.c | 52 __sfvwrite(FILE *fp, struct __suio *uio) argument 64 if (prepwrite(fp) != 0) 68 #define COPY(n) (void)memcpy((void *)fp->_p, (void *)p, (size_t)(n)) 81 if (fp->_flags & __SNBF) { 87 w = _swrite(fp, p, MIN(len, BUFSIZ)); 93 } else if ((fp->_flags & __SLBF) == 0) { 107 if ((fp->_flags & (__SALC | __SSTR)) == 108 (__SALC | __SSTR) && fp->_w < len) { 109 size_t blen = fp->_p - fp [all...] |
/freebsd-11-stable/lib/libc/tests/stdio/ |
H A D | open_memstream2_test.c | 57 FILE *fp; local 60 fp = open_memstream(&buf, &len); 61 ATF_REQUIRE_MSG(fp != NULL, "open_memstream failed"); 63 fprintf(fp, "hello my world"); 64 fflush(fp); 66 eob = ftello(fp); 67 rewind(fp); 68 fprintf(fp, "good-bye"); 69 fseeko(fp, eob, SEEK_SET); 70 fclose(fp); 81 FILE *fp; local 154 FILE *fp; local [all...] |
/freebsd-11-stable/contrib/ipfilter/lib/ |
H A D | printlog.c | 17 printlog(fp) 18 frentry_t *fp; 23 if (fp->fr_flags & FR_LOGBODY) 25 if (fp->fr_flags & FR_LOGFIRST) 27 if (fp->fr_flags & FR_LOGORBLOCK) 29 if (fp->fr_loglevel != 0xffff) { 31 s = fac_toname(fp->fr_loglevel); 34 u = pri_toname(fp->fr_loglevel);
|
/freebsd-11-stable/lib/libc/sparc64/fpu/ |
H A D | fpu_implode.c | 57 #include <machine/fp.h> 76 * 2 bits (a la fpu_shr(), but we do not bother with fp->fp_sticky). 79 * Note that we may leave the value 2.0 in fp->fp_mant; it is the caller's 83 fpround(struct fpemu *fe, struct fpn *fp) argument 88 m0 = fp->fp_mant[0]; 89 m1 = fp->fp_mant[1]; 90 m2 = fp->fp_mant[2]; 91 m3 = fp->fp_mant[3]; 93 s = fp->fp_sticky; 117 if ((gr & 1) || fp [all...] |