Module: unix-sockets Synopsis: Baseline Unix 98 socket structs, types, and constants functions as defined in Linux Copyright: Original Code is Copyright (c) 1995-2004 Functional Objects, Inc. All rights reserved. License: Functional Objects Library Public License Version 1.0 Dual-license: GNU Lesser General Public License Warranty: Distributed WITHOUT WARRANTY OF ANY KIND // Source: http://www.opengroup.org/onlinepubs/007908799/xnsix.html define constant = ; define constant = ; define constant = ; define constant = ; define constant = ; define C-struct slot sa-family-value :: ; array slot sa-data-array :: , length: 14, address-getter: sa-data-value; pointer-type-name: ; end C-struct; define C-struct slot l-onoff-value :: ; slot l-linger-value :: ; pointer-type-name: ; end C-struct; define C-struct slot msg-name-value :: ; slot msg-namelen-value :: ; slot msg-iov-value :: ; // TODO: struct iovec slot msg-iovlen-value :: ; // TODO: __kernel_size_t slot msg-control-value :: ; slot msg-controllen-value :: ; // TODO: __kernel_size_t slot msg-flags-value :: ; pointer-type-name: ; end C-struct; define C-struct slot cmsg-len-value :: ; // TODO: __kernel_size_t slot cmsg-level-value :: ; slot cmsg-type-value :: ; pointer-type-name: ; end C-struct; define constant $SOCK-STREAM = 1; define constant $SOCK-DGRAM = 2; define constant $SOCK-RAW = 3; define constant $SOCK-SEQPACKET = 5; define constant $PF-UNSPEC = 0; define constant $PF-LOCAL = 1; define constant $PF-UNIX = $PF-LOCAL; define constant $PF-INET = 2; define constant $AF-UNIX = $PF-UNIX; define constant $AF-INET = $PF-INET; define constant $AF-UNSPEC = $PF-UNSPEC; define constant $SHUT-RD = 0; define constant $SHUT-WR = 1; define constant $SHUT-RDWR = 2;