xref: /onnv-gate/usr/src/head/rje.h (revision 0:68f95e015346)
1*0Sstevel@tonic-gate /*
2*0Sstevel@tonic-gate  * CDDL HEADER START
3*0Sstevel@tonic-gate  *
4*0Sstevel@tonic-gate  * The contents of this file are subject to the terms of the
5*0Sstevel@tonic-gate  * Common Development and Distribution License, Version 1.0 only
6*0Sstevel@tonic-gate  * (the "License").  You may not use this file except in compliance
7*0Sstevel@tonic-gate  * with the License.
8*0Sstevel@tonic-gate  *
9*0Sstevel@tonic-gate  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10*0Sstevel@tonic-gate  * or http://www.opensolaris.org/os/licensing.
11*0Sstevel@tonic-gate  * See the License for the specific language governing permissions
12*0Sstevel@tonic-gate  * and limitations under the License.
13*0Sstevel@tonic-gate  *
14*0Sstevel@tonic-gate  * When distributing Covered Code, include this CDDL HEADER in each
15*0Sstevel@tonic-gate  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16*0Sstevel@tonic-gate  * If applicable, add the following below this CDDL HEADER, with the
17*0Sstevel@tonic-gate  * fields enclosed by brackets "[]" replaced with your own identifying
18*0Sstevel@tonic-gate  * information: Portions Copyright [yyyy] [name of copyright owner]
19*0Sstevel@tonic-gate  *
20*0Sstevel@tonic-gate  * CDDL HEADER END
21*0Sstevel@tonic-gate  */
22*0Sstevel@tonic-gate /*	Copyright (c) 1988 AT&T	*/
23*0Sstevel@tonic-gate /*	  All Rights Reserved  	*/
24*0Sstevel@tonic-gate 
25*0Sstevel@tonic-gate 
26*0Sstevel@tonic-gate #ifndef _RJE_H
27*0Sstevel@tonic-gate #define	_RJE_H
28*0Sstevel@tonic-gate 
29*0Sstevel@tonic-gate #pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.4.1.1 */
30*0Sstevel@tonic-gate 
31*0Sstevel@tonic-gate #ifdef	__cplusplus
32*0Sstevel@tonic-gate extern "C" {
33*0Sstevel@tonic-gate #endif
34*0Sstevel@tonic-gate 
35*0Sstevel@tonic-gate #define	MAXDEVS 7		/* Maximum number of devices (readers, etc.) */
36*0Sstevel@tonic-gate #define	LINEFIL "/usr/rje/lines"
37*0Sstevel@tonic-gate 
38*0Sstevel@tonic-gate #define	RJECU	"/dev/dn2"	/* Dial-up RJE device */
39*0Sstevel@tonic-gate #define	RJELOGIN "rje"		/* rje login name */
40*0Sstevel@tonic-gate #define	RJEUID	68		/* User-Id for "rje" */
41*0Sstevel@tonic-gate #define	SHQUID	69		/* User-Id for "shqer" */
42*0Sstevel@tonic-gate #define	RJEGID	8		/* Group-Id for "rje" and "shqer" */
43*0Sstevel@tonic-gate #define	QUEDIR	"/usr/rje/sque"	/* shqer directory */
44*0Sstevel@tonic-gate #define	QUELOG	"log"		/* shqer log file name */
45*0Sstevel@tonic-gate #define	QUELEN	50		/* Length of a shqer log entry */
46*0Sstevel@tonic-gate #define	QDELAY	180		/* Delay time for shqer */
47*0Sstevel@tonic-gate #define	QNICE	0
48*0Sstevel@tonic-gate #define	BOOTDLY	60		/* Reboot delay time (seconds) */
49*0Sstevel@tonic-gate #define	RESPMAX 70000		/* Max resp file size */
50*0Sstevel@tonic-gate 
51*0Sstevel@tonic-gate #define	DEVFD	0	/* KMC device file descriptor */
52*0Sstevel@tonic-gate #define	XMTRD	1	/* xmit read file descriptor */
53*0Sstevel@tonic-gate #define	ERRFD	2	/* errors file descriptor */
54*0Sstevel@tonic-gate #define	XMTWR	3	/* xmit write file descriptor */
55*0Sstevel@tonic-gate #define	DSPRD	4	/* disp read file descriptor */
56*0Sstevel@tonic-gate #define	DSPWR	5	/* disp write file descriptor */
57*0Sstevel@tonic-gate #define	JBLOG	6	/* joblog file descriptor */
58*0Sstevel@tonic-gate 
59*0Sstevel@tonic-gate #define	NAMESZ	8
60*0Sstevel@tonic-gate 
61*0Sstevel@tonic-gate struct joblog {
62*0Sstevel@tonic-gate 	char j_file[NAMESZ];	/* Name of file to be sent */
63*0Sstevel@tonic-gate 	unsigned j_uid;		/* User ID of owner */
64*0Sstevel@tonic-gate 	int j_lvl;		/* Message level */
65*0Sstevel@tonic-gate 	long j_cnt;		/* Number of "cards" */
66*0Sstevel@tonic-gate };
67*0Sstevel@tonic-gate 
68*0Sstevel@tonic-gate 	/* joblog header info */
69*0Sstevel@tonic-gate 
70*0Sstevel@tonic-gate struct loghdr {
71*0Sstevel@tonic-gate 	int h_pgrp;		/* Process group Id */
72*0Sstevel@tonic-gate };
73*0Sstevel@tonic-gate #define	LBUFMAX 100
74*0Sstevel@tonic-gate #define	MAXLNS	6
75*0Sstevel@tonic-gate struct lines {
76*0Sstevel@tonic-gate 	char *l_host;		/* RJE host machine */
77*0Sstevel@tonic-gate 	char *l_sys;		/* This system */
78*0Sstevel@tonic-gate 	char *l_dir;		/* home directory */
79*0Sstevel@tonic-gate 	char *l_prefix;		/* rje prefix */
80*0Sstevel@tonic-gate 	char *l_dev;		/* device for transfer */
81*0Sstevel@tonic-gate 	char *l_peri;		/* Peripherals field */
82*0Sstevel@tonic-gate 	char *l_parm;		/* Parameters field */
83*0Sstevel@tonic-gate 	char l_buf[LBUFMAX];	/* buffer for fields */
84*0Sstevel@tonic-gate };
85*0Sstevel@tonic-gate 
86*0Sstevel@tonic-gate struct dsplog {
87*0Sstevel@tonic-gate 	int d_type;		/* Type of record */
88*0Sstevel@tonic-gate 	union {
89*0Sstevel@tonic-gate 		struct {	/* record from xmit */
90*0Sstevel@tonic-gate 			char d_file[NAMESZ];	/* file sent */
91*0Sstevel@tonic-gate 			long d_cnt;		/* no. of cards sent */
92*0Sstevel@tonic-gate 			unsigned d_uid;		/* who sent the file */
93*0Sstevel@tonic-gate 			int d_lvl;		/* message level */
94*0Sstevel@tonic-gate 			int d_rdr;		/* reader sent from (0-6) */
95*0Sstevel@tonic-gate 		} x;
96*0Sstevel@tonic-gate 		struct {	/* record from recv */
97*0Sstevel@tonic-gate 			char d_file[NAMESZ];	/* file received */
98*0Sstevel@tonic-gate 			long d_cnt;		/* no. of records */
99*0Sstevel@tonic-gate 			int d_trunc;		/* file truncation flag */
100*0Sstevel@tonic-gate 		} r;
101*0Sstevel@tonic-gate 	} d_un;
102*0Sstevel@tonic-gate };
103*0Sstevel@tonic-gate 
104*0Sstevel@tonic-gate struct sque {
105*0Sstevel@tonic-gate 	char sq_exfil[140];	/* Executable file */
106*0Sstevel@tonic-gate 	char sq_infil[48];	/* Input file */
107*0Sstevel@tonic-gate 	char sq_jobnm[9];	/* Remote job name */
108*0Sstevel@tonic-gate 	char sq_pgrmr[25];	/* Programmer name */
109*0Sstevel@tonic-gate 	char sq_jobno[9];	/* Remote job number */
110*0Sstevel@tonic-gate 	char sq_login[9];	/* Login name from usr= */
111*0Sstevel@tonic-gate 	char sq_homed[48];	/* Login directory */
112*0Sstevel@tonic-gate 	long sq_min;		/* Minimum file system space */
113*0Sstevel@tonic-gate };
114*0Sstevel@tonic-gate 
115*0Sstevel@tonic-gate #ifdef	__cplusplus
116*0Sstevel@tonic-gate }
117*0Sstevel@tonic-gate #endif
118*0Sstevel@tonic-gate 
119*0Sstevel@tonic-gate #endif	/* _RJE_H */
120