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

1234567891011>>

/freebsd-9.3-release/lib/libc/stdio/
H A Dwsetup.c50 __swsetup(fp)
51 FILE *fp;
60 if ((fp->_flags & __SWR) == 0) {
61 if ((fp->_flags & __SRW) == 0) {
63 fp->_flags |= __SERR;
66 if (fp->_flags & __SRD) {
68 if (HASUB(fp))
69 FREEUB(fp);
70 fp->_flags &= ~(__SRD|__SEOF);
71 fp
[all...]
H A Drefill.c51 lflush(FILE *fp) argument
55 if ((fp->_flags & (__SLBF|__SWR)) == (__SLBF|__SWR)) {
56 FLOCKFILE(fp);
57 ret = __sflush(fp);
58 FUNLOCKFILE(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
[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.c49 fclose(FILE *fp) argument
53 if (fp->_flags == 0) { /* not open! */
57 FLOCKFILE(fp);
58 r = fp->_flags & __SWR ? __sflush(fp) : 0;
59 if (fp->_close != NULL && (*fp->_close)(fp->_cookie) < 0)
61 if (fp->_flags & __SMBF)
62 free((char *)fp
[all...]
H A Dfpurge.c52 fpurge(fp)
53 FILE *fp;
56 FLOCKFILE(fp);
57 if (!fp->_flags) {
61 if (HASUB(fp))
62 FREEUB(fp);
63 fp->_p = fp->_bf._base;
64 fp->_r = 0;
65 fp
[all...]
H A Dclrerr.c48 clearerr(fp)
49 FILE *fp;
51 FLOCKFILE(fp);
52 __sclearerr(fp);
53 FUNLOCKFILE(fp);
57 clearerr_unlocked(FILE *fp) argument
60 __sclearerr(fp);
H A Dftell.c52 ftell(fp)
53 FILE *fp;
57 rv = ftello(fp);
69 ftello(fp)
70 FILE *fp;
75 FLOCKFILE(fp);
76 ret = _ftello(fp, &rv);
77 FUNLOCKFILE(fp);
88 _ftello(fp, offset)
89 FILE *fp;
[all...]
H A Drget.c48 __srget(FILE *fp) argument
50 if (__srefill(fp) == 0) {
51 fp->_r--;
52 return (*fp->_p++);
H A Dfreopen.c58 freopen(file, mode, fp)
61 FILE *fp;
68 (void) fclose(fp);
73 FLOCKFILE(fp);
85 if (fp->_flags == 0) {
86 FUNLOCKFILE(fp);
90 if ((dflags = _fcntl(fp->_file, F_GETFL)) < 0) {
92 fclose(fp);
93 FUNLOCKFILE(fp);
99 fclose(fp);
[all...]
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 Dgetc.c49 getc(FILE *fp) argument
52 FLOCKFILE(fp);
54 /* ORIENT(fp, -1); */
55 retval = __sgetc(fp);
56 FUNLOCKFILE(fp);
61 getc_unlocked(FILE *fp) argument
64 return (__sgetc(fp));
H A Dwbuf.c50 __swbuf(c, fp)
52 FILE *fp;
63 fp->_w = fp->_lbfsize;
64 if (prepwrite(fp) != 0)
68 ORIENT(fp, -1);
79 n = fp->_p - fp->_bf._base;
80 if (n >= fp->_bf._size) {
81 if (__fflush(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(fp);
72 if ((fp->_flags & (__SWR | __SRW)) == 0) {
76 retval = __sflush(fp);
77 FUNLOCKFILE(fp);
82 * Flush a single file, or (if fp is NULL) all files.
86 __fflush(FILE *fp) argument
90 if (fp
101 __sflush(FILE *fp) argument
133 sflush_locked(FILE *fp) argument
[all...]
/freebsd-9.3-release/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-9.3-release/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-9.3-release/contrib/ipfilter/lib/
H A Dprintfr.c93 void printfr(fp, iocfunc)
94 struct frentry *fp;
105 type = fp->fr_type & ~FR_T_BUILTIN;
107 if ((fp->fr_type & FR_T_BUILTIN) != 0)
110 if (fp->fr_collect != 0)
111 printf("%u ", fp->fr_collect);
113 if (fp->fr_type == FR_T_CALLFUNC) {
115 } else if (fp->fr_func != NULL) {
117 if ((fp->fr_flags & FR_CALLNOW) != 0)
119 s = kvatoname(fp
[all...]
/freebsd-9.3-release/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-9.3-release/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-9.3-release/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 190 milliseconds

1234567891011>>