view toynet.h @ 1064:0d7d6fed8141 draft

I got tired of trying to guess how much terminal time I could get in on my phone, so here's a basic acpi. I could probably add -c fairly easily (print type, cur_state, and max_state) -t is more difficult, since temperatures are reported in at least 1000 * degrees F and 10 * degrees C.
author Isaac Dunham <ibid.ag@gmail.com>
date Mon, 09 Sep 2013 11:19:59 -0500
parents aca8323e2690
children
line wrap: on
line source

// Included after toys.h, for network stuff.  Some build environments
// don't include network support, so we shouldn't include it unless we're
// going to build it.

#include <arpa/inet.h>
#include <netdb.h>
#include <net/if.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <poll.h>
#include <sys/socket.h>
#include <sys/un.h>