Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/librumphijack +access(2)
details: https://anonhg.NetBSD.org/src/rev/2e104d7fc9b1
branches: trunk
changeset: 762584:2e104d7fc9b1
user: pooka <pooka%NetBSD.org@localhost>
date: Wed Feb 23 15:29:21 2011 +0000
description:
+access(2)
diffstat:
lib/librumphijack/hijack.c | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diffs (46 lines):
diff -r f937e68217a7 -r 2e104d7fc9b1 lib/librumphijack/hijack.c
--- a/lib/librumphijack/hijack.c Wed Feb 23 15:23:15 2011 +0000
+++ b/lib/librumphijack/hijack.c Wed Feb 23 15:29:21 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hijack.c,v 1.64 2011/02/23 15:23:15 pooka Exp $ */
+/* $NetBSD: hijack.c,v 1.65 2011/02/23 15:29:21 pooka Exp $ */
/*-
* Copyright (c) 2011 Antti Kantee. All Rights Reserved.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: hijack.c,v 1.64 2011/02/23 15:23:15 pooka Exp $");
+__RCSID("$NetBSD: hijack.c,v 1.65 2011/02/23 15:29:21 pooka Exp $");
#define __ssp_weak_name(fun) _hijack_ ## fun
@@ -92,6 +92,7 @@
DUALCALL_MOUNT, DUALCALL_UNMOUNT,
DUALCALL___GETCWD,
DUALCALL_CHFLAGS, DUALCALL_LCHFLAGS, DUALCALL_FCHFLAGS,
+ DUALCALL_ACCESS,
DUALCALL__NUM
};
@@ -216,6 +217,7 @@
{ DUALCALL_CHFLAGS, "chflags", RSYS_NAME(CHFLAGS) },
{ DUALCALL_LCHFLAGS, "lchflags", RSYS_NAME(LCHFLAGS) },
{ DUALCALL_FCHFLAGS, "fchflags", RSYS_NAME(FCHFLAGS) },
+ { DUALCALL_ACCESS, "access", RSYS_NAME(ACCESS) },
};
#undef S
@@ -1791,6 +1793,11 @@
(const char *, off_t), \
(path, length))
+PATHCALL(int, access, DUALCALL_ACCESS, \
+ (const char *path, int mode), \
+ (const char *, int), \
+ (path, mode))
+
/*
* Note: with mount the decisive parameter is the mount
* destination directory. This is because we don't really know
Home |
Main Index |
Thread Index |
Old Index