summaryrefslogtreecommitdiff
path: root/usr/src/man/man3socket
diff options
context:
space:
mode:
authorKeith M Wesolowski <wesolows@foobazco.org>2013-04-15 23:44:21 +0000
committerKeith M Wesolowski <wesolows@foobazco.org>2013-04-15 23:56:06 +0000
commitd74e1c52fb42c9e48fc33574a1cc964b27954bc6 (patch)
treeaf02d286b8bc0842f7a7b809591219f7124a15d9 /usr/src/man/man3socket
parent484797449e047bc3b1f53f9af574cfd68d8e24c8 (diff)
parent8c430e5901323dc4ac1bd69a6bbf0bc356f02ae5 (diff)
downloadillumos-joyent-d74e1c52fb42c9e48fc33574a1cc964b27954bc6.tar.gz
[illumos-gate merge]
commit 8c430e5901323dc4ac1bd69a6bbf0bc356f02ae5 3708 Fast reboot support in ixgbe commit 187670a04e7557914566fc449b4d3af38caea282 3666 Implement SOCK_CLOEXEC flag to socket() commit f971a3462face662ae8ef220a18a98354d625d54 3673 core dumping is abysmally slow 3671 left behind enemy lines, agent LWP can go rogue 3670 add visibility into agent LWP's spymaster commit abc79d9dd51e98eafb6fc25b4a0b4f66bef40b00 3679 prtconf should print out PCI database information 3680 Want a library to allow programatic access to the pci database Conflicts: usr/src/uts/common/fs/proc/prvnops.c usr/src/uts/common/fs/proc/prcontrol.c usr/src/man/man1m/prtconf.1m usr/src/lib/Makefile usr/src/cmd/ptools/pflags/pflags.c Manifests: usr/src/pkg/manifests/system-library.mf [already present]
Diffstat (limited to 'usr/src/man/man3socket')
-rw-r--r--usr/src/man/man3socket/socket.3socket21
1 files changed, 19 insertions, 2 deletions
diff --git a/usr/src/man/man3socket/socket.3socket b/usr/src/man/man3socket/socket.3socket
index 1587e04925..be280b082e 100644
--- a/usr/src/man/man3socket/socket.3socket
+++ b/usr/src/man/man3socket/socket.3socket
@@ -1,6 +1,7 @@
'\" te
.\" Copyright (C) 2009, Sun Microsystems, Inc. All Rights Reserved.
.\" Copyright 1989 AT&T
+.\" Copyright (c) 2013, OmniTI Computer Consulting, Inc. All Rights Reserved.
.\" The contents of this file are subject to the terms of the 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. See the License for the specific language governing permissions and limitations under the License.
.\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
@@ -84,6 +85,22 @@ SOCK_RDM
.sp
.LP
+The \fItype\fR may be augmented by a bitwise-inclusive-OR of flags from the
+following list, defined in <sys/socket.h>.
+
+.sp
+.ne 2
+.na
+\fB\fBSOCK_CLOEXEC\fR\fR
+.ad
+.RS 12n
+Creates the socket with the \fBFD_CLOEXEC\fR flag set, causing the underlying
+file descriptor to be closed prior to any future calls to \fBexec\fR(2). This
+is similar in purpose to the \fBO_CLOEXEC\fR flag to \fBopen\fR(2).
+.RE
+
+.sp
+.LP
There must be an entry in the \fBnetconfig\fR(4) file for at least each
protocol family and type required. If a non-zero protocol has been specified
but no exact match for the protocol family, type, and protocol is found, then
@@ -267,9 +284,9 @@ MT-Level Safe
.sp
.LP
\fBnca\fR(1), \fBclose\fR(2), \fBfcntl\fR(2), \fBioctl\fR(2), \fBread\fR(2),
-\fBwrite\fR(2), \fBaccept\fR(3SOCKET), \fBbind\fR(3SOCKET),
+\fBwrite\fR(2), \fBaccept\fR(3SOCKET), \fBbind\fR(3SOCKET), \fBexec\fR(2),
\fBconnect\fR(3SOCKET), \fBgetsockname\fR(3SOCKET), \fBgetsockopt\fR(3SOCKET),
-\fBin.h\fR(3HEAD),\fBlisten\fR(3SOCKET), \fBrecv\fR(3SOCKET),
+\fBin.h\fR(3HEAD),\fBlisten\fR(3SOCKET), \fBrecv\fR(3SOCKET), \fBopen\fR(2),
\fBsetsockopt\fR(3SOCKET), \fBsend\fR(3SOCKET), \fBshutdown\fR(3SOCKET),
\fBsocket.h\fR(3HEAD), \fBsocketpair\fR(3SOCKET), \fBattributes\fR(5)
.SH NOTES