[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Win32/MinGW port
From: |
Nils Durner |
Subject: |
Re: Win32/MinGW port |
Date: |
Sat, 07 Oct 2006 12:29:58 +0200 |
User-agent: |
Thunderbird 1.5.0.7 (Windows/20060909) |
> How bad are the missing bits?
It's not too bad. pthreads-win32 is fairly complete and working.
The mentioned functions are missing because Windows lacks the concept of
signals altogether.
> Should configure reject it because
> there's no pthread_sigmask, or is there something the code can do to
> cope?
As there are no signals on Win32, I *think* it is okay to just "ifndef
MINGW" the code.
Regarding the undefined "pipe()":
the easiest thing to do would be to define pipe() in the following way:
#include <fcntl.h>
#define pipe(f) _pipe(f, 1000, _O_BINARY)
_pipe() takes two additional parameters: size in bytes and file mode.
Note that these pipes are blocking.
Nils