minix/lib/libblockdriver
Lionel Sambuc d3d33afe9f Experimental pthread compatibility library
This patch adds pthread compatibility by using libmthread.

To use this with a program using pthreads, you have to replace
  #include <pthread>
with
  #define _MTHREADIFY_PTHREADS
  #include <minix/mthreads>

This also changes the initialization function to be a constructor, which
is implicitly called before the call to main. This allows for
conformance with pthreads, while not paying a high price by checking on
each mthread_* call whether the library has been initialized or not.

As mthread_init is now a constructor, it also has been set as static, and
relevent calls removed from programs using it.

Change-Id: I2aa375db557958d2bee9a70d285aabb990c88f00
2014-07-28 17:05:08 +02:00
..
const.h libblockdriver: expose BLOCKDRIVER_MAX_DEVICES 2014-02-19 11:22:15 +01:00
driver.c Changing the message union to anonymous. 2014-03-03 20:46:47 +01:00
driver.h libblockdriver: various updates 2014-02-19 11:22:15 +01:00
driver_mt.c Experimental pthread compatibility library 2014-07-28 17:05:08 +02:00
driver_st.c libblockdriver: various updates 2014-02-19 11:22:15 +01:00
drvlib.c Replaced common u64.h functions with operators. 2014-03-02 12:28:32 +01:00
Makefile Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
mq.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
mq.h retire _PROTOTYPE 2012-03-25 16:17:10 +02:00
trace.c Replaced common u64.h functions with operators. 2014-03-02 12:28:32 +01:00
trace.h Block drivers: make IOCTL request unsigned long 2014-02-19 11:22:15 +01:00