summaryrefslogtreecommitdiffstats
path: root/src/util/profile/ChangeLog
blob: e9917c6338504c14ab54dd4fac06c1f858d2347c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
Wed May 19 11:46:02 1999  Danilo Almeida  <dalmeida@mit.edu>

	* Makefile.in: Add windows build rules for putting header files in
		include dir.  Do cleanup of header for windows clean.

Mon May 10 15:27:19 1999  Danilo Almeida  <dalmeida@mit.edu>

	* Makefile.in: Do win32 build in subdir.

1999-04-14    <tytso@rsts-11.mit.edu>

	* prof_init.c (profile_abandon): New function which frees the
		profile handle and throwing away any changes that might
		have been made before they are flushed to disk.

	* prof_file.c (profile_close_file): Move functionality of freeing
		the profile file to the new function profile_free_file().

Mon Mar 15 16:03:34 1999  Tom Yu  <tlyu@mit.edu>

	* profile.hin: Fix GSS_DLLIMP.

Mon Mar  8 19:10:06 1999  Tom Yu  <tlyu@mit.edu>

	* profile.hin: Fix prototype of profile_flush() to use long rather
	than errcode_t to avoid breaking other stuff that includes
	profile.h.

Mon Mar  8 14:38:24 1999  Theodore Y. Ts'o  <tytso@mit.edu>

	* prof_tree.c (profile_node_iterator): Fix bug where it will loop
		endlessly when searching an empty section.

	* test_profile.c: Add code so that the "add" code will interpret
		"NULL" as calling profile_add_relation with a null pointer
		for the value.

Wed Mar  3 18:23:47 1999  Theodore Y. Ts'o  <tytso@mit.edu>

	* prof_file.c (profile_flush_file): On the Macintosh, fopen()
		doesn't set errno when fopen fails to open a file.  Work
		around this by setting errno to PROF_FAIL_OPEN in this case.

	* prof_err.et: Add new error code PROF_FAIL_OPEN.

Tue Mar  2 18:55:50 1999  Theodore Y. Ts'o  <tytso@mit.edu>

	* test_profile.c: Added ability to test profile set functions, and
		in a batch mode.
	
	* prof_init.c (profile_flush): Add new public function for
		flushing changes made to the profile.

	* prof_parse.c (profile_write_tree_file): Add official internal
		function for flushing out a profile tree to a FILE *.
	
	* configure.in, prof_file.c (rw_access): Add new function which
		checks to see whether we have read/write access, and
		emulate this for losing non-POSIX OS's.

	* prof_file.c (profile_flush_file): Add support for writing
 	 	modified profile file's.  Call profile_flush_file from
 	 	profile_close_file().

	* prof_tree.c: Add new functions profile_get_node_name,
 		profile_get_node_value, profile_find_node,
 		profile_remove_node, profile_set_relation_value,
 		profile_rename_node.  Rewrite profile_find_node_relation
 		and profile_find_node_subsection in terms of
 		profile_find_node.
	
	* prof_set.c, Makefile.in: Add a new file which exports the public
		interfaces for setting profile entries.

	* prof_get.c, prof_init.c, prof_int.h: Add the KRB5_DLLIMP and
 		KRB5_CALLCONV to all of the various profile routines so
 		they can be properly exported via a Windows DLL.

	* prof_int.h: Add definition for the flags in the profile
		structure.
	
	* prof_err.et: Add new error codes PROF_SET_SECTION_VALUE,
		PROF_EINVAL, PROF_READ_ONLY, and PROF_EXISTS.

Fri Feb 19 00:49:10 1999  Theodore Y. Ts'o  <tytso@mit.edu>

	* test_parse.c (main): Add a call to profile_verify_node so we can
		test the internal rep invariants.

	* prof_tree.c (profile_verify_node): Fix bug in
		profile_verify_node in the group_level test.  Also make
		profile_verify_node check the return code when it is
		recursively testing the child nodes.

