1/* 2 Copyright (c) 1990-1999 Info-ZIP. All rights reserved. 3 4 See the accompanying file LICENSE, version 1999-Oct-05 or later 5 (the contents of which are also included in zip.h) for terms of use. 6 If, for some reason, both of these files are missing, the Info-ZIP license 7 also may be found at: ftp://ftp.cdrom.com/pub/infozip/license.html 8*/ 9/* 10 * XXX this should somehow depend on the stuff in revision.h 11 */ 12#pragma prog 2.3,0,0,0 13 14/* use argument expansion */ 15#if !defined(UTIL) && !defined(MAINWA_BUG) 16# pragma wild argv 17#endif 18 19#include <stdio.h> 20#include <malloc.h> 21#include <handle.h> 22#include <conio.h>> 23#include <locale.h> 24#include <sys/types.h> 25#include "theos/stat.h" /* use JMD's extended stat function */ 26 27#define isatty() _isatty() /* THEOS isatty uses a FILE* instead of a fd */ 28int _isatty(int fd); 29 30#define deletedir(d) rmdir(d) 31 32/* will come later */ 33#if 0 34#define USE_EF_UT_TIME /* Enable use of "UT" extra field time info */ 35#endif 36 37#if DEBUG 38int _fprintf(FILE* fp, const char* fmt, ...); 39#endif 40 41/* for rename() replacement. Standard function is bugged */ 42 43int _rename(const char* old, const char* new); 44#define rename(a,b) _rename(a,b) 45 46#ifdef LOCATE_BUG 47/* for fopen replacement. Standard function fails on relative path pointing 48 * to root directory. 49 */ 50#undef _fopen 51#undef open 52#define fopen() _fopen() 53FILE* _fopen(const char*, const char*); 54#define open() __open() 55FILE* __open(const char*, int); 56#endif 57 58#define EXDEV 10000 59