On Tue, Mar 22, 2011 at 09:55:29AM +1100, Ken McDonell wrote:
...
> The code works as expected on ia32 Ubuntu and Mac OS X 10.6 ... I'd be
> keen to get confirmation from others with access to a more varied set of
> platforms ... e.g. RedHat and SuSE variants, Solaris, Windows,
> x86_64, ...
$ gcc -Wall -O2 -lpthread pthreadmutex.c
pthreadmutex.c: In function ‘func’:
pthreadmutex.c:20: warning: implicit declaration of function ‘strcmp’
pthreadmutex.c:33: warning: implicit declaration of function ‘wait’
pthreadmutex.c: At top level:
pthreadmutex.c:49: warning: return type defaults to ‘int’
$ ./a.out
Congratulations, you're in a bozo-free zone
gcc version 4.4.5 (Debian 4.4.5-10)
Linux maat 2.6.32-3-amd64 #1 SMP Wed Feb 24 18:07:42 UTC 2010 x86_64 GNU/Linux
Jeff.
--
The obvious mathematical breakthrough would be development of an easy way to
factor large prime numbers.
- Bill Gates, The Road Ahead, pg. 265
|