home *** CD-ROM | disk | FTP | other *** search
- #define INCL_NOPM
- #define INCL_DOS
- #define INCL_VIO
- #include <os2.h>
-
- #include "pwd.h"
-
-
- FILE *flockopen(char *name, char *mode);
-
-
- #define delay(x) DosSleep(x)
-
-
- FILE *popen(char *, char*);
- int pclose(FILE *);
-
-
- USHORT _drive;
- ULONG _drivemap;
-
- #define getdisk() (DosQCurDisk(&_drive, &_drivemap), _drive - 1)
-
-
- #define getdfree(d, s) DosQFSInfo(d, FSIL_ALLOC, (PBYTE) s, sizeof(*s))
- #define dfree _FSALLOCATE
- #define df_avail cUnitAvail
- #define df_bsec cbSector
- #define df_sclus cSectorUnit
-
- HDIR _hdir;
- USHORT _count;
-
-
- #define findfirst(n, s, z) (_hdir = HDIR_SYSTEM, _count = 1, DosFindFirst(n, &_hdir, FILE_NORMAL, s, sizeof(*s), &_count, 0))
- #define findnext(s) (_count = 1, DosFindNext(_hdir, s, sizeof(*s), &_count))
- #define ffblk _FILEFINDBUF
- #define ff_name achName
-
-
- extern int _lines, _columns, _line, _col;
-
- #define BLACK 0
- #define LIGHTGRAY 1
-
- #define putch(c) outchar(c)
- #define getch() (tflush(), getch())
- #define system(c) (tflush(), system(c))
-
-