remove ultrix support
[oweals/cde.git] / cde / lib / tt / lib / mp / mp_rpc.h
1 /*
2  * CDE - Common Desktop Environment
3  *
4  * Copyright (c) 1993-2012, The Open Group. All rights reserved.
5  *
6  * These libraries and programs are free software; you can
7  * redistribute them and/or modify them under the terms of the GNU
8  * Lesser General Public License as published by the Free Software
9  * Foundation; either version 2 of the License, or (at your option)
10  * any later version.
11  *
12  * These libraries and programs are distributed in the hope that
13  * they will be useful, but WITHOUT ANY WARRANTY; without even the
14  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15  * PURPOSE. See the GNU Lesser General Public License for more
16  * details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with these libraries and programs; if not, write
20  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21  * Floor, Boston, MA 02110-1301 USA
22  */
23 /*%%  (c) Copyright 1993, 1994 Hewlett-Packard Company                   */
24 /*%%  (c) Copyright 1993, 1994 International Business Machines Corp.     */
25 /*%%  (c) Copyright 1993, 1994 Sun Microsystems, Inc.                    */
26 /*%%  (c) Copyright 1993, 1994 Novell, Inc.                              */
27 /*%%  $TOG: mp_rpc.h /main/5 1999/08/30 10:55:41 mgreess $                                                       */
28 /*
29  *
30  * @(#)mp_rpc.h 1.15 93/09/07
31  *
32  * Copyright (c) 1990,1993 by Sun Microsystems, Inc.
33  *
34  * Common declarations for RPC implementation classes.
35  */
36 #ifndef _TT_MP_RPC
37 #define _TT_MP_RPC
38 #include "tt_options.h"
39
40 #if defined(__linux__)
41 # define __SVR4_I386_ABI_L1__
42 #endif
43 #include <rpc/rpc.h>
44 #if defined(__linux__)
45 # undef __SVR4_I386_ABI_L1__
46 #endif
47
48 #if defined(_AIX)
49 extern "C" {
50   void svcerr_auth (SVCXPRT *, enum auth_stat);
51   SVCXPRT *svcfd_create(int,int,int);
52   void svc_getreqset(fd_set *);
53 };
54 #endif
55
56 #if defined(OPT_TLI)
57 #       include <netconfig.h>
58 #       include <tiuser.h>
59 #else
60 #       include <sys/socket.h>
61 #       include <netinet/in.h>
62 #endif /* OPT_TLI */
63
64 #include <sys/types.h>
65 #include "util/tt_object.h"
66 #include "util/tt_ptr.h"
67 #include "util/tt_int_rec.h"
68 #include "mp/mp_rpc_fns.h"
69 #include "util/tt_host_utils.h"
70
71 enum _Tt_rpcsrv_err {
72         _TT_RPCSRV_OK,
73         _TT_RPCSRV_ERR,
74         _TT_RPCSRV_TMOUT,
75         _TT_RPCSRV_FDERR
76 };
77
78 #endif                          /* _TT_MP_RPC */