net_write.c (krb5_net_write): In case of an error, on Windows
machines, set errno from SOCKET_ERRNO, since the interface assumes the
error is passed back the errno global varaible. This really needs to
be fixed sometime...
read_msg.c: If ECONNABORTED is not defined, try using the Winsock
version of the error code (WSAECONNABORTED).
read_pwd.c:
promptusr.c:
lock_file.c:
kuserok.c:
ktdefname.c (krb5_kt_default_name):
init_os_ctx.c (os_init_paths):
ccdefname.c:
an_to_ln.c (db_an_to_ln): Change _WINDOWS to _MSDOS, and add check for _WIN32.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8316
dc483132-0cff-0310-8789-
dd5450dbe970
+Wed Jun 12 01:12:32 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * net_read.c (krb5_net_read):
+ * net_write.c (krb5_net_write): In case of an error, on Windows
+ machines, set errno from SOCKET_ERRNO, since the interface
+ assumes the error is passed back the errno global
+ varaible. This really needs to be fixed sometime...
+
+ * read_msg.c: If ECONNABORTED is not defined, try using the
+ Winsock version of the error code (WSAECONNABORTED).
+
+Mon Jun 10 21:48:45 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * read_pwd.c:
+ * promptusr.c:
+ * lock_file.c:
+ * kuserok.c:
+ * ktdefname.c (krb5_kt_default_name):
+ * init_os_ctx.c (os_init_paths):
+ * ccdefname.c:
+ * an_to_ln.c (db_an_to_ln): Change _WINDOWS to _MSDOS, and add
+ check for _WIN32.
+
Thu Apr 18 16:24:44 1996 Theodore Y. Ts'o <tytso@mit.edu>
* macsock.c (getsockname, getpeername): Correctly implement
const int lnsize;
char *lname;
{
-#if defined(BERK_DB_DBM) || (!defined(_WINDOWS) && !defined(_MACINTOSH))
+#if defined(BERK_DB_DBM) || (!defined(_MSDOS) && !defined(_WIN32) && !defined(_MACINTOSH))
DBM *db;
krb5_error_code retval;
datum key, contents;
/* can't close until we copy the contents. */
(void) KDBM_CLOSE(db);
return retval;
-#else /* BERK_DB_DBM && !_WINDOWS */
+#else /* BERK_DB_DBM && !_MSDOS && !_WIN32 && !MACINTOSH */
/*
* If we don't have support for a database mechanism, then we can't
* translate this now, can we?
*/
return KRB5_LNAME_NOTRANS;
-#endif /* BERK_DB_DBM && !_WINDOWS */
+#endif /* BERK_DB_DBM && !_MSDOS && !_WIN32 && !MACINTOSH */
}
#ifdef AN_TO_LN_RULES
// strcpy (name_buf, "STDIO:krb5cc");
}
#else
-#ifdef _WINDOWS
+#if defined(_MSDOS) || defined(_WIN32)
{
char defname[160]; /* Default value */
krb5_error_code retval = 0;
char *name = 0;
-#if defined(_MACINTOSH) || defined(_WINDOWS)
+#if defined(_MACINTOSH) || defined(_MSDOS) || defined(_WIN32)
const char *filenames[2];
#endif
ctx->profile_secure = secure;
-#ifdef _WINDOWS
+#if defined(_MSDOS) || defined(_WIN32)
{
char defname[160]; /* Default value */
char krb5conf[160]; /* Actual value */
retval = profile_init(filenames, &ctx->profile);
-#else /* _WINDOWS */
+#else /* _MSDOS || _WIN32 */
#ifdef _MACINTOSH
filenames[0] = GetMacProfilePathName();
filenames[1] = 0;
retval = profile_init_path(name, &ctx->profile);
#endif /* _MACINTOSH */
-#endif /* _WINDOWS */
+#endif /* _MSDOS || _WIN32 */
if (retval)
ctx->profile = 0;
if (strlen(cp) >= (size_t) namesize)
return KRB5_CONFIG_NOTENUFSPACE;
} else {
-#if defined (_WINDOWS) || defined(WIN32)
+#if defined (_MSDOS) || defined(_WIN32)
{
char defname[160];
int len;
*/
#include "k5-int.h"
-#if !defined(_MSDOS) && !defined(_MACINTOSH) /* Not yet for Windows */
+#if !defined(_MSDOS) && !defined(_WIN32) && !defined(_MACINTOSH) /* Not yet for Windows */
#include <stdio.h>
#include <pwd.h>
#include "k5-int.h"
#include <stdio.h>
-#if !defined(_MSDOS) && !defined(HAVE_MACSOCK_H)
+#if !defined(_MSDOS) && !defined(_WIN32) && !defined(HAVE_MACSOCK_H)
/* Unix version... */
if (cc < 0) {
if (SOCKET_ERRNO == SOCKET_EINTR)
continue;
+#if defined(_MSDOS) || (_WIN32)
+ /* XXX this interface sucks! */
+ errno = SOCKET_ERRNO;
+#endif
return(cc); /* errno is already set */
}
else if (cc == 0) {
if (cc < 0) {
if (SOCKET_ERRNO == SOCKET_EINTR)
continue;
+#if defined(_MSDOS) || (_WIN32)
+ /* XXX this interface sucks! */
+ errno = SOCKET_ERRNO;
+#endif
return(cc);
}
else {
*/
#include "k5-int.h"
-#if !defined(_MSDOS) && !defined(_MACINTOSH)
+#if !defined(_MSDOS) && !defined(_WIN32) && !defined(_MACINTOSH)
#include <stdio.h>
#include <stdlib.h>
#include "k5-int.h"
#include <errno.h>
+#ifndef ECONNABORTED
+#define ECONNABORTED WSAECONNABORTED
+#endif
+
krb5_error_code
krb5_read_message(context, fdp, inbuf)
krb5_context context;
*/
#include "k5-int.h"
-#if !defined(_MSDOS) && !defined(_MACINTOSH)
+#if !defined(_MSDOS) && !defined(_WIN32) && !defined(_MACINTOSH)
#include <stdio.h>
#include <errno.h>
#include <signal.h>