~ubuntu-branches/ubuntu/karmic/openafs/karmic-updates

« back to all changes in this revision

Viewing changes to src/budb/database.c

  • Committer: Bazaar Package Importer
  • Author(s): Russ Allbery
  • Date: 2008-09-22 19:07:02 UTC
  • mfrom: (12.1.14 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080922190702-59m13d7kn6gkw32d
Tags: 1.4.7.dfsg1-6
* Apply upstream patch to free /proc entries in the correct order.
  Thanks, Marc Dionne.  (Closes: #493914)
* Apply upstream deltas to support 2.6.27 kernels and to stop using
  COMMON_KERN_CFLAGS for all 2.6 kernels uniformly, which fixes
  problems on amd64 with newer kernels.  Thanks, Björn Torkelsson.
  (LP: #267504)
* Translation updates:
  - Swedish, thanks Martin Bagge.  (Closes: #493120)

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
#include <afs/param.h>
12
12
 
13
13
RCSID
14
 
    ("$Header: /cvs/openafs/src/budb/database.c,v 1.7 2003/07/15 23:14:48 shadow Exp $");
 
14
    ("$Header: /cvs/openafs/src/budb/database.c,v 1.7.2.2 2007/10/30 15:23:50 shadow Exp $");
15
15
 
16
16
#ifdef AFS_NT40_ENV
17
17
#include <winsock2.h>
27
27
#include "database.h"
28
28
#include "error_macros.h"
29
29
#include "afs/audit.h"
30
 
 
31
 
#ifdef HAVE_STRING_H
32
30
#include <string.h>
33
 
#else
34
 
#ifdef HAVE_STRINGS_H
35
 
#include <strings.h>
36
 
#endif
37
 
#endif
38
 
 
39
31
 
40
32
int pollCount;
41
33
struct memoryDB db;             /* really allocate it here */
75
67
 */
76
68
 
77
69
afs_int32
78
 
dbwrite(ut, pos, buff, len)
79
 
     struct ubik_trans *ut;
80
 
     afs_int32 pos;
81
 
     char *buff;
82
 
     afs_int32 len;
 
70
dbwrite(struct ubik_trans *ut, afs_int32 pos, void *buff, afs_int32 len)
83
71
{
84
72
    afs_int32 code = 0;
85
73
 
111
99
/* same thing for read */
112
100
 
113
101
afs_int32
114
 
dbread(ut, pos, buff, len)
115
 
     struct ubik_trans *ut;
116
 
     afs_int32 pos;
117
 
     char *buff;
118
 
     afs_int32 len;
 
102
dbread(struct ubik_trans *ut, afs_int32 pos, void *buff, afs_int32 len)
119
103
{
120
104
    afs_int32 code = 0;
121
105
 
146
130
 
147
131
/* Same as dbread excepts it does checking */
148
132
afs_int32
149
 
cdbread(ut, type, pos, buff, len)
150
 
     struct ubik_trans *ut;
151
 
     int type;
152
 
     afs_int32 pos;
153
 
     char *buff;
154
 
     afs_int32 len;
 
133
cdbread(struct ubik_trans *ut, int type, afs_int32 pos, void *buff, afs_int32 len)
155
134
{
156
135
    afs_int32 code = 0;
157
136