source: trunk/third/sysinfo/os-freebsd.h @ 12269

Revision 12269, 1.6 KB checked in by ghudson, 26 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r12268, which included commits to RCS files with non-trunk default branches.
Line 
1/*
2 * Copyright (c) 1992-1998 Michael A. Cooper.
3 * This software may be freely used and distributed provided it is not
4 * sold for profit or used in part or in whole for commercial gain
5 * without prior written agreement, and the author is credited
6 * appropriately.
7 */
8
9/*
10 * $Revision: 1.1.1.1 $
11 */
12
13#ifndef __os_freebsd_h__
14#define __os_freebsd_h__
15
16/*
17 * FreeBSD from http://www.freebsd.org
18 */
19
20#include <fcntl.h>
21#include <sys/param.h>
22#include <sys/sockio.h>
23/*
24 * Need these in FreeBSD 3.0 and later to get netif stuff compiled.
25 */
26#include <sys/socket.h>
27#include <net/if.h>
28#include <net/if_types.h>
29#if     OSMVER >= 3
30#include <net/if_var.h>
31#endif  /* OSMVER >= 3 */
32
33/*
34 * There's no such thing as a single manufacturer for FREEBSD systems.
35 */
36#undef MAN_SHORT
37#undef MAN_LONG
38
39/*
40 * What features we have
41 */
42#define HAVE_GETHOSTID          /* gethostid() */
43#define HAVE_UNAME              /* uname() */
44#define HAVE_KVM                /* kvm(3) interface */
45#define HAVE_NLIST              /* nlist(3) interface */
46#define HAVE_DEVICE_SUPPORT     /* Sysinfo Device support */
47#define HAVE_ETHER_NTOHOST      /* Have ether_ntohost() */
48
49/*
50 * What features we need
51 */
52
53/*
54 * What we are
55 */
56#define _BIT_FIELDS_LTOH        /* Little Indian byte order */
57#define IS_POSIX_SOURCE         1
58#define RE_TYPE                 RE_REGCOMP
59#define GETNETIF_TYPE           GETNETIF_IFCONF
60#define SETMACINFO_FUNC         SetMacInfoSysCtl
61
62/*
63 * Constants
64 */
65#define NSWAP_SIZE              8192    /* Size of "nswap" blocks */
66#define MAX_PCI_DEVICES         255
67#define PCI_DEV_NAME_MAX        128     /* Max size of a PCI dev name */
68
69/*
70 * Pathnames
71 */
72#define _PATH_DEV               "/dev"
73#define _PATH_DEVPCI            "/dev/pci"
74
75#endif  /* __os_freebsd_h__ */
Note: See TracBrowser for help on using the repository browser.