/*
 * USC-ACSC UNIX Monitor
 *
 * $Header:dosfile.h 12.0$
 * $ACIS:dosfile.h 12.0$
 * $Source: /ibm/acis/usr/sys/os2code/RCS/dosfile.h,v $
 * Copyright University of Southern California, 1988
 */

/* Definition for DOS file handling */

/* File Attribute */
#define NORMAL_FILE	0x0000
#define READ_ONLY_FILE	0x0001
#define HIDDEN_FILE	0x0002
#define SYSTEM_FILE	0x0004
#define ARCH_FILE	0x0020

/* Open Flag */
#define FAIL_IF_EXIST	0x00
#define OPEN_IF_EXIST	0x01
#define TRUC_IF_EXIST	0x02
#define FAIL_IFN_EXIST	0x00
#define CREAT_IFN_EXIST	0x10

/* Open Mode - Access Mode */
#define RONLY_ACCESS	0x0000
#define WONLY_ACCESS	0x0001
#define RW_ACCESS	0x0002
/* Open Mode - Sharing Mode */
#define NO_RW		0x0010
#define NO_WRITE	0x0020
#define NO_READ 	0x0030
#define NO_NONE 	0x0040
/* Open Mode - Inheritance Flag */
#define PRIVATE 	0x0080
/* Open Mode - Fail Errors */
#define TO_USER 	0x2000
/* Open Mode - Write Through */
#define WRITE_THROUGH	0x4000
/* Open Mode - DASD */
#define DASD_OPEN	0x8000
