sys_generic.c (d8decc9ae31af7ffc77276c89639fb13eb1020cc) sys_generic.c (f28526e9466cd60ed33053e922238ba1c9040341)
1/*-
2 * SPDX-License-Identifier: BSD-3-Clause
3 *
4 * Copyright (c) 1982, 1986, 1989, 1993
5 * The Regents of the University of California. All rights reserved.
6 * (c) UNIX System Laboratories, Inc.
7 * All or some portions of this file are derived from material licensed
8 * to the University of California by American Telephone and Telegraph

--- 2144 unchanged lines hidden (view full) ---

2153}
2154
2155int
2156sys_kcmp(struct thread *td, struct kcmp_args *uap)
2157{
2158 return (kern_kcmp(td, uap->pid1, uap->pid2, uap->type,
2159 uap->idx1, uap->idx2));
2160}
1/*-
2 * SPDX-License-Identifier: BSD-3-Clause
3 *
4 * Copyright (c) 1982, 1986, 1989, 1993
5 * The Regents of the University of California. All rights reserved.
6 * (c) UNIX System Laboratories, Inc.
7 * All or some portions of this file are derived from material licensed
8 * to the University of California by American Telephone and Telegraph

--- 2144 unchanged lines hidden (view full) ---

2153}
2154
2155int
2156sys_kcmp(struct thread *td, struct kcmp_args *uap)
2157{
2158 return (kern_kcmp(td, uap->pid1, uap->pid2, uap->type,
2159 uap->idx1, uap->idx2));
2160}
2161
2162int
2163file_kcmp_generic(struct file *fp1, struct file *fp2, struct thread *td)
2164{
2165 if (fp1->f_type != fp2->f_type)
2166 return (3);
2167 return (kcmp_cmp((uintptr_t)fp1->f_data, (uintptr_t)fp2->f_data));
2168}