2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
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)
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
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
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 //%% $XConsortium: tt_int_rec.C /main/3 1995/10/23 10:40:21 rswiston $
32 * Copyright (c) 1990 by Sun Microsystems, Inc.
34 #include "util/tt_int_rec.h"
35 #include "util/tt_iostream.h"
37 #include <rpc/types.h>
62 print(const _Tt_ostream &os) const
71 return(xdr_int(xdrs, &val));
74 implement_list_of(_Tt_int_rec)
84 _Tt_pid_t_rec(pid_t v)
98 print(const _Tt_ostream &os) const
104 bool_t _Tt_pid_t_rec::
110 // Some systems have pid_t an int, some have it a long, probably
111 // some have it a short. We XDR them all as longs. I don't even
112 // want to think about 64-bit pid_ts...
114 if (xdrs->x_op == XDR_ENCODE) {
117 if (!(result = xdr_long(xdrs, &tv))) {
120 if (xdrs->x_op == XDR_DECODE) {
126 implement_list_of(_Tt_pid_t_rec)