NetBSD-Bugs archive

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

Re: lib/53123: incomplete type kinfo_proc.



The following reply was made to PR lib/53123; it has been noted by GNATS.

From: Joerg Sonnenberger <joerg%bec.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: lib-bug-people%netbsd.org@localhost, gnats-admin%netbsd.org@localhost,
	netbsd-bugs%netbsd.org@localhost, utkarsh009%yandex.com@localhost
Subject: Re: lib/53123: incomplete type kinfo_proc.
Date: Sat, 24 Mar 2018 13:29:46 +0100

 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