Coda Distributed File System
lib-src
rpc2
rpc2-src
cbuf.h
Go to the documentation of this file.
1
/* BLURB lgpl
2
3
Coda File System
4
Release 5
5
6
Copyright (c) 1987-1999 Carnegie Mellon University
7
Additional copyrights listed below
8
9
This code is distributed "AS IS" without warranty of any kind under
10
the terms of the GNU Library General Public Licence Version 2, as
11
shown in the file LICENSE. The technical and financial contributors to
12
Coda are listed in the file CREDITS.
13
14
Additional copyrights
15
16
#*/
17
18
/*
19
IBM COPYRIGHT NOTICE
20
21
Copyright (C) 1986
22
International Business Machines Corporation
23
All Rights Reserved
24
25
This file contains some code identical to or derived from the 1986
26
version of the Andrew File System ("AFS"), which is owned by the IBM
27
Corporation. This code is provided "AS IS" and IBM does not warrant
28
that it is free of infringement of any intellectual rights of any
29
third party. IBM disclaims liability of any kind for any damages
30
whatsoever resulting directly or indirectly from use of this software
31
or of any derivative work. Carnegie Mellon University has obtained
32
permission to modify, distribute and sublicense this code, which is
33
based on Version 2 of AFS and does not contain the features and
34
enhancements that are part of Version 3 of AFS. Version 3 of AFS is
35
commercially available and supported by Transarc Corporation,
36
Pittsburgh, PA.
37
38
*/
39
40
struct
CBUF_Header
{
41
long
ElemSize
;
42
long
NoOfElems
;
43
long
LastAllocatedSlot
;
44
long
TotalElemsAdded
;
45
char
PrintName
[20];
46
char
*
Buffer
;
/* pointer to malloc()ed array of bytes */
47
};
48
49
extern
struct
CBUF_Header
*
CBUF_Init
();
50
char
*
CBUF_NextSlot
(
struct
CBUF_Header
*bufId);
51
extern
void
CBUF_WalkBuff
();
52
extern
void
CBUF_Free
();
CBUF_WalkBuff
void CBUF_WalkBuff()
CBUF_Free
void CBUF_Free()
CBUF_Init
struct CBUF_Header * CBUF_Init()
CBUF_NextSlot
char * CBUF_NextSlot(struct CBUF_Header *bufId)
CBUF_Header
Definition:
cbuf.h:40
CBUF_Header::Buffer
char * Buffer
Definition:
cbuf.h:46
CBUF_Header::PrintName
char PrintName[20]
Definition:
cbuf.h:45
CBUF_Header::LastAllocatedSlot
long LastAllocatedSlot
Definition:
cbuf.h:43
CBUF_Header::TotalElemsAdded
long TotalElemsAdded
Definition:
cbuf.h:44
CBUF_Header::NoOfElems
long NoOfElems
Definition:
cbuf.h:42
CBUF_Header::ElemSize
long ElemSize
Definition:
cbuf.h:41
Generated by
1.9.4