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 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