Mon Jan 25 18:44:26 1999  Theodore Y. Ts'o  <tytso@mit.edu>

	* prof_tree.c (profile_node_iterator): Added comments indicating
		that profile_node_iterator, not being an exported
		interface, returns pointers into the parse tree, and that
		values should be strdup()'ed before returning them to a
		calling application.

	* prof_get.c (profile_iterator): Strdup the name and value strings
		before returning them to the calling application.

Thu Jan 21 15:21:18 1999  Theodore Y. Ts'o  <tytso@mit.edu>

	* profile.hin: Fix definition of PROTOYPE so that it works under
	 	C++.

1998-12-31  Theodore Ts'o  <tytso@rsts-11.mit.edu>

	* prof_tree.c (profile_node_iterator): Make sure the pointer to
		the iterator function is non-NULL before checking the
		magic value.

1998-12-15  Theodore Ts'o  <tytso@rsts-11.mit.edu>

	* prof_file.c (profile_open_file): Add ability to parse filenames
		that begin with "~/" and substitute it with "$HOME/".

1998-12-04  Theodore Ts'o  <tytso@rsts-11.mit.edu>

	* prof_get.c: Add new public profile_iterator functions for
		iterating over values found in the profile file.

1998-11-17  Theodore Ts'o  <tytso@rsts-11.mit.edu>

	* prof_get.c (profile_get_values): If there are no relations
		found, return PROF_NO_RELATION, instead of an empty list.

1998-11-13  Theodore Ts'o  <tytso@rsts-11.mit.edu>

	* Makefile.in: Set the myfulldir and mydir variables (which are
		relative to buildtop and thisconfigdir, respectively.)

	* configure.in: Build the test script prtest for doing regression
		test suites of the profile library.

	* prof_err.et (PROF_MAGIC_ITERATOR): Add a new error code for the
		magic number for the iterator structure.

	* prof_file.c (profile_update_file): Increment the update serial
		number when the profile file is re-read.

	* prof_tree.c (profile_make_node_final, profile_is_node_final):
		Add a new attribute for a node, which is whether or not
		the node is "final".  This controls whether or not the
		next profile file should be searched when looking up a key
		which matches the section named by the node.
		(profile_node_iterator_create, profile_node_iterator_free,
		profile_node_iterator): New functions which take a
		profile_t and returns all of the names or values for a
		particular search key.  This iterator follows the rules of
		doing multiple profile file lookups using the "final node"
		marker to stop searching subsequent profile files.
	
	* prof_parse.c (parse_std_line): Add support for marking top level
		sections, subsections, and individual nodes as final,
		using the '*' character.
		(dump_profile_to_file): Print finalized sections with the '*'
		character.

	* prof_get.c: Update routines to use the iterators provided by
		prof_tree.c.

	* prof_int.c: Add upd_serial member to the prf_file_t structure.
		Define the symbolic flags used by the profile node
		iterator.  Add function declarations for
		profile_make_node_final, profile_is_node_final,
		profile_node_iterator_create, profile_node_iterator_free,
		profile_node_iterator, and profile_get_value.

	* test_profile.c: Add the query1 command which tests
		profile_get_value. 

1998-11-05  Geoffrey King  <gjking@mit.edu>

	* prof_init.c (profile_init): Fix a problem whereby if the last
		pathname in a list of pathnames was nonexistent, an
		error would be returned that they were all nonexistent.

