* Machine-type definitions: PC Clone 386 running Microloss Windows
*/
-#if defined(_MSDOS) || defined(_WIN32) || defined(_MACINTOSH)
+#if defined(_MSDOS) || defined(_WIN32) || defined(macintosh)
#include "win-mac.h"
-#if defined(_MACINTOSH) && defined(__CFM68K__) && !defined(__USING_STATIC_LIBS__)
+#if defined(macintosh) && defined(__CFM68K__) && !defined(__USING_STATIC_LIBS__)
#pragma import on
#endif
#endif
#endif
-#ifndef _MACINTOSH
+#ifndef macintosh
#if defined(__MWERKS__) || defined(applec) || defined(THINK_C)
-#define _MACINTOSH
+#define macintosh
#define SIZEOF_INT 4
#define SIZEOF_SHORT 2
#define HAVE_SRAND
krb5_octet FAR * FAR *,
size_t FAR *));
-#if defined(_MACINTOSH) && defined(__CFM68K__) && !defined(__USING_STATIC_LIBS__)
+#if defined(macintosh) && defined(__CFM68K__) && !defined(__USING_STATIC_LIBS__)
#pragma import reset
#endif
#ifndef KRB5_GENERAL__
#define KRB5_GENERAL__
-#if defined(_MSDOS) || defined(_WIN32) || defined(_MACINTOSH)
+#if defined(_MSDOS) || defined(_WIN32) || defined(macintosh)
#include <win-mac.h>
/* Macintoh CFM-68K magic incantation */
-#if defined(_MACINTOSH) && defined(__CFM68K__) && !defined(__USING_STATIC_LIBS__)
+#if defined(macintosh) && defined(__CFM68K__) && !defined(__USING_STATIC_LIBS__)
#pragma import on
#endif
#endif
-#if defined(_MSDOS) || defined(_WIN32) || defined(_MACINTOSH)
+#if defined(_MSDOS) || defined(_WIN32) || defined(macintosh)
#include <win-mac.h>
#endif
char *in_tkt_service));
/* Macintoh CFM-68K magic incantation */
-#if defined(_MACINTOSH) && defined(__CFM68K__) && !defined(__USING_STATIC_LIBS__)
+#if defined(macintosh) && defined(__CFM68K__) && !defined(__USING_STATIC_LIBS__)
#pragma import reset
#endif
krb5_auth_context,
krb5_ccache));
-#if !defined(_MSDOS) && !defined(_WIN32) && !defined(_MACINTOSH)
+#if !defined(_MSDOS) && !defined(_WIN32) && !defined(macintosh)
/* adm_kw_dec.c */
krb5_error_code krb5_adm_proto_to_dbent
KRB5_PROTOTYPE((krb5_context,
#define KRB5_KDB_CREATE_BTREE 0x00000001
#define KRB5_KDB_CREATE_HASH 0x00000002
-#if !defined(_MACINTOSH) && !defined(_MSDOS) && !defined(_WIN32)
+#if !defined(macintosh) && !defined(_MSDOS) && !defined(_WIN32)
/*
* Note --- these structures cannot be modified without changing the
typedef struct _kdb5_dispatch_table kdb5_dispatch_table;
#endif /* KDB5_DISPATCH */
#endif /* notdef */
-#endif /* !defined(_MACINTOSH) && !defined(_MSDOS) &&!defined(_WIN32) */
+#endif /* !defined(macintosh) && !defined(_MSDOS) &&!defined(_WIN32) */
#endif /* KRB5_KDB5__ */
#ifndef KRB5_KDB5_DBC__
#define KRB5_KDB5_DBC__
-#if !defined(_MACINTOSH) && !defined(_MSDOS)
+#if !defined(macintosh) && !defined(_MSDOS)
#include "kdb.h"
krb5_error_code krb5_dbm_db_get_mkey
KRB5_PROTOTYPE((krb5_context,krb5_db_context *,krb5_encrypt_block **));
-#endif /* !defined(_MACINTOSH) && !defined(_MSDOS) */
+#endif /* !defined(macintosh) && !defined(_MSDOS) */
#endif /* KRB5_KDB5_DBM__ */
#ifndef KRB5_KDB5_DBM__
#define KRB5_KDB5_DBM__
-#if !defined(_MACINTOSH) && !defined(_MSDOS) && !defined(_WIN32)
+#if !defined(macintosh) && !defined(_MSDOS) && !defined(_WIN32)
/* exclusive or shared lock flags */
#define KRB5_DBM_SHARED 0
krb5_error_code krb5_dbm_db_close_database
KRB5_PROTOTYPE((krb5_context));
-#endif /* !defined(_MACINTOSH) && !defined(_MSDOS) && !defined(WIN32) */
+#endif /* !defined(macintosh) && !defined(_MSDOS) && !defined(WIN32) */
#endif /* KRB5_KDB5_DBM__ */
#ifndef KRB5_KDB5_KT_H
#define KRB5_KDB5_KT_H
-#if !defined(_MACINTOSH) && !defined(_MSDOS)
+#if !defined(macintosh) && !defined(_MSDOS)
#include "kdb.h"
krb5_error_code krb5_ktkdb_resolve
KRB5_PROTOTYPE((krb5_context, krb5_keytab *));
-#endif /* !defined(_MACINTOSH) && !defined(_MSDOS) */
+#endif /* !defined(macintosh) && !defined(_MSDOS) */
#endif /* KRB5_KDB5_DBM__ */
#endif /* _MSDOS || _WIN32 */
-#ifdef _MACINTOSH
+#ifdef macintosh
#define KRB5_CALLCONV
#define KRB5_CALLCONV_C
#define _MACSOCKAPI_
#define THREEPARAMOPEN(x,y,z) open(x,y)
-#else /* _MACINTOSH */
+#else /* macintosh */
#define THREEPARAMOPEN(x,y,z) open(x,y,z)
-#endif /* _MACINTOSH */
+#endif /* macintosh */
#ifndef KRB5_CALLCONV
#define KRB5_CALLCONV
#define NEED_SOCKETS
#include "k5-int.h"
-#ifdef _MACINTOSH
+#ifdef macintosh
/* We're a Macintosh -- do Mac time things. */
* Determine platform-dependent configuration.
*/
-#if defined(_MSDOS) || defined(_WIN32) || defined(_MACINTOSH)
+#if defined(_MSDOS) || defined(_WIN32) || defined(macintosh)
#include <win-mac.h>
/* Macintoh CFM-68K magic incantation */
-#if defined(_MACINTOSH) && defined(__CFM68K__) && !defined(__USING_STATIC_LIBS__)
+#if defined(macintosh) && defined(__CFM68K__) && !defined(__USING_STATIC_LIBS__)
#pragma import on
#endif
#endif
/*
* POSIX says that sys/types.h is where size_t is defined.
*/
-#ifndef _MACINTOSH
+#ifndef macintosh
#include <sys/types.h>
#endif
#define GSS_S_CRED_UNAVAIL GSS_S_FAILURE
/* Macintoh CFM-68K magic incantation */
-#if defined(_MACINTOSH) && defined(__CFM68K__) && !defined(__USING_STATIC_LIBS__)
+#if defined(macintosh) && defined(__CFM68K__) && !defined(__USING_STATIC_LIBS__)
#pragma import reset
#endif
* $Id$
*/
-#if (defined(_MSDOS) || defined(_WIN32) || defined(_MACINTOSH))
+#if (defined(_MSDOS) || defined(_WIN32) || defined(macintosh))
#include <k5-int.h>
#else
#ifdef HAVE_STDLIB_H
#undef minor
#endif
-#ifndef _MACINTOSH
+#ifndef macintosh
#include "../generic/gssapiP_generic.h"
#else
#include "gssapiP_generic.h"
#ifndef _GSSAPI_KRB5_H_
#define _GSSAPI_KRB5_H_
-#ifndef _MACINTOSH
+#ifndef macintosh
#include <gssapi/gssapi_generic.h>
#else
#include <gssapi_generic.h>
*/
#include "gssapiP_krb5.h"
-#if !defined(_MSDOS) && !defined(_WIN32) && !defined(_MACINTOSH)
+#if !defined(_MSDOS) && !defined(_WIN32) && !defined(macintosh)
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
#include <string.h>
#include <pwd.h>
#include <sys/types.h>
-#endif /* !_MSDOS && !_MACINTOSH */
+#endif /* !_MSDOS && !macintosh */
/*
* This function will probably get replaced with the gsscred stuff...
gss_OID mech_type;
uid_t * uid;
{
-#if defined(_MSDOS) || defined(_WIN32) || defined(_MACINTOSH)
+#if defined(_MSDOS) || defined(_WIN32) || defined(macintosh)
return (0); /* failure */
#else
#endif /* USE_SOLARIS_SHARED_LIBRARIES */
-#if !defined(_MSDOS) && !defined(_MACINTOSH)
+#if !defined(_MSDOS) && !defined(macintosh)
if (__gss_mechs_array == NULL) { /* this is very bad! */
fprintf(stderr,"gss_initialize fatal error: no mechanisms loaded!\n");
exit(-1);
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
-#ifndef _MACINTOSH
+#ifndef macintosh
#include <gssapi/gssapi_generic.h>
#else
#include <gssapi_generic.h>
return 0;
}
-#ifdef _MACINTOSH
+#ifdef macintosh
#define EPOCH ((70 * 365 * 24 * 60 * 60) + (17 * 24 * 60 * 60) + (getTimeZoneOffset() * 60 * 60))
#else
#define EPOCH (0)
#include "fcc.h"
-#ifdef _MACINTOSH
+#ifdef macintosh
#define register
#endif
#include "scc.h"
#include "k5-int.h"
-#ifdef _MACINTOSH
+#ifdef macintosh
/*
* Kludge for the Macintosh, since fopen doesn't set errno, but open
* does...
}
#endif
-#ifdef _MACINTOSH
+#ifdef macintosh
f = my_fopen (data->filename, open_flag);
#else
f = fopen (data->filename, open_flag);
int fflags = 0;
file_is_open = 1;
-#if !defined( _MACINTOSH) && !defined(_MSDOS) && !defined(_WIN32)
+#if !defined( macintosh) && !defined(_MSDOS) && !defined(_WIN32)
fflags = fcntl(fileno(ktdata->openf), F_GETFL, 0);
if (fflags > 0)
file_is_open |= ((fflags & O_ACCMODE) << 1);
int fmode;
long fpos;
-#if !defined( _MACINTOSH) && !defined(_MSDOS) && !defined(_WIN32)
+#if !defined( macintosh) && !defined(_MSDOS) && !defined(_WIN32)
fmode = (file_is_open >> 1) & O_ACCMODE;
#else
fmode = 0;
"kdc_default_options", 0,
KDC_OPT_RENEWABLE_OK, &tmp);
ctx->kdc_default_options = KDC_OPT_RENEWABLE_OK;
-#ifdef _MACINTOSH
+#ifdef macintosh
#define DEFAULT_KDC_TIMESYNC 1
#else
#define DEFAULT_KDC_TIMESYNC 0
* Note: DCE 1.0.3a only supports a cache type of 1
* DCE 1.1 supports a cache type of 2.
*/
-#ifdef _MACINTOSH
+#ifdef macintosh
#define DEFAULT_CCACHE_TYPE 4
#else
#define DEFAULT_CCACHE_TYPE 3
else
krb5_princ_component(context, principal, i)->length = size;
if (i + 1 != components) {
-#if !defined(_MSDOS) && !defined(_WIN32) && !defined(_MACINTOSH)
+#if !defined(_MSDOS) && !defined(_WIN32) && !defined(macintosh)
fprintf(stderr,
"Programming error in krb5_parse_name!");
exit(1);
const int lnsize;
char *lname;
{
-#if (!defined(_MSDOS) && !defined(_WIN32) && !defined(_MACINTOSH))
+#if (!defined(_MSDOS) && !defined(_WIN32) && !defined(macintosh))
DBM *db;
krb5_error_code retval;
datum key, contents;
#include "k5-int.h"
#include <stdio.h>
-#ifdef _MACINTOSH
+#ifdef macintosh
static CInfoPBRec theCatInfo;
static char *FileBuffer;
static int indexCount;
#define NEED_WINDOWS
#include "k5-int.h"
-#ifdef _MACINTOSH
+#ifdef macintosh
static CInfoPBRec theCatInfo;
static char *FileBuffer;
static int indexCount;
krb5_error_code retval = 0;
char *name = 0;
-#if defined(_MACINTOSH) || defined(_MSDOS) || defined(_WIN32)
+#if defined(macintosh) || defined(_MSDOS) || defined(_WIN32)
const char *filenames[2];
#endif
retval = profile_init(filenames, &ctx->profile);
#else /* _MSDOS || _WIN32 */
-#ifdef _MACINTOSH
+#ifdef macintosh
filenames[0] = GetMacProfilePathName();
filenames[1] = 0;
retval = profile_init(filenames, &ctx->profile);
if(!name) name = DEFAULT_PROFILE_PATH;
retval = profile_init_path(name, &ctx->profile);
-#endif /* _MACINTOSH */
+#endif /* macintosh */
#endif /* _MSDOS || _WIN32 */
if (retval)
FILE *fp;
{
fflush(fp);
-#if !defined(MSDOS_FILESYSTEM) && !defined(_MACINTOSH)
+#if !defined(MSDOS_FILESYSTEM) && !defined(macintosh)
if (fsync(fileno(fp))) {
return errno;
}
*/
#include "k5-int.h"
-#if !defined(_MSDOS) && !defined(_WIN32) && !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"
-#if !defined(_MSDOS) && (!defined(_WIN32) || (defined(_WIN32) && defined(__CYGWIN32__))) && !defined(_MACINTOSH)
+#if !defined(_MSDOS) && (!defined(_WIN32) || (defined(_WIN32) && defined(__CYGWIN32__))) && !defined(macintosh)
#include <stdio.h>
#include <errno.h>
#include <signal.h>
*/
#include "k5-int.h"
-#if !defined(_MSDOS) && !defined(_WIN32) && !defined(_MACINTOSH)
+#if !defined(_MSDOS) && !defined(_WIN32) && !defined(macintosh)
#include <stdio.h>
#include <stdlib.h>
*timeret = os_ctx->time_offset;
return 0;
}
-#ifdef _MACINTOSH
+#ifdef macintosh
{
long usecs;
krb5_error_code kret;
* Modified to use UNIX domain IPC by Ralph Campbell
*/
-#if !defined(_MSDOS) && !defined(_WIN32) && !defined(_MACINTOSH)
+#if !defined(_MSDOS) && !defined(_WIN32) && !defined(macintosh)
#if defined(__STDC__) || defined(_MSDOS) || defined(_WIN32)
#include <stdarg.h>
if (new->fn == 0)
return ENOMEM;
strcpy(new->fn, old->fn);
-#ifdef _MACINTOSH
+#ifdef macintosh
new->fd = fcntl(old->fd, F_DUPFD);
#else
new->fd = dup(old->fd);
krb5_context context;
krb5_rc_iostuff *d;
{
-#if !defined(MSDOS_FILESYSTEM) && !defined(_MACINTOSH)
+#if !defined(MSDOS_FILESYSTEM) && !defined(macintosh)
if (fsync(d->fd) == -1) {
switch(errno)
{
#define GSSAPI_V2
-#define _MACINTOSH
//#include <PP_Prefix.h>
*/
#define KRB5 1
-#define _MACINTOSH
+#define macintosh
#define SIZEOF_INT 4
#define SIZEOF_SHORT 2
#define ENOMEM -1
#if defined(_MSDOS) || defined(_WIN32)
#include <io.h>
#endif
-#ifdef _MACINTOSH
+#ifdef macintosh
#include "icons.h"
static void MacMessageBox(char *errbuf);
#endif
const char FAR *fmt;
va_list ap;
{
-#if defined(_MSDOS) || defined(_WIN32) || defined(_MACINTOSH)
+#if defined(_MSDOS) || defined(_WIN32) || defined(macintosh)
char errbuf[1024] = "";
if (fmt)
vsprintf (errbuf + strlen (errbuf), fmt, ap);
-#ifdef _MACINTOSH
+#ifdef macintosh
MacMessageBox(errbuf);
#else
#ifdef _WIN32
} else
#endif /* _WIN32 */
MessageBox ((HWND)NULL, errbuf, "Kerberos", MB_ICONEXCLAMATION);
-#endif /* _MACINTOSH */
+#endif /* macintosh */
-#else /* !_MSDOS && !_WIN32 && !_MACINTOSH */
+#else /* !_MSDOS && !_WIN32 && !macintosh */
if (whoami) {
fputs(whoami, stderr);
}
#endif
-#ifdef _MACINTOSH
+#ifdef macintosh
static void MacMessageBox(errbuf)
char *errbuf;
{
#define unix
#endif
-#if defined(__MWERKS__) || defined(applec) || defined(THINK_C)
-#define _MACINTOSH
-#endif
-
-#if defined(_MSDOS) || defined(_WIN32) || defined(_MACINTOSH)
+#if defined(_MSDOS) || defined(_WIN32) || defined(macintosh)
#include <win-mac.h>
-#if defined(_MACINTOSH) && defined(__CFM68K__) && !defined(__USING_STATIC_LIBS__)
+#if defined(macintosh) && defined(__CFM68K__) && !defined(__USING_STATIC_LIBS__)
#pragma import on
#endif
#endif
#define NEAR
#endif
-#if defined(__STDC__) || defined(__cplusplus) || defined(_MSDOS) || defined(_WIN32) || defined(_MACINTOSH)
+#if defined(__STDC__) || defined(__cplusplus) || defined(_MSDOS) || defined(_WIN32) || defined(macintosh)
/* End-user programs may need this -- oh well */
#ifndef HAVE_STDARG_H
}
#endif
-#if defined(_MACINTOSH) && defined(__CFM68K__) && !defined(__USING_STATIC_LIBS__)
+#if defined(macintosh) && defined(__CFM68K__) && !defined(__USING_STATIC_LIBS__)
#pragma import reset
#endif
#define HAVE_STRERROR
#endif
-#ifdef _MACINTOSH
+#ifdef macintosh
#define sys_nerr 100
#endif
#if !defined(HAVE_STRERROR) && !defined(SYS_ERRLIST_DECLARED)
extern char const * const sys_errlist[];
-#ifndef _MACINTOSH
+#ifndef macintosh
extern const int sys_nerr;
#endif
#endif
/* based on @(#)vfprintf.c 5.2 (Berkeley) 6/27/88 */
#include <stdio.h>
-#if !defined(_MACINTOSH)
+#if !defined(macintosh)
#if defined(HAVE_STDARG_H) || defined(_MSDOS) || defined(_WIN32)
#include <stdarg.h>
#else
#define SIZEOF_LONG 4
#endif
-#if defined(_MACINTOSH)
+#if defined(macintosh)
#define NO_SYS_TYPES_H
#define NO_SYS_STAT_H
#endif
#define EOL "\r\n"
#endif
-#ifdef _MACINTOSH
+#ifdef macintosh
#define EOL "\r"
#endif