summaryrefslogtreecommitdiff
path: root/usr/src/lib/libsocket/socket
diff options
context:
space:
mode:
authorAnders Persson <Anders.Persson@Sun.COM>2010-08-10 00:05:27 -0700
committerAnders Persson <Anders.Persson@Sun.COM>2010-08-10 00:05:27 -0700
commitd2b5b2d357ee3172eacb6860be1891259902203d (patch)
treeb1fa83cc973f546bff4abbadd22fe651f031d0d7 /usr/src/lib/libsocket/socket
parenta215d4eb400e2ff52f7a17e0781964c37aabfc04 (diff)
downloadillumos-joyent-d2b5b2d357ee3172eacb6860be1891259902203d.tar.gz
PSARC/2010/304 Deliver Socket Configuration in Fragments
6923961 etc/inet/sock2path needs some attention in OpenSolaris --HG-- rename : usr/src/cmd/cmd-inet/etc/sock2path => usr/src/cmd/cmd-inet/etc/sock2path.d/system%2Fkernel
Diffstat (limited to 'usr/src/lib/libsocket/socket')
-rw-r--r--usr/src/lib/libsocket/socket/_soutil.c5
-rw-r--r--usr/src/lib/libsocket/socket/socket.c18
2 files changed, 9 insertions, 14 deletions
diff --git a/usr/src/lib/libsocket/socket/_soutil.c b/usr/src/lib/libsocket/socket/_soutil.c
index ac5ee929d8..689f7528a0 100644
--- a/usr/src/lib/libsocket/socket/_soutil.c
+++ b/usr/src/lib/libsocket/socket/_soutil.c
@@ -20,8 +20,7 @@
*/
/*
- * Copyright 2010 Sun Microsystems, Inc. All rights reserved.
- * Use is subject to license terms.
+ * Copyright (c) 1995, 2010, Oracle and/or its affiliates. All rights reserved.
*/
/* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */
@@ -43,7 +42,7 @@
/*
* XXX The functions in this file are only needed to support transport
- * providers that have not yet been converted to use /etc/sock2path.
+ * providers that have not yet been converted to use /etc/sock2path.d.
* Once all transport providers have been converted this file can be
* removed.
*/
diff --git a/usr/src/lib/libsocket/socket/socket.c b/usr/src/lib/libsocket/socket/socket.c
index 3e99ed4900..878d7a3155 100644
--- a/usr/src/lib/libsocket/socket/socket.c
+++ b/usr/src/lib/libsocket/socket/socket.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -20,8 +19,7 @@
* CDDL HEADER END
*/
/*
- * Copyright 1997 Sun Microsystems, Inc. All rights reserved.
- * Use is subject to license terms.
+ * Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
*/
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
@@ -37,8 +35,6 @@
* contributors.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/stropts.h>
@@ -100,12 +96,12 @@ _socket_create(int family, int type, int protocol, int version)
/*
* Try creating without knowing the device assuming that
- * the transport provider is registered in /etc/sock2path.
+ * the transport provider is registered in /etc/sock2path.d.
* If none found fall back to using /etc/netconfig to look
* up the name of the transport device name. This provides
* backwards compatibility for transport providers that have not
- * yet been converted to using /etc/sock2path.
- * XXX When all transport providers use /etc/sock2path this
+ * yet been converted to using /etc/sock2path.d.
+ * XXX When all transport providers use /etc/sock2path.d. this
* part of the code can be removed.
*/
fd = _so_socket(family, type, protocol, NULL, version);
@@ -128,7 +124,7 @@ _socket_create(int family, int type, int protocol, int version)
return (-1);
}
if (_s_netconfig_path(family, type, protocol,
- &devpath, &prototype) == -1) {
+ &devpath, &prototype) == -1) {
errno = saved_errno;
return (-1);
}