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: Utkarsh Anand <utkarsh009%yandex.com@localhost>
To: "gnats-bugs%NetBSD.org@localhost" <gnats-bugs%netbsd.org@localhost>,
	"lib-bug-people%netbsd.org@localhost" <lib-bug-people%netbsd.org@localhost>,
	"gnats-admin%netbsd.org@localhost" <gnats-admin%netbsd.org@localhost>,
	"netbsd-bugs%netbsd.org@localhost" <netbsd-bugs%netbsd.org@localhost>
Cc: 
Subject: Re: lib/53123: incomplete type kinfo_proc.
Date: Sat, 24 Mar 2018 14:10:19 +0530

 >  The structure kinfo_proc is exposed only to kernel code and kmem users.
 >  E.g.:
 >
 >  % cat c.c
 >  #define _KMEMUSER
 Thanks this solves the problem.
 >  #include <stdio.h>
 >  #include <sys/sysctl.h>
 >
 >  int main() {
 >      printf("%d\n",sizeof(struct kinfo_proc));
 The type was unsigned long in NetBSD 8.0_BETA.
 >      return 0;
 >  }
 >
 >  % cc c.c
 >  % ./a.out
 >  912
 >
 >  --
 >  --
 >                                  Michael van Elst
 >  Internet: mlelstv%serpens.de@localhost
 >                                  "A potential Snark may lurk in every tree."
 



Home | Main Index | Thread Index | Old Index