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