Home
last modified time | relevance | path

Searched refs:cfp (Results 1 – 8 of 8) sorted by relevance

/openbsd-src/usr.sbin/lpr/common_source/
H A Drmjob.c205 FILE *cfp = NULL; in process() local
213 if (fd < 0 || (cfp = fdopen(fd, "r")) == NULL) { in process()
218 while (get_line(cfp)) { in process()
226 (void)fclose(cfp); in process()
251 FILE *cfp = NULL; in chk() local
268 if (fd < 0 || (cfp = fdopen(fd, "r")) == NULL) { in chk()
273 while (get_line(cfp)) { in chk()
277 (void)fclose(cfp); in chk()
H A Ddisplayq.c347 FILE *cfp = NULL; in inform() local
356 if (fd < 0 || (cfp = fdopen(fd, "r")) == NULL) { in inform()
363 while (get_line(cfp)) { in inform()
367 fclose(cfp); in inform()
398 fclose(cfp); in inform()
H A Dcommon.c198 get_line(FILE *cfp) in get_line() argument
204 while ((c = getc(cfp)) != '\n' && linel+1<sizeof(line)) { in get_line()
/openbsd-src/usr.sbin/lpr/lpd/
H A Dprintjob.c81 static FILE *cfp; /* control file */ variable
344 if (fd < 0 || (cfp = fdopen(fd, "r")) == NULL) { in printit()
398 while (get_line(cfp)) in printit()
476 (void)fclose(cfp); in printit()
496 fseek(cfp, 0L, SEEK_SET); in printit()
497 while (get_line(cfp)) in printit()
517 (void)fclose(cfp); in printit()
805 if (fd < 0 || (cfp = fdopen(fd, "r")) == NULL) in sendit()
822 while (get_line(cfp)) { in sendit()
837 while ((i = get_line(cfp)) != 0) in sendit()
[all …]
/openbsd-src/sys/kern/
H A Dtty_pty.c1083 struct file *cfp = NULL, *sfp = NULL; in ptmioctl() local
1095 if ((error = falloc(p, &cfp, &cindx)) != 0) { in ptmioctl()
1102 closef(cfp, p); in ptmioctl()
1125 cfp->f_flag = FREAD|FWRITE; in ptmioctl()
1126 cfp->f_type = DTYPE_VNODE; in ptmioctl()
1127 cfp->f_ops = &vnops; in ptmioctl()
1128 cfp->f_data = (caddr_t) cnd.ni_vp; in ptmioctl()
1194 fdinsert(fdp, cindx, 0, cfp); in ptmioctl()
1197 FRELE(cfp, p); in ptmioctl()
1210 closef(cfp, in ptmioctl()
[all...]
/openbsd-src/gnu/usr.bin/perl/hints/
H A Dunicos.sh28 if /etc/cpu -i | grep -q cfp
/openbsd-src/usr.sbin/pppd/chat/
H A Dchat.c340 FILE *cfp;
342 cfp = fopen (chat_file, "r");
343 if (cfp == NULL)
349 while (fgets(buf, STR_LEN, cfp) != NULL) { in do_file()
395 fclose (cfp);
354 FILE *cfp; global() local
/openbsd-src/gnu/llvm/lldb/source/Expression/
H A DIRInterpreter.cpp171 if (auto *cfp = dyn_cast<ConstantFP>(constant)) { in EvaluateValue() local
172 if (cfp->getType()->isDoubleTy()) in EvaluateValue()
173 scalar = cfp->getValueAPF().convertToDouble(); in EvaluateValue()
174 else if (cfp->getType()->isFloatTy()) in EvaluateValue()
175 scalar = cfp->getValueAPF().convertToFloat(); in EvaluateValue()