From 6875a986a7c49095c55e5fc4d42414efe616f5df Mon Sep 17 00:00:00 2001 From: Keith Vetter Date: Tue, 7 Mar 1995 20:47:28 +0000 Subject: [PATCH] Moved PC low-level i/o crud out of source files and into k5-config.h git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5076 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/rcache/ChangeLog | 5 +++++ src/lib/krb5/rcache/rc_io.c | 32 +------------------------------- 2 files changed, 6 insertions(+), 31 deletions(-) diff --git a/src/lib/krb5/rcache/ChangeLog b/src/lib/krb5/rcache/ChangeLog index f644cdc79..30a54de28 100644 --- a/src/lib/krb5/rcache/ChangeLog +++ b/src/lib/krb5/rcache/ChangeLog @@ -1,3 +1,8 @@ +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 diff --git a/src/lib/krb5/rcache/rc_io.c b/src/lib/krb5/rcache/rc_io.c index 1c81d7f2a..dd59ea084 100644 --- a/src/lib/krb5/rcache/rc_io.c +++ b/src/lib/krb5/rcache/rc_io.c @@ -14,6 +14,7 @@ #define KRB5_RC_VNO 0x0501 /* krb5, rcache v 1 */ #define NEED_SOCKETS +#define NEED_LOWLEVEL_IO #include /* for P_tmpdir */ #include @@ -21,37 +22,6 @@ #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 _ 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 -#include -#include -#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 -- 2.26.2