NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: lib/53123: incomplete type kinfo_proc.



On Sat, Mar 24, 2018 at 07:45:01AM +0000, Michael van Elst wrote:
> The following reply was made to PR lib/53123; it has been noted by GNATS.
> 
> From: mlelstv%serpens.de@localhost (Michael van Elst)
> To: gnats-bugs%netbsd.org@localhost
> Cc: 
> Subject: Re: lib/53123: incomplete type kinfo_proc.
> Date: Sat, 24 Mar 2018 07:43:22 -0000 (UTC)
> 
>  utkarsh009%yandex.com@localhost writes:
>  
>  >2. Compile it with clang (or gcc) to get the following error:
>  >temp.c:5:8: error: invalid application of 'sizeof' to an incomplete type 'struct kinfo_proc'
>  >printf(sizeof(struct kinfo_proc));
>  
>  
>  The structure kinfo_proc is exposed only to kernel code and kmem users.

To further extend that: please use kinfo_proc2 and kern.proc2. That one
provides a stable ABI.

Joerg


Home | Main Index | Thread Index | Old Index