7888 installboot: print version info of the file
[unleashed.git] / include / rje.h
blobf3dbb0f72cb858db2b35894f4bec46a39d0b9571
1 /*
2 * CDDL HEADER START
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.
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.
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]
20 * CDDL HEADER END
22 /* Copyright (c) 1988 AT&T */
23 /* All Rights Reserved */
26 #ifndef _RJE_H
27 #define _RJE_H
29 #pragma ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.4.1.1 */
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
35 #define MAXDEVS 7 /* Maximum number of devices (readers, etc.) */
36 #define LINEFIL "/usr/rje/lines"
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 */
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 */
59 #define NAMESZ 8
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" */
68 /* joblog header info */
70 struct loghdr {
71 int h_pgrp; /* Process group Id */
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 */
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;
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 */
115 #ifdef __cplusplus
117 #endif
119 #endif /* _RJE_H */