transport.c revision 73143b9a
173143b9aSmrg/*
273143b9aSmrg
373143b9aSmrgCopyright 1993, 1994, 1998  The Open Group
473143b9aSmrg
573143b9aSmrgPermission to use, copy, modify, distribute, and sell this software and its
673143b9aSmrgdocumentation for any purpose is hereby granted without fee, provided that
773143b9aSmrgthe above copyright notice appear in all copies and that both that
873143b9aSmrgcopyright notice and this permission notice appear in supporting
973143b9aSmrgdocumentation.
1073143b9aSmrg
1173143b9aSmrgThe above copyright notice and this permission notice shall be included
1273143b9aSmrgin all copies or substantial portions of the Software.
1373143b9aSmrg
1473143b9aSmrgTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
1573143b9aSmrgOR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
1673143b9aSmrgMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
1773143b9aSmrgIN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
1873143b9aSmrgOTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
1973143b9aSmrgARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
2073143b9aSmrgOTHER DEALINGS IN THE SOFTWARE.
2173143b9aSmrg
2273143b9aSmrgExcept as contained in this notice, the name of The Open Group shall
2373143b9aSmrgnot be used in advertising or otherwise to promote the sale, use or
2473143b9aSmrgother dealings in this Software without prior written authorization
2573143b9aSmrgfrom The Open Group.
2673143b9aSmrg
2773143b9aSmrg * Copyright 1993, 1994 NCR Corporation - Dayton, Ohio, USA
2873143b9aSmrg *
2973143b9aSmrg * All Rights Reserved
3073143b9aSmrg *
3173143b9aSmrg * Permission to use, copy, modify, and distribute this software and its
3273143b9aSmrg * documentation for any purpose and without fee is hereby granted, provided
3373143b9aSmrg * that the above copyright notice appear in all copies and that both that
3473143b9aSmrg * copyright notice and this permission notice appear in supporting
3573143b9aSmrg * documentation, and that the name NCR not be used in advertising
3673143b9aSmrg * or publicity pertaining to distribution of the software without specific,
3773143b9aSmrg * written prior permission.  NCR makes no representations about the
3873143b9aSmrg * suitability of this software for any purpose.  It is provided "as is"
3973143b9aSmrg * without express or implied warranty.
4073143b9aSmrg *
4173143b9aSmrg * NCR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
4273143b9aSmrg * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN
4373143b9aSmrg * NO EVENT SHALL NCR BE LIABLE FOR ANY SPECIAL, INDIRECT OR
4473143b9aSmrg * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
4573143b9aSmrg * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
4673143b9aSmrg * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
4773143b9aSmrg * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
4873143b9aSmrg */
4973143b9aSmrg
5073143b9aSmrg#ifdef __UNIXOS2__
5173143b9aSmrg#define I_NEED_OS2_H
5273143b9aSmrg#endif
5373143b9aSmrg
5473143b9aSmrg#ifdef XSERV_t
5573143b9aSmrg#include "os.h"
5673143b9aSmrg#else
5773143b9aSmrg#include <stdlib.h>
5873143b9aSmrg#define xalloc(_size)		malloc(_size)
5973143b9aSmrg#define xcalloc(_num,_size)	calloc(_num,_size)
6073143b9aSmrg#define xrealloc(_ptr,_size)	realloc(_ptr,_size)
6173143b9aSmrg#define xfree(_ptr)		free(_ptr)
6273143b9aSmrg#endif
6373143b9aSmrg
6473143b9aSmrg#include "Xtransint.h"
6573143b9aSmrg
6673143b9aSmrg#ifdef DNETCONN
6773143b9aSmrg#include "Xtransdnet.c"
6873143b9aSmrg#endif
6973143b9aSmrg#ifdef LOCALCONN
7073143b9aSmrg#include "Xtranslcl.c"
7173143b9aSmrg#endif
7273143b9aSmrg#ifdef OS2PIPECONN
7373143b9aSmrg#include "Xtransos2.c"
7473143b9aSmrg#endif
7573143b9aSmrg#if defined(TCPCONN) || defined(UNIXCONN)
7673143b9aSmrg#include "Xtranssock.c"
7773143b9aSmrg#endif
7873143b9aSmrg#ifdef STREAMSCONN
7973143b9aSmrg#include "Xtranstli.c"
8073143b9aSmrg#endif
8173143b9aSmrg#include "Xtrans.c"
8273143b9aSmrg#include "Xtransutil.c"
83