This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [PATCH]: procfs fix for 64-bits (ATTN: Nick Duffek


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]