Module Name: src Committed By: christos Date: Sat Jan 25 02:28:31 UTC 2014
Modified Files: src/sys/kern: vfs_syscalls.c src/sys/sys: vfs_syscalls.h Log Message: expose do_open To generate a diff of this commit: cvs rdiff -u -r1.473 -r1.474 src/sys/kern/vfs_syscalls.c cvs rdiff -u -r1.21 -r1.22 src/sys/sys/vfs_syscalls.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/kern/vfs_syscalls.c diff -u src/sys/kern/vfs_syscalls.c:1.473 src/sys/kern/vfs_syscalls.c:1.474 --- src/sys/kern/vfs_syscalls.c:1.473 Thu Jan 23 05:13:57 2014 +++ src/sys/kern/vfs_syscalls.c Fri Jan 24 21:28:31 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: vfs_syscalls.c,v 1.473 2014/01/23 10:13:57 hannken Exp $ */ +/* $NetBSD: vfs_syscalls.c,v 1.474 2014/01/25 02:28:31 christos Exp $ */ /*- * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc. @@ -70,7 +70,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: vfs_syscalls.c,v 1.473 2014/01/23 10:13:57 hannken Exp $"); +__KERNEL_RCSID(0, "$NetBSD: vfs_syscalls.c,v 1.474 2014/01/25 02:28:31 christos Exp $"); #ifdef _KERNEL_OPT #include "opt_fileassoc.h" @@ -119,7 +119,6 @@ __KERNEL_RCSID(0, "$NetBSD: vfs_syscalls static int change_flags(struct vnode *, u_long, struct lwp *); static int change_mode(struct vnode *, int, struct lwp *l); static int change_owner(struct vnode *, uid_t, gid_t, struct lwp *, int); -static int do_open(lwp_t *, struct vnode *, struct pathbuf *, int, int, int *); static int do_sys_openat(lwp_t *, int, const char *, int, int, int *); static int do_sys_mkdirat(struct lwp *l, int, const char *, mode_t, enum uio_seg); @@ -1534,7 +1533,7 @@ chdir_lookup(const char *path, int where * (so we can easily reuse this function from other parts of the kernel, * like posix_spawn post-processing). */ -static int +int do_open(lwp_t *l, struct vnode *dvp, struct pathbuf *pb, int open_flags, int open_mode, int *fd) { Index: src/sys/sys/vfs_syscalls.h diff -u src/sys/sys/vfs_syscalls.h:1.21 src/sys/sys/vfs_syscalls.h:1.22 --- src/sys/sys/vfs_syscalls.h:1.21 Sun Nov 17 20:31:42 2013 +++ src/sys/sys/vfs_syscalls.h Fri Jan 24 21:28:31 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: vfs_syscalls.h,v 1.21 2013/11/18 01:31:42 chs Exp $ */ +/* $NetBSD: vfs_syscalls.h,v 1.22 2014/01/25 02:28:31 christos Exp $ */ /* * Copyright (c) 2007, 2008, 2009 The NetBSD Foundation, Inc. @@ -59,6 +59,9 @@ int do_sys_utimens(struct lwp *, struct int do_sys_utimensat(struct lwp *, int, struct vnode *, const char *, int, const struct timespec *, enum uio_seg); +struct pathbuf; +int do_open(struct lwp *, struct vnode *, struct pathbuf *, int, int, int *); + int vfs_copyinfh_alloc(const void *, size_t, fhandle_t **); void vfs_copyinfh_free(fhandle_t *);