2 * Copyright (C) 1994, Index Data I/S
4 * Sebastian Hammer, Adam Dickmeiss
7 * Revision 1.1 1994-08-17 13:55:08 quinn
13 #include <sys/types.h>
17 int bf_close (BFile bf)
24 BFile bf_open (const char *name, int block_size, int cache, wflag)
26 BFile tmp = xmalloc(sizeof(BFile_struct));
28 if ((tmp->fd = open(name, wflag ? O_RDWR : O_RDONLY, 0666)) < 0)
30 log(LOG_FATAL, "open: %s");
36 int bf_read (BFile bf, int no, int offset, int no, void *buf);
40 int bf_write (BFile bf, int no, int offset, int no, const void *buf);