1998-11-03  Theodore Ts'o  <tytso@rsts-11.mit.edu>

	* Makefile.in: Added prof_get.c to the list of files to be compiled.
	
	* profile.hin: Added declarations for profile_free_list(),
		profile_get_relation_names(), and
		profile_get_subsection_names().  (These are new public
		interfaces to the profile library.)

	* prof_int.h: Removed the profile_section_t structure, which was
		used only by the now-defunct prof_section.c file.  Added
		the internal interfaces for the new public interfaces.
		Removed unused declarations which were never
		implemented(profile_get, profile_update).

	* prof_init.c: Moved all of the profile querying functions
		(profile_get_values(), profile_get_value(), etc.) to
		prof_get.c.  In the process, removed the really
		bletcherous (and badly implemented)
		profile_get_first_values(), which did nothing like what
		the named implied.  Also added to prof_get.c new functions
		profile_get_subsection_names() and
		profile_get_relation_names(). 
	  	(profile_ser_internalize): Rewrote error handling to be
		clearer, and removed a bug where memory was not freed
		correctly in an error case.  
		(profile_init): If a list of pathnames is passed in,
		profile_init will now try to open all of them, now that
		we've defined query fallback semantics in prof_get.c

	* prof_parse.c: Fix lint warning.

	* prof_tree.c (profile_find_node_relation,
		profile_find_node_subsection): Allow the returned value or
		subsection field to be NULL (in case the caller isn't
		interested in getting the returned value or subsection,
		and only cares about getting the name).
		(profile_delete_node_relation,
		profile_delete_interior_node_relation): Removed these
		functions and replaced it with profile_remove_node(),
		which takes a boolean argument section_flag. 
		(profile_find_node_name): Removed this function.  (This
		was a Cygnus/Fusion special used by the now removed
		profile_find_first_values() function.)

	* test_profile.c: Added commands to test the new
		profile_get_subsection_names() and
		profile_get_relation_names() interfaces.

1998-08-06  Theodore Ts'o  <tytso@rsts-11.mit.edu>

	* prof_tree.c (profile_delete_node_relation): Fix bug where
		deleting a node would corrupt the linked list.
		(profile_add_node): Fix another linked list corruption
		problem where an insertion into the middle of the linked
		list didn't update a previous link.  [krb5-libs/615]

1998-07-12  Sam Hartman  <hartmans@fundsxpress.com>

	* Makefile.in: Add dependency on -lcom_err

Mon Mar  2 16:19:58 1998  Ezra Peisach  <epeisach@mit.edu>

	* Makefile.in: Integrate in the krb5 build tree rules.
	(use CC_LINK, etc).

	* configure.in: Add AC_BUILD_PROGRAM for test programs.

Wed Feb 18 16:33:38 1998  Tom Yu  <tlyu@mit.edu>

	* Makefile.in: Remove trailing slash from thisconfigdir.  Fix up
	BUILDTOP for new conventions.

Wed Jan 28 17:58:10 1998  Theodore Ts'o  <tytso@rsts-11.mit.edu>

	* configure.in, Makefile.in: Remove CopyHeader from
		configure.in, and move functionality to Makefile.in

	* Makefile.in: Define BUILDTOP and thisconfigdir in the Makefile

Fri Jan 23 20:55:06 1998  Theodore Ts'o  <tytso@rsts-11.mit.edu>

	* prof_parse.c (parse_std_line, parse_quoted_string,
 	 	need_double_quotes, output_quoted_string, dump_profile,
 	 	dump_profile_to_file): Vastly improved the profile
	 	parsing; whitespace at the end of lines are now ignored.
		Added quoted string parsing, complete with backquote
	 	processing.  Strings which need to be quoted are properly
	 	quoted on output.

Sat Feb 22 18:33:17 1997  Richard Basch  <basch@lehman.com>

	* Makefile.in: Move list file construction to win-post.in

Tue Feb 18 00:14:13 1997  Richard Basch  <basch@lehman.com>

	* profile.hin prof_int.h prof_init.c:
		Export profile_get_values() [krb4 dll requires it]

Sat Feb 15 01:58:19 1997  Richard Basch  <basch@lehman.com>

	* Makefile.in (all-windows): Fixed win16/win32 build
		after libhack merge broke it...

Fri Feb  7 18:56:57 1997  Richard Basch  <basch@lehman.com>

	* prof_int.h:
		Include com_err.h rather than redefining errcode_t
		Structure element "magic" should not be errcode_t

Wed Feb  5 20:18:33 1997  Richard Basch  <basch@lehman.com>

	* profile.hin: Do not process the contents of profile.h
		(or the profile.hin subset) more than once.

	* test_parse.c:
		Do not include "com_err.h" (conflicting errcode_t definition)

	* Makefile.in:
		Fixed typo (all-max -> all-mac)
		Inconsistent colon usage; all-windows needed :: not :

Thu Jan  2 17:36:44 1997  Tom Yu  <tlyu@mit.edu>

	* Makefile.in:
	* configure.in: Update to new library build procedure.

