Source-Changes-HG archive

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

[src/trunk]: src/lib/librumphijack Make getfh() a pathcall instead of a fhcal...



details:   https://anonhg.NetBSD.org/src/rev/ee7f19b10820
branches:  trunk
changeset: 763081:ee7f19b10820
user:      pooka <pooka%NetBSD.org@localhost>
date:      Wed Mar 09 23:26:19 2011 +0000

description:
Make getfh() a pathcall instead of a fhcall.  while it does pertain
to file handles, it still gets passed a path and we can DTRT based
on that.

diffstat:

 lib/librumphijack/hijack.c |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (42 lines):

diff -r 11c4ca8d8815 -r ee7f19b10820 lib/librumphijack/hijack.c
--- a/lib/librumphijack/hijack.c        Wed Mar 09 23:10:05 2011 +0000
+++ b/lib/librumphijack/hijack.c        Wed Mar 09 23:26:19 2011 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: hijack.c,v 1.81 2011/03/09 20:48:57 pooka Exp $       */
+/*      $NetBSD: hijack.c,v 1.82 2011/03/09 23:26:19 pooka Exp $       */
 
 /*-
  * Copyright (c) 2011 Antti Kantee.  All Rights Reserved.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: hijack.c,v 1.81 2011/03/09 20:48:57 pooka Exp $");
+__RCSID("$NetBSD: hijack.c,v 1.82 2011/03/09 23:26:19 pooka Exp $");
 
 #define __ssp_weak_name(fun) _hijack_ ## fun
 
@@ -2199,6 +2199,11 @@
        (const char *, struct plistref *),                              \
        (path, p))
 
+PATHCALL(int, REALGETFH, DUALCALL_GETFH,                               \
+       (const char *path, void *fhp, size_t *fh_size),                 \
+       (const char *, void *, size_t *),                               \
+       (path, fhp, fh_size))
+
 /*
  * These act different on a per-process vfs configuration
  */
@@ -2208,11 +2213,6 @@
        (struct statvfs *, size_t, int),                                \
        (buf, buflen, flags))
 
-VFSCALL(VFSBIT_FHCALLS, int, REALGETFH, DUALCALL_GETFH,                        \
-       (const char *path, void *fhp, size_t *fh_size),                 \
-       (const char *, void *, size_t *),                               \
-       (path, fhp, fh_size))
-
 VFSCALL(VFSBIT_FHCALLS, int, REALFHOPEN, DUALCALL_FHOPEN,              \
        (const void *fhp, size_t fh_size, int flags),                   \
        (const char *, size_t, int),                                    \



Home | Main Index | Thread Index | Old Index