/freebsd-current/lib/libc/stdio/ |
H A D | clrerr.c | 44 clearerr(FILE *fp) argument 46 FLOCKFILE(fp); 47 __sclearerr(fp); 48 FUNLOCKFILE(fp); 52 clearerr_unlocked(FILE *fp) argument 55 __sclearerr(fp);
|
H A D | rget.c | 44 __srget(FILE *fp) argument 46 if (__srefill(fp) == 0) { 47 fp->_r--; 48 return (*fp->_p++);
|
H A D | wsetup.c | 46 __swsetup(FILE *fp) argument 55 if ((fp->_flags & __SWR) == 0) { 56 if ((fp->_flags & __SRW) == 0) { 58 fp->_flags |= __SERR; 61 if (fp->_flags & __SRD) { 63 if (HASUB(fp)) 64 FREEUB(fp); 65 fp->_flags &= ~(__SRD|__SEOF); 66 fp->_r = 0; 67 fp [all...] |
H A D | refill.c | 47 lflush(FILE *fp) argument 51 if ((fp->_flags & (__SLBF|__SWR)) == (__SLBF|__SWR)) { 52 FLOCKFILE_CANCELSAFE(fp); 53 ret = __sflush(fp); 64 __srefill(FILE *fp) argument 71 ORIENT(fp, -1); 73 fp->_r = 0; /* largely a convenience for callers */ 76 if (fp->_flags & __SEOF) 80 if ((fp->_flags & __SRD) == 0) { 81 if ((fp [all...] |
H A D | wbuf.c | 47 __swbuf(int c, FILE *fp) argument 58 fp->_w = fp->_lbfsize; 59 if (prepwrite(fp) != 0) { 65 ORIENT(fp, -1); 76 n = fp->_p - fp->_bf._base; 77 if (n >= fp->_bf._size) { 78 if (__fflush(fp) != 0) 82 fp [all...] |
H A D | ungetc.c | 46 * Expand the ungetc buffer `in place'. That is, adjust fp->_p when 52 __submore(FILE *fp) argument 57 if (fp->_ub._base == fp->_ubuf) { 63 fp->_ub._base = p; 64 fp->_ub._size = BUFSIZ; 65 p += BUFSIZ - sizeof(fp->_ubuf); 66 for (i = sizeof(fp->_ubuf); --i >= 0;) 67 p[i] = fp->_ubuf[i]; 68 fp 87 ungetc(int c, FILE *fp) argument 104 __ungetc(int c, FILE *fp) argument [all...] |
H A D | fclose.c | 47 cleanfile(FILE *fp, bool c) argument 51 r = fp->_flags & __SWR ? __sflush(fp) : 0; 53 if (fp->_close != NULL && (*fp->_close)(fp->_cookie) < 0) 57 if (fp->_flags & __SMBF) 58 free((char *)fp->_bf._base); 59 if (HASUB(fp)) 60 FREEUB(fp); 84 fdclose(FILE *fp, int *fdp) argument 120 fclose(FILE *fp) argument [all...] |
H A D | fpurge.c | 48 fpurge(FILE *fp) argument 51 FLOCKFILE(fp); 52 if (!fp->_flags) { 56 if (HASUB(fp)) 57 FREEUB(fp); 58 fp->_p = fp->_bf._base; 59 fp->_r = 0; 60 fp->_w = fp [all...] |
H A D | fgetc.c | 42 fgetc(FILE *fp) argument 45 FLOCKFILE_CANCELSAFE(fp); 47 /* ORIENT(fp, -1); */ 48 retval = __sgetc(fp);
|
H A D | fflush.c | 45 * Flush a single file, or (if fp is NULL) all files. 49 fflush(FILE *fp) argument 53 if (fp == NULL) 55 FLOCKFILE_CANCELSAFE(fp); 71 if ((fp->_flags & (__SWR | __SRW)) == 0) 74 retval = __sflush(fp); 80 * Flush a single file, or (if fp is NULL) all files. 84 __fflush(FILE *fp) argument 88 if (fp == NULL) 90 if ((fp 100 __sflush(FILE *fp) argument 139 sflush_locked(FILE *fp) argument [all...] |
H A D | freopen.c | 55 FILE * __restrict fp) 62 (void) fclose(fp); 67 FLOCKFILE_CANCELSAFE(fp); 79 if (fp->_flags == 0) { 81 fp = NULL; 84 if ((dflags = _fcntl(fp->_file, F_GETFL)) < 0) { 86 fclose(fp); 88 fp = NULL; 94 fclose(fp); 96 fp 54 freopen(const char * __restrict file, const char * __restrict mode, FILE * __restrict fp) argument [all...] |
H A D | fwide.c | 38 fwide(FILE *fp, int mode) argument 42 FLOCKFILE(fp); 44 if (mode != 0 && fp->_orientation == 0) 45 fp->_orientation = mode > 0 ? 1 : -1; 46 m = fp->_orientation; 47 FUNLOCKFILE(fp);
|
H A D | fileno.c | 44 fileno(FILE *fp) argument 48 FLOCKFILE(fp); 49 fd = __sfileno(fp); 50 FUNLOCKFILE(fp); 56 fileno_unlocked(FILE *fp) argument 59 return (__sfileno(fp));
|
H A D | feof.c | 44 feof(FILE *fp) argument 48 FLOCKFILE(fp); 49 ret= __sfeof(fp); 50 FUNLOCKFILE(fp); 55 feof_unlocked(FILE *fp) argument 58 return (__sfeof(fp));
|
H A D | ferror.c | 44 ferror(FILE *fp) argument 48 FLOCKFILE(fp); 49 ret = __sferror(fp); 50 FUNLOCKFILE(fp); 55 ferror_unlocked(FILE *fp) argument 58 return (__sferror(fp));
|
H A D | stdio.c | 51 FILE *fp = cookie; local 53 return(_read(fp->_file, buf, (size_t)n)); 59 FILE *fp = cookie; local 61 return (_write(fp->_file, buf, (size_t)n)); 67 FILE *fp = cookie; local 69 return (lseek(fp->_file, (off_t)offset, whence)); 83 _sread(FILE *fp, char *buf, int n) argument 87 ret = (*fp->_read)(fp->_cookie, buf, n); 89 if (fp 101 _swrite(FILE *fp, char const *buf, int n) argument 128 _sseek(FILE *fp, fpos_t offset, int whence) argument [all...] |
H A D | ftell.c | 48 ftell(FILE *fp) argument 52 rv = ftello(fp); 64 ftello(FILE *fp) argument 69 FLOCKFILE(fp); 70 ret = _ftello(fp, &rv); 71 FUNLOCKFILE(fp); 82 _ftello(FILE *fp, fpos_t *offset) argument 87 if (fp->_seek == NULL) { 96 if (!(fp->_flags & __SRD) && (fp [all...] |
H A D | funopen.c | 47 FILE *fp; local 62 if ((fp = __sfp()) == NULL) 64 fp->_flags = flags; 65 fp->_file = -1; 66 fp->_cookie = (void *)cookie; 67 fp->_read = readfn; 68 fp->_write = writefn; 69 fp->_seek = seekfn; 70 fp->_close = closefn; 71 return (fp); [all...] |
/freebsd-current/sys/riscv/riscv/ |
H A D | unwind.c | 44 uintptr_t fp; local 46 fp = frame->fp; 48 if (!__is_aligned(fp, sizeof(fp)) || 49 !kstack_contains(td, fp - sizeof(fp) * 2, sizeof(fp) * 2)) 52 frame->sp = fp; 53 frame->fp [all...] |
/freebsd-current/contrib/sendmail/libsm/ |
H A D | wsetup.c | 30 ** fp -- the file pointer 38 sm_wsetup(fp) 39 register SM_FILE_T *fp; 46 if ((fp->f_flags & SMWR) == 0) 48 if ((fp->f_flags & SMRW) == 0) 53 if (fp->f_flags & SMRD) 56 if (HASUB(fp)) 57 FREEUB(fp); 60 fp->f_flags &= ~(SMRD|SMFEOF); 61 fp [all...] |
H A D | ungetc.c | 34 ** Expand the ungetc buffer `in place'. That is, adjust fp->f_p when 40 ** fp -- the file pointer 50 sm_submore_x(fp) 51 SM_FILE_T *fp; 56 if (fp->f_ub.smb_base == fp->f_ubuf) 60 fp->f_ub.smb_base = p; 61 fp->f_ub.smb_size = SM_IO_BUFSIZ; 62 p += SM_IO_BUFSIZ - sizeof(fp->f_ubuf); 63 for (i = sizeof(fp [all...] |
H A D | fpurge.c | 27 ** fp -- file pointer to purge 35 sm_io_purge(fp) 36 register SM_FILE_T *fp; 38 SM_REQUIRE_ISA(fp, SmFileMagic); 39 if (!fp->f_flags) 45 if (HASUB(fp)) 46 FREEUB(fp); 47 fp->f_p = fp->f_bf.smb_base; 48 fp [all...] |
/freebsd-current/sys/arm64/arm64/ |
H A D | unwind.c | 38 uintptr_t fp; local 40 fp = frame->fp; 42 if (!__is_aligned(fp, sizeof(fp)) || 43 !kstack_contains(td, fp, sizeof(fp) * 2)) 47 frame->fp = ((uintptr_t *)fp)[0]; 49 frame->pc = ADDR_MAKE_CANONICAL(((uintptr_t *)fp)[ [all...] |
/freebsd-current/sbin/ipf/libipf/ |
H A D | printfr.c | 17 printfr( struct frentry *fp, ioctlfunc_t iocfunc) argument 27 type = fp->fr_type & ~FR_T_BUILTIN; 29 if ((fp->fr_type & FR_T_BUILTIN) != 0) 32 if (fp->fr_collect != 0) 33 PRINTF("%u ", fp->fr_collect); 35 if (fp->fr_type == FR_T_CALLFUNC) { 37 } else if (fp->fr_func != NULL) { 39 if ((fp->fr_flags & FR_CALLNOW) != 0) 41 s = kvatoname(fp->fr_func, iocfunc); 42 PRINTF(" %s/%u", s ? s : "?", fp [all...] |
/freebsd-current/usr.sbin/ppp/ |
H A D | fsm.c | 129 struct fsm *fp = (struct fsm *)v; local 131 log_Printf(fp->LogLevel, "%s: Stopped timer expired\n", fp->link->name); 132 if (fp->OpenTimer.state == TIMER_RUNNING) { 134 fp->link->name, fp->name); 135 timer_Stop(&fp->OpenTimer); 137 if (fp->state == ST_STOPPED) 138 fsm2initial(fp); 142 fsm_Init(struct fsm *fp, cons argument 169 NewState(struct fsm *fp, int new) argument 188 fsm_Output(struct fsm *fp, u_int code, u_int id, u_char *ptr, unsigned count, int mtype) argument 229 struct fsm *fp = (struct fsm *)v; local 255 fsm_Open(struct fsm *fp) argument 293 fsm_Up(struct fsm *fp) argument 314 fsm_Down(struct fsm *fp) argument 346 fsm_Close(struct fsm *fp) argument 383 FsmSendConfigReq(struct fsm *fp) argument 398 FsmSendTerminateReq(struct fsm *fp) argument 412 struct fsm *fp = (struct fsm *)v; local 454 FsmInitRestartCounter(struct fsm *fp, int what) argument 466 FsmRecvConfigReq(struct fsm *fp, struct fsmheader *lhp, struct mbuf *bp) argument 576 (*fp->parent->LayerUp)(fp->parent->object, fp); local 609 FsmRecvConfigAck(struct fsm *fp, struct fsmheader *lhp, struct mbuf *bp) argument 652 (*fp->parent->LayerUp)(fp->parent->object, fp); local 672 FsmRecvConfigNak(struct fsm *fp, struct fsmheader *lhp, struct mbuf *bp) argument 738 FsmRecvTermReq(struct fsm *fp, struct fsmheader *lhp, struct mbuf *bp) argument 774 FsmRecvTermAck(struct fsm *fp, struct fsmheader *lhp __unused, struct mbuf *bp) argument 802 FsmRecvConfigRej(struct fsm *fp, struct fsmheader *lhp, struct mbuf *bp) argument 877 FsmRecvProtoRej(struct fsm *fp, struct fsmheader *lhp __unused, struct mbuf *bp) argument 949 FsmRecvEchoReq(struct fsm *fp, struct fsmheader *lhp, struct mbuf *bp) argument 977 FsmRecvEchoRep(struct fsm *fp, struct fsmheader *lhp __unused, struct mbuf *bp) argument 993 FsmRecvIdent(struct fsm *fp, struct fsmheader *lhp, struct mbuf *bp) argument 1022 FsmRecvResetReq(struct fsm *fp, struct fsmheader *lhp, struct mbuf *bp) argument 1037 FsmRecvResetAck(struct fsm *fp, struct fsmheader *lhp, struct mbuf *bp) argument 1044 fsm_Input(struct fsm *fp, struct mbuf *bp) argument 1098 fsm_NullRecvResetReq(struct fsm *fp) argument 1106 fsm_NullRecvResetAck(struct fsm *fp, u_char id __unused) argument 1113 fsm_Reopen(struct fsm *fp) argument 1125 fsm2initial(struct fsm *fp) argument [all...] |