Module Name: src
Committed By: pooka
Date: Wed Feb 23 15:29:21 UTC 2011
Modified Files:
src/lib/librumphijack: hijack.c
Log Message:
+access(2)
To generate a diff of this commit:
cvs rdiff -u -r1.64 -r1.65 src/lib/librumphijack/hijack.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/librumphijack/hijack.c
diff -u src/lib/librumphijack/hijack.c:1.64 src/lib/librumphijack/hijack.c:1.65
--- src/lib/librumphijack/hijack.c:1.64 Wed Feb 23 15:23:15 2011
+++ src/lib/librumphijack/hijack.c Wed Feb 23 15:29:21 2011
@@ -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