On Mon, Oct 19, 2009 at 11:46:22PM -0400, Timo Sirainen wrote:
On Oct 19, 2009, at 5:55 PM, Timo Sirainen wrote:
Can someone find an OS where the attached program doesn't work? It should print "success". So far tested for success: Linux 2.6, Solaris 10, FreeBSD 7.2, OpenBSD 4.2.
I'm still interested in HP-UX, AIX and Cygwin results. Maybe in Cygwin
it could be broken, but then again I don't really care about Cygwin. I
anyway already added the code that uses this to v2.0 tree. If for some
reason it doesn't work somewhere, I could always make it use
mmap(MAP_SHARED)..
WFM on HP_UX B.11.23 and Cygwin 1.5.25
fog:$ cc --version cc: HP C/aC++ B3910B A.06.15 [May 16 2007] fog:$ uname -a HP-UX fog B.11.23 U ia64 1361301988 unlimited-user license fog:$ cc test.c fog:$ ./a.out success fog:$
[msapiro@msapiro ~/Desktop]$ gcc --version gcc (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125) Copyright (C) 2004 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[msapiro@msapiro ~/Desktop]$ uname -a CYGWIN_NT-5.1 msapiro 1.5.25(0.156/4/2) 2008-06-12 19:34 i686 Cygwin [msapiro@msapiro ~/Desktop]$ gcc test.c [msapiro@msapiro ~/Desktop]$ ./a.exe success [msapiro@msapiro ~/Desktop]$
-- Mark Sapiro mark at msapiro net The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan