|
|
DataMuseum.dkPresents historical artifacts from the history of: Regnecentalen RC-900 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Regnecentalen RC-900 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T U s
Length: 4291 (0x10c3)
Types: TextFile
Notes: UNIX file
Names: »slnadmdmn.h«
└─⟦a6ab2eb36⟧ Bits:30004042/kconfig3.imd SW95705I 386/ix Multi-user Release 1.2
└─⟦a6ab2eb36⟧ UNIX Filesystem
└─⟦this⟧ »kc/new/usr/include/sys/slnadmdmn.h«
/*
* Copyright (c) 1984 AT&T
* All Rights Reserved
*
* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T
* The copyright notice above does not evidence any actual
* or intended publication of such source code.
*
*
*
* Release 1.0 STARLAN NETWORK Administration header file
*/
#ident "@(#)slnadmdmn.h 1.2 -- 86/11/05"
#ifndef HZ
#include <sys/param.h>
#endif
#define FAILED -1 /* UNIX system call failed */
#define LOGFILEPERM 0644 /* admdaemon logfile permissions */
#define DUMPFILEPERM 0644 /* admdaemon dumpfile permissions */
#define A_LOWAITTIME 5*HZ /* default low timeout value */
#define A_HIWAITTIME 15*HZ /* default high timeout value */
/*
* The following are the admdaemon exit codes.
*/
#define NORMALEXIT 0x00 /* normal exit */
#define BADCMDARG 0x01 /* illegal command argument */
#define CAUGHTSIG 0x02 /* caught unexpected signal */
#define CLOSEFAILED 0x03 /* close of some file failed */
#define FCNTLFAILED 0x04 /* set of close-on-exec failed*/
#define IOCTLFAILED 0x05 /* ioctl failed */
#define OPENFAILED 0x06 /* open of some file failed */
#define READFAILED 0x07 /* read on some file failed */
#define WRITEFAILED 0x08 /* write on some file failed */
#define PUMPFAILED 0x09 /* pump of NAU failed */
#define LINKFAILED 0x0a /* driver link to mux failed */
#define UNLINKFAILED 0x0b /* driver unlink failed */
#define POPENFAILED 0x10 /* popen of NPF parser failed */
#define CALLOCFAILED 0x20 /* calloc of structures failed*/
#define INITFAILED 0x30 /* init ioctl failed */
#define TERMFAILED 0x40 /* term ioctl failed */
\f
/*
* Admdaemon-->SRM commands.
*/
#define S_ADMINIT 0x1000 /* initialization sequence */
#define S_ADMTERM 0x2000 /* termination sequence */
/*
* SRM-->Admdaemon comands.
*/
#define S_DUMPDATA 0x4000 /* dump kernel data */
#define S_BOARDOOS 0x8000 /* driver board out of service */
typedef struct {
unsigned short opcode;
unsigned short module_id;
unsigned long values;
} A_dumpjob;
#define ADUMPJOBSIZE sizeof(A_dumpjob)
typedef struct {
unsigned short opcode;
unsigned short error;
} A_boosjob;
#define ABOOSJOBSIZE sizeof(A_boosjob)
typedef union {
unsigned short opcode; /* Simple admin command */
A_dumpjob dumpjob; /* Kernel debug dump */
A_boosjob boosjob; /* Driver board OOS */
} A_netjob; /* SRM -> Admin command */
#define ANETJOBSIZE sizeof(A_netjob)
\f
/*
* The following data structures are used to store the NPF information
*
*
* name: Module name
* major_dev: Major device number
* driver_id: Driver id
* dev_dir: Strings index to /dev directory
* pump_cmnd: Strings index to pump command
* admin: Address of driver qadmin function
* state: State of the driver
*/
typedef struct {
char name[8];
short major_dev;
short driver_id;
union {
struct {
short dev_dir;
short pump_cmnd;
} path;
int (*admin)();
} to;
unsigned long state;
} NPF_MODULES;
#define NPF_MSIZE sizeof(NPF_MODULES)
/*
* name: Multiplexer name
* dev_dir: Strings index to mux /dev directory
* minor_dev: Minor device number
* stream: File descriptor for this STREAM
* nbr_drivers: Number of drivers to LINK
* driver_list: Strings index to drivers names list
* minor_list: Values index to drivers minor device number list
*/
typedef struct {
char name[8];
short dev_dir;
short minor_dev;
int stream;
short nbr_drivers;
short drivers_list;
short minor_list;
} NPF_STREAMS;
#define NPF_SSIZE sizeof(NPF_STREAMS)
/*
* size: Number of drivers[] elements
* data: NPF-data drivers[] array contents
*/
typedef struct {
long size;
char data[4096];
} S_adminit;
#define SADMINITSIZE (sizeof(long))
#define OF_MODULES 0 /* sizes[] subscripts, which */
#define OF_STREAMS 1 /* indicate which element */
#define OF_STRINGS 2 /* is used to save the */
#define OF_VALUES 3 /* counts for each array */
/*
* NPFPARSER exit codes.
*/
#define M_NORMALEXIT 0x00
#define M_BADCMDARG 0x01 /* invlaid command line */
#define M_BADDATA 0x04 /* bad NPF data */
#define M_NOOPEN 0x08 /* open/fopen failed */