diff options
Diffstat (limited to 'usr/src/man/man3xnet/sendto.3xnet')
-rw-r--r-- | usr/src/man/man3xnet/sendto.3xnet | 89 |
1 files changed, 8 insertions, 81 deletions
diff --git a/usr/src/man/man3xnet/sendto.3xnet b/usr/src/man/man3xnet/sendto.3xnet index 5c496238f7..9c9e75bc57 100644 --- a/usr/src/man/man3xnet/sendto.3xnet +++ b/usr/src/man/man3xnet/sendto.3xnet @@ -1,13 +1,13 @@ '\" te .\" Copyright (c) 1992, X/Open Company Limited. All Rights Reserved. Portions Copyright (c) 2003, Sun Microsystems, Inc. All Rights Reserved. -.\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at +.\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at .\" http://www.opengroup.org/bookstore/. .\" The Institute of Electrical and Electronics Engineers and The Open Group, have given us permission to reprint portions of their documentation. In the following statement, the phrase "this text" refers to portions of the system documentation. Portions of this text are reprinted and reproduced in electronic form in the Sun OS Reference Manual, from IEEE Std 1003.1, 2004 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2004 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between these versions and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html. .\" This notice shall appear on any product containing this material. .\" 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] -.TH sendto 3XNET "1 Nov 2003" "SunOS 5.11" "X/Open Networking Services Library Functions" +.TH SENDTO 3XNET "Nov 1, 2003" .SH NAME sendto \- send a message on a socket .SH SYNOPSIS @@ -58,66 +58,54 @@ the \fBsendto()\fR function. The function takes the following arguments: .sp .ne 2 -.mk .na \fB\fIsocket\fR\fR .ad .RS 13n -.rt Specifies the socket file descriptor. .RE .sp .ne 2 -.mk .na \fB\fImessage\fR\fR .ad .RS 13n -.rt Points to a buffer containing the message to be sent. .RE .sp .ne 2 -.mk .na \fB\fIlength\fR\fR .ad .RS 13n -.rt Specifies the size of the message in bytes. .RE .sp .ne 2 -.mk .na \fB\fIflags\fR\fR .ad .RS 13n -.rt Specifies the type of message transmission. Values of this argument are formed by logically OR'ing zero or more of the following flags: .sp .ne 2 -.mk .na \fBMSG_EOR\fR .ad .RS 11n -.rt Terminates a record (if supported by the protocol) .RE .sp .ne 2 -.mk .na \fBMSG_OOB\fR .ad .RS 11n -.rt Sends out-of-band data on sockets that support out-of-band data. The significance and semantics of out-of-band data are protocol-specific. .RE @@ -126,24 +114,20 @@ significance and semantics of out-of-band data are protocol-specific. .sp .ne 2 -.mk .na \fB\fIdest_addr\fR\fR .ad .RS 13n -.rt Points to a \fBsockaddr\fR structure containing the destination address. The length and format of the address depend on the address family of the socket. .RE .sp .ne 2 -.mk .na \fB\fIdest_len\fR\fR .ad .RS 13n -.rt Specifies the length of the \fBsockaddr\fR structure pointed to by the \fIdest_addr\fR argument. .RE @@ -164,18 +148,15 @@ Otherwise, \fB-1\fR is returned and \fBerrno\fR is set to indicate the error. The \fBsendto()\fR function will fail if: .sp .ne 2 -.mk .na \fB\fBEAFNOSUPPORT\fR\fR .ad .RS 16n -.rt Addresses in the specified address family cannot be used with this socket. .RE .sp .ne 2 -.mk .na \fB\fBEAGAIN\fR\fR .ad @@ -184,108 +165,89 @@ Addresses in the specified address family cannot be used with this socket. \fB\fBEWOULDBLOCK\fR\fR .ad .RS 16n -.rt The socket's file descriptor is marked \fBO_NONBLOCK\fR and the requested operation would block. .RE .sp .ne 2 -.mk .na \fB\fBEBADF\fR\fR .ad .RS 16n -.rt The \fIsocket\fR argument is not a valid file descriptor. .RE .sp .ne 2 -.mk .na \fB\fBECONNRESET\fR\fR .ad .RS 16n -.rt A connection was forcibly closed by a peer. .RE .sp .ne 2 -.mk .na \fB\fBEFAULT\fR\fR .ad .RS 16n -.rt The \fImessage\fR or \fIdestaddr\fR parameter cannot be accessed. .RE .sp .ne 2 -.mk .na \fB\fBEINTR\fR\fR .ad .RS 16n -.rt A signal interrupted \fBsendto()\fR before any data was transmitted. .RE .sp .ne 2 -.mk .na \fB\fBEMSGSIZE\fR\fR .ad .RS 16n -.rt The message is too large to be sent all at once, as the socket requires. .RE .sp .ne 2 -.mk .na \fB\fBENOTCONN\fR\fR .ad .RS 16n -.rt The socket is connection-mode but is not connected. .RE .sp .ne 2 -.mk .na \fB\fBENOTSOCK\fR\fR .ad .RS 16n -.rt The \fIsocket\fR argument does not refer to a socket. .RE .sp .ne 2 -.mk .na \fB\fBEOPNOTSUPP\fR\fR .ad .RS 16n -.rt The \fIsocket\fR argument is associated with a socket that does not support one or more of the values set in \fIflags\fR. .RE .sp .ne 2 -.mk .na \fB\fBEPIPE\fR\fR .ad .RS 16n -.rt The socket is shut down for writing, or the socket is connection-mode and is no longer connected. In the latter case, and if the socket is of type \fBSOCK_STREAM\fR, the \fBSIGPIPE\fR signal is generated to the calling thread. @@ -297,59 +259,49 @@ If the address family of the socket is \fBAF_UNIX\fR, then \fBsendto()\fR will fail if: .sp .ne 2 -.mk .na \fB\fBEIO\fR\fR .ad .RS 16n -.rt An I/O error occurred while reading from or writing to the file system. .RE .sp .ne 2 -.mk .na \fB\fBELOOP\fR\fR .ad .RS 16n -.rt Too many symbolic links were encountered in translating the pathname in the socket address. .RE .sp .ne 2 -.mk .na \fB\fBENAMETOOLONG\fR\fR .ad .RS 16n -.rt A component of a pathname exceeded \fINAME_MAX\fR characters, or an entire pathname exceeded \fIPATH_MAX\fR characters. .RE .sp .ne 2 -.mk .na \fB\fBENOENT\fR\fR .ad .RS 16n -.rt A component of the pathname does not name an existing file or the pathname is an empty string. .RE .sp .ne 2 -.mk .na \fB\fBENOTDIR\fR\fR .ad .RS 16n -.rt A component of the path prefix of the pathname in the socket address is not a directory. .RE @@ -359,125 +311,103 @@ directory. The \fBsendto()\fR function may fail if: .sp .ne 2 -.mk .na \fB\fBEACCES\fR\fR .ad .RS 16n -.rt Search permission is denied for a component of the path prefix; or write access to the named socket is denied. .RE .sp .ne 2 -.mk .na \fB\fBEDESTADDRREQ\fR\fR .ad .RS 16n -.rt The socket is not connection-mode and does not have its peer address set, and no destination address was specified. .RE .sp .ne 2 -.mk .na \fB\fBEHOSTUNREACH\fR\fR .ad .RS 16n -.rt The destination host cannot be reached (probably because the host is down or a remote router cannot reach it). .RE .sp .ne 2 -.mk .na \fB\fBEINVAL\fR\fR .ad .RS 16n -.rt The \fIdest_len\fR argument is not a valid length for the address family. .RE .sp .ne 2 -.mk .na \fB\fBEIO\fR\fR .ad .RS 16n -.rt An I/O error occurred while reading from or writing to the file system. .RE .sp .ne 2 -.mk .na \fB\fBEISCONN\fR\fR .ad .RS 16n -.rt A destination address was specified and the socket is already connected. .RE .sp .ne 2 -.mk .na \fB\fBENETDOWN\fR\fR .ad .RS 16n -.rt The local interface used to reach the destination is down. .RE .sp .ne 2 -.mk .na \fB\fBENETUNREACH\fR\fR .ad .RS 16n -.rt No route to the network is present. .RE .sp .ne 2 -.mk .na \fB\fBENOBUFS\fR\fR .ad .RS 16n -.rt Insufficient resources were available in the system to perform the operation. .RE .sp .ne 2 -.mk .na \fB\fBENOMEM\fR\fR .ad .RS 16n -.rt Insufficient memory was available to fulfill the request. .RE .sp .ne 2 -.mk .na \fB\fBENOSR\fR\fR .ad .RS 16n -.rt There were insufficient STREAMS resources available for the operation to complete. .RE @@ -488,12 +418,10 @@ If the address family of the socket is \fBAF_UNIX\fR, then \fBsendto()\fR may fail if: .sp .ne 2 -.mk .na \fB\fBENAMETOOLONG\fR\fR .ad .RS 16n -.rt Pathname resolution of a symbolic link produced an intermediate result whose length exceeds \fIPATH_MAX\fR. .RE @@ -506,15 +434,14 @@ See \fBattributes\fR(5) for descriptions of the following attributes: .sp .TS -tab() box; -cw(2.75i) |cw(2.75i) -lw(2.75i) |lw(2.75i) -. -ATTRIBUTE TYPEATTRIBUTE VALUE +box; +c | c +l | l . +ATTRIBUTE TYPE ATTRIBUTE VALUE _ -Interface StabilityStandard +Interface Stability Standard _ -MT-LevelMT-Safe +MT-Level MT-Safe .TE .SH SEE ALSO |