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