17c478bd9Sstevel@tonic-gate /* 27c478bd9Sstevel@tonic-gate * CDDL HEADER START 37c478bd9Sstevel@tonic-gate * 47c478bd9Sstevel@tonic-gate * The contents of this file are subject to the terms of the 57c478bd9Sstevel@tonic-gate * Common Development and Distribution License, Version 1.0 only 67c478bd9Sstevel@tonic-gate * (the "License"). You may not use this file except in compliance 77c478bd9Sstevel@tonic-gate * with the License. 87c478bd9Sstevel@tonic-gate * 97c478bd9Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 107c478bd9Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing. 117c478bd9Sstevel@tonic-gate * See the License for the specific language governing permissions 127c478bd9Sstevel@tonic-gate * and limitations under the License. 137c478bd9Sstevel@tonic-gate * 147c478bd9Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each 157c478bd9Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 167c478bd9Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the 177c478bd9Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying 187c478bd9Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner] 197c478bd9Sstevel@tonic-gate * 207c478bd9Sstevel@tonic-gate * CDDL HEADER END 217c478bd9Sstevel@tonic-gate */ 227c478bd9Sstevel@tonic-gate /* Copyright (c) 1988 AT&T */ 23*b4203d75SMarcel Telka /* All Rights Reserved */ 247c478bd9Sstevel@tonic-gate 257c478bd9Sstevel@tonic-gate 267c478bd9Sstevel@tonic-gate #ifndef _RJE_H 277c478bd9Sstevel@tonic-gate #define _RJE_H 287c478bd9Sstevel@tonic-gate 297c478bd9Sstevel@tonic-gate #ifdef __cplusplus 307c478bd9Sstevel@tonic-gate extern "C" { 317c478bd9Sstevel@tonic-gate #endif 327c478bd9Sstevel@tonic-gate 337c478bd9Sstevel@tonic-gate #define MAXDEVS 7 /* Maximum number of devices (readers, etc.) */ 347c478bd9Sstevel@tonic-gate #define LINEFIL "/usr/rje/lines" 357c478bd9Sstevel@tonic-gate 367c478bd9Sstevel@tonic-gate #define RJECU "/dev/dn2" /* Dial-up RJE device */ 377c478bd9Sstevel@tonic-gate #define RJELOGIN "rje" /* rje login name */ 387c478bd9Sstevel@tonic-gate #define RJEUID 68 /* User-Id for "rje" */ 397c478bd9Sstevel@tonic-gate #define SHQUID 69 /* User-Id for "shqer" */ 407c478bd9Sstevel@tonic-gate #define RJEGID 8 /* Group-Id for "rje" and "shqer" */ 417c478bd9Sstevel@tonic-gate #define QUEDIR "/usr/rje/sque" /* shqer directory */ 427c478bd9Sstevel@tonic-gate #define QUELOG "log" /* shqer log file name */ 437c478bd9Sstevel@tonic-gate #define QUELEN 50 /* Length of a shqer log entry */ 447c478bd9Sstevel@tonic-gate #define QDELAY 180 /* Delay time for shqer */ 457c478bd9Sstevel@tonic-gate #define QNICE 0 467c478bd9Sstevel@tonic-gate #define BOOTDLY 60 /* Reboot delay time (seconds) */ 477c478bd9Sstevel@tonic-gate #define RESPMAX 70000 /* Max resp file size */ 487c478bd9Sstevel@tonic-gate 497c478bd9Sstevel@tonic-gate #define DEVFD 0 /* KMC device file descriptor */ 507c478bd9Sstevel@tonic-gate #define XMTRD 1 /* xmit read file descriptor */ 517c478bd9Sstevel@tonic-gate #define ERRFD 2 /* errors file descriptor */ 527c478bd9Sstevel@tonic-gate #define XMTWR 3 /* xmit write file descriptor */ 537c478bd9Sstevel@tonic-gate #define DSPRD 4 /* disp read file descriptor */ 547c478bd9Sstevel@tonic-gate #define DSPWR 5 /* disp write file descriptor */ 557c478bd9Sstevel@tonic-gate #define JBLOG 6 /* joblog file descriptor */ 567c478bd9Sstevel@tonic-gate 577c478bd9Sstevel@tonic-gate #define NAMESZ 8 587c478bd9Sstevel@tonic-gate 597c478bd9Sstevel@tonic-gate struct joblog { 607c478bd9Sstevel@tonic-gate char j_file[NAMESZ]; /* Name of file to be sent */ 617c478bd9Sstevel@tonic-gate unsigned j_uid; /* User ID of owner */ 627c478bd9Sstevel@tonic-gate int j_lvl; /* Message level */ 637c478bd9Sstevel@tonic-gate long j_cnt; /* Number of "cards" */ 647c478bd9Sstevel@tonic-gate }; 657c478bd9Sstevel@tonic-gate 667c478bd9Sstevel@tonic-gate /* joblog header info */ 677c478bd9Sstevel@tonic-gate 687c478bd9Sstevel@tonic-gate struct loghdr { 697c478bd9Sstevel@tonic-gate int h_pgrp; /* Process group Id */ 707c478bd9Sstevel@tonic-gate }; 717c478bd9Sstevel@tonic-gate #define LBUFMAX 100 727c478bd9Sstevel@tonic-gate #define MAXLNS 6 737c478bd9Sstevel@tonic-gate struct lines { 747c478bd9Sstevel@tonic-gate char *l_host; /* RJE host machine */ 757c478bd9Sstevel@tonic-gate char *l_sys; /* This system */ 767c478bd9Sstevel@tonic-gate char *l_dir; /* home directory */ 777c478bd9Sstevel@tonic-gate char *l_prefix; /* rje prefix */ 787c478bd9Sstevel@tonic-gate char *l_dev; /* device for transfer */ 797c478bd9Sstevel@tonic-gate char *l_peri; /* Peripherals field */ 807c478bd9Sstevel@tonic-gate char *l_parm; /* Parameters field */ 817c478bd9Sstevel@tonic-gate char l_buf[LBUFMAX]; /* buffer for fields */ 827c478bd9Sstevel@tonic-gate }; 837c478bd9Sstevel@tonic-gate 847c478bd9Sstevel@tonic-gate struct dsplog { 857c478bd9Sstevel@tonic-gate int d_type; /* Type of record */ 867c478bd9Sstevel@tonic-gate union { 877c478bd9Sstevel@tonic-gate struct { /* record from xmit */ 887c478bd9Sstevel@tonic-gate char d_file[NAMESZ]; /* file sent */ 897c478bd9Sstevel@tonic-gate long d_cnt; /* no. of cards sent */ 907c478bd9Sstevel@tonic-gate unsigned d_uid; /* who sent the file */ 917c478bd9Sstevel@tonic-gate int d_lvl; /* message level */ 927c478bd9Sstevel@tonic-gate int d_rdr; /* reader sent from (0-6) */ 937c478bd9Sstevel@tonic-gate } x; 947c478bd9Sstevel@tonic-gate struct { /* record from recv */ 957c478bd9Sstevel@tonic-gate char d_file[NAMESZ]; /* file received */ 967c478bd9Sstevel@tonic-gate long d_cnt; /* no. of records */ 977c478bd9Sstevel@tonic-gate int d_trunc; /* file truncation flag */ 987c478bd9Sstevel@tonic-gate } r; 997c478bd9Sstevel@tonic-gate } d_un; 1007c478bd9Sstevel@tonic-gate }; 1017c478bd9Sstevel@tonic-gate 1027c478bd9Sstevel@tonic-gate struct sque { 1037c478bd9Sstevel@tonic-gate char sq_exfil[140]; /* Executable file */ 1047c478bd9Sstevel@tonic-gate char sq_infil[48]; /* Input file */ 1057c478bd9Sstevel@tonic-gate char sq_jobnm[9]; /* Remote job name */ 1067c478bd9Sstevel@tonic-gate char sq_pgrmr[25]; /* Programmer name */ 1077c478bd9Sstevel@tonic-gate char sq_jobno[9]; /* Remote job number */ 1087c478bd9Sstevel@tonic-gate char sq_login[9]; /* Login name from usr= */ 1097c478bd9Sstevel@tonic-gate char sq_homed[48]; /* Login directory */ 1107c478bd9Sstevel@tonic-gate long sq_min; /* Minimum file system space */ 1117c478bd9Sstevel@tonic-gate }; 1127c478bd9Sstevel@tonic-gate 1137c478bd9Sstevel@tonic-gate #ifdef __cplusplus 1147c478bd9Sstevel@tonic-gate } 1157c478bd9Sstevel@tonic-gate #endif 1167c478bd9Sstevel@tonic-gate 1177c478bd9Sstevel@tonic-gate #endif /* _RJE_H */ 118