Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys expose various do_*at() functions for compat_linux.
details: https://anonhg.NetBSD.org/src/rev/edfdf13dc53a
branches: trunk
changeset: 791428:edfdf13dc53a
user: chs <chs%NetBSD.org@localhost>
date: Mon Nov 18 01:31:42 2013 +0000
description:
expose various do_*at() functions for compat_linux.
diffstat:
sys/kern/vfs_syscalls.c | 19 ++++++-------------
sys/sys/vfs_syscalls.h | 10 +++++++---
2 files changed, 13 insertions(+), 16 deletions(-)
diffs (99 lines):
diff -r ff21f5ddc5cf -r edfdf13dc53a sys/kern/vfs_syscalls.c
--- a/sys/kern/vfs_syscalls.c Sun Nov 17 23:20:18 2013 +0000
+++ b/sys/kern/vfs_syscalls.c Mon Nov 18 01:31:42 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vfs_syscalls.c,v 1.468 2013/10/17 18:01:11 njoly Exp $ */
+/* $NetBSD: vfs_syscalls.c,v 1.469 2013/11/18 01:31:42 chs 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.468 2013/10/17 18:01:11 njoly Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_syscalls.c,v 1.469 2013/11/18 01:31:42 chs Exp $");
#ifdef _KERNEL_OPT
#include "opt_fileassoc.h"
@@ -121,18 +121,11 @@
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_mknodat(struct lwp *, int, const char *, mode_t,
- dev_t, register_t *, enum uio_seg);
static int do_sys_mkdirat(struct lwp *l, int, const char *, mode_t,
enum uio_seg);
static int do_sys_mkfifoat(struct lwp *, int, const char *, mode_t);
-static int do_sys_chmodat(struct lwp *, int, const char *, int, int);
-static int do_sys_chownat(struct lwp *, int, const char *, uid_t, gid_t, int);
-static int do_sys_accessat(struct lwp *, int, const char *, int ,int);
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 *,
- int, register_t *);
static int do_sys_renameat(struct lwp *l, int, const char *, int, const char *,
enum uio_seg, int);
static int do_sys_readlinkat(struct lwp *, int, const char *, char *,
@@ -2359,7 +2352,7 @@
* Make a hard file link.
*/
/* ARGSUSED */
-static int
+int
do_sys_linkat(struct lwp *l, int fdpath, const char *path, int fdlink,
const char *link, int follow, register_t *retval)
{
@@ -2933,7 +2926,7 @@
SCARG(uap, flags), 0);
}
-static int
+int
do_sys_accessat(struct lwp *l, int fdat, const char *path,
int mode, int flags)
{
@@ -3321,7 +3314,7 @@
SCARG(uap, mode), 0);
}
-static int
+int
do_sys_chmodat(struct lwp *l, int fdat, const char *path, int mode, int flags)
{
int error;
@@ -3439,7 +3432,7 @@
SCARG(uap, gid), 0);
}
-static int
+int
do_sys_chownat(struct lwp *l, int fdat, const char *path, uid_t uid,
gid_t gid, int flags)
{
diff -r ff21f5ddc5cf -r edfdf13dc53a sys/sys/vfs_syscalls.h
--- a/sys/sys/vfs_syscalls.h Sun Nov 17 23:20:18 2013 +0000
+++ b/sys/sys/vfs_syscalls.h Mon Nov 18 01:31:42 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vfs_syscalls.h,v 1.20 2013/07/18 14:06:27 matt Exp $ */
+/* $NetBSD: vfs_syscalls.h,v 1.21 2013/11/18 01:31:42 chs Exp $ */
/*
* Copyright (c) 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -64,10 +64,14 @@
int dofhopen(struct lwp *, const void *, size_t, int, register_t *);
+int do_sys_linkat(struct lwp *, int, const char *, int, const char *, int, register_t *);
int do_sys_unlink(const char *, enum uio_seg);
int do_sys_rename(const char *, const char *, enum uio_seg, int);
-int do_sys_mknod(struct lwp *, const char *, mode_t, dev_t, register_t *,
- enum uio_seg);
+int do_sys_mknod(struct lwp *, const char *, mode_t, dev_t, register_t *, enum uio_seg);
+int do_sys_mknodat(struct lwp *, int, const char *, mode_t, dev_t, register_t *, enum uio_seg);
+int do_sys_chmodat(struct lwp *, int, const char *, int, int);
+int do_sys_chownat(struct lwp *, int, const char *, uid_t, gid_t, int);
+int do_sys_accessat(struct lwp *, int, const char *, int ,int);
int do_sys_mkdir(const char *, mode_t, enum uio_seg);
int do_sys_symlink(const char *, const char *, enum uio_seg);
int do_sys_quotactl(const char *, const struct quotactl_args *);
Home |
Main Index |
Thread Index |
Old Index