xdryp.c (219096) | xdryp.c (219126) |
---|---|
1/* 2 * Copyright (c) 1992/3 Theo de Raadt <deraadt@fsa.ca> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 14 unchanged lines hidden (view full) --- 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 */ 29 30#include <sys/cdefs.h> | 1/* 2 * Copyright (c) 1992/3 Theo de Raadt <deraadt@fsa.ca> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 14 unchanged lines hidden (view full) --- 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 */ 29 30#include <sys/cdefs.h> |
31__FBSDID("$FreeBSD: head/lib/libc/yp/xdryp.c 219096 2011-02-28 10:03:48Z brucec $"); | 31__FBSDID("$FreeBSD: head/lib/libc/yp/xdryp.c 219126 2011-03-01 11:47:51Z brucec $"); |
32 33#include <rpc/rpc.h> 34#include <rpcsvc/yp.h> 35#include <stdlib.h> 36#include <string.h> 37 38extern int (*ypresp_allfn)(); 39extern void *ypresp_data; 40 41/* 42 * I'm leaving the xdr_datum() function in purely for backwards 43 * compatibility. yplib.c doesn't actually use it, but it's listed 44 * in yp_prot.h as being available, so it's probably a good idea to | 32 33#include <rpc/rpc.h> 34#include <rpcsvc/yp.h> 35#include <stdlib.h> 36#include <string.h> 37 38extern int (*ypresp_allfn)(); 39extern void *ypresp_data; 40 41/* 42 * I'm leaving the xdr_datum() function in purely for backwards 43 * compatibility. yplib.c doesn't actually use it, but it's listed 44 * in yp_prot.h as being available, so it's probably a good idea to |
45 * leave it in in case somebody goes looking for it. | 45 * leave it in case somebody goes looking for it. |
46 */ 47typedef struct { 48 char *dptr; 49 int dsize; 50} datum; 51 52bool_t 53xdr_datum(XDR *xdrs, datum *objp) --- 61 unchanged lines hidden --- | 46 */ 47typedef struct { 48 char *dptr; 49 int dsize; 50} datum; 51 52bool_t 53xdr_datum(XDR *xdrs, datum *objp) --- 61 unchanged lines hidden --- |