On Sun, Apr 08, 2007 at 09:52:20AM +0100, Malcolm Wallace wrote: > > Tue Apr 3 17:35:10 PDT 2007 Ian Lynagh <[EMAIL PROTECTED]> > > UNDO: Fix C/Haskell type mismatches > > > > M ./Distribution/Simple/Utils.hs -6 +6 > > I'm afraid this patch uses a type 'CPid' in a foreign import declaration > which is non-standard (at least, it is not defined as part of the > standard FFI). That is why I reverted it. Is there some other type > that might be suitable?
Not as far as I know. http://www.opengroup.org/onlinepubs/009695399/functions/xsh_chap02_12.html just says "Signed integer type used for process and process group IDs.". > Or do we need to revise the FFI standard to include CPid? I guess it doesn't exist on Windows, so I'm not sure if it belongs in the FFI standard or not. It's currently in System.Posix.Types, which sounds like the right place for it. Perhaps I just needed to add an import too? Otherwise, if it doesn't exist, I can't see an alternative to nhc implementing it (well, might as well implement System.Posix.Internals.c_getpid at the same time, to remove a bit of ifdef). Thanks Ian _______________________________________________ Cvs-libraries mailing list [email protected] http://www.haskell.org/mailman/listinfo/cvs-libraries
