[M3devel] darwin-generic waitpid?

Randy Coleburn rcoleburn at scires.com
Wed Dec 31 15:49:32 CET 2008


I agree with Tony about use of Modula-3 vs. C.  Modula-3 is a systems programming language.  We should be using it for systems programming, not C.  My vote is to always use Modula-3, not C.
Regards,
Randy

>>> Tony Hosking <hosking at cs.purdue.edu> 12/30/2008 6:47 PM >>>
On 30 Dec 2008, at 18:51, Jay wrote:

>
> It looks like waitpid's output is endian-dependent, and that  
> therefore darwin-generic is wrong on some architectures, asis linux- 
> common and openbsd-common.
>
>
> I expect to fix this shortly, by replacing all the Modula-3 result  
> bitfields with uint8_t and
> having a C wrapper do the translation.

I am concerned that so much C wrapper stuff is starting to creep in.   
I want to be able to see the endianness in the Modula-3 code, not have  
it squirrelled away in C code.  What if I don't have a C compiler?   
Jay, please be careful with your assumptions about platforms always  
having C.

> As well, for increased portability, the flags will be input uint8_t  
> fields in the record, rather than platform-dependent flags.
>
>
> - Jay


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20081231/83029d2f/attachment-0002.html>


More information about the M3devel mailing list