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