Mon Nov  4 17:04:51 1996  Theodore Y. Ts'o  <tytso@mit.edu>

	* prof_parse.c (parse_std_line): Accept either ';' or '#' on the
		first line of a string as a comment character.

Fri Jul 12 20:28:49 1996  Theodore Y. Ts'o  <tytso@mit.edu>

	* Makefile.in (CFLAGS): On Windows builds, add -DHAVE_STDLIB_H

Mon Jun 24 09:37:26 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>

	* prof_file.c, prof_init.c, prof_parse.c, prof_section.c,
		prof_tree.c, test_parse.c, test_profile.c, configure.in:
		Only include stdlib.h if it's available.

Thu Jun 13 22:13:51 1996  Tom Yu  <tlyu@voltage-multiplier.mit.edu>

	* configure.in: remove ref to ET_RULES

Mon Jun 10 17:35:02 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>

	* test_profile.c: Add usage message if not enough arguments.

	* prof_parse.c (dump_profile_to_file, dump_profile): Dump the
 		profile using the correct line terminator for Windows,
 		Macintosh, etc.

	* prof_parse.c:
	* prof_file.c: Change _WINDOWS to _MSDOS, and add check for _WIN32.

	* prof_int.h: Add size #defines for _WIN32.  Handle prototypes
		correctly for _WIN32.

Fri Feb 16 15:18:17 1996    <tytso@rsts-11.mit.edu>

	* prof_int.h: Added comment to profile state structure

Wed Feb 14 16:43:48 1996    <tytso@rsts-11.mit.edu>

	* prof_parse.c (parse_std_line): Make parsing more flexible, so we
		don't barf over lack of spaces around the equals sign.

Tue Dec 12 19:18:14 1995  Mark Eichin  <eichin@cygnus.com>

	* krb5.conf: use host:portnum in example files, not host,portnum.

Fri Jan  5 09:04:20 1996  Ezra Peisach  <epeisach@kangaroo.mit.edu>

	* profile.hin: Add profile_init_path prototype

