44 lines
1.0 KiB
C
44 lines
1.0 KiB
C
/* Copyright (c) 1984 AT&T */
|
|
/* All Rights Reserved */
|
|
|
|
/* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T */
|
|
/* The copyright notice above does not evidence any */
|
|
/* actual or intended publication of such source code. */
|
|
|
|
#ident "$Revision: 1.5 $"
|
|
|
|
#define SYSDIR "/etc/uucp"
|
|
#define SYSFILES "/etc/uucp/Sysfiles"
|
|
#define SYSTEMS "/etc/uucp/Systems"
|
|
#define DEVICES "/etc/uucp/Devices"
|
|
#define DIALERS "/etc/uucp/Dialers"
|
|
#define DEVCONFIG "/etc/uucp/Devconfig"
|
|
|
|
#define SAME 0
|
|
#define TRUE 1
|
|
#define FALSE 0
|
|
#define FAIL -1
|
|
|
|
/* flags to check file access for REAL user id */
|
|
#define ACCESS_SYSTEMS 1
|
|
#define ACCESS_DEVICES 2
|
|
#define ACCESS_DIALERS 3
|
|
|
|
/* flags to check file access for EFFECTIVE user id */
|
|
#define EACCESS_SYSTEMS 4
|
|
#define EACCESS_DEVICES 5
|
|
#define EACCESS_DIALERS 6
|
|
|
|
#ifdef lint
|
|
#define ASSERT(e, s1, s2, i1) ;
|
|
|
|
#else /* NOT lint */
|
|
|
|
extern void cleanup(int);
|
|
extern void assert(char *, char *, int, char *, int);
|
|
#define ASSERT(e, s1, s2, i1) if (!(e)) {\
|
|
assert(s1, s2, i1, __FILE__, __LINE__);\
|
|
cleanup(FAIL);};
|
|
#endif
|
|
|