2 * Copyright 2000, International Business Machines Corporation and others.
5 * This software has been released under the terms of the IBM Public
6 * License. For details, see the LICENSE file in the top-level source
7 * directory or online at http://www.openafs.org/dl/license10.html
11 * xdr_afsuuid.c, XDR routine for built in afsUUID data type.
14 #include <afsconfig.h>
15 #include "afs/param.h"
20 #if defined(KERNEL) && !defined(UKERNEL)
21 #ifdef AFS_LINUX20_ENV
24 #define bzero(A, C) memset((A), 0, (C))
27 #include <sys/param.h>
28 #include <sys/systm.h>
34 #if defined(KERNEL) && !defined(UKERNEL)
36 #include <afs/longc_procs.h>
41 xdr_afsUUID(XDR * xdrs, afsUUID * objp)
43 if (!xdr_afs_uint32(xdrs, &objp->time_low)) {
46 if (!xdr_u_short(xdrs, &objp->time_mid)) {
49 if (!xdr_u_short(xdrs, &objp->time_hi_and_version)) {
52 if (!xdr_char(xdrs, &objp->clock_seq_hi_and_reserved)) {
55 if (!xdr_char(xdrs, &objp->clock_seq_low)) {
58 if (!xdr_vector(xdrs, (char *)objp->node, 6, sizeof(char), xdr_char)) {