Mapper
dbread.c
Go to the documentation of this file.
1
/****************************************************************************\
2
* dbread *
3
******************************************************************************
4
* Dbread is called to signal the database manager program, dbmngr, to read *
5
* a database file and return the data. This function returns the number *
6
* of bytes read. Programs that use this function should verify that the *
7
* number of bytes read by this function (rmsg.mxfer_len) equals the number *
8
* of bytes requested (rec_size * num_recs). *
9
* *
10
* The arguments passed are: *
11
* file_num = database file number (defined in database.h) *
12
* offset = displacement in bytes from the start of the file of the *
13
* first byte to be read *
14
* rec_size = size of a record in bytes *
15
* num_recs = the number of records to read *
16
* buf = pointer to a data area to receive the data *
17
* *
18
* Wayne Martin - CNRFC 11/23/94 *
19
\****************************************************************************/
20
21
22
unsigned
long
int
dbread
(
unsigned
long
int
file_num,
signed
long
int
offset,
23
unsigned
long
int
rec_size,
unsigned
long
int
num_recs,
void
*
buf
) {
24
25
}
dbread
unsigned long int dbread(unsigned long int file_num, signed long int offset, unsigned long int rec_size, unsigned long int num_recs, void *buf)
Definition:
dbread.c:22
buf
struct stat buf
Definition:
is_file_closed.c:8
Generated by
1.9.1