#, fuzzy msgid "" msgstr "" "Project-Id-Version: man-pages-l10n VERSION\n" "POT-Creation-Date: 2014-07-17 17:57+0900\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. type: TH #: man-pages-posix/man0p/sys_socket.h.0p:2 #, no-wrap msgid "sys_socket.h" msgstr "" #. type: TH #: man-pages-posix/man0p/sys_socket.h.0p:2 #, no-wrap msgid "2013" msgstr "" #. type: TH #: man-pages-posix/man0p/sys_socket.h.0p:2 #, no-wrap msgid "IEEE/The Open Group" msgstr "" #. type: TH #: man-pages-posix/man0p/sys_socket.h.0p:2 #, no-wrap msgid "POSIX Programmer's Manual" msgstr "" #. type: SH #: man-pages-posix/man0p/sys_socket.h.0p:3 #, no-wrap msgid "PROLOG" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:8 msgid "" "This manual page is part of the POSIX Programmer's Manual. The Linux " "implementation of this interface may differ (consult the corresponding Linux " "manual page for details of Linux behavior), or the interface may not be " "implemented on Linux." msgstr "" #. type: SH #: man-pages-posix/man0p/sys_socket.h.0p:9 #, no-wrap msgid "NAME" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:12 msgid "sys/socket.h \\(em main sockets header" msgstr "" #. type: SH #: man-pages-posix/man0p/sys_socket.h.0p:12 #, no-wrap msgid "SYNOPSIS" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:16 #, no-wrap msgid "#include Esys/socket.hE\n" msgstr "" #. type: SH #: man-pages-posix/man0p/sys_socket.h.0p:17 #, no-wrap msgid "DESCRIPTION" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:24 msgid "" "The Isys/socket.hE> header shall define the B type, " "which is an integer type of width of at least 32 bits; see APPLICATION USAGE." "" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:30 msgid "" "The Isys/socket.hE> header shall define the B " "unsigned integer type." msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:36 msgid "" "The Isys/socket.hE> header shall define the B structure, " "which shall include at least the following members:" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:42 #, no-wrap msgid "" "B<\n" "sa_family_t sa_family >Address family.\n" "char sa_data[] Socket address (variable-length data).\n" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:58 msgid "" "The B structure is used to define a socket address which is used " "in the I(), I(), I(), I(), " "I(), and I() functions." msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:64 msgid "" "The Isys/socket.hE> header shall define the B " "structure, which shall be:" msgstr "" #. type: IP #: man-pages-posix/man0p/sys_socket.h.0p:64 man-pages-posix/man0p/sys_socket.h.0p:67 #, no-wrap msgid " *" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:67 msgid "" "Large enough to accommodate all supported protocol-specific address " "structures" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:71 msgid "" "Aligned at an appropriate boundary so that pointers to it can be cast as " "pointers to protocol-specific address structures and used to access the " "fields of those structures without alignment problems" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:75 msgid "" "The B structure shall include at least the following " "members:" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:80 #, no-wrap msgid "B<\n" "sa_family_t ss_family>\n" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:105 msgid "" "When a pointer to a B structure is cast as a pointer to a " "B structure, the I field of the B " "structure shall map onto the I field of the B structure." " When a pointer to a B structure is cast as a pointer to a " "protocol-specific address structure, the I field shall map onto a " "field of that structure that is of type B and that identifies " "the protocol's address family." msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:111 msgid "" "The Isys/socket.hE> header shall define the B structure, " "which shall include at least the following members:" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:122 #, no-wrap msgid "" "B<\n" "void *msg_name >Optional address.\n" "socklen_t msg_namelen Size of address.\n" "struct iovec *msg_iov Scatter/gather array.\n" "int msg_iovlen Members in I.\n" "void *msg_control Ancillary data; see below.\n" "socklen_t msg_controllen Ancillary data buffer I.\n" "int msg_flags Flags on received message.\n" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:143 msgid "" "The B structure is used to minimize the number of directly supplied " "parameters to the I() and I() functions. This structure " "is used as a I\\(hyI parameter in the I() function " "and I only for the I() function." msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:150 msgid "" "The Isys/socket.hE> header shall define the B structure as " "described in Isys/uio.hE>." msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:156 msgid "" "The Isys/socket.hE> header shall define the B structure, " "which shall include at least the following members:" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:163 #, no-wrap msgid "" "B<\n" "socklen_t cmsg_len >Data byte count, including the B.\n" "int cmsg_level Originating protocol.\n" "int cmsg_type Protocol-specific type.\n" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:170 msgid "" "The B structure is used for storage of ancillary data object " "information." msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:178 msgid "" "Ancillary data consists of a sequence of pairs, each consisting of a " "B structure followed by a data array. The data array contains the " "ancillary data message, and the B structure contains descriptive " "information that allows an application to correctly parse the data." msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:190 msgid "" "The values for I shall be legal values for the I argument " "to the I() and I() functions. The system " "documentation shall specify the I definitions for the supported " "protocols." msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:198 msgid "" "Ancillary data is also possible at the socket level. The Isys/socket." "hE> header shall define the following symbolic constant for use as the " "I value when I is SOL_SOCKET:" msgstr "" #. type: IP #: man-pages-posix/man0p/sys_socket.h.0p:198 #, no-wrap msgid "SCM_RIGHTS" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:201 msgid "" "Indicates that the data array contains the access rights to be sent or " "received." msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:206 msgid "" "The Isys/socket.hE> header shall define the following macros to " "gain access to the data arrays in the ancillary data associated with a " "message header:" msgstr "" #. type: IP #: man-pages-posix/man0p/sys_socket.h.0p:206 #, no-wrap msgid "CMSG_DATA(I)" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:214 msgid "" "If the argument is a pointer to a B structure, this macro shall " "return an unsigned character pointer to the data array associated with the " "B structure." msgstr "" #. type: IP #: man-pages-posix/man0p/sys_socket.h.0p:214 #, no-wrap msgid "CMSG_NXTHDR(I)" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:229 msgid "" "If the first argument is a pointer to a B structure and the second " "argument is a pointer to a B structure in the ancillary data " "pointed to by the I field of that B structure, this " "macro shall return a pointer to the next B structure, or a null " "pointer if this structure is the last B in the ancillary data." msgstr "" #. type: IP #: man-pages-posix/man0p/sys_socket.h.0p:229 #, no-wrap msgid "CMSG_FIRSTHDR(I)" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:241 msgid "" "If the argument is a pointer to a B structure, this macro shall " "return a pointer to the first B structure in the ancillary data " "associated with this B structure, or a null pointer if there is no " "ancillary data associated with the B structure." msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:247 msgid "" "The Isys/socket.hE> header shall define the B structure, " "which shall include at least the following members:" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:253 #, no-wrap msgid "" "B<\n" "int l_onoff >Indicates whether linger option is enabled.\n" "int l_linger Linger time, in seconds.\n" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:260 man-pages-posix/man0p/sys_socket.h.0p:377 man-pages-posix/man0p/sys_socket.h.0p:389 msgid "" "The Isys/socket.hE> header shall define the following symbolic " "constants with distinct values:" msgstr "" #. type: IP #: man-pages-posix/man0p/sys_socket.h.0p:260 #, no-wrap msgid "SOCK_DGRAM" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:262 msgid "Datagram socket." msgstr "" #. type: IP #: man-pages-posix/man0p/sys_socket.h.0p:262 #, no-wrap msgid "SOCK_RAW" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:264 msgid "Raw Protocol Interface." msgstr "" #. type: IP #: man-pages-posix/man0p/sys_socket.h.0p:264 #, no-wrap msgid "SOCK_SEQPACKET" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:266 msgid "Sequenced-packet socket." msgstr "" #. type: IP #: man-pages-posix/man0p/sys_socket.h.0p:266 #, no-wrap msgid "SOCK_STREAM" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:268 msgid "Byte-stream socket." msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:277 msgid "" "The Isys/socket.hE> header shall define the following symbolic " "constant for use as the I argument of I() and " "I()." msgstr "" #. type: IP #: man-pages-posix/man0p/sys_socket.h.0p:277 #, no-wrap msgid "SOL_SOCKET" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:279 msgid "Options to be accessed at socket level, not protocol level." msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:291 msgid "" "The Isys/socket.hE> header shall define the following symbolic " "constants with distinct values for use as the I argument in " "I() or I() calls (see the System Interfaces volume " "of POSIX.1\\(hy2008, I
, I):" msgstr "" #. type: IP #: man-pages-posix/man0p/sys_socket.h.0p:291 #, no-wrap msgid "SO_ACCEPTCONN" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:293 msgid "Socket is accepting connections." msgstr "" #. type: IP #: man-pages-posix/man0p/sys_socket.h.0p:293 #, no-wrap msgid "SO_BROADCAST" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:295 msgid "Transmission of broadcast messages is supported." msgstr "" #. type: IP #: man-pages-posix/man0p/sys_socket.h.0p:295 #, no-wrap msgid "SO_DEBUG" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:297 msgid "Debugging information is being recorded." msgstr "" #. type: IP #: man-pages-posix/man0p/sys_socket.h.0p:297 #, no-wrap msgid "SO_DONTROUTE" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:299 msgid "Bypass normal routing." msgstr "" #. type: IP #: man-pages-posix/man0p/sys_socket.h.0p:299 #, no-wrap msgid "SO_ERROR" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:301 msgid "Socket error status." msgstr "" #. type: IP #: man-pages-posix/man0p/sys_socket.h.0p:301 #, no-wrap msgid "SO_KEEPALIVE" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:303 msgid "Connections are kept alive with periodic messages." msgstr "" #. type: IP #: man-pages-posix/man0p/sys_socket.h.0p:303 #, no-wrap msgid "SO_LINGER" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:305 msgid "Socket lingers on close." msgstr "" #. type: IP #: man-pages-posix/man0p/sys_socket.h.0p:305 #, no-wrap msgid "SO_OOBINLINE" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:307 msgid "Out-of-band data is transmitted in line." msgstr "" #. type: IP #: man-pages-posix/man0p/sys_socket.h.0p:307 #, no-wrap msgid "SO_RCVBUF" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:309 msgid "Receive buffer size." msgstr "" #. type: IP #: man-pages-posix/man0p/sys_socket.h.0p:309 #, no-wrap msgid "SO_RCVLOWAT" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:311 msgid "Receive ``low water mark''." msgstr "" #. type: IP #: man-pages-posix/man0p/sys_socket.h.0p:311 #, no-wrap msgid "SO_RCVTIMEO" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:313 msgid "Receive timeout." msgstr "" #. type: IP #: man-pages-posix/man0p/sys_socket.h.0p:313 #, no-wrap msgid "SO_REUSEADDR" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:315 msgid "Reuse of local addresses is supported." msgstr "" #. type: IP #: man-pages-posix/man0p/sys_socket.h.0p:315 #, no-wrap msgid "SO_SNDBUF" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:317 msgid "Send buffer size." msgstr "" #. type: IP #: man-pages-posix/man0p/sys_socket.h.0p:317 #, no-wrap msgid "SO_SNDLOWAT" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:319 msgid "Send ``low water mark''." msgstr "" #. type: IP #: man-pages-posix/man0p/sys_socket.h.0p:319 #, no-wrap msgid "SO_SNDTIMEO" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:321 msgid "Send timeout." msgstr "" #. type: IP #: man-pages-posix/man0p/sys_socket.h.0p:321 #, no-wrap msgid "SO_TYPE" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:323 msgid "Socket type." msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:333 msgid "" "The Isys/socket.hE> header shall define the following symbolic " "constant for use as the maximum I queue length which may be " "specified by the I field of the I() function:" msgstr "" #. type: IP #: man-pages-posix/man0p/sys_socket.h.0p:333 #, no-wrap msgid "SOMAXCONN" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:337 msgid "The maximum I queue length." msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:356 msgid "" "The Isys/socket.hE> header shall define the following symbolic " "constants with distinct values for use as the valid values for the " "I field in the B structure, or the I parameter in " "I(), I(), I(), I(), I(), or " "I() calls:" msgstr "" #. type: IP #: man-pages-posix/man0p/sys_socket.h.0p:356 #, no-wrap msgid "MSG_CTRUNC" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:358 msgid "Control data truncated." msgstr "" #. type: IP #: man-pages-posix/man0p/sys_socket.h.0p:358 #, no-wrap msgid "MSG_DONTROUTE" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:360 msgid "Send without using routing tables." msgstr "" #. type: IP #: man-pages-posix/man0p/sys_socket.h.0p:360 #, no-wrap msgid "MSG_EOR" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:362 msgid "Terminates a record (if supported by the protocol)." msgstr "" #. type: IP #: man-pages-posix/man0p/sys_socket.h.0p:362 #, no-wrap msgid "MSG_OOB" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:364 msgid "Out-of-band data." msgstr "" #. type: IP #: man-pages-posix/man0p/sys_socket.h.0p:364 #, no-wrap msgid "MSG_NOSIGNAL" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:367 msgid "" "No SIGPIPE generated when an attempt to send is made on a stream-oriented " "socket that is no longer connected." msgstr "" #. type: IP #: man-pages-posix/man0p/sys_socket.h.0p:367 #, no-wrap msgid "MSG_PEEK" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:369 msgid "Leave received data in queue." msgstr "" #. type: IP #: man-pages-posix/man0p/sys_socket.h.0p:369 #, no-wrap msgid "MSG_TRUNC" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:371 msgid "Normal data truncated." msgstr "" #. type: IP #: man-pages-posix/man0p/sys_socket.h.0p:371 #, no-wrap msgid "MSG_WAITALL" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:373 msgid "Attempt to fill the read buffer." msgstr "" #. type: IP #: man-pages-posix/man0p/sys_socket.h.0p:377 #, no-wrap msgid "AF_INET" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:379 msgid "Internet domain sockets for use with IPv4 addresses." msgstr "" #. type: IP #: man-pages-posix/man0p/sys_socket.h.0p:379 #, no-wrap msgid "AF_INET6" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:381 msgid "Internet domain sockets for use with IPv6 addresses." msgstr "" #. type: IP #: man-pages-posix/man0p/sys_socket.h.0p:381 #, no-wrap msgid "AF_UNIX" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:383 msgid "UNIX domain sockets." msgstr "" #. type: IP #: man-pages-posix/man0p/sys_socket.h.0p:383 #, no-wrap msgid "AF_UNSPEC" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:385 msgid "Unspecified." msgstr "" #. type: IP #: man-pages-posix/man0p/sys_socket.h.0p:389 #, no-wrap msgid "SHUT_RD" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:391 msgid "Disables further receive operations." msgstr "" #. type: IP #: man-pages-posix/man0p/sys_socket.h.0p:391 #, no-wrap msgid "SHUT_RDWR" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:393 msgid "Disables further send and receive operations." msgstr "" #. type: IP #: man-pages-posix/man0p/sys_socket.h.0p:393 #, no-wrap msgid "SHUT_WR" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:395 msgid "Disables further send operations." msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:404 msgid "" "The Isys/socket.hE> header shall define the B and " "B types as described in Isys/types.hE>." msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:407 msgid "" "The following shall be declared as functions and may also be defined as " "macros. Function prototypes shall be provided." msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:431 #, no-wrap msgid "" "B<\n" "int accept(int, struct sockaddr *restrict, socklen_t *restrict);\n" "int bind(int, const struct sockaddr *, socklen_t);\n" "int connect(int, const struct sockaddr *, socklen_t);\n" "int getpeername(int, struct sockaddr *restrict, socklen_t *restrict);\n" "int getsockname(int, struct sockaddr *restrict, socklen_t *restrict);\n" "int getsockopt(int, int, int, void *restrict, socklen_t *restrict);\n" "int listen(int, int);\n" "ssize_t recv(int, void *, size_t, int);\n" "ssize_t recvfrom(int, void *restrict, size_t, int,\n" " struct sockaddr *restrict, socklen_t *restrict);\n" "ssize_t recvmsg(int, struct msghdr *, int);\n" "ssize_t send(int, const void *, size_t, int);\n" "ssize_t sendmsg(int, const struct msghdr *, int);\n" "ssize_t sendto(int, const void *, size_t, int, const struct sockaddr *,\n" " socklen_t);\n" "int setsockopt(int, int, int, const void *, socklen_t);\n" "int shutdown(int, int);\n" "int sockatmark(int);\n" "int socket(int, int, int);\n" "int socketpair(int, int, int, int [2]);>\n" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:439 msgid "" "Inclusion of Isys/socket.hE> may also make visible all symbols " "from Isys/uio.hE>." msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:441 msgid "I" msgstr "" #. type: SH #: man-pages-posix/man0p/sys_socket.h.0p:441 #, no-wrap msgid "APPLICATION USAGE" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:446 msgid "" "To forestall portability problems, it is recommended that applications not " "use values larger than 2\\u\\s-331\\s+3\\d \\(mi1 for the B type." msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:458 msgid "" "The B structure solves the problem of declaring storage " "for automatic variables which is both large enough and aligned enough for " "storing the socket address data structure of any family. For example, code " "with a file descriptor and without the context of the address family can " "pass a pointer to a variable of this type, where a pointer to a socket " "address structure is expected in calls such as I(), and " "determine the address family by accessing the received content after the " "call." msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:483 msgid "" "The example below illustrates a data structure which aligns on a 64-bit " "boundary. An implementation-defined field I<_ss_align> following I<_ss_pad1> " "is used to force a 64-bit alignment which covers proper alignment good " "enough for needs of at least B (IPv6) and B " "(IPv4) address data structures. The size of padding field I<_ss_pad1> " "depends on the chosen alignment boundary. The size of padding field " "I<_ss_pad2> depends on the value of overall size chosen for the total size " "of the structure. This size and alignment are represented in the above " "example by implementation-defined (not required) constants _SS_MAXSIZE " "(chosen value 128) and _SS_ALIGNMENT (with chosen value 8). Constants " "_SS_PAD1SIZE (derived value 6) and _SS_PAD2SIZE (derived value 112) are also " "for illustration and not required. The implementation-defined definitions " "and structure field names above start with an EunderscoreE to denote " "implementation private name space. Portable code is not expected to access " "or reference those fields or constants." msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:494 #, no-wrap msgid "" "B<\n" "/*\n" " * Desired design of maximum size and alignment.\n" " */\n" "#define _SS_MAXSIZE 128\n" " /* Implementation-defined maximum size. */\n" "#define _SS_ALIGNSIZE (sizeof(int64_t))\n" " /* Implementation-defined desired alignment. */>\n" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:517 #, no-wrap msgid "" "/*\n" " * Definitions used for sockaddr_storage structure paddings design.\n" " */\n" "#define _SS_PAD1SIZE (_SS_ALIGNSIZE \\(mi sizeof(sa_family_t))\n" "#define _SS_PAD2SIZE (_SS_MAXSIZE \\(mi (sizeof(sa_family_t)+ \\e\n" " _SS_PAD1SIZE + _SS_ALIGNSIZE))\n" "struct sockaddr_storage {\n" " sa_family_t ss_family; /* Address family. */\n" "/*\n" " * Following fields are implementation-defined.\n" " */\n" " char _ss_pad1[_SS_PAD1SIZE];\n" " /* 6-byte pad; this is to make implementation-defined\n" " pad up to alignment field that follows explicit in\n" " the data structure. */\n" " int64_t _ss_align; /* Field to force desired structure\n" " storage alignment. */\n" " char _ss_pad2[_SS_PAD2SIZE];\n" " /* 112-byte pad to achieve desired size,\n" " _SS_MAXSIZE value minus size of ss_family\n" " __ss_pad1, __ss_align fields is 112. */\n" "};\n" msgstr "" #. type: SH #: man-pages-posix/man0p/sys_socket.h.0p:520 #, no-wrap msgid "RATIONALE" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:522 man-pages-posix/man0p/sys_socket.h.0p:524 msgid "None." msgstr "" #. type: SH #: man-pages-posix/man0p/sys_socket.h.0p:522 #, no-wrap msgid "FUTURE DIRECTIONS" msgstr "" #. type: SH #: man-pages-posix/man0p/sys_socket.h.0p:524 #, no-wrap msgid "SEE ALSO" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:527 msgid "Bsys_types.hE>, Bsys_uio.hE>" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:547 msgid "" "The System Interfaces volume of POSIX.1\\(hy2008, I\\^(\\|), " "I\\^(\\|), I\\^(\\|), I\\^(\\|), " "I\\^(\\|), I\\^(\\|), I\\^(\\|), " "I\\^(\\|), I\\^(\\|), I\\^(\\|), I\\^(\\|), " "I\\^(\\|), I\\^(\\|), I\\^(\\|), " "I\\^(\\|), I\\^(\\|), I\\^(\\|), " "I\\^(\\|)" msgstr "" #. type: SH #: man-pages-posix/man0p/sys_socket.h.0p:547 #, no-wrap msgid "COPYRIGHT" msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:558 msgid "" "Portions of this text are reprinted and reproduced in electronic form from " "IEEE Std 1003.1, 2013 Edition, Standard for Information Technology -- " "Portable Operating System Interface (POSIX), The Open Group Base " "Specifications Issue 7, Copyright (C) 2013 by the Institute of Electrical " "and Electronics Engineers, Inc and The Open Group. (This is POSIX.1-2008 " "with the 2013 Technical Corrigendum 1 applied.) In the event of any " "discrepancy between this version 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.unix." "org/online.html ." msgstr "" #. type: Plain text #: man-pages-posix/man0p/sys_socket.h.0p:563 msgid "" "Any typographical or formatting errors that appear in this page are most " "likely to have been introduced during the conversion of the source files to " "man page format. To report such errors, see https://www.kernel.org/doc/man-" "pages/reporting_bugs.html ." msgstr ""