[M3devel] darwin-generic waitpid?

Tony Hosking hosking at cs.purdue.edu
Wed Dec 31 00:47:46 CET 2008


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




More information about the M3devel mailing list