Coda Distributed File System
lka.h
Go to the documentation of this file.
1/* BLURB gpl
2
3 Coda File System
4 Release 6
5
6 Copyright (c) 1987-2003 Carnegie Mellon University
7 Additional copyrights listed below
8
9This code is distributed "AS IS" without warranty of any kind under
10the terms of the GNU General Public Licence Version 2, as shown in the
11file LICENSE. The technical and financial contributors to Coda are
12listed in the file CREDITS.
13
14
15 Copyright (c) 2002-2003 Intel Corporation
16
17#*/
18
19#ifndef _LKA_H_INCLUDED_
20#define _LKA_H_INCLUDED_ 1
21
22#include <coda_hash.h>
23
24/* "helper" routines in shaprocs.cc */
25void ViceSHAtoHex(unsigned char sha[SHA_DIGEST_LENGTH], char *buf, int buflen);
26int CopyAndComputeViceSHA(int infd, int outfd,
27 unsigned char sha[SHA_DIGEST_LENGTH]);
28#define ComputeViceSHA(fd, sha) CopyAndComputeViceSHA(fd, -1, sha)
29
30int IsZeroSHA(unsigned char sha[SHA_DIGEST_LENGTH]);
31
32/* "core" routines in lka.cc called by venus */
33int LookAsideAndFillContainer(unsigned char sha[SHA_DIGEST_LENGTH], int cfd,
34 int length, const char *venusRoot, char *emsg,
35 int emsglen);
36int LKParseAndExecute(char *in, char *out, int len);
37
38#endif /*_LKA_H_INCLUDED_ */
#define SHA_DIGEST_LENGTH
Definition: coda_hash.h:71
int IsZeroSHA(unsigned char sha[SHA_DIGEST_LENGTH])
Definition: shaprocs.c:93
void ViceSHAtoHex(unsigned char sha[SHA_DIGEST_LENGTH], char *buf, int buflen)
Definition: shaprocs.c:39
int LKParseAndExecute(char *in, char *out, int len)
Definition: lka.c:367
int LookAsideAndFillContainer(unsigned char sha[SHA_DIGEST_LENGTH], int cfd, int length, const char *venusRoot, char *emsg, int emsglen)
Definition: lka.c:52
int CopyAndComputeViceSHA(int infd, int outfd, unsigned char sha[SHA_DIGEST_LENGTH])
Definition: shaprocs.c:56
const char * venusRoot
Definition: venus.cc:90