summaryrefslogtreecommitdiff
path: root/usr/src/lib/libnsl/nss
diff options
context:
space:
mode:
authorraf <none@none>2006-01-06 13:09:21 -0800
committerraf <none@none>2006-01-06 13:09:21 -0800
commite8031f0a8ed0e45c6d8847c5e09424e66fd34a4b (patch)
tree8ded5f3bcfc9f92ca50e6639f7063ea0afd17fa7 /usr/src/lib/libnsl/nss
parenta7aa4df776b2ef44358da774101a0a3039d69100 (diff)
downloadillumos-joyent-e8031f0a8ed0e45c6d8847c5e09424e66fd34a4b.tar.gz
6362982 namespace pollution/protection in libc
6369040 there should be but one synonyms.h file outside of libc --HG-- rename : usr/src/lib/common/inc/mtlib.h => deleted_files/usr/src/lib/common/inc/mtlib.h rename : usr/src/lib/libc/sparcv9/gen/llabs.s => deleted_files/usr/src/lib/libc/sparcv9/gen/llabs.s rename : usr/src/lib/libcurses/screen/synonyms.h => deleted_files/usr/src/lib/libcurses/screen/synonyms.h rename : usr/src/lib/libmail/inc/synonyms.h => deleted_files/usr/src/lib/libmail/inc/synonyms.h rename : usr/src/lib/libresolv/synonyms.h => deleted_files/usr/src/lib/libresolv/synonyms.h rename : usr/src/lib/libresolv2/include/synonyms.h => deleted_files/usr/src/lib/libresolv2/include/synonyms.h rename : usr/src/lib/librsm/inc/synonyms.h => deleted_files/usr/src/lib/librsm/inc/synonyms.h rename : usr/src/ucblib/libucb/port/gen/synonyms.h => deleted_files/usr/src/ucblib/libucb/port/gen/synonyms.h rename : usr/src/lib/common/inc/synonyms.h => usr/src/lib/common/inc/c_synonyms.h rename : usr/src/lib/libcrypt/inc/synonyms.h => usr/src/lib/libcrypt/inc/des_synonyms.h rename : usr/src/lib/libgen/inc/synonyms.h => usr/src/lib/libgen/inc/gen_synonyms.h
Diffstat (limited to 'usr/src/lib/libnsl/nss')
-rw-r--r--usr/src/lib/libnsl/nss/getauthattr.c3
-rw-r--r--usr/src/lib/libnsl/nss/getauuser.c3
-rw-r--r--usr/src/lib/libnsl/nss/gethostby_door.c3
-rw-r--r--usr/src/lib/libnsl/nss/gethostbyname_r.c5
-rw-r--r--usr/src/lib/libnsl/nss/gethostent.c9
-rw-r--r--usr/src/lib/libnsl/nss/gethostent6.c9
-rw-r--r--usr/src/lib/libnsl/nss/gethostent_r.c9
-rw-r--r--usr/src/lib/libnsl/nss/getipnodeby_door.c3
-rw-r--r--usr/src/lib/libnsl/nss/getprofattr.c3
-rw-r--r--usr/src/lib/libnsl/nss/getrpcent.c3
-rw-r--r--usr/src/lib/libnsl/nss/getrpcent_r.c7
-rw-r--r--usr/src/lib/libnsl/nss/getuserattr.c3
-rw-r--r--usr/src/lib/libnsl/nss/inet_ntop.c3
-rw-r--r--usr/src/lib/libnsl/nss/inet_pton.c3
-rw-r--r--usr/src/lib/libnsl/nss/parse.c3
15 files changed, 42 insertions, 27 deletions
diff --git a/usr/src/lib/libnsl/nss/getauthattr.c b/usr/src/lib/libnsl/nss/getauthattr.c
index bbae54a2ff..d734e99ab9 100644
--- a/usr/src/lib/libnsl/nss/getauthattr.c
+++ b/usr/src/lib/libnsl/nss/getauthattr.c
@@ -21,12 +21,13 @@
*/
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
+#include "mt.h"
#include <stdlib.h>
#include <sys/types.h>
#include <nss_dbdefs.h>
diff --git a/usr/src/lib/libnsl/nss/getauuser.c b/usr/src/lib/libnsl/nss/getauuser.c
index e7520d5517..877a108ff8 100644
--- a/usr/src/lib/libnsl/nss/getauuser.c
+++ b/usr/src/lib/libnsl/nss/getauuser.c
@@ -21,12 +21,13 @@
*/
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
+#include "mt.h"
#include <stdlib.h>
#include <sys/types.h>
#include <nss_dbdefs.h>
diff --git a/usr/src/lib/libnsl/nss/gethostby_door.c b/usr/src/lib/libnsl/nss/gethostby_door.c
index 2cfbfe6e74..8b7f66f46f 100644
--- a/usr/src/lib/libnsl/nss/gethostby_door.c
+++ b/usr/src/lib/libnsl/nss/gethostby_door.c
@@ -21,12 +21,13 @@
*/
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
+#include "mt.h"
#include <pwd.h>
#include <strings.h>
#include <sys/mman.h>
diff --git a/usr/src/lib/libnsl/nss/gethostbyname_r.c b/usr/src/lib/libnsl/nss/gethostbyname_r.c
index 14f44b0214..27435b95fe 100644
--- a/usr/src/lib/libnsl/nss/gethostbyname_r.c
+++ b/usr/src/lib/libnsl/nss/gethostbyname_r.c
@@ -21,15 +21,13 @@
*/
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
- * lib/libnsl/nss/gethostbyname_r.c
- *
* gethostbyname_r() is defined in this file. It is implemented on top of
* _get_hostserv_inetnetdir_byname() which is also used to implement
* netdir_getbyname() for inet family transports. In turn the common code
@@ -51,6 +49,7 @@
* enumeration state, between gethostbyYY_r() and gethostent_r();
*/
+#include "mt.h"
#include <netdb.h>
#include <netdir.h>
#include <sys/types.h>
diff --git a/usr/src/lib/libnsl/nss/gethostent.c b/usr/src/lib/libnsl/nss/gethostent.c
index 0bf5b90cd0..8cbc3b9dec 100644
--- a/usr/src/lib/libnsl/nss/gethostent.c
+++ b/usr/src/lib/libnsl/nss/gethostent.c
@@ -21,16 +21,17 @@
*/
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
- *
+ */
+
+/*
* Ye olde non-reentrant interface (MT-unsafe, caveat utor)
- *
- * lib/libnsl/nss/gethostent.c
*/
#pragma ident "%Z%%M% %I% %E% SMI"
+#include "mt.h"
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
diff --git a/usr/src/lib/libnsl/nss/gethostent6.c b/usr/src/lib/libnsl/nss/gethostent6.c
index 2dd98e4280..75d1352308 100644
--- a/usr/src/lib/libnsl/nss/gethostent6.c
+++ b/usr/src/lib/libnsl/nss/gethostent6.c
@@ -21,11 +21,11 @@
*/
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
- *
- * lib/libnsl/nss/gethostent6.c
- *
+ */
+
+/*
* This file defines and implements the re-entrant enumeration routines for
* IPv6 hosts: sethostent6(), gethostent6(), and endhostent6().
* They consult the switch policy directly and do not "share" their
@@ -37,6 +37,7 @@
#pragma ident "%Z%%M% %I% %E% SMI"
+#include "mt.h"
#include <sys/socket.h>
#include <sys/types.h>
#include <nss_dbdefs.h>
diff --git a/usr/src/lib/libnsl/nss/gethostent_r.c b/usr/src/lib/libnsl/nss/gethostent_r.c
index 209d1e67a4..3ce99225af 100644
--- a/usr/src/lib/libnsl/nss/gethostent_r.c
+++ b/usr/src/lib/libnsl/nss/gethostent_r.c
@@ -21,11 +21,11 @@
*/
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
- *
- * lib/libnsl/nss/gethostent_r.c
- *
+ */
+
+/*
* This file defines and implements the re-entrant enumeration routines for
* hosts: sethostent(), gethostent_r(), and endhostent(). They consult
* the switch policy directly and do not "share" their enumeration state
@@ -37,6 +37,7 @@
#pragma ident "%Z%%M% %I% %E% SMI"
+#include "mt.h"
#include <sys/socket.h>
#include <sys/types.h>
#include <nss_dbdefs.h>
diff --git a/usr/src/lib/libnsl/nss/getipnodeby_door.c b/usr/src/lib/libnsl/nss/getipnodeby_door.c
index 782704d927..8c0423196e 100644
--- a/usr/src/lib/libnsl/nss/getipnodeby_door.c
+++ b/usr/src/lib/libnsl/nss/getipnodeby_door.c
@@ -21,12 +21,13 @@
*/
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
+#include "mt.h"
#include <pwd.h>
#include <strings.h>
#include <sys/mman.h>
diff --git a/usr/src/lib/libnsl/nss/getprofattr.c b/usr/src/lib/libnsl/nss/getprofattr.c
index e11de065bd..ffda122e05 100644
--- a/usr/src/lib/libnsl/nss/getprofattr.c
+++ b/usr/src/lib/libnsl/nss/getprofattr.c
@@ -21,12 +21,13 @@
*/
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
+#include "mt.h"
#include <stdlib.h>
#include <sys/types.h>
#include <nss_dbdefs.h>
diff --git a/usr/src/lib/libnsl/nss/getrpcent.c b/usr/src/lib/libnsl/nss/getrpcent.c
index 3db08cc425..d16bae73f9 100644
--- a/usr/src/lib/libnsl/nss/getrpcent.c
+++ b/usr/src/lib/libnsl/nss/getrpcent.c
@@ -21,7 +21,7 @@
*/
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -31,6 +31,7 @@
#pragma ident "%Z%%M% %I% %E% SMI"
+#include "mt.h"
#include <rpc/rpcent.h>
#include <nss_dbdefs.h>
diff --git a/usr/src/lib/libnsl/nss/getrpcent_r.c b/usr/src/lib/libnsl/nss/getrpcent_r.c
index 076e762840..206b3896d0 100644
--- a/usr/src/lib/libnsl/nss/getrpcent_r.c
+++ b/usr/src/lib/libnsl/nss/getrpcent_r.c
@@ -21,14 +21,17 @@
*/
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
- *
+ */
+
+/*
* Rentrant (MT-safe) getrpcYY interfaces.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
+#include "mt.h"
#include <ctype.h>
#include <nss_dbdefs.h>
#include <stdlib.h>
diff --git a/usr/src/lib/libnsl/nss/getuserattr.c b/usr/src/lib/libnsl/nss/getuserattr.c
index b1252f4bb4..30b196c8de 100644
--- a/usr/src/lib/libnsl/nss/getuserattr.c
+++ b/usr/src/lib/libnsl/nss/getuserattr.c
@@ -21,12 +21,13 @@
*/
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
+#include "mt.h"
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
diff --git a/usr/src/lib/libnsl/nss/inet_ntop.c b/usr/src/lib/libnsl/nss/inet_ntop.c
index 0d974866cc..28067cffa0 100644
--- a/usr/src/lib/libnsl/nss/inet_ntop.c
+++ b/usr/src/lib/libnsl/nss/inet_ntop.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -22,6 +22,7 @@
#pragma ident "%Z%%M% %I% %E% SMI"
+#include "mt.h"
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
diff --git a/usr/src/lib/libnsl/nss/inet_pton.c b/usr/src/lib/libnsl/nss/inet_pton.c
index e7d43a5721..ec94b1f5e5 100644
--- a/usr/src/lib/libnsl/nss/inet_pton.c
+++ b/usr/src/lib/libnsl/nss/inet_pton.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -22,6 +22,7 @@
#pragma ident "%Z%%M% %I% %E% SMI"
+#include "mt.h"
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
diff --git a/usr/src/lib/libnsl/nss/parse.c b/usr/src/lib/libnsl/nss/parse.c
index a0c5c8e775..80c22a3e40 100644
--- a/usr/src/lib/libnsl/nss/parse.c
+++ b/usr/src/lib/libnsl/nss/parse.c
@@ -21,12 +21,13 @@
*/
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
+#include "mt.h"
#include <stdio.h>
#include <stdlib.h>
#include <strings.h>