minix/lib
David van Moolenbroek b4d909d415 Split block/character protocols and libdriver
This patch separates the character and block driver communication
protocols. The old character protocol remains the same, but a new
block protocol is introduced. The libdriver library is replaced by
two new libraries: libchardriver and libblockdriver. Their exposed
API, and drivers that use them, have been updated accordingly.
Together, libbdev and libblockdriver now completely abstract away
the message format used by the block protocol. As the memory driver
is both a character and a block device driver, it now implements its
own message loop.

The most important semantic change made to the block protocol is that
it is no longer possible to return both partial results and an error
for a single transfer. This simplifies the interaction between the
caller and the driver, as the I/O vector no longer needs to be copied
back. Also, drivers are now no longer supposed to decide based on the
layout of the I/O vector when a transfer should be cut short. Put
simply, transfers are now supposed to either succeed completely, or
result in an error.

After this patch, the state of the various pieces is as follows:
- block protocol: stable
- libbdev API: stable for synchronous communication
- libblockdriver API: needs slight revision (the drvlib/partition API
  in particular; the threading API will also change shortly)
- character protocol: needs cleanup
- libchardriver API: needs cleanup accordingly
- driver restarts: largely unsupported until endpoint changes are
  reintroduced

As a side effect, this patch eliminates several bugs, hacks, and gcc
-Wall and -W warnings all over the place. It probably introduces a
few new ones, too.

Update warning: this patch changes the protocol between MFS and disk
drivers, so in order to use old/new images, the MFS from the ramdisk
must be used to mount all file systems.
2011-11-23 14:06:37 +01:00
..
ack libfp: use ${CC} instead of cc, reported by Antoine Leca. 2010-07-22 22:24:08 +00:00
csu csu: add code to call constructors to be used by clang 2011-11-20 20:20:51 +01:00
libarchive Fix a ton of compiler warnings 2011-11-14 10:07:49 +00:00
libaudiodriver Split block/character protocols and libdriver 2011-11-23 14:06:37 +01:00
libbdev Split block/character protocols and libdriver 2011-11-23 14:06:37 +01:00
libblockdriver Split block/character protocols and libdriver 2011-11-23 14:06:37 +01:00
libbz2 import NetBSD bzip2 and libbz2 2011-11-18 11:11:04 +01:00
libc Switch to NetBSD passwd format 2011-11-14 14:47:42 +00:00
libchardriver Split block/character protocols and libdriver 2011-11-23 14:06:37 +01:00
libcrypt don't keep minix-port.patch files in repo 2011-08-10 13:38:12 +00:00
libcurses minor bugfixes caught by clang warnings 2011-11-18 12:18:23 +01:00
libddekit Build NetBSD libc library in world in ELF mode. 2011-06-24 11:46:30 +02:00
libdevman Fix a ton of compiler warnings 2011-11-14 10:07:49 +00:00
libedit fix many clang warnings in lib/ 2011-06-23 19:25:36 +02:00
libelf Reduce compiler/libraries/headers cases to only two 2011-07-04 04:09:52 +02:00
libend Rename mkfiles from minix.*.mk to bsd.*.mk 2010-06-25 18:29:09 +00:00
libexec Reduce compiler/libraries/headers cases to only two 2011-07-04 04:09:52 +02:00
libfetch Fix a ton of compiler warnings 2011-11-14 10:07:49 +00:00
libhgfs Build NetBSD libc library in world in ELF mode. 2011-06-24 11:46:30 +02:00
libl Rename mkfiles from minix.*.mk to bsd.*.mk 2010-06-25 18:29:09 +00:00
liblwip Cleanup servers to make GCC/Clang a little happier 2011-09-08 13:57:03 +00:00
libm Rename mkfiles from minix.*.mk to bsd.*.mk 2010-06-25 18:29:09 +00:00
libminc Fix a ton of compiler warnings 2011-11-14 10:07:49 +00:00
libminixfs Fix a ton of compiler warnings 2011-11-14 10:07:49 +00:00
libminixutil rename -lutil to -lminixutil 2011-08-01 14:32:14 +02:00
libmthread Clean up mthread 2011-07-27 09:30:26 +00:00
libnetdriver Rename mkfiles from minix.*.mk to bsd.*.mk 2010-06-25 18:29:09 +00:00
libpuffs Fix compiler warnings 2011-11-14 14:21:39 +00:00
librefuse Import librefuse and libpuffs 2011-11-14 11:53:05 +00:00
libsys Fix a ton of compiler warnings 2011-11-14 10:07:49 +00:00
libterminfo don't keep minix-port.patch files in repo 2011-08-10 13:38:12 +00:00
libtimers Replace NULL macro defs with null.h include 2010-07-22 10:03:31 +00:00
libusb Fix a ton of compiler warnings 2011-11-14 10:07:49 +00:00
libutil Define flags in sys/stat.h 2011-11-15 17:14:57 +01:00
libvassert Fix a ton of compiler warnings 2011-11-14 10:07:49 +00:00
libvtreefs Tell VFS how many requests an FS can handle concurrently 2011-08-26 12:47:43 +00:00
libz Reduce compiler/libraries/headers cases to only two 2011-07-04 04:09:52 +02:00
nbsd_libasyn Reduce compiler/libraries/headers cases to only two 2011-07-04 04:09:52 +02:00
nbsd_libc compat.S: add getpwnam() alias. 2011-11-20 18:36:42 +01:00
nbsd_libcompat_minix Switch to NetBSD passwd format 2011-11-14 14:47:42 +00:00
nbsd_libm make: set MACHINE_ARCH variable 2011-11-18 16:22:25 +01:00
nbsd_libminlib Fix a ton of compiler warnings 2011-11-14 10:07:49 +00:00
ack_build.sh changes for detecting and building for clang/binutils elf 2011-06-07 16:49:52 +02:00
elf_build.sh Reduce compiler/libraries/headers cases to only two 2011-07-04 04:09:52 +02:00
Makefile Split block/character protocols and libdriver 2011-11-23 14:06:37 +01:00
Makefile.inc minix.ack.mk: use CPPFLAGS for ACK asm files 2011-08-05 14:16:48 +02:00
README Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00

ack_build.sh - for ACK library building
gnu_build.sh - for GNU library building

ack_build.sh obj     - create objdirs for gnu libraries
ack_build.sh depend  - find dependencies of ack libraries
ack_build.sh all     - compile ack libraries
ack_build.sh install - compile and install ack libraries
ack_build.sh clean   - clean for ack libraries

gnu_build.sh obj     - create objdirs for gnu libraries
gnu_build.sh depend  - find dependencies of gnu libraries
gnu_build.sh all     - compile gnu libraries
gnu_build.sh install - compile and install gnu libraries
gnu_build.sh clean   - clean for gnu libraries