vfs_syscalls.c (304977) | vfs_syscalls.c (304987) |
---|---|
1/*- 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 21 unchanged lines hidden (view full) --- 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * @(#)vfs_syscalls.c 8.13 (Berkeley) 4/15/94 35 */ 36 37#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 21 unchanged lines hidden (view full) --- 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * @(#)vfs_syscalls.c 8.13 (Berkeley) 4/15/94 35 */ 36 37#include <sys/cdefs.h> |
38__FBSDID("$FreeBSD: stable/11/sys/kern/vfs_syscalls.c 304977 2016-08-29 05:15:43Z kib $"); | 38__FBSDID("$FreeBSD: stable/11/sys/kern/vfs_syscalls.c 304987 2016-08-29 06:32:30Z kib $"); |
39 40#include "opt_capsicum.h" 41#include "opt_compat.h" 42#include "opt_ktrace.h" 43 44#include <sys/param.h> 45#include <sys/systm.h> 46#include <sys/bio.h> --- 3302 unchanged lines hidden (view full) --- 3349 struct ftruncate_args ouap; 3350 3351 ouap.fd = uap->fd; 3352 ouap.length = uap->length; 3353 return (sys_ftruncate(td, &ouap)); 3354} 3355#endif 3356 | 39 40#include "opt_capsicum.h" 41#include "opt_compat.h" 42#include "opt_ktrace.h" 43 44#include <sys/param.h> 45#include <sys/systm.h> 46#include <sys/bio.h> --- 3302 unchanged lines hidden (view full) --- 3349 struct ftruncate_args ouap; 3350 3351 ouap.fd = uap->fd; 3352 ouap.length = uap->length; 3353 return (sys_ftruncate(td, &ouap)); 3354} 3355#endif 3356 |
3357static int | 3357int |
3358kern_fsync(struct thread *td, int fd, bool fullsync) 3359{ 3360 struct vnode *vp; 3361 struct mount *mp; 3362 struct file *fp; 3363 cap_rights_t rights; 3364 int error, lock_flags; 3365 --- 1315 unchanged lines hidden --- | 3358kern_fsync(struct thread *td, int fd, bool fullsync) 3359{ 3360 struct vnode *vp; 3361 struct mount *mp; 3362 struct file *fp; 3363 cap_rights_t rights; 3364 int error, lock_flags; 3365 --- 1315 unchanged lines hidden --- |