af01bda509
The "bdev" library provides basic primitives for file systems to talk to block device drivers, hiding the details of the underlying protocol and interaction model. This version of libbdev is rather basic. It is planned to support the following features in the long run: - asynchronous requests and replies; - recovery support for underlying block drivers; - retrying of failed I/O requests. The commit also changes our block-based file systems (mfs, ext2, isofs) to make use of libbdev.
33 lines
727 B
C
33 lines
727 B
C
|
|
#define _SYSTEM 1 /* get OK and negative error codes */
|
|
#define _MINIX 1 /* tell headers to include MINIX stuff */
|
|
|
|
#define VERBOSE 0 /* display diagnostics */
|
|
|
|
#include <minix/ansi.h>
|
|
#include <sys/types.h>
|
|
#include <limits.h>
|
|
#include <errno.h>
|
|
#include <signal.h>
|
|
#include <unistd.h>
|
|
|
|
#include <minix/callnr.h>
|
|
#include <minix/config.h>
|
|
#include <minix/type.h>
|
|
#include <minix/const.h>
|
|
#include <minix/com.h>
|
|
#include <minix/syslib.h>
|
|
#include <minix/sysutil.h>
|
|
#include <minix/keymap.h>
|
|
#include <minix/bitmap.h>
|
|
|
|
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
#include <unistd.h>
|
|
#include <signal.h>
|
|
#include <sys/param.h>
|
|
|
|
#include "proto.h"
|
|
#include "super.h"
|
|
#include "glo.h"
|