home *** CD-ROM | disk | FTP | other *** search
- #ifndef ENVIRON_H
- #define ENVIRON_H
-
- /* environ.h - Microsoft C specific version
- * Division of Cancer Prevention & Control, NCI
- */
-
- /* Revision history:
- * 1.03 tam 12/31/90 add FINDFIRST macros
- * 1.02 tam 09/21/90 transfer io.h, stat.h, types.h to environ.h
- * 1.01 tam 08/31/90 add defines
- * 1.0 tam 08/24/90 split from local.h
- */
-
- /* specific compiler define - avoid use if possible */
- #define MSC
-
- /* Microsoft C specific headers */
- #include <io.h>
- #include <dos.h>
- #include <direct.h>
- #include <fcntl.h>
-
- /* System V compatible headers */
- #include <malloc.h>
- #include <errno.h>
- #include <process.h>
- #include <sys\types.h>
-
- /* other headers */
- #include <pckeys.h>
-
- /* macro to duplicate TurboC */
- #define MK_FP(seg, ofs) ((((unsigned long) seg) << 16) + (unsigned) ofs)
-
- /* findfirst & findnext macros for TurboC compatibility */
- struct ffblk
- {
- char ff_reserved[21];
- char ff_attrib;
- unsigned ff_ftime;
- unsigned ff_fdate;
- long ff_fsize;
- char ff_name[13];
- };
-
- #define findfirst(path, buffer, attr) (_dos_findfirst(path, attr, buffer))
- #define findnext(buffer) (_dos_findnext(buffer))
-
- #define FA_NORMAL 0x00 /* Normal files */
- #define FA_RDONLY 0x01 /* Read only attribute */
- #define FA_HIDDEN 0x02 /* Hidden file */
- #define FA_SYSTEM 0x04 /* System file */
- #define FA_LABEL 0x08 /* Volume label */
- #define FA_DIREC 0x10 /* Directory */
- #define FA_ARCH 0x20 /* Archive */
-
- /* defines */
- #define S_IREAD 0000400 /* read permission, owner */
- #define S_IWRITE 0000200 /* write permission, owner */
- #define FILE_NAME_LEN 13 /* length of a DOS file name */
-
- #endif /* environ.h */
-
-
-
-
-
-
-
-
-
-
-
-