/freebsd-11-stable/usr.sbin/bhyve/ |
H A D | acpi.c | 131 FILE *fp; member in struct:basl_fio 142 basl_fwrite_rsdp(FILE *fp) argument 144 EFPRINTF(fp, "/*\n"); 145 EFPRINTF(fp, " * bhyve RSDP template\n"); 146 EFPRINTF(fp, " */\n"); 147 EFPRINTF(fp, "[0008]\t\tSignature : \"RSD PTR \"\n"); 148 EFPRINTF(fp, "[0001]\t\tChecksum : 43\n"); 149 EFPRINTF(fp, "[0006]\t\tOem ID : \"BHYVE \"\n"); 150 EFPRINTF(fp, "[0001]\t\tRevision : 02\n"); 151 EFPRINTF(fp, "[000 168 basl_fwrite_rsdt(FILE *fp) argument 204 basl_fwrite_xsdt(FILE *fp) argument 240 basl_fwrite_madt(FILE *fp) argument 327 basl_fwrite_fadt(FILE *fp) argument 544 basl_fwrite_hpet(FILE *fp) argument 589 basl_fwrite_mcfg(FILE *fp) argument 620 basl_fwrite_facs(FILE *fp) argument 723 basl_fwrite_dsdt(FILE *fp) argument [all...] |
/freebsd-11-stable/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-11-stable/lib/libc/stdio/ |
H A D | wsetup.c | 50 __swsetup(FILE *fp) argument 59 if ((fp->_flags & __SWR) == 0) { 60 if ((fp->_flags & __SRW) == 0) { 62 fp->_flags |= __SERR; 65 if (fp->_flags & __SRD) { 67 if (HASUB(fp)) 68 FREEUB(fp); 69 fp->_flags &= ~(__SRD|__SEOF); 70 fp->_r = 0; 71 fp [all...] |
H A D | refill.c | 51 lflush(FILE *fp) argument 55 if ((fp->_flags & (__SLBF|__SWR)) == (__SLBF|__SWR)) { 56 FLOCKFILE_CANCELSAFE(fp); 57 ret = __sflush(fp); 68 __srefill(FILE *fp) argument 75 ORIENT(fp, -1); 77 fp->_r = 0; /* largely a convenience for callers */ 80 if (fp->_flags & __SEOF) 84 if ((fp->_flags & __SRD) == 0) { 85 if ((fp [all...] |
H A D | ungetc.c | 50 * Expand the ungetc buffer `in place'. That is, adjust fp->_p when 56 __submore(FILE *fp) argument 61 if (fp->_ub._base == fp->_ubuf) { 67 fp->_ub._base = p; 68 fp->_ub._size = BUFSIZ; 69 p += BUFSIZ - sizeof(fp->_ubuf); 70 for (i = sizeof(fp->_ubuf); --i >= 0;) 71 p[i] = fp->_ubuf[i]; 72 fp 91 ungetc(int c, FILE *fp) argument 108 __ungetc(int c, FILE *fp) argument [all...] |
H A D | fclose.c | 51 cleanfile(FILE *fp, bool c) argument 55 r = fp->_flags & __SWR ? __sflush(fp) : 0; 57 if (fp->_close != NULL && (*fp->_close)(fp->_cookie) < 0) 61 if (fp->_flags & __SMBF) 62 free((char *)fp->_bf._base); 63 if (HASUB(fp)) 64 FREEUB(fp); 88 fdclose(FILE *fp, int *fdp) argument 124 fclose(FILE *fp) argument [all...] |
H A D | fpurge.c | 52 fpurge(FILE *fp) argument 55 FLOCKFILE(fp); 56 if (!fp->_flags) { 60 if (HASUB(fp)) 61 FREEUB(fp); 62 fp->_p = fp->_bf._base; 63 fp->_r = 0; 64 fp->_w = fp [all...] |
H A D | fflush.c | 49 * Flush a single file, or (if fp is NULL) all files. 53 fflush(FILE *fp) argument 57 if (fp == NULL) 59 FLOCKFILE_CANCELSAFE(fp); 75 if ((fp->_flags & (__SWR | __SRW)) == 0) 78 retval = __sflush(fp); 84 * Flush a single file, or (if fp is NULL) all files. 88 __fflush(FILE *fp) argument 92 if (fp == NULL) 94 if ((fp 104 __sflush(FILE *fp) argument 144 sflush_locked(FILE *fp) argument [all...] |
H A D | rget.c | 48 __srget(FILE *fp) argument 50 if (__srefill(fp) == 0) { 51 fp->_r--; 52 return (*fp->_p++);
|
H A D | freopen.c | 59 FILE * __restrict fp) 66 (void) fclose(fp); 71 FLOCKFILE_CANCELSAFE(fp); 83 if (fp->_flags == 0) { 85 fp = NULL; 88 if ((dflags = _fcntl(fp->_file, F_GETFL)) < 0) { 90 fclose(fp); 92 fp = NULL; 98 fclose(fp); 100 fp 58 freopen(const char * __restrict file, const char * __restrict mode, FILE * __restrict fp) argument [all...] |
H A D | clrerr.c | 48 clearerr(FILE *fp) argument 50 FLOCKFILE(fp); 51 __sclearerr(fp); 52 FUNLOCKFILE(fp); 56 clearerr_unlocked(FILE *fp) argument 59 __sclearerr(fp);
|
H A D | feof.c | 48 feof(FILE *fp) argument 52 FLOCKFILE(fp); 53 ret= __sfeof(fp); 54 FUNLOCKFILE(fp); 59 feof_unlocked(FILE *fp) argument 62 return (__sfeof(fp));
|
H A D | ferror.c | 48 ferror(FILE *fp) argument 52 FLOCKFILE(fp); 53 ret = __sferror(fp); 54 FUNLOCKFILE(fp); 59 ferror_unlocked(FILE *fp) argument 62 return (__sferror(fp));
|
H A D | fileno.c | 48 fileno(FILE *fp) argument 52 FLOCKFILE(fp); 53 fd = __sfileno(fp); 54 FUNLOCKFILE(fp); 60 fileno_unlocked(FILE *fp) argument 63 return (__sfileno(fp));
|
H A D | fwide.c | 39 fwide(FILE *fp, int mode) argument 43 FLOCKFILE(fp); 45 if (mode != 0 && fp->_orientation == 0) 46 fp->_orientation = mode > 0 ? 1 : -1; 47 m = fp->_orientation; 48 FUNLOCKFILE(fp);
|
H A D | stdio.c | 55 FILE *fp = cookie; local 57 return(_read(fp->_file, buf, (size_t)n)); 63 FILE *fp = cookie; local 65 return (_write(fp->_file, buf, (size_t)n)); 71 FILE *fp = cookie; local 73 return (lseek(fp->_file, (off_t)offset, whence)); 87 _sread(FILE *fp, char *buf, int n) argument 91 ret = (*fp->_read)(fp->_cookie, buf, n); 93 if (fp 105 _swrite(FILE *fp, char const *buf, int n) argument 132 _sseek(FILE *fp, fpos_t offset, int whence) argument [all...] |
H A D | ftell.c | 52 ftell(FILE *fp) argument 56 rv = ftello(fp); 68 ftello(FILE *fp) argument 73 FLOCKFILE(fp); 74 ret = _ftello(fp, &rv); 75 FUNLOCKFILE(fp); 86 _ftello(FILE *fp, fpos_t *offset) argument 91 if (fp->_seek == NULL) { 100 if (!(fp->_flags & __SRD) && (fp [all...] |
/freebsd-11-stable/contrib/ipfilter/lib/ |
H A D | 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 [all...] |
/freebsd-11-stable/contrib/tzcode/zic/ |
H A D | scheck.c | 27 register const char * fp; local 39 fp = format; 41 while ((*tp++ = c = *fp++) != '\0') { 44 if (*fp == '%') { 45 *tp++ = *fp++; 49 if (*fp == '*') 50 ++fp; 51 while (is_digit(*fp)) 52 *tp++ = *fp++; 53 if (*fp [all...] |
/freebsd-11-stable/contrib/binutils/gas/ |
H A D | debug.c | 52 dmp_frag (fp, indent) 53 struct frag *fp; 56 for (; fp; fp = fp->fr_next) 58 printf ("%sFRAGMENT @ 0x%x\n", indent, fp); 59 switch (fp->fr_type) 62 printf ("%srs_align(%d)\n", indent, fp->fr_offset); 65 printf ("%srs_fill(%d)\n", indent, fp->fr_offset); 67 var_chars (fp, f [all...] |
/freebsd-11-stable/sys/arm64/arm64/ |
H A D | unwind.c | 40 uint64_t fp; local 42 fp = frame->fp; 43 if (!INKERNEL(fp)) 46 frame->sp = fp + 0x10; 48 frame->fp = *(uint64_t *)(fp); 50 frame->pc = *(uint64_t *)(fp + 8) - 4;
|
/freebsd-11-stable/sys/riscv/riscv/ |
H A D | unwind.c | 45 uint64_t fp; local 47 fp = frame->fp; 49 if (!INKERNEL(fp)) 52 frame->sp = fp; 53 frame->fp = *(uint64_t *)(fp - 16); 54 frame->pc = *(uint64_t *)(fp - 8) - 4;
|
/freebsd-11-stable/usr.sbin/ppp/ |
H A D | fsm.c | 131 struct fsm *fp = (struct fsm *)v; local 133 log_Printf(fp->LogLevel, "%s: Stopped timer expired\n", fp->link->name); 134 if (fp->OpenTimer.state == TIMER_RUNNING) { 136 fp->link->name, fp->name); 137 timer_Stop(&fp->OpenTimer); 139 if (fp->state == ST_STOPPED) 140 fsm2initial(fp); 144 fsm_Init(struct fsm *fp, cons argument 171 NewState(struct fsm *fp, int new) argument 190 fsm_Output(struct fsm *fp, u_int code, u_int id, u_char *ptr, unsigned count, int mtype) argument 231 struct fsm *fp = (struct fsm *)v; local 257 fsm_Open(struct fsm *fp) argument 295 fsm_Up(struct fsm *fp) argument 316 fsm_Down(struct fsm *fp) argument 348 fsm_Close(struct fsm *fp) argument 385 FsmSendConfigReq(struct fsm *fp) argument 400 FsmSendTerminateReq(struct fsm *fp) argument 414 struct fsm *fp = (struct fsm *)v; local 456 FsmInitRestartCounter(struct fsm *fp, int what) argument 468 FsmRecvConfigReq(struct fsm *fp, struct fsmheader *lhp, struct mbuf *bp) argument 578 (*fp->parent->LayerUp)(fp->parent->object, fp); local 611 FsmRecvConfigAck(struct fsm *fp, struct fsmheader *lhp, struct mbuf *bp) argument 654 (*fp->parent->LayerUp)(fp->parent->object, fp); local 674 FsmRecvConfigNak(struct fsm *fp, struct fsmheader *lhp, struct mbuf *bp) argument 740 FsmRecvTermReq(struct fsm *fp, struct fsmheader *lhp, struct mbuf *bp) argument 776 FsmRecvTermAck(struct fsm *fp, struct fsmheader *lhp __unused, struct mbuf *bp) argument 804 FsmRecvConfigRej(struct fsm *fp, struct fsmheader *lhp, struct mbuf *bp) argument 879 FsmRecvProtoRej(struct fsm *fp, struct fsmheader *lhp __unused, struct mbuf *bp) argument 951 FsmRecvEchoReq(struct fsm *fp, struct fsmheader *lhp, struct mbuf *bp) argument 979 FsmRecvEchoRep(struct fsm *fp, struct fsmheader *lhp __unused, struct mbuf *bp) argument 995 FsmRecvIdent(struct fsm *fp, struct fsmheader *lhp, struct mbuf *bp) argument 1024 FsmRecvResetReq(struct fsm *fp, struct fsmheader *lhp, struct mbuf *bp) argument 1039 FsmRecvResetAck(struct fsm *fp, struct fsmheader *lhp, struct mbuf *bp) argument 1046 fsm_Input(struct fsm *fp, struct mbuf *bp) argument 1100 fsm_NullRecvResetReq(struct fsm *fp) argument 1108 fsm_NullRecvResetAck(struct fsm *fp, u_char id __unused) argument 1115 fsm_Reopen(struct fsm *fp) argument 1127 fsm2initial(struct fsm *fp) argument [all...] |