Add Solaris support to DetermineClientCmd
authorAlan Coopersmith <alan.coopersmith@oracle.com>
Sat, 24 Dec 2011 18:00:56 +0000 (10:00 -0800)
committerKeith Packard <keithp@keithp.com>
Tue, 27 Dec 2011 21:12:27 +0000 (13:12 -0800)
commitcfc4c3d7fa8bd4da4c08b2ab8e6f85435f75353a
treed0bb5f392bd50feaa721fafc0581456f2e121e0f
parenta28ff2cf92c2b35e02eacca21af929afabbf6b83
Add Solaris support to DetermineClientCmd

Uses /proc/pid/psinfo to read command & partial arguments.

Moves cmdsize & argsize variables into non-Solaris #else clause
to avoid unused variable warnings.

Fixes format mismatch errors when building with DEBUG defined on
a 64-bit platform (where Mask is defined as CARD32).

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Rami Ylimäki <rami.ylimaki@vincit.fi>
Signed-off-by: Keith Packard <keithp@keithp.com>
os/client.c