Searched refs:cfp (Results 1 - 12 of 12) sorted by relevance

/freebsd-10.0-release/contrib/sendmail/libsm/
H A Dcf.c45 SM_FILE_T *cfp; local
53 cfp = sm_io_open(SmFtStdio, SM_TIME_DEFAULT, path, SM_IO_RDONLY, NULL);
54 if (cfp == NULL)
57 while (sm_io_fgets(cfp, SM_TIME_DEFAULT, buf, sizeof(buf)) >= 0)
90 if (sm_io_error(cfp))
94 (void) sm_io_close(cfp, SM_TIME_DEFAULT);
98 (void) sm_io_close(cfp, SM_TIME_DEFAULT);
/freebsd-10.0-release/usr.sbin/lpr/common_source/
H A Drmjob.c193 FILE *cfp; local
198 if ((cfp = fopen(file, "r")) == NULL)
201 while (getline(cfp)) {
209 (void) fclose(cfp);
235 FILE *cfp; local
251 if ((cfp = fopen(file, "r")) == NULL)
254 while (getline(cfp)) {
258 (void) fclose(cfp);
H A Ddisplayq.c387 FILE *cfp; local
394 if ((cfp = fopen(cf, "r")) == NULL)
418 while (getline(cfp)) {
422 fclose(cfp);
464 fclose(cfp);
H A Dcommon.c83 * Getline reads a line from the control file cfp, removes tabs, converts
88 getline(FILE *cfp) argument
94 while ((c = getc(cfp)) != '\n' && (size_t)(linel+1) < sizeof(line)) {
/freebsd-10.0-release/contrib/sendmail/praliases/
H A Dpraliases.c65 SM_FILE_T *cfp; local
116 if ((cfp = sm_io_open(SmFtStdio, SM_TIME_DEFAULT, cfile, SM_IO_RDONLY,
125 while (sm_io_fgets(cfp, SM_TIME_DEFAULT, buf, sizeof(buf)) >= 0)
160 (void) sm_io_close(cfp, SM_TIME_DEFAULT);
225 (void) sm_io_close(cfp, SM_TIME_DEFAULT);
/freebsd-10.0-release/usr.bin/chat/
H A Dchat.c324 FILE *cfp; local
326 cfp = fopen (chatfile, "r");
327 if (cfp == NULL)
333 while (fgets(buf, STR_LEN, cfp) != NULL) {
381 fclose (cfp);
/freebsd-10.0-release/contrib/sendmail/editmap/
H A Deditmap.c102 FILE *cfp; local
214 if ((cfp = fopen(cfile, "r")) == NULL)
220 while (fgets(buf, sizeof(buf), cfp) != NULL)
270 (void) fclose(cfp);
/freebsd-10.0-release/contrib/sendmail/mailstats/
H A Dmailstats.c56 SM_FILE_T *cfp; local
122 if ((cfp = sm_io_open(SmFtStdio, SM_TIME_DEFAULT, cfile, SM_IO_RDONLY,
137 while (sm_io_fgets(cfp, SM_TIME_DEFAULT, buf, sizeof(buf)) >= 0)
212 (void) sm_io_close(cfp, SM_TIME_DEFAULT);
/freebsd-10.0-release/contrib/sendmail/makemap/
H A Dmakemap.c107 SM_FILE_T *cfp; local
238 if ((cfp = sm_io_open(SmFtStdio, SM_TIME_DEFAULT, cfile, SM_IO_RDONLY,
245 while (sm_io_fgets(cfp, SM_TIME_DEFAULT, buf, sizeof(buf)) >= 0)
297 (void) sm_io_close(cfp, SM_TIME_DEFAULT);
/freebsd-10.0-release/lib/libc/rpc/
H A Dsvc_vc.c435 struct cf_rendezvous *cfp; local
437 cfp = (struct cf_rendezvous *)xprt->xp_p1;
438 if (cfp == NULL)
442 *(int *)in = cfp->maxrec;
445 cfp->maxrec = *(int *)in;
470 struct cf_conn *cfp; local
477 cfp = (struct cf_conn *)xprt->xp_p1;
479 if (cfp->nonblock) {
488 gettimeofday(&cfp->last_recv_time, NULL);
510 gettimeofday(&cfp
[all...]
/freebsd-10.0-release/usr.sbin/lpr/lpd/
H A Dprintjob.c99 static FILE *cfp; /* control file */ variable
398 if ((cfp = fopen(file, "r")) == NULL) {
455 while (getline(cfp))
559 (void) fclose(cfp);
579 fseek(cfp, 0L, 0);
580 while (getline(cfp))
600 (void) fclose(cfp);
903 if ((cfp = fopen(file, "r")) == NULL)
925 while (getline(cfp)) {
957 while ((i = getline(cfp)) !
[all...]
/freebsd-10.0-release/sys/fs/nfsserver/
H A Dnfs_nfsdstate.c114 uint64_t first, uint64_t end, struct nfslockconflict *cfp, NFSPROC_T *p);
118 int oldflags, uint64_t first, uint64_t end, struct nfslockconflict *cfp,
1308 struct nfslock **new_lopp, struct nfslockconflict *cfp,
1416 new_lop->lo_first, new_lop->lo_end, cfp, p);
1843 if (cfp != NULL && ret == 0) {
1844 cfp->cl_clientid.lval[0]=lop->lo_stp->ls_stateid.other[0];
1845 cfp->cl_clientid.lval[1]=lop->lo_stp->ls_stateid.other[1];
1846 cfp->cl_first = lop->lo_first;
1847 cfp->cl_end = lop->lo_end;
1848 cfp
1307 nfsrv_lockctrl(vnode_t vp, struct nfsstate **new_stpp, struct nfslock **new_lopp, struct nfslockconflict *cfp, nfsquad_t clientid, nfsv4stateid_t *stateidp, __unused struct nfsexstuff *exp, struct nfsrv_descript *nd, NFSPROC_T *p) argument
4994 nfsrv_locallock(vnode_t vp, struct nfslockfile *lfp, int flags, uint64_t first, uint64_t end, struct nfslockconflict *cfp, NFSPROC_T *p) argument
5129 nfsrv_dolocal(vnode_t vp, struct nfslockfile *lfp, int flags, int oldflags, uint64_t first, uint64_t end, struct nfslockconflict *cfp, NFSPROC_T *p) argument
[all...]

Completed in 295 milliseconds