NetBSD/bin/test/operators.h

43 lines
853 B
C
Raw Normal View History

1993-04-29 10:28:39 +04:00
#define NOT 0
#define ISBLOCK 1
#define ISCHAR 2
#define ISDIR 3
#define ISEXIST 4
#define ISFILE 5
#define ISSETGID 6
1994-02-19 09:28:59 +03:00
#define ISLNK 7
#define ISSTICKY 8
#define STRLEN 9
#define ISFIFO 10
#define ISREAD 11
#define ISSIZE 12
#define ISTTY 13
#define ISSETUID 14
#define ISWRITE 15
#define ISEXEC 16
#define NULSTR 17
#define OR1 18
#define OR2 19
#define AND1 20
#define AND2 21
#define STREQ 22
#define STRNE 23
#define EQ 24
#define NE 25
#define GT 26
#define LT 27
#define LE 28
#define GE 29
1993-04-29 10:28:39 +04:00
1994-02-19 09:28:59 +03:00
#define FIRST_BINARY_OP 18
1993-04-29 10:28:39 +04:00
#define OP_INT 1 /* arguments to operator are integer */
#define OP_STRING 2 /* arguments to operator are string */
#define OP_FILE 3 /* argument is a file name */
extern char *const unary_op[];
extern char *const binary_op[];
extern char *const andor_op[];
1993-04-29 10:28:39 +04:00
extern const char op_priority[];
extern const char op_argflag[];