Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys expose do_open



details:   https://anonhg.NetBSD.org/src/rev/003d0f6ed54a
branches:  trunk
changeset: 326299:003d0f6ed54a
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Jan 25 02:28:31 2014 +0000

description:
expose do_open

diffstat:

 sys/kern/vfs_syscalls.c |  7 +++----
 sys/sys/vfs_syscalls.h  |  5 ++++-
 2 files changed, 7 insertions(+), 5 deletions(-)

diffs (54 lines):

diff -r caa56ee39a4b -r 003d0f6ed54a sys/kern/vfs_syscalls.c
--- a/sys/kern/vfs_syscalls.c   Sat Jan 25 02:27:41 2014 +0000
+++ b/sys/kern/vfs_syscalls.c   Sat Jan 25 02:28:31 2014 +0000
@@ -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 @@
 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 @@
  * (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)
 {
diff -r caa56ee39a4b -r 003d0f6ed54a sys/sys/vfs_syscalls.h
--- a/sys/sys/vfs_syscalls.h    Sat Jan 25 02:27:41 2014 +0000
+++ b/sys/sys/vfs_syscalls.h    Sat Jan 25 02:28:31 2014 +0000
@@ -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_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 *);
 



Home | Main Index | Thread Index | Old Index