Searched refs:fp (Results 1 - 25 of 1217) sorted by relevance

1234567891011>>

/freebsd-head/usr.sbin/bhyve/
H A Dacpi.c132 FILE *fp; member in struct:basl_fio
143 basl_fwrite_rsdp(FILE *fp) argument
145 EFPRINTF(fp, "/*\n");
146 EFPRINTF(fp, " * bhyve RSDP template\n");
147 EFPRINTF(fp, " */\n");
148 EFPRINTF(fp, "[0008]\t\tSignature : \"RSD PTR \"\n");
149 EFPRINTF(fp, "[0001]\t\tChecksum : 43\n");
150 EFPRINTF(fp, "[0006]\t\tOem ID : \"BHYVE \"\n");
151 EFPRINTF(fp, "[0001]\t\tRevision : 02\n");
152 EFPRINTF(fp, "[000
169 basl_fwrite_rsdt(FILE *fp) argument
205 basl_fwrite_xsdt(FILE *fp) argument
241 basl_fwrite_madt(FILE *fp) argument
329 basl_fwrite_fadt(FILE *fp) argument
546 basl_fwrite_hpet(FILE *fp) argument
591 basl_fwrite_mcfg(FILE *fp) argument
622 basl_fwrite_facs(FILE *fp) argument
725 basl_fwrite_dsdt(FILE *fp) argument
[all...]
/freebsd-head/contrib/sendmail/libsm/
H A Dwsetup.c30 ** 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 Dungetc.c34 ** 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 Dfpurge.c27 ** 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-head/lib/libc/stdio/
H A Dwsetup.c52 __swsetup(FILE *fp) argument
61 if ((fp->_flags & __SWR) == 0) {
62 if ((fp->_flags & __SRW) == 0) {
64 fp->_flags |= __SERR;
67 if (fp->_flags & __SRD) {
69 if (HASUB(fp))
70 FREEUB(fp);
71 fp->_flags &= ~(__SRD|__SEOF);
72 fp->_r = 0;
73 fp
[all...]
H A Drefill.c53 lflush(FILE *fp) argument
57 if ((fp->_flags & (__SLBF|__SWR)) == (__SLBF|__SWR)) {
58 FLOCKFILE_CANCELSAFE(fp);
59 ret = __sflush(fp);
70 __srefill(FILE *fp) argument
77 ORIENT(fp, -1);
79 fp->_r = 0; /* largely a convenience for callers */
82 if (fp->_flags & __SEOF)
86 if ((fp->_flags & __SRD) == 0) {
87 if ((fp
[all...]
H A Dungetc.c52 * Expand the ungetc buffer `in place'. That is, adjust fp->_p when
58 __submore(FILE *fp) argument
63 if (fp->_ub._base == fp->_ubuf) {
69 fp->_ub._base = p;
70 fp->_ub._size = BUFSIZ;
71 p += BUFSIZ - sizeof(fp->_ubuf);
72 for (i = sizeof(fp->_ubuf); --i >= 0;)
73 p[i] = fp->_ubuf[i];
74 fp
93 ungetc(int c, FILE *fp) argument
110 __ungetc(int c, FILE *fp) argument
[all...]
H A Dfclose.c53 cleanfile(FILE *fp, bool c) argument
57 r = fp->_flags & __SWR ? __sflush(fp) : 0;
59 if (fp->_close != NULL && (*fp->_close)(fp->_cookie) < 0)
63 if (fp->_flags & __SMBF)
64 free((char *)fp->_bf._base);
65 if (HASUB(fp))
66 FREEUB(fp);
90 fdclose(FILE *fp, int *fdp) argument
126 fclose(FILE *fp) argument
[all...]
H A Dfpurge.c54 fpurge(FILE *fp) argument
57 FLOCKFILE(fp);
58 if (!fp->_flags) {
62 if (HASUB(fp))
63 FREEUB(fp);
64 fp->_p = fp->_bf._base;
65 fp->_r = 0;
66 fp->_w = fp
[all...]
H A Dfflush.c51 * Flush a single file, or (if fp is NULL) all files.
55 fflush(FILE *fp) argument
59 if (fp == NULL)
61 FLOCKFILE_CANCELSAFE(fp);
77 if ((fp->_flags & (__SWR | __SRW)) == 0)
80 retval = __sflush(fp);
86 * Flush a single file, or (if fp is NULL) all files.
90 __fflush(FILE *fp) argument
94 if (fp == NULL)
96 if ((fp
106 __sflush(FILE *fp) argument
146 sflush_locked(FILE *fp) argument
[all...]
H A Dfreopen.c61 FILE * __restrict fp)
68 (void) fclose(fp);
73 FLOCKFILE_CANCELSAFE(fp);
85 if (fp->_flags == 0) {
87 fp = NULL;
90 if ((dflags = _fcntl(fp->_file, F_GETFL)) < 0) {
92 fclose(fp);
94 fp = NULL;
100 fclose(fp);
102 fp
60 freopen(const char * __restrict file, const char * __restrict mode, FILE * __restrict fp) argument
[all...]
H A Drget.c50 __srget(FILE *fp) argument
52 if (__srefill(fp) == 0) {
53 fp->_r--;
54 return (*fp->_p++);
H A Dclrerr.c50 clearerr(FILE *fp) argument
52 FLOCKFILE(fp);
53 __sclearerr(fp);
54 FUNLOCKFILE(fp);
58 clearerr_unlocked(FILE *fp) argument
61 __sclearerr(fp);
H A Dfeof.c50 feof(FILE *fp) argument
54 FLOCKFILE(fp);
55 ret= __sfeof(fp);
56 FUNLOCKFILE(fp);
61 feof_unlocked(FILE *fp) argument
64 return (__sfeof(fp));
H A Dferror.c50 ferror(FILE *fp) argument
54 FLOCKFILE(fp);
55 ret = __sferror(fp);
56 FUNLOCKFILE(fp);
61 ferror_unlocked(FILE *fp) argument
64 return (__sferror(fp));
H A Dfileno.c50 fileno(FILE *fp) argument
54 FLOCKFILE(fp);
55 fd = __sfileno(fp);
56 FUNLOCKFILE(fp);
62 fileno_unlocked(FILE *fp) argument
65 return (__sfileno(fp));
H A Dfwide.c41 fwide(FILE *fp, int mode) argument
45 FLOCKFILE(fp);
47 if (mode != 0 && fp->_orientation == 0)
48 fp->_orientation = mode > 0 ? 1 : -1;
49 m = fp->_orientation;
50 FUNLOCKFILE(fp);
H A Dstdio.c57 FILE *fp = cookie; local
59 return(_read(fp->_file, buf, (size_t)n));
65 FILE *fp = cookie; local
67 return (_write(fp->_file, buf, (size_t)n));
73 FILE *fp = cookie; local
75 return (lseek(fp->_file, (off_t)offset, whence));
89 _sread(FILE *fp, char *buf, int n) argument
93 ret = (*fp->_read)(fp->_cookie, buf, n);
95 if (fp
107 _swrite(FILE *fp, char const *buf, int n) argument
134 _sseek(FILE *fp, fpos_t offset, int whence) argument
[all...]
H A Dftell.c54 ftell(FILE *fp) argument
58 rv = ftello(fp);
70 ftello(FILE *fp) argument
75 FLOCKFILE(fp);
76 ret = _ftello(fp, &rv);
77 FUNLOCKFILE(fp);
88 _ftello(FILE *fp, fpos_t *offset) argument
93 if (fp->_seek == NULL) {
102 if (!(fp->_flags & __SRD) && (fp
[all...]
/freebsd-head/contrib/ipfilter/lib/
H A Dprintfr.c18 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-head/contrib/tzcode/zic/
H A Dscheck.c27 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-head/contrib/binutils/gas/
H A Ddebug.c52 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-head/sys/arm64/arm64/
H A Dunwind.c40 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-head/sys/riscv/riscv/
H A Dunwind.c45 uintptr_t fp; local
47 fp = frame->fp;
49 if (!INKERNEL(fp))
52 frame->sp = fp;
53 frame->fp = ((uintptr_t *)fp)[-2];
54 frame->pc = ((uintptr_t *)fp)[-1] - 4;
/freebsd-head/usr.sbin/ppp/
H A Dfsm.c131 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...]

Completed in 127 milliseconds

1234567891011>>