Merge some Mac-specific changes from meeroh's branch:
authorKen Raeburn <raeburn@mit.edu>
Tue, 31 Dec 2002 09:21:12 +0000 (09:21 +0000)
committerKen Raeburn <raeburn@mit.edu>
Tue, 31 Dec 2002 09:21:12 +0000 (09:21 +0000)
commit279dfdc141bb3fc23c8fe25ea133c021b3a586ac
treed1945398b4cdb2809664d5aa527cfe5059c5bb7f
parente33427c7b4b006b206719bc9256c55d20860d1ec
Merge some Mac-specific changes from meeroh's branch:
* profile.hin: Don't test MACINTOSH any more.  On Mac OS X, include
TargetConditionals.h, set some pragmas, define COPY_RESOURCE_FORK, and error
out if TARGET_RT_MAC_CFM is defined; don't set the old m68k CFM pragmas.
Always use PROFILE_USES_PATHS code, don't test or define it.
(FSp_profile_init, FSp_profile_init_path): Declare, on Mac OS X.
* prof_int.h (NO_SYS_TYPES_H, NO_SYS_STAT_H) [macintosh]: Don't define these.
* prof_file.c: Always inclued sys/types.h and sys/stat.h.
(GetMacOSTempFilespec): Deleted.
(profile_flush_file_data) [COPY_RESOURCE_FORK]: Copy Mac resource fork from old
file to new before renaming.
(rw_access, profile_update_file_data, profile_flush_file_data,
profile_free_file_data): Assume PROFILE_USES_PATHS, don't test.
* prof_init.c (profile_ser_size, profile_ser_externalize,
profile_ser_internalize): Likewise.
(FSp_profile_init, FSp_profile_init_path): Define, on MacOS X.
* profile.exp: Add FSp_* functions.

* prof_file.c (r_access): New function.
(profile_open_file): Use it.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15073 dc483132-0cff-0310-8789-dd5450dbe970
src/util/profile/ChangeLog
src/util/profile/prof_file.c
src/util/profile/prof_init.c
src/util/profile/prof_int.h
src/util/profile/prof_tree.c
src/util/profile/profile.exp
src/util/profile/profile.hin