Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys Name space protection.
details: https://anonhg.NetBSD.org/src/rev/22df84ab36f9
branches: trunk
changeset: 473979:22df84ab36f9
user: kleink <kleink%NetBSD.org@localhost>
date: Thu Jun 24 14:07:44 1999 +0000
description:
Name space protection.
diffstat:
sys/sys/un.h | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (30 lines):
diff -r dd0f0a42d611 -r 22df84ab36f9 sys/sys/un.h
--- a/sys/sys/un.h Thu Jun 24 08:14:48 1999 +0000
+++ b/sys/sys/un.h Thu Jun 24 14:07:44 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: un.h,v 1.21 1999/03/22 17:54:38 sommerfe Exp $ */
+/* $NetBSD: un.h,v 1.22 1999/06/24 14:07:44 kleink Exp $ */
/*
* Copyright (c) 1982, 1986, 1993
@@ -50,7 +50,9 @@
/*
* Socket options for UNIX IPC domain.
*/
+#if !defined(_XOPEN_SOURCE)
#define LOCAL_CREDS 0x0001 /* pass credentials to receiver */
+#endif
#ifdef _KERNEL
struct unpcb;
@@ -78,8 +80,10 @@
#else /* !_KERNEL */
/* actual length of an initialized sockaddr_un */
+#if !defined(_XOPEN_SOURCE)
#define SUN_LEN(su) \
(sizeof(*(su)) - sizeof((su)->sun_path) + strlen((su)->sun_path))
+#endif /* !_XOPEN_SOURCE */
#endif /* _KERNEL */
#endif /* !_SYS_UN_H_ */
Home |
Main Index |
Thread Index |
Old Index