FreeBSD port

This commit is contained in:
Walter Bright 2009-04-06 09:58:48 +00:00
parent 0be7d89863
commit cd79ee5861
26 changed files with 2354 additions and 34 deletions

View file

@ -1,10 +1,17 @@
/* Written by Walter Bright, Christopher E. Miller, and many others.
* www.digitalmars.com
* http://www.digitalmars.com
* Placed into public domain.
*/
module std.c.linux.pthread;
version (FreeBSD)
{
public import std.c.freebsd.pthread;
}
else
{
import std.c.linux.linux;
extern (C):
@ -386,3 +393,5 @@ version(linux)
void _pthread_cleanup_push_defer(_pthread_cleanup_buffer*, void function(void*), void*);
void _pthread_cleanup_pop(_pthread_cleanup_buffer*, int);
void _pthread_cleanup_pop_restore(_pthread_cleanup_buffer*, int);
}