summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/cvs/lib/system.h
diff options
context:
space:
mode:
authorThorsten Lockert <tholo@cvs.openbsd.org>1996-10-18 03:37:12 +0000
committerThorsten Lockert <tholo@cvs.openbsd.org>1996-10-18 03:37:12 +0000
commit336031efaf37038aec514de88cc3ed6ac651bea9 (patch)
tree6e7eaec5ac8b729546276d6a0932387996c9e92c /gnu/usr.bin/cvs/lib/system.h
parentc99a600e0a1fec1e87fd19470c2c4cf7c8ce36ed (diff)
New release from Cyclic Software
Diffstat (limited to 'gnu/usr.bin/cvs/lib/system.h')
-rw-r--r--gnu/usr.bin/cvs/lib/system.h63
1 files changed, 54 insertions, 9 deletions
diff --git a/gnu/usr.bin/cvs/lib/system.h b/gnu/usr.bin/cvs/lib/system.h
index 363124dcb47..cff72cdc55c 100644
--- a/gnu/usr.bin/cvs/lib/system.h
+++ b/gnu/usr.bin/cvs/lib/system.h
@@ -270,18 +270,20 @@ extern long timezone;
check for struct utimbuf, but for now I'm checking NeXT here (so I don't
have to debug the configure check across all the machines). */
#if defined (HAVE_UTIME_H) && !defined (NeXT)
-#include <utime.h>
-#elif defined (HAVE_SYS_UTIME_H)
-# include <sys/utime.h>
+# include <utime.h>
#else
-#ifndef ALTOS
+# if defined (HAVE_SYS_UTIME_H)
+# include <sys/utime.h>
+# else
+# ifndef ALTOS
struct utimbuf
{
long actime;
long modtime;
};
-#endif
+# endif
int utime ();
+# endif
#endif
#if STDC_HEADERS || HAVE_STRING_H
@@ -295,7 +297,9 @@ int utime ();
/* memory.h and strings.h conflict on some systems. */
#endif /* not STDC_HEADERS and not HAVE_STRING_H */
+#ifndef ERRNO_H_MISSING
#include <errno.h>
+#endif
/* Not all systems set the same error code on a non-existent-file
error. This tries to ask the question somewhat portably.
@@ -422,14 +426,55 @@ char *getwd ();
#define S_IWOTH 0000002 /* write permission, other */
#endif
-/* Under MS-DOS and its derivatives (like Windows NT), mkdir takes only one
- argument; permission is handled very differently on those systems than in
- in Unix. So we leave such systems a hook on which they can hang their
- own definitions. */
+/* Under non-UNIX operating systems (MS-DOS, WinNT, MacOS), many filesystem
+ calls take only one argument; permission is handled very differently on
+ those systems than in Unix. So we leave such systems a hook on which they
+ can hang their own definitions. */
+
+#ifndef CVS_ACCESS
+#define CVS_ACCESS access
+#endif
+
+#ifndef CVS_CHDIR
+#define CVS_CHDIR chdir
+#endif
+
+#ifndef CVS_CREAT
+#define CVS_CREAT creat
+#endif
+
+#ifndef CVS_FOPEN
+#define CVS_FOPEN fopen
+#endif
+
#ifndef CVS_MKDIR
#define CVS_MKDIR mkdir
#endif
+#ifndef CVS_OPEN
+#define CVS_OPEN open
+#endif
+
+#ifndef CVS_OPENDIR
+#define CVS_OPENDIR opendir
+#endif
+
+#ifndef CVS_RENAME
+#define CVS_RENAME rename
+#endif
+
+#ifndef CVS_RMDIR
+#define CVS_RMDIR rmdir
+#endif
+
+#ifndef CVS_STAT
+#define CVS_STAT stat
+#endif
+
+#ifndef CVS_UNLINK
+#define CVS_UNLINK unlink
+#endif
+
/* Some file systems are case-insensitive. If FOLD_FN_CHAR is
#defined, it maps the character C onto its "canonical" form. In a
case-insensitive system, it would map all alphanumeric characters