minix/share/mk
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
..
bsd.buildinstall.mk Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
bsd.clang-analyze.mk Upgrading build system to new NetBSD revision 2012-11-15 16:07:29 +01:00
bsd.clean.mk Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
bsd.dep.mk Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
bsd.doc.mk import elf-only -lcurses 2011-07-25 11:08:17 +02:00
bsd.endian.mk Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
bsd.files.mk Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
bsd.gcc.mk Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
bsd.hostlib.mk Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
bsd.hostprog.mk Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
bsd.inc.mk Upgrading build system to new NetBSD revision 2012-11-15 16:07:29 +01:00
bsd.info.mk Upgrading build system to new NetBSD revision 2012-11-15 16:07:29 +01:00
bsd.init.mk Upgrading build system to new NetBSD revision 2012-11-15 16:07:29 +01:00
bsd.ioconf.mk Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
bsd.kernobj.mk Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
bsd.kinc.mk share/mk: use original stat -qf 2011-07-19 18:38:06 +02:00
bsd.klinks.mk Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
bsd.kmodule.mk Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
bsd.lib.mk Experimental pthread compatibility library 2014-07-28 17:05:08 +02:00
bsd.links.mk Move mkfiles from /etc/mk to /usr/share/mk 2010-06-25 19:33:56 +00:00
bsd.lua.mk Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
bsd.man.mk Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
bsd.nls.mk Add mk and h files needed for cross compilation 2012-06-18 10:53:37 +00:00
bsd.obj.mk Upgrading build system to new NetBSD revision 2012-11-15 16:07:29 +01:00
bsd.own.mk Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
bsd.prog.mk Experimental pthread compatibility library 2014-07-28 17:05:08 +02:00
bsd.README Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
bsd.rpc.mk Upgrading build system to new NetBSD revision 2012-11-15 16:07:29 +01:00
bsd.shlib.mk Upgrading build system to new NetBSD revision 2012-11-15 16:07:29 +01:00
bsd.subdir.mk Upgrading build system to new NetBSD revision 2012-11-15 16:07:29 +01:00
bsd.sys.mk Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
bsd.test.mk Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
bsd.x11.mk Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
Makefile Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
minix.gcov.mk Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
minix.service.mk Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
sys.mk Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00