1/* $NetBSD: xdr_rec.c,v 1.18 2000/07/06 03:10:35 christos Exp $ */ 2
| 1/* $NetBSD: xdr_rec.c,v 1.18 2000/07/06 03:10:35 christos Exp $ */ 2
|
3/* 4 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for 5 * unrestricted use provided that this legend is included on all tape 6 * media and as a part of the software program in whole or part. Users 7 * may copy or modify Sun RPC without charge, but are not authorized 8 * to license or distribute it to anyone else except as part of a product or 9 * program developed by the user.
| 3/*- 4 * Copyright (c) 2010, Oracle America, Inc.
|
10 *
| 5 *
|
11 * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE 12 * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR 13 * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
| 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met:
|
14 *
| 9 *
|
15 * Sun RPC is provided with no support and without any obligation on the 16 * part of Sun Microsystems, Inc. to assist in its use, correction, 17 * modification or enhancement.
| 10 * * Redistributions of source code must retain the above copyright 11 * notice, this list of conditions and the following disclaimer. 12 * * Redistributions in binary form must reproduce the above 13 * copyright notice, this list of conditions and the following 14 * disclaimer in the documentation and/or other materials 15 * provided with the distribution. 16 * * Neither the name of the "Oracle America, Inc." nor the names of its 17 * contributors may be used to endorse or promote products derived 18 * from this software without specific prior written permission.
|
18 *
| 19 *
|
19 * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE 20 * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC 21 * OR ANY PART THEREOF. 22 * 23 * In no event will Sun Microsystems, Inc. be liable for any lost revenue 24 * or profits or other special, indirect and consequential damages, even if 25 * Sun has been advised of the possibility of such damages. 26 * 27 * Sun Microsystems, Inc. 28 * 2550 Garcia Avenue 29 * Mountain View, California 94043
| 20 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 23 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 24 * COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 25 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 27 * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 28 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 29 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 30 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
30 */ 31 32#if defined(LIBC_SCCS) && !defined(lint) 33static char *sccsid2 = "@(#)xdr_rec.c 1.21 87/08/11 Copyr 1984 Sun Micro"; 34static char *sccsid = "@(#)xdr_rec.c 2.2 88/08/01 4.0 RPCSRC"; 35#endif 36#include <sys/cdefs.h>
| 32 */ 33 34#if defined(LIBC_SCCS) && !defined(lint) 35static char *sccsid2 = "@(#)xdr_rec.c 1.21 87/08/11 Copyr 1984 Sun Micro"; 36static char *sccsid = "@(#)xdr_rec.c 2.2 88/08/01 4.0 RPCSRC"; 37#endif 38#include <sys/cdefs.h>
|
37__FBSDID("$FreeBSD: stable/10/lib/libc/xdr/xdr_rec.c 261455 2014-02-04 03:36:42Z eadler $");
| 39__FBSDID("$FreeBSD: stable/10/lib/libc/xdr/xdr_rec.c 272850 2014-10-09 23:05:32Z hrs $");
|
38 39/* 40 * xdr_rec.c, Implements TCP/IP based XDR streams with a "record marking" 41 * layer above tcp (for rpc's use). 42 *
| 40 41/* 42 * xdr_rec.c, Implements TCP/IP based XDR streams with a "record marking" 43 * layer above tcp (for rpc's use). 44 *
|
43 * Copyright (C) 1984, Sun Microsystems, Inc. 44 *
| |
45 * These routines interface XDRSTREAMS to a tcp/ip connection. 46 * There is a record marking layer between the xdr stream 47 * and the tcp transport level. A record is composed on one or more 48 * record fragments. A record fragment is a thirty-two bit header followed 49 * by n bytes of data, where n is contained in the header. The header 50 * is represented as a htonl(u_long). Thegh order bit encodes 51 * whether or not the fragment is the last fragment of the record 52 * (1 => fragment is last, 0 => more fragments to follow.
--- 743 unchanged lines hidden --- | 45 * These routines interface XDRSTREAMS to a tcp/ip connection. 46 * There is a record marking layer between the xdr stream 47 * and the tcp transport level. A record is composed on one or more 48 * record fragments. A record fragment is a thirty-two bit header followed 49 * by n bytes of data, where n is contained in the header. The header 50 * is represented as a htonl(u_long). Thegh order bit encodes 51 * whether or not the fragment is the last fragment of the record 52 * (1 => fragment is last, 0 => more fragments to follow.
--- 743 unchanged lines hidden --- |