+Tue Mar 7 12:33:29 1995 Keith Vetter (keithv@fusion.com)
+
+ * rc_io.c: moved the enabling defines for low-level io, e.g. read,
+ write, lseek, etc., out of here and into k5-config.h.
+
Thu Mar 2 11:55:00 1995 Keith Vetter (keithv@fusion.com)
* rc_io.c: changed NEED_WINSOCK_H to NEED_SOCKETS
#define KRB5_RC_VNO 0x0501 /* krb5, rcache v 1 */
#define NEED_SOCKETS
+#define NEED_LOWLEVEL_IO
#include <stdio.h> /* for P_tmpdir */
#include <krb5.h>
#include "rc_dfl.h"
#include "rc_io.h"
-/* Ugly. Microsoft, in stdc mode, doesn't support the low-level i/o
- * routines directly. Rather, they only export the _<function> version.
- * The following defines works around this problem. Perhaps this should
- * go into config.h but leave it here for now until we see how prevalent
- * this problem is.
- */
-#ifdef MSDOS_FILESYSTEM
-#include <fcntl.h>
-#include <io.h>
-#include <process.h>
-#define O_RDONLY _O_RDONLY
-#define O_WRONLY _O_WRONLY
-#define O_RDWR _O_RDWR
-#define O_APPEND _O_APPEND
-#define O_CREAT _O_CREAT
-#define O_TRUNC _O_TRUNC
-#define O_EXCL _O_EXCL
-#define O_TEXT _O_TEXT
-#define O_BINARY _O_BINARY
-#define O_NOINHERIT _O_NOINHERIT
-#define stat _stat
-#define getpid _getpid
-#define unlink _unlink
-#define lseek _lseek
-#define write _write
-#define open _open
-#define close _close
-#define read _read
-#define fstat _fstat
-#endif
-
#ifndef O_BINARY
#define O_BINARY 0
#endif