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

1234567891011>>

/freebsd-10-stable/usr.sbin/bhyve/
H A Dacpi.c114 FILE *fp; member in struct:basl_fio
125 basl_fwrite_rsdp(FILE *fp) argument
131 EFPRINTF(fp, "/*\n");
132 EFPRINTF(fp, " * bhyve RSDP template\n");
133 EFPRINTF(fp, " */\n");
134 EFPRINTF(fp, "[0008]\t\tSignature : \"RSD PTR \"\n");
135 EFPRINTF(fp, "[0001]\t\tChecksum : 43\n");
136 EFPRINTF(fp, "[0006]\t\tOem ID : \"BHYVE \"\n");
137 EFPRINTF(fp, "[0001]\t\tRevision : 02\n");
138 EFPRINTF(fp, "[000
155 basl_fwrite_rsdt(FILE *fp) argument
195 basl_fwrite_xsdt(FILE *fp) argument
235 basl_fwrite_madt(FILE *fp) argument
325 basl_fwrite_fadt(FILE *fp) argument
546 basl_fwrite_hpet(FILE *fp) argument
595 basl_fwrite_mcfg(FILE *fp) argument
628 basl_fwrite_facs(FILE *fp) argument
734 basl_fwrite_dsdt(FILE *fp) argument
[all...]
/freebsd-10-stable/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...]
H A Dwbuf.c31 ** 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...]
/freebsd-10-stable/lib/libc/stdio/
H A Dwsetup.c50 __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 Drefill.c51 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 Dungetc.c50 * 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 Dfclose.c51 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 Dfpurge.c52 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 Dfflush.c49 * 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
102 __sflush(FILE *fp) argument
142 sflush_locked(FILE *fp) argument
[all...]
H A Drget.c48 __srget(FILE *fp) argument
50 if (__srefill(fp) == 0) {
51 fp->_r--;
52 return (*fp->_p++);
H A Dfreopen.c59 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 Dclrerr.c48 clearerr(FILE *fp) argument
50 FLOCKFILE(fp);
51 __sclearerr(fp);
52 FUNLOCKFILE(fp);
56 clearerr_unlocked(FILE *fp) argument
59 __sclearerr(fp);
H A Dfeof.c48 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 Dferror.c48 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 Dfileno.c48 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 Dfwide.c39 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 Dstdio.c55 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 Dftell.c52 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-10-stable/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-10-stable/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-10-stable/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-10-stable/usr.sbin/ppp/
H A Dfsm.c129 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...]
/freebsd-10-stable/contrib/gcclibs/libiberty/
H A Dfopen_unlocked.c82 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...]

Completed in 342 milliseconds

1234567891011>>