Mapper
dbwrite.c
Go to the documentation of this file.
1
/****************************************************************************\
2
* dbwrite *
3
******************************************************************************
4
* Dbwrite is called to signal the database manager program, dbmngr, to *
5
* write data to a database file. This function returns the number bytes *
6
* written. Programs that use this function should verify that the number of *
7
* bytes written by this function (nwrote) equals the desired number of *
8
* bytes to write (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 written *
14
* rec_size = size of a record in bytes *
15
* num_recs = the number of records to write *
16
* buf = pointer to a data area that store the data to be written *
17
* *
18
* Wayne Martin - CNRFC 11/23/94 *
19
\****************************************************************************/
20
21
22
unsigned
long
int
dbwrite
(
unsigned
long
int
file_num,
signed
long
int
offset,
23
unsigned
long
int
rec_size,
unsigned
long
int
num_recs,
void
*
buf
) {
24
25
}
dbwrite
unsigned long int dbwrite(unsigned long int file_num, signed long int offset, unsigned long int rec_size, unsigned long int num_recs, void *buf)
Definition:
dbwrite.c:22
buf
struct stat buf
Definition:
is_file_closed.c:8
Generated by
1.9.1