/* * Copyright 2000, International Business Machines Corporation and others. * All Rights Reserved. * * This software has been released under the terms of the IBM Public * License. For details, see the LICENSE file in the top-level source * directory or online at http://www.openafs.org/dl/license10.html */ /* * xdr_afsuuid.c, XDR routine for built in afsUUID data type. */ #if defined(KERNEL) && !defined(UKERNEL) #include "afs/param.h" #ifdef AFS_LINUX20_ENV #include "../h/string.h" #define bzero(A,C) memset((A), 0, (C)) #else #include #include #endif #else #include #endif #include "xdr.h" #if defined(KERNEL) && !defined(UKERNEL) #ifdef AFS_DEC_ENV #include #endif #endif #ifndef lint static char sccsid[] = "@(#)xdr_array.c 1.1 86/02/03 Copyr 1984 Sun Micro"; #endif int xdr_afsUUID(xdrs, objp) XDR *xdrs; afsUUID *objp; { if (!xdr_afs_uint32(xdrs, &objp->time_low)) { return (FALSE); } if (!xdr_u_short(xdrs, &objp->time_mid)) { return (FALSE); } if (!xdr_u_short(xdrs, &objp->time_hi_and_version)) { return (FALSE); } if (!xdr_char(xdrs, &objp->clock_seq_hi_and_reserved)) { return (FALSE); } if (!xdr_char(xdrs, &objp->clock_seq_low)) { return (FALSE); } if (!xdr_vector(xdrs, (char *)objp->node, 6, sizeof(char), xdr_char)) { return (FALSE); } return (TRUE); }