Module Name: src
Committed By: matt
Date: Thu Jul 18 13:41:08 UTC 2013
Modified Files:
src/sys/kern: vfs_syscalls.c
src/sys/sys: vfs_syscalls.h
Log Message:
export do_sys_statat for netbsd32
To generate a diff of this commit:
cvs rdiff -u -r1.464 -r1.465 src/sys/kern/vfs_syscalls.c
cvs rdiff -u -r1.18 -r1.19 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.464 src/sys/kern/vfs_syscalls.c:1.465
--- src/sys/kern/vfs_syscalls.c:1.464 Fri Jun 28 15:32:20 2013
+++ src/sys/kern/vfs_syscalls.c Thu Jul 18 13:41:08 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: vfs_syscalls.c,v 1.464 2013/06/28 15:32:20 christos Exp $ */
+/* $NetBSD: vfs_syscalls.c,v 1.465 2013/07/18 13:41:08 matt 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.464 2013/06/28 15:32:20 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_syscalls.c,v 1.465 2013/07/18 13:41:08 matt Exp $");
#ifdef _KERNEL_OPT
#include "opt_fileassoc.h"
@@ -131,8 +131,6 @@ static int do_sys_chownat(struct lwp *,
static int do_sys_utimensat(struct lwp *, int, struct vnode *,
const char *, int, const struct timespec *, enum uio_seg);
static int do_sys_accessat(struct lwp *, int, const char *, int ,int);
-static int do_sys_statat(struct lwp *, int, const char *, unsigned int,
- struct stat *);
static int do_sys_symlinkat(struct lwp *, const char *, int, const char *,
enum uio_seg);
static int do_sys_linkat(struct lwp *, int, const char *, int, const char *,
@@ -3022,7 +3020,7 @@ do_sys_stat(const char *userpath, unsign
return do_sys_statat(NULL, AT_FDCWD, userpath, nd_flag, sb);
}
-static int
+int
do_sys_statat(struct lwp *l, int fdat, const char *userpath,
unsigned int nd_flag, struct stat *sb)
{
Index: src/sys/sys/vfs_syscalls.h
diff -u src/sys/sys/vfs_syscalls.h:1.18 src/sys/sys/vfs_syscalls.h:1.19
--- src/sys/sys/vfs_syscalls.h:1.18 Tue Mar 13 18:41:02 2012
+++ src/sys/sys/vfs_syscalls.h Thu Jul 18 13:41:08 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: vfs_syscalls.h,v 1.18 2012/03/13 18:41:02 elad Exp $ */
+/* $NetBSD: vfs_syscalls.h,v 1.19 2013/07/18 13:41:08 matt Exp $ */
/*
* Copyright (c) 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -42,6 +42,7 @@ struct quotactl_args;
/* Status functions to kernel 'struct stat' buffers */
int do_sys_stat(const char *, unsigned int, struct stat *);
+int do_sys_statat(struct lwp *, int, const char *, unsigned int, struct stat *);
int do_fhstat(struct lwp *, const void *, size_t, struct stat *);
int do_fhstatvfs(struct lwp *, const void *, size_t, struct statvfs *, int);