Subject: Re: new sysctl(KERN_PROC, ...) interface (was: sysinfo(2))
To: Eduardo Horvath <>
From: Darren Reed <>
List: tech-kern
Date: 04/18/2000 07:52:47
In some email I received from Eduardo Horvath, sie wrote:
> > To deal with pointers, I've changed all pointers in kinfo_proc2 to
> > u_int64_t's, and got in fill_kproc2():
> > 	#define PTRTOINT64(foo) ((u_int64_t)(long)(foo))

I missed the original, but we should use intptr_t, not long here.
It is architecture size dependant, of course.  IMHO, we use long
too often where we should be using intptr_t.