home *** CD-ROM | disk | FTP | other *** search
- /* Copyright (c) 1990 UNIX System Laboratories, Inc. */
- /* Copyright (c) 1988 AT&T */
- /* All Rights Reserved */
-
- /* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF */
- /* UNIX System Laboratories, Inc. */
- /* The copyright notice above does not evidence any */
- /* actual or intended publication of such source code. */
-
- #ident "@(#)/usr/include/stand.h.sl 1.2 5.0 08/27/90 37903 AT&T-USO 1.3"
-
- #ifndef _STAND_H
- #define _STAND_H
-
- /*
- * Header file for standalone package
- */
-
- #if defined(__STDC__)
-
- #if #machine(vax)
- #define FsTYPE 2
- #else
- #define FsTYPE 1
- #endif
-
- #else
- #ifdef vax
- #define FsTYPE 2
- #else
- #define FsTYPE 1
- #endif
-
- #endif /* __STDC__ */
-
- #ifndef _ERRNO_H
- #include "errno.h"
- #endif
-
- #ifndef _SYS_PARAM_H
- #include "sys/param.h"
- #endif
- #ifndef _SYS_TYPES_H
- #include "sys/types.h"
- #endif
- #ifndef _SYS_INODE_H
- #include "sys/inode.h"
- #endif
-
- /*
- * I/O block flags
- */
-
- #define F_READ 01
- #define F_WRITE 02
- #define F_ALLOC 04
- #define F_FILE 010
-
- /*
- * Request codes -- must be
- * the same as an F_XXX above
- */
-
- #define READ 1
- #define WRITE 2
-
- /*
- * Buffer sizes
- */
-
- #if FsTYPE == 2
- #define BLKSIZ 1024
- #else
- #define BLKSIZ 512
- #endif
- #define NAMSIZ 60
-
- /*
- * devsw table --
- * initialized in conf.c
- */
-
- struct devsw {
- int (*dv_strategy)();
- int (*dv_open)();
- int (*dv_close)();
- };
- extern struct devsw _devsw[];
-
- /*
- * dtab table -- entries
- * are created by MKNOD
- */
-
- #define NDEV 16
-
- struct dtab {
- char *dt_name;
- struct devsw *dt_devp;
- int dt_unit;
- daddr_t dt_boff;
- };
- extern struct dtab _dtab[];
-
- /*
- * mtab table -- entries
- * are created by mount
- */
-
- #define NMOUNT 8
-
- struct mtab {
- char *mt_name;
- struct dtab *mt_dp;
- };
- extern struct mtab _mtab[];
-
- /*
- * I/O block: includes an inode,
- * cells for the use of seek, etc,
- * and a buffer.
- */
-
- #define NFILES 6
-
- struct iob {
- char i_flgs;
- struct inode i_ino;
- time_t i_atime;
- time_t i_mtime;
- time_t i_ctime;
- struct dtab *i_dp;
- off_t i_offset;
- daddr_t i_bn; /* disk block number (physical) */
- char *i_ma;
- int i_cc; /* character count */
- char i_buf[BLKSIZ];
- };
- extern struct iob _iobuf[];
-
- #if defined(__STDC__)
-
- #if #machine(pdp11)
- /*
- * Set to which 32Kw segment the code is physically running in.
- * Must be set by the user's main (or thereabouts).
- */
-
- int segflag;
- #endif
-
- #else
- #ifdef pdp11
-
- int segflag;
- #endif
-
- #endif /* __STDC__ */
-
- /*
- * Set to the error type of the routine that
- * last returned an error -- may be read by perror.
- */
-
- #define RAW 040
- #define LCASE 04
- #define XTABS 02
- #define ECHO 010
- #define CRMOD 020
- #define B300 7
- struct sgttyb {
- char sg_ispeed; /* input speed */
- char sg_ospeed; /* output speed */
- char sg_erase; /* erase character */
- char sg_kill; /* kill character */
- int sg_flags; /* mode flags */
- };
-
- #endif /* _STAND_H */
-