[PATCH]: procfs fix for 64-bits (ATTN: Nick Duffek
Nick Duffek <Nick Duffek
nsd@cygnus.com
Wed May 3 14:07:00 GMT 2000
On 3-May-2000, msnyder@cygnus.com wrote:
>Solaris declares this set of /proc parameters to be long.
>UnixWare declares them to be int. For Sparc32 it doesn't
>make a difference
Likewise for current versions of UnixWare, on which sizeof(int) ==
sizeof(long).
However, the change would make procfs.c noncomformant with the UnixWare
proc interface, which -- according to the proc(4) man page --requires int
control messages. This may become a problem if UnixWare becomes 64-bit.
>> If this is necessary, we should try to devise an autoconf test.
>
>Yep, which is exactly why I would avoid it if I can.
What about using "CMDTYPE" instead of "long", and provisionally #defining
CMDTYPE in procfs.c as long?
Nick
More information about the Gdb-patches
mailing list