This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: [PATCH]: procfs fix for 64-bits (ATTN: Nick Duffek
- To: msnyder at cygnus dot com
- Subject: Re: [PATCH]: procfs fix for 64-bits (ATTN: Nick Duffek
- From: "Nick Duffek <Nick Duffek"<nsd at cygnus dot com>
- Date: Wed, 3 May 2000 21:07:10 GMT
- CC: gdb-patches at sourceware dot cygnus dot com
- References: <200005031955.MAA14413@seadog.cygnus.com>
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