Allow profile library caller to write the modified data to a different
authorKen Raeburn <raeburn@mit.edu>
Mon, 18 Oct 2004 23:14:51 +0000 (23:14 +0000)
committerKen Raeburn <raeburn@mit.edu>
Mon, 18 Oct 2004 23:14:51 +0000 (23:14 +0000)
commitfb8314743c17c15ebcfcebee3565069079a819fc
tree55f0b504462f595df9414882a9140036b361bbf2
parent32e9f9545401a17df3443a8e2969d6f84b29e74a
Allow profile library caller to write the modified data to a different
file than was originally read.

* prof_file.c (write_data_to_file): New function, split out from
profile_flush_file_data.  Add argument can_create indicating whether the old
file should already exist or not.
(profile_flush_file_data): Call it.
(profile_flush_file_data_to_file): New function.
* prof_int.h (profile_flush_file_data_to_file): Declare it.
(profile_flush_file_to_file): New macro.
* prof_init.c (profile_flush_to_file): New function.
* profile.hin (profile_flush_to_file): Declare.
* profile.swg (profile_flush_to_file): Declare.
* profile_tcl.c: Regenerated.
* prof_test1: Use profile_flush_to_file instead of profile_flush, and reload
from the new filename.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16825 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_test1
src/util/profile/profile.hin
src/util/profile/profile.swg
src/util/profile/profile_tcl.c