2 * Copyright (C) 1994, Index Data I/S
4 * Sebastian Hammer, Adam Dickmeiss
7 * Revision 1.2 1994-08-17 14:09:32 quinn
8 * Compiles cleanly (still only dummy.
10 * Revision 1.1 1994/08/17 13:55:08 quinn
11 * New blocksystem. dummy only
17 #include <sys/types.h>
21 int bf_close (BFile bf)
28 BFile bf_open (const char *name, int block_size, int wflag)
30 BFile tmp = xmalloc(sizeof(BFile_struct));
32 if ((tmp->fd = open(name, wflag ? O_RDWR : O_RDONLY, 0666)) < 0)
34 log(LOG_FATAL, "open: %s");
40 int bf_read (BFile bf, int no, int offset, int num, void *buf)
44 int bf_write (BFile bf, int no, int offset, int num, const void *buf)