Home
last modified time | relevance | path

Searched refs:fp2 (Results 1 – 23 of 23) sorted by relevance

/src/contrib/sendmail/libsm/
H A Dfopen.c230 SM_FILE_T *fp2; local
287 fp2 = sm_fp(type, ioflags, fp);
288 ret = (*fp2->f_open)(fp2, info, flags, rpool);
296 fp2->f_flags = 0; /* release */
297 fp2->sm_magic = NULL; /* release */
313 sm_rpool_attach_x(rpool, sm_io_close, fp2);
316 return fp2;
333 sm_io_autoflush(fp, fp2) in sm_io_autoflush() argument
335 SM_FILE_T *fp2;
340 if (fp2 != NULL)
[all …]
/src/usr.bin/cmp/
H A Dspecial.c48 FILE *fp1, *fp2; in c_special() local
61 if ((fp2 = fdopen(fd2, "r")) == NULL) in c_special()
63 (void)setvbuf(fp2, NULL, _IOFBF, 65536); in c_special()
70 if (getc(fp2) == EOF) in c_special()
82 ch2 = getc(fp2); in c_special()
110 if (ferror(fp2)) in c_special()
113 if (!feof(fp2)) { in c_special()
118 if (feof(fp2)) { in c_special()
123 fclose(fp2); in c_special()
/src/crypto/openssl/test/
H A Dcms-examples.pl327 my ( $fp1, $fp2 );
336 if ( !open( $fp2, "<$f2" ) ) {
342 binmode $fp2;
348 $n2 = sysread $fp2, $rd2, 4096;
360 close $fp2;
/src/usr.bin/comm/
H A Dcomm.c59 FILE *fp1, *fp2; in main() local
96 fp2 = file(argv[1]); in main()
123 n2 = getline(&line2, &line2len, fp2); in main()
124 if (n2 < 0 && ferror(fp2)) in main()
133 show(fp2, argv[1], col2, &line2, &line2len); in main()
/src/lib/libc/tests/stdio/
H A Dfreopen_test.c39 FILE *fp1, *fp2; in runtest() local
46 fp2 = freopen(fname2, mode2, fp1); in runtest()
47 if (fp2 == NULL) { in runtest()
56 fclose(fp2); in runtest()
/src/lib/libc/tests/gen/
H A Dpopen_test.c136 FILE *fp, *fp2; in ATF_TC_BODY() local
189 fp2 = popen("read x", mode); in ATF_TC_BODY()
190 ATF_CHECK_MSG(fp2 != NULL, in ATF_TC_BODY()
192 if (fp2 == NULL) { in ATF_TC_BODY()
200 status = pclose(fp2); in ATF_TC_BODY()
/src/contrib/byacc/
H A Dlalr.c529 unsigned *fp1, *fp2, *fp3; in compute_lookaheads() local
541 fp2 = F + tokensetsize * sp->value; in compute_lookaheads()
543 *fp1++ |= *fp2++; in compute_lookaheads()
588 unsigned *fp2; in traverse() local
614 fp2 = F + j * tokensetsize; in traverse()
617 *fp1++ |= *fp2++; in traverse()
632 fp2 = F + j * tokensetsize; in traverse()
635 *fp2++ = *fp1++; in traverse()
/src/sys/contrib/openzfs/module/zstd/lib/compress/
H A Dzstd_preSplit.c96 static U64 fpDistance(const Fingerprint* fp1, const Fingerprint* fp2, unsigned hashLog) in fpDistance() argument
103 … ZSTD_abs64((S64)fp1->events[n] * (S64)fp2->nbEvents - (S64)fp2->events[n] * (S64)fp1->nbEvents); in fpDistance()
/src/contrib/llvm-project/lld/ELF/Arch/
H A DMipsArchTree.cpp86 bool fp2 = f.flags & EF_MIPS_FP64; in checkFlags() local
87 if (fp != fp2) in checkFlags()
88 error(toString(f.file) + ": -mfp" + getFpName(fp2) + in checkFlags()
/src/sys/kern/
H A Dkern_jaildesc.c432 jaildesc_cmp(struct file *fp1, struct file *fp2, struct thread *td) in jaildesc_cmp() argument
437 if (fp2->f_type != DTYPE_JAILDESC) in jaildesc_cmp()
443 jd2 = fp2->f_data; in jaildesc_cmp()
H A Dsys_procdesc.c569 procdesc_cmp(struct file *fp1, struct file *fp2, struct thread *td) in procdesc_cmp() argument
573 if (fp2->f_type != DTYPE_PROCDESC) in procdesc_cmp()
576 pdp2 = fp2->f_data; in procdesc_cmp()
H A Duipc_syscalls.c553 struct file *fp1, *fp2; in kern_socketpair() local
592 error = falloc(td, &fp2, &fd, oflag); in kern_socketpair()
595 fp2->f_data = so2; /* so2 already has ref count */ in kern_socketpair()
619 finit(fp2, FREAD | FWRITE | fflag, DTYPE_SOCKET, fp2->f_data, in kern_socketpair()
623 (void) fo_ioctl(fp2, FIONBIO, &fflag, td->td_ucred, td); in kern_socketpair()
626 fdrop(fp2, td); in kern_socketpair()
629 fdclose(td, fp2, rsv[1]); in kern_socketpair()
630 fdrop(fp2, td); in kern_socketpair()
H A Dsys_generic.c2174 struct file *fp1, *fp2; in kern_kcmp() local
2190 error = fget_remote(td, p2, idx2, &fp2); in kern_kcmp()
2193 res = fo_cmp(fp1, fp2, td); in kern_kcmp()
2196 (uintptr_t)fp2); in kern_kcmp()
2197 fdrop(fp2, td); in kern_kcmp()
2236 file_kcmp_generic(struct file *fp1, struct file *fp2, struct thread *td) in file_kcmp_generic() argument
2238 if (fp1->f_type != fp2->f_type) in file_kcmp_generic()
2240 return (kcmp_cmp((uintptr_t)fp1->f_data, (uintptr_t)fp2->f_data)); in file_kcmp_generic()
H A Dvfs_vnops.c1015 foffset_lock_pair(struct file *fp1, off_t *off1p, struct file *fp2, off_t *off2p, in foffset_lock_pair() argument
1018 KASSERT(fp1 != fp2, ("foffset_lock_pair: fp1 == fp2")); in foffset_lock_pair()
1021 if ((uintptr_t)fp1 > (uintptr_t)fp2) { in foffset_lock_pair()
1025 tmpfp = fp1, fp1 = fp2, fp2 = tmpfp; in foffset_lock_pair()
1030 if (fp2 != NULL) in foffset_lock_pair()
1031 *off2p = foffset_lock(fp2, flags); in foffset_lock_pair()
4499 vn_cmp(struct file *fp1, struct file *fp2, struct thread *td) in vn_cmp() argument
4501 if (fp2->f_type != DTYPE_VNODE) in vn_cmp()
4503 return (kcmp_cmp((uintptr_t)fp1->f_vnode, (uintptr_t)fp2->f_vnode)); in vn_cmp()
H A Duipc_mqueue.c2359 struct file *fp, *fp2; in kern_kmq_notify() local
2381 fp2 = fget_noref(fdp, mqd); in kern_kmq_notify()
2382 if (fp2 == NULL) { in kern_kmq_notify()
2394 if (fp2 != fp) { in kern_kmq_notify()
H A Dkern_descrip.c573 struct file *fp, *fp2; in kern_fcntl() local
824 error = fget_unlocked(td, fd, &cap_no_rights, &fp2); in kern_fcntl()
829 if (fp != fp2) { in kern_fcntl()
838 fdrop(fp2, td); in kern_fcntl()
/src/sys/sys/
H A Dfile.h91 void foffset_lock_pair(struct file *fp1, off_t *off1p, struct file *fp2,
302 int file_kcmp_generic(struct file *fp1, struct file *fp2, struct thread *td);
518 fo_cmp(struct file *fp1, struct file *fp2, struct thread *td) in fo_cmp() argument
523 return ((*fp1->f_ops->fo_cmp)(fp1, fp2, td)); in fo_cmp()
/src/crypto/openssh/
H A Dssh-agent.c500 char *fp1, *fp2; in identity_permitted() local
523 fp1 = fp2 = NULL; in identity_permitted()
528 if ((fp2 = sshkey_fingerprint(hks->key, SSH_FP_HASH_DEFAULT, in identity_permitted()
536 sshkey_type(hks->key), fp2); in identity_permitted()
538 free(fp2); in identity_permitted()
/src/sys/fs/devfs/
H A Ddevfs_vnops.c2073 devfs_cmp_f(struct file *fp1, struct file *fp2, struct thread *td) in devfs_cmp_f() argument
2075 if (fp2->f_type != DTYPE_VNODE || fp2->f_ops != &devfs_ops_f) in devfs_cmp_f()
2077 return (kcmp_cmp((uintptr_t)fp1->f_data, (uintptr_t)fp2->f_data)); in devfs_cmp_f()
/src/sys/contrib/device-tree/src/arm/qcom/
H A Dqcom-msm8974pro-fairphone-fp2.dts11 compatible = "fairphone,fp2", "qcom,msm8974pro", "qcom,msm8974";
/src/sys/compat/linuxkpi/common/src/
H A Dlinux_compat.c1785 linux_file_kcmp(struct file *fp1, struct file *fp2, struct thread *td) in linux_file_kcmp() argument
1789 if (fp2->f_type != DTYPE_DEV) in linux_file_kcmp()
1793 filp2 = fp2->f_data; in linux_file_kcmp()
/src/contrib/ncurses/progs/
H A Dtic.c480 FILE *fp2 = copy_input(fp, filename, alt_file); in open_input() local
481 fp = fp2; in open_input()
/src/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86RegisterInfo.td334 def FP2 : X86Reg<"fp2", 0>;