Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net Add namespace protection, using XNS5.2 D2.0 as a ref...
details: https://anonhg.NetBSD.org/src/rev/288bc9d7e1ad
branches: trunk
changeset: 474316:288bc9d7e1ad
user: kleink <kleink%NetBSD.org@localhost>
date: Sat Jul 03 13:52:29 1999 +0000
description:
Add namespace protection, using XNS5.2 D2.0 as a reference (which effectively
boils down to not making anything but the if_nameindex(3) interfaces available
to _XOPEN_SOURCE).
diffstat:
sys/net/if.h | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
diffs (43 lines):
diff -r 87f68e3ca75c -r 288bc9d7e1ad sys/net/if.h
--- a/sys/net/if.h Sat Jul 03 13:37:34 1999 +0000
+++ b/sys/net/if.h Sat Jul 03 13:52:29 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if.h,v 1.37 1999/07/01 08:12:48 itojun Exp $ */
+/* $NetBSD: if.h,v 1.38 1999/07/03 13:52:29 kleink Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1993
@@ -38,6 +38,8 @@
#ifndef _NET_IF_H_
#define _NET_IF_H_
+#if !defined(_XOPEN_SOURCE)
+
#include <sys/queue.h>
/*
@@ -387,6 +389,8 @@
#include <net/if_arp.h>
+#endif /* !_XOPEN_SOURCE */
+
#ifdef _KERNEL
#define IFAFREE(ifa) \
if ((ifa)->ifa_refcnt <= 0) \
@@ -438,11 +442,12 @@
char *if_name; /* null terminated name: "le0", ... */
};
+#include <sys/cdefs.h>
__BEGIN_DECLS
unsigned int if_nametoindex __P((const char *));
-char *if_indextoname __P((unsigned int, char *));
-struct if_nameindex *if_nameindex __P((void));
-void if_freenameindex __P((struct if_nameindex *));
+char * if_indextoname __P((unsigned int, char *));
+struct if_nameindex * if_nameindex __P((void));
+void if_freenameindex __P((struct if_nameindex *));
__END_DECLS
#endif /* _KERNEL */
#endif /* !_NET_IF_H_ */
Home |
Main Index |
Thread Index |
Old Index