/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/*
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _UUCP_H
#define _UUCP_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include "parms.h"
#ifdef DIAL
#define EXTERN static
#define GLOBAL static
#else
#define EXTERN extern
#define GLOBAL
#endif
#ifdef BSD4_2
#define V7
#endif /* BSD4_2 */
#ifdef FASTTIMER
#endif
#ifdef V8
#define V7
#endif /* V8 */
#include <stdio.h>
#include <ctype.h>
#include <setjmp.h>
/*
*/
#ifdef V7
#include <sgtty.h>
#else /* !V7 */
#include <termio.h>
#include <signal.h>
#include <fcntl.h>
#endif
#include <utime.h>
#include <dirent.h>
#ifdef BSD4_2
#else /* !BSD4_2 */
#include <time.h>
#endif
#include <errno.h>
#ifdef ATTSV
#endif /* ATTSV */
#ifdef RT
#endif /* RT */
/* what mode should user files be allowed to have upon creation? */
/* NOTE: This does not allow setuid or execute bits on transfer. */
/* what mode should public files have upon creation? */
/* what mode should log files have upon creation? */
/* what mode should C. files have upon creation? */
/* what mode should D. files have upon creation? */
/* define the value of PUBMASK, used for creating "public" directories */
/* what mode should public directories have upon creation? */
/* define the value of DIRMASK, used for creating "system" subdirectories */
/* define the last characters for ACU (used for 801/212 dialers) */
/* caution - the fillowing names are also in Makefile
* any changes here have to also be made there
*
* it's a good idea to make directories .foo, since this ensures
* that they'll be ignored by processes that search subdirectories in SPOOL
*
*
*/
/* where to put the STST. files? */
/* where should logfiles be kept? */
/* use caution since things are linked into there */
/* how much of a system name can we print in a [CX]. file? */
/* MAXBASENAME - 1 (pre) - 1 ('.') - 1 (grade) - 4 (sequence number) */
#ifdef USRSPOOLLOCKS
#else
#endif /* USRSPOOLLOCKS */
#ifdef USRSPOOLLOCKS
#else
#endif /* USRSPOOLLOCKS */
/*
* CDEBUG is for communication line debugging
* DEBUG is for program debugging
* #define SMALL to compile without the DEBUG code
*/
#ifndef DIAL
#else
#define CDEBUG(l, f, s)
#define SMALL
#endif
#ifndef SMALL
#else
#define DEBUG(l, f, s)
#endif /* SMALL */
/*
* VERBOSE is used by cu and ct to inform the user of progress
* In other programs, the Value of Verbose is always 0.
*/
#define SAME 0
#define SUCCESS 0
#define CNULL (char *) 0
#define SLAVE 0
/* manifests for sysfiles.c's sysaccess() */
/* check file access for REAL user id */
/* check file access for EFFECTIVE user id */
/* manifest for chkpth flag */
#define CK_READ 0
/*
* commands
*/
/* system status stuff */
#define SS_OK 0
#define FALSE 0
struct call {
};
/* structure of an Systems file line */
#define F_NAME 0
/* structure of an Devices file line */
#define D_TYPE 0
/* past here, local changes are not recommended */
/*
* stuff for command execution
*/
/* This structure describes call routines */
struct caller {
char *CA_type;
int (*CA_caller)();
};
/* structure for a saved C file */
struct cs_struct {
char grade;
long jsize;
};
/* This structure describes dialing routines */
struct dialer {
char *DI_type;
int (*DI_dialer)();
};
struct nstat {
};
/* This structure describes the values from Limits file */
struct limits {
};
/* external declarations */
#if defined(__STDC__)
#else
#endif
/* things get kind of tricky beyond this point -- please stay out */
#ifdef ATTSV
#define ATTSVKILL
#define UNAME
#else
#endif
/* standard functions used */
extern char *calloc(); */
extern long atol();
#ifdef BSD4_2
extern char *sprintf();
#endif /* BSD4_2 */
/* uucp functions and subroutine */
extern char *next_token(); /* permission.c */
extern char *nextarg(); /* permission.c */
extern int getuline(); /* permission.c */
extern void commandlog(); /* logent.c */
extern unsigned long getfilesize(); /* statlog.c */
extern void putfilesize(); /* statlog.c */
extern int noSpool(); /* permission.c */
extern void myName(); /* permission.c */
extern void uucpname(); /* uucpname.c */
#ifdef ATTSV
unsigned sleep();
long ulimit();
#else /* !ATTSV */
#endif
#ifdef UNAME
#endif /* UNAME */
#ifndef NOUSTAT
#ifdef V7USTAT
struct ustat {
};
#else /* !NOUSTAT && !V7USTAT */
#include <ustat.h>
#endif /* V7USTAT */
#endif /* NOUSTAT */
#ifdef BSD4_2
char *gethostname();
#endif /* BSD4_2 */
/* messages */
#ifdef __cplusplus
}
#endif
#endif /* _UUCP_H */