#ifndef PUTUTMP_INTERNAL_H
#define PUTUTMP_INTERNAL_H

/* For PTY/TTY MAJOR no. */
#include <linux/major.h>

/* PUTUTMP is normally defined in the Makefile */
#ifndef PUTUTMP
#define PUTUTMP "/usr/local/lib/pututmp"
#endif

/* There doesn't seem to be any standard way of extacting a device
   major/minor no. from a dev_t. */
#ifndef MAJOR
#define MINORBITS       8
#define MINORMASK       ((1<<MINORBITS) - 1)
#define MAJOR(dev)      ((dev) >> MINORBITS)
#define MINOR(dev)      ((dev) & MINORMASK)
#endif

#endif

