kern_descrip.c (a0558fe90d3bebdf8583888cc96b4c170eab8cfb) | kern_descrip.c (2b68eb8e1dbbdaf6a0df1c83b26f5403ca52d4c3) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-3-Clause 3 * 4 * Copyright (c) 1982, 1986, 1989, 1991, 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 --- 1513 unchanged lines hidden (view full) --- 1522 AUDIT_ARG_FD(fd); 1523 1524 error = fget(td, fd, &cap_fstat_rights, &fp); 1525 if (__predict_false(error != 0)) 1526 return (error); 1527 1528 AUDIT_ARG_FILE(td->td_proc, fp); 1529 | 1/*- 2 * SPDX-License-Identifier: BSD-3-Clause 3 * 4 * Copyright (c) 1982, 1986, 1989, 1991, 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 --- 1513 unchanged lines hidden (view full) --- 1522 AUDIT_ARG_FD(fd); 1523 1524 error = fget(td, fd, &cap_fstat_rights, &fp); 1525 if (__predict_false(error != 0)) 1526 return (error); 1527 1528 AUDIT_ARG_FILE(td->td_proc, fp); 1529 |
1530 error = fo_stat(fp, sbp, td->td_ucred, td); | 1530 error = fo_stat(fp, sbp, td->td_ucred); |
1531 fdrop(fp, td); 1532#ifdef __STAT_TIME_T_EXT 1533 sbp->st_atim_ext = 0; 1534 sbp->st_mtim_ext = 0; 1535 sbp->st_ctim_ext = 0; 1536 sbp->st_btim_ext = 0; 1537#endif 1538#ifdef KTRACE --- 3327 unchanged lines hidden (view full) --- 4866static int 4867badfo_kqfilter(struct file *fp, struct knote *kn) 4868{ 4869 4870 return (EBADF); 4871} 4872 4873static int | 1531 fdrop(fp, td); 1532#ifdef __STAT_TIME_T_EXT 1533 sbp->st_atim_ext = 0; 1534 sbp->st_mtim_ext = 0; 1535 sbp->st_ctim_ext = 0; 1536 sbp->st_btim_ext = 0; 1537#endif 1538#ifdef KTRACE --- 3327 unchanged lines hidden (view full) --- 4866static int 4867badfo_kqfilter(struct file *fp, struct knote *kn) 4868{ 4869 4870 return (EBADF); 4871} 4872 4873static int |
4874badfo_stat(struct file *fp, struct stat *sb, struct ucred *active_cred, 4875 struct thread *td) | 4874badfo_stat(struct file *fp, struct stat *sb, struct ucred *active_cred) |
4876{ 4877 4878 return (EBADF); 4879} 4880 4881static int 4882badfo_close(struct file *fp, struct thread *td) 4883{ --- 200 unchanged lines hidden --- | 4875{ 4876 4877 return (EBADF); 4878} 4879 4880static int 4881badfo_close(struct file *fp, struct thread *td) 4882{ --- 200 unchanged lines hidden --- |