| /freebsd-13.1/usr.bin/mkuzip/ |
| H A D | mkuz_conveyor.c | 54 struct mkuz_cfg *cfp; member 61 struct mkuz_cfg *cfp; in cworker() local 67 cfp = cwp->cfp; in cworker() 70 c_ctx = cfp->handler->f_init(&cfp->comp_level); in cworker() 78 if (cfp->no_zcomp == 0 && in cworker() 83 oblk = mkuz_blk_ctor(cfp->cbound_blksz); in cworker() 85 if (cfp->en_dedup != 0) { in cworker() 107 mkuz_conveyor_ctor(struct mkuz_cfg *cfp) in mkuz_conveyor_ctor() argument 114 (sizeof(pthread_t) * cfp->nworkers)); in mkuz_conveyor_ctor() 119 for (i = 0; i < cfp->nworkers; i++) { in mkuz_conveyor_ctor() [all …]
|
| H A D | mkuz_insize.c | 43 mkuz_get_insize(struct mkuz_cfg *cfp) in mkuz_get_insize() argument 50 if (fstat(cfp->fdr, &sb) != 0) { in mkuz_get_insize() 51 warn("fstat(%s)", cfp->iname); in mkuz_get_insize() 55 if (fstatfs(cfp->fdr, &statfsbuf) != 0) { in mkuz_get_insize() 56 warn("fstatfs(%s)", cfp->iname); in mkuz_get_insize() 72 if (ioctl(cfp->fdr, DIOCGMEDIASIZE, &ms) < 0) { in mkuz_get_insize() 79 cfp->iname); in mkuz_get_insize()
|
| /freebsd-13.1/contrib/sendmail/libsm/ |
| H A D | cf.c | 45 SM_FILE_T *cfp; variable 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-13.1/usr.sbin/lpr/common_source/ |
| H A D | rmjob.c | 195 FILE *cfp; in process() local 200 if ((cfp = fopen(file, "r")) == NULL) in process() 203 while (get_line(cfp)) { in process() 211 (void) fclose(cfp); in process() 237 FILE *cfp; in chk() local 253 if ((cfp = fopen(file, "r")) == NULL) in chk() 256 while (get_line(cfp)) { in chk() 260 (void) fclose(cfp); in chk()
|
| H A D | displayq.c | 389 FILE *cfp; in inform() local 396 if ((cfp = fopen(cf, "r")) == NULL) in inform() 420 while (get_line(cfp)) { in inform() 424 fclose(cfp); in inform() 466 fclose(cfp); in inform()
|
| H A D | common.c | 90 get_line(FILE *cfp) in get_line() argument 96 while ((c = getc(cfp)) != '\n' && (size_t)(linel+1) < sizeof(line)) { in get_line()
|
| /freebsd-13.1/contrib/sendmail/praliases/ |
| H A D | praliases.c | 65 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-13.1/lib/libc/rpc/ |
| H A D | svc_vc.c | 427 struct cf_rendezvous *cfp; in svc_vc_rendezvous_control() local 429 cfp = (struct cf_rendezvous *)xprt->xp_p1; in svc_vc_rendezvous_control() 430 if (cfp == NULL) in svc_vc_rendezvous_control() 434 *(int *)in = cfp->maxrec; in svc_vc_rendezvous_control() 437 cfp->maxrec = *(int *)in; in svc_vc_rendezvous_control() 459 struct cf_conn *cfp; in read_vc() local 466 cfp = (struct cf_conn *)xprt->xp_p1; in read_vc() 468 if (cfp->nonblock) { in read_vc() 477 gettimeofday(&cfp->last_recv_time, NULL); in read_vc() 499 gettimeofday(&cfp->last_recv_time, NULL); in read_vc()
|
| /freebsd-13.1/contrib/sendmail/editmap/ |
| H A D | editmap.c | 101 FILE *cfp; local 209 if ((cfp = fopen(cfile, "r")) == NULL) 215 while (fgets(buf, sizeof(buf), cfp) != NULL) 265 (void) fclose(cfp);
|
| /freebsd-13.1/contrib/sendmail/mailstats/ |
| H A D | mailstats.c | 56 SM_FILE_T *cfp; variable 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-13.1/usr.sbin/lpr/lpd/ |
| H A D | printjob.c | 457 while (get_line(cfp)) in printit() 561 (void) fclose(cfp); in printit() 581 fseek(cfp, 0L, 0); in printit() 582 while (get_line(cfp)) in printit() 602 (void) fclose(cfp); in printit() 927 while (get_line(cfp)) { in sendit() 970 (void) fclose(cfp); in sendit() 981 (void) fclose(cfp); in sendit() 987 fseek(cfp, 0L, 0); in sendit() 988 while (get_line(cfp)) in sendit() [all …]
|
| /freebsd-13.1/contrib/sendmail/makemap/ |
| H A D | makemap.c | 98 SM_FILE_T *cfp; local 104 if ((cfp = sm_io_open(SmFtStdio, SM_TIME_DEFAULT, cfile, 125 while (sm_io_fgets(cfp, SM_TIME_DEFAULT, buf, sizeof(buf)) >= 0) 246 (void) sm_io_close(cfp, SM_TIME_DEFAULT);
|
| /freebsd-13.1/usr.bin/chat/ |
| H A D | chat.c | 324 FILE *cfp; in do_file() local 326 cfp = fopen (chatfile, "r"); in do_file() 327 if (cfp == NULL) in do_file() 333 while (fgets(buf, STR_LEN, cfp) != NULL) { in do_file() 381 fclose (cfp); in do_file()
|
| /freebsd-13.1/sys/fs/nfsserver/ |
| H A D | nfs_nfsdstate.c | 2283 if (cfp != NULL && ret == 0) { in nfsrv_lockctrl() 2287 cfp->cl_end = lop->lo_end; in nfsrv_lockctrl() 2291 cfp->cl_ownerlen); in nfsrv_lockctrl() 5993 end, cfp, p); in nfsrv_locallock() 6097 if (cfp != NULL) { in nfsrv_dolocal() 6098 cfp->cl_clientid.lval[0] = 0; in nfsrv_dolocal() 6099 cfp->cl_clientid.lval[1] = 0; in nfsrv_dolocal() 6100 cfp->cl_first = 0; in nfsrv_dolocal() 6101 cfp->cl_end = NFS64BITSSET; in nfsrv_dolocal() 6102 cfp->cl_flags = NFSLCK_WRITE; in nfsrv_dolocal() [all …]
|