* prof_file.c, prof_int.h, prof_set.c: Remove support for non-SHARE_TREE_DATA
authorKen Raeburn <raeburn@mit.edu>
Fri, 15 Oct 2004 23:58:17 +0000 (23:58 +0000)
committerKen Raeburn <raeburn@mit.edu>
Fri, 15 Oct 2004 23:58:17 +0000 (23:58 +0000)
commitb66b6543375ed1900ed94ce6d976a18a57d369fc
treef6e4bea82bb73be7608e77d5cb2549c503dec455
parentc356acd79026012cb17b15ad37148a017455fa75
* prof_file.c, prof_int.h, prof_set.c: Remove support for non-SHARE_TREE_DATA
case.
* prof_int.h (struct _prf_data_t): Change filespec to a trailing char array.
Add a length field for the filespec.
(profile_make_prf_data): Declare.
(profile_lock_global, profile_unlock_global): Prototypes need argument lists.
* prof_file.c: Include stddef.h.
(scan_shared_trees_locked, scan_shared_trees_unlocked): New functions.
(r_access, rw_access): Now take const_profile_filespec_t arg.
(profile_make_prf_data): New function.
(profile_open_file): Scan trees at beginning and end.  Use
profile_make_prf_data to allocate and initialize storage.
(profile_dereference_data, profile_free_file_data): Scan trees.
(profile_ser_size, profile_ser_externalize): Filespec is never null.
* prof_set.c (rw_setup): Use profile_make_prf_data to allocate and initialize
storage.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16822 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_set.c