/**************************************************************************** ** ** - TCP/IP UNIX domain socket definitions. ** ***************************************************************************** ** Header introduced by OPEN SOFTWARE FOUNDATION, INC. ***************************************************************************** ** ** Copyright 2013 Hewlett-Packard Development Company, L.P. ** ** Confidential computer software. Valid license from HP and/or ** its subsidiaries required for possession, use, or copying. ** ** Consistent with FAR 12.211 and 12.212, Commercial Computer Software, ** Computer Software Documentation, and Technical Data for Commercial ** Items are licensed to the U.S. Government under vendor's standard ** commercial license. ** ** Neither HP nor any of its subsidiaries shall be liable for technical ** or editorial errors or omissions contained herein. The information ** in this document is provided "as is" without warranty of any kind and ** is subject to change without notice. The warranties for HP products ** are set forth in the express limited warranty statements accompanying ** such products. Nothing herein should be construed as constituting an ** additional warranty. ** ***************************************************************************** ** ** (c) Copyright 1990, OPEN SOFTWARE FOUNDATION, INC. ** ALL RIGHTS RESERVED ** ** OSF/1 Release 1.0 ** ** Copyright (c) 1982, 1986 Regents of the University of California. ** All rights reserved. ** ** Redistribution and use in source and binary forms are permitted provided ** that: (1) source distributions retain this entire copyright notice and ** comment, and (2) distributions including binaries display the following ** acknowledgement: ``This product includes software developed by the ** University of California, Berkeley and its contributors'' in the ** documentation or other materials provided with the distribution and in ** all advertising materials mentioning features or use of this software. ** Neither the name of the University nor the names of its contributors may ** be used to endorse or promote products derived from this software without ** specific prior written permission. ** THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED ** WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF ** MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. ** ****************************************************************************** */ #ifndef _SYS_UN_H_ #define _SYS_UN_H_ #if !defined (_XOPEN_SOURCE_EXTENDED) || defined (_OSF_SOURCE) #include #else #include #endif /* * Definitions for UNIX IPC domain. */ #if defined(_SOCKADDR_LEN) || defined(_KERNEL) || defined(_XOPEN_SOURCE_EXTENDED) struct sockaddr_un { unsigned char sun_len; /* sockaddr len including null */ sa_family_t sun_family; /* AF_UNIX, sa_family is introduced by spec1170 */ char sun_path[104]; /* path name */ }; #else struct sockaddr_un { unsigned short sun_family; /* AF_UNIX */ char sun_path[104]; /* path name */ }; #endif #ifdef _OSF_SOURCE /* actual length of an initialized sockaddr_un */ #define SUN_LEN(su) \ (sizeof(*(su)) - sizeof((su)->sun_path) + strlen((su)->sun_path)) #endif #endif