summaryrefslogtreecommitdiff
path: root/dosish.h
diff options
context:
space:
mode:
Diffstat (limited to 'dosish.h')
-rw-r--r--dosish.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/dosish.h b/dosish.h
index a7a498a3a7..8747f2d985 100644
--- a/dosish.h
+++ b/dosish.h
@@ -1 +1,14 @@
#define ABORT() abort();
+
+/*
+ * fwrite1() should be a routine with the same calling sequence as fwrite(),
+ * but which outputs all of the bytes requested as a single stream (unlike
+ * fwrite() itself, which on some systems outputs several distinct records
+ * if the number_of_items parameter is >1).
+ */
+#define fwrite1 fwrite
+
+#define Stat(fname,bufptr) stat((fname),(bufptr))
+#define Fstat(fd,bufptr) fstat((fd),(bufptr))
+
+#define my_getenv(var) getenv(var)