summaryrefslogtreecommitdiff
path: root/tailor.h
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2002-09-25 21:20:13 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2002-09-25 21:20:13 +0000
commitd207dd3ac13de4ca628b204242e2c4b56efda6ca (patch)
treefef246c9ab5c3650f05c885910c589a322bdadc1 /tailor.h
parent4d650a8fe8186ce4cfef4b4ac04b901b884462bf (diff)
downloadgzip-d207dd3ac13de4ca628b204242e2c4b56efda6ca.tar.gz
gzip 1.3.5
Diffstat (limited to 'tailor.h')
-rw-r--r--tailor.h55
1 files changed, 21 insertions, 34 deletions
diff --git a/tailor.h b/tailor.h
index daa48ca..9a1cd1b 100644
--- a/tailor.h
+++ b/tailor.h
@@ -27,22 +27,21 @@
/* DJGPP version 1.09+ on MS-DOS.
* The DJGPP 1.09 stat() function must be upgraded before gzip will
* fully work.
- * No need for DIRENT, since <unistd.h> defines POSIX_SOURCE which
- * implies DIRENT.
+ * No need for HAVE_DIRENT_H, since <unistd.h> defines POSIX_SOURCE which
+ * implies HAVE_DIRENT_H.
*/
# define near
# else
# define MAXSEG_64K
# ifdef __TURBOC__
-# define NO_OFF_T
+# define off_t long
# ifdef __BORLANDC__
-# define DIRENT
-# else
-# define NO_UTIME
+# define HAVE_DIRENT_H
+# define HAVE_UTIME
# endif
+# define HAVE_UTIME_H
# else /* MSC */
# define HAVE_SYS_UTIME_H
-# define NO_UTIME_H
# endif
# endif
# define PATH_SEP2 '\\'
@@ -51,10 +50,10 @@
# define NO_MULTIPLE_DOTS
# define MAX_EXT_CHARS 3
# define Z_SUFFIX "z"
-# define NO_CHOWN
# define PROTO
# define STDC_HEADERS
# define NO_SIZE_CHECK
+# define UNLINK_READONLY_BUG
# define casemap(c) tolow(c) /* Force file names to lower case */
# include <io.h>
# define OS_CODE 0x00
@@ -76,32 +75,30 @@
# define Z_SUFFIX "z"
# define casemap(c) tolow(c)
# endif
-# define NO_CHOWN
# define PROTO
# define STDC_HEADERS
+# define UNLINK_READONLY_BUG
# include <io.h>
# define OS_CODE 0x06
# define SET_BINARY_MODE(fd) setmode(fd, O_BINARY)
# ifdef _MSC_VER
# define HAVE_SYS_UTIME_H
-# define NO_UTIME_H
# define MAXSEG_64K
# undef near
# define near _near
# endif
# ifdef __EMX__
# define HAVE_SYS_UTIME_H
-# define NO_UTIME_H
-# define DIRENT
+# define HAVE_DIRENT_H
# define EXPAND(argc,argv) \
{_response(&argc, &argv); _wildcard(&argc, &argv);}
# endif
# ifdef __BORLANDC__
-# define DIRENT
+# define HAVE_DIRENT_H
+# define HAVE_UTIME_H
# endif
# ifdef __ZTC__
-# define NO_DIR
-# define NO_UTIME_H
+# define NO_DIR 1
# include <dos.h>
# define EXPAND(argc,argv) \
{response_expand(&argc, &argv);}
@@ -110,14 +107,13 @@
#ifdef WIN32 /* Windows NT */
# define HAVE_SYS_UTIME_H
-# define NO_UTIME_H
# define PATH_SEP2 '\\'
# define PATH_SEP3 ':'
# define MAX_PATH_LEN 260
-# define NO_CHOWN
# define PROTO
# define STDC_HEADERS
# define SET_BINARY_MODE(fd) setmode(fd, O_BINARY)
+# define UNLINK_READONLY_BUG
# include <io.h>
# include <malloc.h>
# ifdef NTFAT
@@ -161,13 +157,13 @@
# define OS_CODE 0x02
# define OPTIONS_VAR "GZIP_OPT"
# define STDC_HEADERS
-# define NO_UTIME
# define EXPAND(argc,argv) vms_expand_args(&argc,&argv);
# include <file.h>
# define unlink delete
# ifdef VAXC
-# define NO_FCNTL_H
# include <unixio.h>
+# else
+# define HAVE_FCNTL_H
# endif
#endif
@@ -177,14 +173,14 @@
# define OS_CODE 0x01
# define ASMV
# ifdef __GNUC__
-# define DIRENT
+# define HAVE_DIRENT_H
+# define HAVE_FCNTL_H
# define HAVE_UNISTD_H
+# define HAVE_CHOWN
+# define HAVE_LSTAT
# else /* SASC */
# define NO_STDIN_FSTAT
-# define SYSDIR
-# define NO_SYMLINK
-# define NO_CHOWN
-# define NO_FCNTL_H
+# define HAVE_SYS_DIR_H
# include <fcntl.h> /* for read() and write() */
# define direct dirent
extern void _expand_args(int *argc, char ***argv);
@@ -197,7 +193,7 @@
# ifndef STDC_HEADERS
# define STDC_HEADERS
# define HAVE_UNISTD_H
-# define DIRENT
+# define HAVE_DIRENT_H
# endif
# define ASMV
# define OS_CODE 0x05
@@ -208,9 +204,7 @@
# define NO_MULTIPLE_DOTS
# define MAX_EXT_CHARS 3
# define Z_SUFFIX "z"
-# define NO_CHOWN
# define casemap(c) tolow(c) /* Force file names to lower case */
-# define NO_SYMLINK
# endif
#endif
@@ -219,8 +213,6 @@
# define DYN_ALLOC
# define PROTO
# define NO_STDIN_FSTAT
-# define NO_CHOWN
-# define NO_UTIME
# define chmod(file, mode) (0)
# define OPEN(name, flags, mode) open(name, flags)
# define OS_CODE 0x07
@@ -232,13 +224,8 @@
#ifdef __50SERIES /* Prime/PRIMOS */
# define PATH_SEP '>'
# define STDC_HEADERS
-# define NO_MEMORY_H
-# define NO_UTIME_H
-# define NO_UTIME
-# define NO_CHOWN
# define NO_STDIN_FSTAT
# define NO_SIZE_CHECK
-# define NO_SYMLINK
# define RECORD_IO 1
# define casemap(c) tolow(c) /* Force file names to lower case */
# define put_char(c) put_byte((c) & 0x7F)