BSD-Sysctl

 view release on metacpan or  search on metacpan

Sysctl.xs  view on Meta::CPAN

#include <netinet/icmp_var.h> /* struct icmpstat */
#include <netinet/igmp_var.h> /* struct igmpstat */
#include <netinet/tcp_var.h>  /* struct tcpstat */

/* prerequisites for struct udpstat */
#include <netinet/in.h>
#include <netinet/ip_var.h>
#include <netinet/udp.h>
#include <netinet/udp_var.h>

#include <netinet6/raw_ip6.h>
#include "bsd-sysctl.h"

int
_init_iterator(HV *self, int *mib, int *miblenp, int valid) {
    SV **headp;
    int qoid[CTL_MAXNAME];
    u_int qoidlen;
    SV *clen;
    SV **clenp;
    int cmplen;

eg/sizeof.c  view on Meta::CPAN

#include <netinet/igmp_var.h> /* struct igmpstat */
#include <netinet/tcp_var.h>  /* struct tcpstat */
#include <netinet/in.h>       /* struct udpstat prerequisite */
#include <netinet/ip_var.h>   /* struct udpstat prerequisite */
#include <netinet/udp.h>      /* struct udpstat prerequisite */
#include <netinet/udp_var.h>  /* struct udpstat */
#ifdef NEVER
#include <sys/socket.h>       /* struct xinpcb */
#include <netinet/in_pcb.h>   /* struct xinpcb */
#endif
#include <netinet6/raw_ip6.h> /* struct rip6stat */
#include <machine/bootinfo.h> /* struct bootinfo */

int
main(int argc, char **argv) {
    printf( "sizeof(int) = %d\n", sizeof(int) );
    printf( "sizeof(struct mbstat) = %d\n", sizeof(struct mbstat) );
    printf( "sizeof(struct ntptimeval) = %d\n", sizeof(struct ntptimeval) );
    printf( "sizeof(struct timespec) = %d\n", sizeof(struct timespec) );
    printf( "sizeof(struct devstat) = %d\n", sizeof(struct devstat) );
    printf( "sizeof(struct xvfsconf) = %d\n", sizeof(struct xvfsconf) );

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 1.326 second using v1.00-cache-2.02-grep-82fe00e-cpan-b63e86051f13 )