Thu Dec 21 18:20:46 1995  Theodore Y. Ts'o  <tytso@dcl>

	* configure.in: Check for the stat call, since profile_update_file
		needs to know whether it exists.  (It doesn't on the Mac.)

	* prof_file.c (profile_update_file): Change use of HAS_STAT to
		HAVE_STAT, to confirm with autoconf test.  If the stat()
		call does not exist, assume that our in-core memory image
		is correct, and never re-read the profile file unless we
		explicitly close it.

Fri Oct  6 22:07:01 1995  Theodore Y. Ts'o  <tytso@dcl>

	* Makefile.in: Remove ##DOS!include of config/windows.in.
		config/windows.in is now included by wconfig.

Mon Oct  2 16:39:49 1995  Ezra Peisach  <epeisach@kangaroo.mit.edu>

	* prof_init.c (profile_init_path): Add const declarations.

Tue Sep 26 20:00:28 1995  Mark Eichin  <eichin@cygnus.com>

	* prof_init.c (profile_init_path): takes a single string entry
	that has pathnames seperated by colons, and splits it into
	file names for profile_init. No provision for quoting colons in
	pathnames, but shells don't solve that either.

Tue Sep 26 19:23:59 1995  Mark Eichin  <eichin@cygnus.com>

	* prof_init.c (profile_init): handle multiple input files by
	grabbing the first one that doesn't return ENOENT.

Mon Sep 25 16:42:13 1995  Theodore Y. Ts'o  <tytso@dcl>

	* Makefile.in: Removed "foo:: foo-$(WHAT)" lines from the
		Makefile. 

Fri Sep 22 19:51:44 1995  Theodore Y. Ts'o  <tytso@dcl>

	* prof_int.h: added SIZEOF defines for the PC, and added missing
		prototype for profile_find_node_name()

	* prof_init.c (profile_get_first_values): Remove unused variables.

Mon Sep 11 15:30:52 1995  Ezra Peisach  <epeisach@kangaroo.mit.edu>

	* prof_parse.c (dump_profile_to_file): Convert C+ comment to
		standard C one.

Tue Aug 29 14:23:16 EDT 1995	Paul Park	(pjpark@mit.edu)
	* configure.in - Add checks for size of short, int and long.
	* prof_init.c - Add routines to serialize profile context.

Tue Aug 15 17:17:40 1995  Ezra Peisach  <epeisach@kangaroo.mit.edu>

	* prof_parse.c (strip_line,parse_line): Declare as static.

	* prof_int.h: Add missing prototypes

Thu Jul  6 10:05:47 1995  Ezra Peisach  <epeisach@kangaroo.mit.edu>

	* prof_file.c: prof_int.h must be included after stdio.h

Wed July 5 15:52:31 1995  James Mattly  <mattly@fusion.com>
	* prof_file.c added conditionals for sys/*.h include files
	* prof_int.h added _MACINTOSH conditional
	* test_parse.c added _MACINTOSH conditional

Fri Jun  9 19:00:19 1995    <tytso@rsx-11.mit.edu>

	* configure.in: Remove standardized set of autoconf macros, which
		are now handled by CONFIG_RULES.

Thu Jun  8 17:56:34 1995    <tytso@rsx-11.mit.edu>

	* Makefile.in (install): Add install target.

Fri May 26 20:07:13 1995  Theodore Y. Ts'o  (tytso@dcl)

	* configure.in, Makefile.in: Add support for building shared libraries.

Sat May  6 17:21:59 1995  Ezra Peisach  <epeisach@kangaroo.mit.edu>

	* test_parse.c: Include prof_int.h - this program relies on
		internal functions.

Fri May  5 00:02:41 1995  Theodore Y. Ts'o  (tytso@dcl)

	* prof_init.c (profile_get_values): Return PROF_NO_PROFILE if the
		passed-in profile variable is NULL (instead of core dumping).
	
	* prof_err.et (PROF_NO_PROFILE): Defined new error code.

Thu May  4 23:57:56 1995  Theodore Y. Ts'o  (tytso@dcl)

	* prof_tree.c (profile_free_node): Copy child->next to a scratch
		pointer before freeing the node; otherwise we have to
		dereference a freed object.

Fri Apr 28 15:54:40 1995  Theodore Y. Ts'o  <tytso@dcl>

	* prof_parse.c (strip_line): Don't try to strip an empty line.
		This causes memory reference error.

Thu Apr 27 20:26:48 1995    <tytso@rsx-11.mit.edu>

	* Makefile.in (clean-unix): Remove profile.h and test_profile

Thu Apr 27 15:36:27 1995  Mark Eichin  <eichin@cygnus.com>

	* test_parse.c (main): can't make function declarations local to
	functions under SunOS cc. (dump_profile) Also needs to be protected.

Thu Apr 27 10:43:24 1995 Keith Vetter (keithv@fusion.com)

	* Makefile.in: made to work on the PC.
	* profile.hin, prof_int.h: use _MSDOS instead of _WINDOWS 
	   so we can compile DOS test programs.
	* *.c: Don't need to include file unistd.h.
	* test_*.c: Made to work under DOS--used stubs for the com_err stuff.
	* prof_parse.c: Turned a 2k automatic array into a malloc'ed block
	   because windows dll's shouldn't use up a lot of stack space.

Wed Apr 26 09:54:18 1995  Ezra Peisach  <epeisach@kangaroo.mit.edu>

	* profile.hin: Only define PROTOTYPE if it is undefined.

Tue Apr 25 17:28:48 1995  Ezra Peisach  <epeisach@kangaroo.mit.edu>

	* configure.in: Add AC_CONST for platforms that do not support const.

Mon Apr 24 17:05:27 1995  Ezra Peisach  <epeisach@kangaroo.mit.edu>

	* Makefile.in (all): Use ARADD to facilitate incremental
	rebuilding of library.

	* configure.in: Add AC_PROG_ARCHIVE_ADD

	* prof_init.c (profile_get_values): If profile is null return
	NULL.

Sat Apr 22 01:25:58 1995  Theodore Y. Ts'o  (tytso@dcl)

	* Makefile.in: Rename profile.h.in to profile.hin to, make things
		easier for systems with an 8.3 filesystem.