diff options
| author | Keith Vetter <keithv@fusion.com> | 1995-07-06 01:39:47 +0000 |
|---|---|---|
| committer | Keith Vetter <keithv@fusion.com> | 1995-07-06 01:39:47 +0000 |
| commit | ad04b0224f8ba5209ca25ad3d94a24d0cf3dae06 (patch) | |
| tree | 6ac5e2e057c1c05f099d6c4eedefc732a6aaa95b /src/include/krb5 | |
| parent | c2e72b506ff5ea2b92f026be2bfaff1851c87432 (diff) | |
Changes for Macintosh implementation
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6229 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/include/krb5')
| -rw-r--r-- | src/include/krb5/ChangeLog | 3 | ||||
| -rw-r--r-- | src/include/krb5/k5-config.h | 50 | ||||
| -rw-r--r-- | src/include/krb5/macsock.h | 4 |
3 files changed, 56 insertions, 1 deletions
diff --git a/src/include/krb5/ChangeLog b/src/include/krb5/ChangeLog index c585d6e6b..ac9722541 100644 --- a/src/include/krb5/ChangeLog +++ b/src/include/krb5/ChangeLog @@ -1,3 +1,6 @@ +Wed July 5 15:52:31 1995 James Mattly <mattly@fusion.com> + * k5-config.h Added _MACINTOSH for macintosh build conditions + * macsock.h made definition of PROTOTYPE conditional Fri Jun 30 16:13:41 EDT 1995 Paul Park (pjpark@mit.edu) * kdb.h - Add kdb dispatch table and set routine under KDB5_DISPATCH. diff --git a/src/include/krb5/k5-config.h b/src/include/krb5/k5-config.h index 403979622..948b030c2 100644 --- a/src/include/krb5/k5-config.h +++ b/src/include/krb5/k5-config.h @@ -159,6 +159,55 @@ typedef unsigned char u_char; #else /* Rest of include file is for non-Microloss-Windows */ +#if defined(_MACINTOSH) + +#ifdef NEED_LOWLEVEL_IO +#include <fcntl.h> +#endif + +/* there is no <stat.h> for mpw */ +typedef unsigned long mode_t; +typedef unsigned long ino_t; +typedef unsigned long dev_t; +typedef short nlink_t; +typedef unsigned long uid_t; +typedef unsigned long gid_t; +typedef long off_t; +struct stat +{ + mode_t st_mode; /* File mode; see #define's below */ + ino_t st_ino; /* File serial number */ + dev_t st_dev; /* ID of device containing this file */ + nlink_t st_nlink; /* Number of links */ + uid_t st_uid; /* User ID of the file's owner */ + gid_t st_gid; /* Group ID of the file's group */ + dev_t st_rdev; /* Device type */ + off_t st_size; /* File size in bytes */ + unsigned long st_atime; /* Time of last access */ + unsigned long st_mtime; /* Time of last data modification */ + unsigned long st_ctime; /* Time of last file status change */ + long st_blksize; /* Optimal blocksize */ + long st_blocks; /* blocks allocated for file */ +}; + +int stat(const char *path, struct stat *buf); +int fstat(int fildes, struct stat *buf); + +#define EFBIG 1000 +#define OLD_CONFIG_FILES +#define PROF_NO_SECTION 1 +#define PROF_NO_RELATION 2 +#define KRB5_REALM_CANT_RESOLVE 1 + +#define NOFCHMOD 1 +#define NOCHMOD 1 +#define _MACSOCKAPI_ + +#define THREEPARAMOPEN(x,y,z) open(x,y) +#else /* _MACINTOSH */ +#define THREEPARAMOPEN(x,y,z) open(x,y,z) +#endif /* _MACINTOSH */ + #ifndef KRB5_AUTOCONF__ #define KRB5_AUTOCONF__ #include "autoconf.h" @@ -239,5 +288,4 @@ typedef unsigned char u_char; #endif #endif /* _MSDOS */ - #endif /* KRB5_CONFIG__ */ diff --git a/src/include/krb5/macsock.h b/src/include/krb5/macsock.h index dc0d6619f..5d7d0b2b4 100644 --- a/src/include/krb5/macsock.h +++ b/src/include/krb5/macsock.h @@ -24,10 +24,14 @@ #define const #define volatile #define signed +#ifndef PROTOTYPE #define PROTOTYPE(p) () +#endif #else +#ifndef PROTOTYPE #define PROTOTYPE(p) p #endif +#endif #define WORD short #define LOBYTE(x) ((x) & 0xFF) |
