summaryrefslogtreecommitdiffstats
path: root/src/util
Commit message (Collapse)AuthorAgeFilesLines
...
* This change fixes the problem in the ss directory. It probably won'tKen Raeburn2003-06-272-19/+20
| | | | | | | | | | | | | | | | | | get into our 1.3 release, but perhaps in a patch release afterwards. I'll look and see where else things are getting needlessly rebuilt.... * Makefile.in (HDRS): Remove mit-sipb-copyright.h. (includes): Depend on copied version of the headers, not local versions. Don't do any copying; instead, move the copying commands to new targets for each header. ($(HDRDIR)/timestamp): New target; create the directory here if needed. (clean-unix): Remove the timestamp file. ticket: 1631 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15654 dc483132-0cff-0310-8789-dd5450dbe970
* * error_table.h, et_c.awk, et_c.pl, et_h.awk, et_c.awk: Removed Mac OS ↵Alexandra Ellwood2003-06-121-0/+5
| | | | | | support because it prevents darwin builds from getting com error strings via the initialize_*_error_table function git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15613 dc483132-0cff-0310-8789-dd5450dbe970
* Removed Mac OS 9 support because it prevents darwin builds from getting com ↵Alexandra Ellwood2003-06-125-31/+7
| | | | | | error strings via the initialize_*_error_table function git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15612 dc483132-0cff-0310-8789-dd5450dbe970
* Big step towards integrating libkrb524 into libkrb5:Ken Raeburn2003-05-242-2/+4
| | | | | | | | | | | | | | | | | | | | | | | Move libkrb524 code, including error table, into libkrb5. Now libkrb5 initialization pulls in the krb524 error table, so krb524_init_ets is gone; all calls deleted. Move krb4 life/time conversion functions into libkrb5 under new names, using accessor hooks to get at them from libkrb4. Move declarations from krb524.h into krb5.h, k5-int.h, or krb524d.h; the last doesn't get copied into the include directory. Changed inclusions of krb524.h to the appropriate files, if any were needed. Rebuilt dependencies in Makefiles. These changes are likely to break the Windows build; I'll look into that soon. ticket: 1491 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15491 dc483132-0cff-0310-8789-dd5450dbe970
* make-depend updatesKen Raeburn2003-05-241-8/+8
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15490 dc483132-0cff-0310-8789-dd5450dbe970
* * depgen.sed: Put print command on separate lines from substitution commands,Ken Raeburn2003-05-182-3/+20
| | | | | | | | instead of using s///p form. ticket: 1364 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15458 dc483132-0cff-0310-8789-dd5450dbe970
* * mkrel: Remote autom4te.cache filesTom Yu2003-05-152-0/+5
| | | | | | | | ticket: 1492 target_version: 1.3 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15449 dc483132-0cff-0310-8789-dd5450dbe970
* Needed for com_err library testingKen Raeburn2003-05-072-0/+8
| | | | | | | | * test_et.c [HAVE_SYS_ERRLIST]: Do declare sys_nerr. ticket: 1440 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15401 dc483132-0cff-0310-8789-dd5450dbe970
* * prof_file.c (r_access): Static function. Only include ifEzra Peisach2003-04-282-0/+7
| | | | | | SHARE_TREE_DATA defined. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15376 dc483132-0cff-0310-8789-dd5450dbe970
* * reconf: Restore support for 2.52; reject older versionsKen Raeburn2003-04-252-5/+22
| | | | | | | ticket: 1242 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15371 dc483132-0cff-0310-8789-dd5450dbe970
* errno should never be explicitly declaredKen Raeburn2003-04-245-8/+13
| | | | | | | | | | | | Remove explicit declarations of errno; include errno.h as needed. (Also, errmsg in krb4, and malloc in compile_et.) ticket: new target_version: 1.3 tags: pullup status: resolved git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15368 dc483132-0cff-0310-8789-dd5450dbe970
* * reconf: Drop support for 2.52 and earlierKen Raeburn2003-04-242-27/+9
| | | | | | | ticket: 1242 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15366 dc483132-0cff-0310-8789-dd5450dbe970
* back out requirement of autoconf-2.53Tom Yu2003-04-102-0/+9
| | | | | | | | | | | | | Back out requirement of autoconf-2.53, as MacOS X doesn't have it. To compensate, place warning in util/reconf if autoconf-2.52 is discovered. ticket: new status: open tags: pullup target_version: 1.3 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15339 dc483132-0cff-0310-8789-dd5450dbe970
* don't install in-tree libdbTom Yu2003-04-022-1/+5
| | | | | | | | | | | | | Don't install the in-tree libdb. This requires that libkdb, etc. explicitly pull in the object files of the in-tree libdb if not using the system libdb. ticket: new status: open target_version: 1.3 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15320 dc483132-0cff-0310-8789-dd5450dbe970
* Add missing parenSam Hartman2003-03-061-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15263 dc483132-0cff-0310-8789-dd5450dbe970
* * profile.hin, prof_file.c (profile_flush_file_data): Stop copying the ↵Alexandra Ellwood2003-03-066-104/+107
| | | | | | resource fork. We stopped writing resources to the krb5 configuration in KfM 4.5.x. In KfM 5.0 will no longer read preferences from the resource fork so we can destroy it on copy. * prof-int.h: No longer include MoreFiles. Removed framework style includes for Kerberos headers. * prof_FSp_glue.c, prof_init.c, profile.hin: Moved Mac FSSpec-based functions into a separate file so they will only be built with KfM. These functions will be exported but not in the headers because they are deprecated git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15239 dc483132-0cff-0310-8789-dd5450dbe970
* * com_err.c, com_err.h, error_message.c, et_c.awk, et_h.awk: Removed Mac OS ↵Alexandra Ellwood2003-03-066-139/+17
| | | | | | 9-specific code. * et_h.awk: define compat macro for init_foo_err_table so that it gets defined to nothing on the Mac git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15238 dc483132-0cff-0310-8789-dd5450dbe970
* Remove ADD_DEF and uses thereof, and move the appropriate symbols toTom Yu2003-03-032-1/+5
| | | | | | | | | | | AC_DEFINE'ed things or to Makefile.in files. Remove explicit settings of CPPFLAGS. These allow CPPFLAGS to be a user parameter. Also, add CFLAGS to the CC_LINK variables, so they can control usage of the compiler to link programs. ticket: 677 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15214 dc483132-0cff-0310-8789-dd5450dbe970
* Use com_err_deplib rather than an explicit path so we do not have ourSam Hartman2003-03-022-2/+2
| | | | | | | shared libraries depend at a make level on com_err if we use the system com_err library. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15212 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (std_rqs.c): Depend on ct_c.sed and ct_c.awkKen Raeburn2003-02-062-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15157 dc483132-0cff-0310-8789-dd5450dbe970
* * mkrel: Exclude .rconf filesTom Yu2003-02-052-1/+5
| | | | | | ticket: 771 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15154 dc483132-0cff-0310-8789-dd5450dbe970
* * parse.c: Include errno.h for declaration of errnoEzra Peisach2003-01-242-1/+5
| | | | | | | glibc 2.3.1 declares errno as a macro - so must include header file before use. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15133 dc483132-0cff-0310-8789-dd5450dbe970
* * prof_file.c (profile_flush_file_data): [_WIN32]: Don't call syncKen Raeburn2003-01-172-0/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15126 dc483132-0cff-0310-8789-dd5450dbe970
* * profile.pbexp: New fileKen Raeburn2003-01-132-0/+35
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15119 dc483132-0cff-0310-8789-dd5450dbe970
* * prof_int.h (SHARE_TREE_DATA): Define only on MacKen Raeburn2003-01-132-2/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15118 dc483132-0cff-0310-8789-dd5450dbe970
* Search for ar, ranlib, install in KRB5_BUILD_LIBRARY* macros rather thanKen Raeburn2003-01-108-10/+11
| | | | | | explicitly in directories using those macros. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15111 dc483132-0cff-0310-8789-dd5450dbe970
* Use passwd entry for ~ expansion if $HOME isn't set.Ken Raeburn2003-01-103-20/+43
| | | | | | | | | Also fix a minor logic bug in checking file access. ticket: 1237 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15110 dc483132-0cff-0310-8789-dd5450dbe970
* Use markers in Makefile.in rather than rules in configure.in to indicate whenKen Raeburn2003-01-1018-13/+54
| | | | | | | | to use the lib.in and libobj.in makefile fragments. Pushing this per-directory info into Makefile.in will make it a little easier to work on combining configure scripts for multiple directories. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15107 dc483132-0cff-0310-8789-dd5450dbe970
* Try to do atomic file swap on UNIX when updating profileKen Raeburn2003-01-092-3/+34
| | | | | | | | | | * prof_file.c (make_hard_link): New function. (profile_flush_file_data): Use it to attempt a safe profile file replacement. ticket: 1301 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15101 dc483132-0cff-0310-8789-dd5450dbe970
* Support \r as additional line separator on Mac OS XKen Raeburn2003-01-093-3/+60
| | | | | | | | | | | | * prof_parse.c (profile_parse_file) [PROFILE_SUPPORTS_FOREIGN_NEWLINES]: Look for \r and treat it as a line break. * prof_int.h: Don't include prof_err.h. (PROFILE_SUPPORTS_FOREIGN_NEWLINES) [macintosh]: Define new macro. ticket: 1237 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15100 dc483132-0cff-0310-8789-dd5450dbe970
* Only system headers should declare errnoSam Hartman2003-01-058-6/+25
| | | | | | | | | | | | | Many parts of krb5 declare errno in source files using extern int errno. This has not been needed in ANSI C for a long time, and actively breaks modern versions of glibc. So these declarations are removed and errno.h included where necessary. Ticket: new Component: krb5-build git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15082 dc483132-0cff-0310-8789-dd5450dbe970
* blahSam Hartman2003-01-011-0/+645
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15077 dc483132-0cff-0310-8789-dd5450dbe970
* Merge some Mac-specific changes from meeroh's branch:Ken Raeburn2002-12-317-115/+176
| | | | | | | | | | | | | | | | | | | | | | | | * 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
* Replace dependencies on generated krb524 and krb4 headers withTom Yu2002-12-232-0/+10
| | | | | | | | | variables, to allow correct behavior when krb4 is disabled. ticket: 1276 owner: tlyu git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15070 dc483132-0cff-0310-8789-dd5450dbe970
* * prof_file.c: Cast return from prof_mutex_lock andEzra Peisach2002-12-232-7/+13
| | | | | | | prof_mutex_unlock to void to avoid warnings of code with no side effects. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15066 dc483132-0cff-0310-8789-dd5450dbe970
* * prof_int.h: Define USE_PTHREADS and include pthread.h if on MacOS X.Ken Raeburn2002-12-213-3/+43
| | | | | | | | | | | | | | (struct global_shared_profile_data) [USE_PTHREADS]: Add a mutex. (g_shared_trees_mutex) [USE_PTHREADS]: New macro, references the global mutex. (prof_mutex_lock, prof_mutex_unlock) [SHARE_TREE_DATA]: Define to use pthread functions or do nothing. (profile_free_file_data): Delete declaration. (profile_dereference_data): Declare. * prof_file.c (profile_free_file_data): Now static. (profile_open_file, profile_dereference_data) [SHARE_TREE_DATA]: Grab lock while manipulating global data list or its contents. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15061 dc483132-0cff-0310-8789-dd5450dbe970
* Merge in data tree sharing, minus locking support, plus a bugfix or twoKen Raeburn2002-12-204-9/+152
| | | | | | | | | | | | | | | | | | | | | | | | | | * prof_int.h (SHARE_TREE_DATA): Define. (struct _prf_file_t) [SHARE_TREE_DATA]: Make data field a pointer rather than an array. (struct global_shared_profile_data): New type, for profile library global data. (krb5int_profile_shared_data): Declare new variable. (g_shared_trees): New macro, refers to a field in the global data. (PROFILE_FILE_SHARED): New flag macro. * prof_file.c (krb5int_profile_shared_data): Initialize here. (profile_open_file) [SHARE_TREE_DATA]: Scan g_shared_trees for an entry with the same filename. If found, increment its reference count, update it, and return it; otherwise, allocate a new one, and add it to the list after filling it in. (profile_dereference_data): New function. Decrement reference count if SHARE_TREE_DATA, and free the data if appropriate. (profile_free_file): Call profile_dereference_data. (profile_free_file_data) [SHARE_TREE_DATA]: If the SHARED flag is set, remove it from the g_shared_trees list before freeing. Free up the allocated space. * prof_set.c (rw_setup) [SHARE_TREE_DATA]: If the object's data is shared, copy it into a new data structure not in the global shared list, and dereference the old one. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15060 dc483132-0cff-0310-8789-dd5450dbe970
* update dependenciesTom Yu2002-12-121-8/+8
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15047 dc483132-0cff-0310-8789-dd5450dbe970
* Fix depend rules to keep state about whether verification of variousTom Yu2002-12-122-1/+6
| | | | | | | | things succeeded. Change some double colons to single colons. Add a new depend-dependencies target to allow Makefile.in to specify things that must be built for depend to work. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15045 dc483132-0cff-0310-8789-dd5450dbe970
* * et_h.awk: It's "const struct error_table et_" in the c file, soTom Yu2002-12-122-1/+6
| | | | | | it's now const here too. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15043 dc483132-0cff-0310-8789-dd5450dbe970
* Checkpoint first step of merge.Ken Raeburn2002-12-078-101/+142
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Moved per-file data into a separate object from the profile handle. Dropped some old MacOS 9 code. * prof_int.h: Include Mac OS X versions of header files if appropriate. Only include prof_err.h if profile.h doesn't define ERROR_TABLE_BASE_prof. (struct _prf_data_t): Move most of contents of _prf_file_t here. Add reference count. (prf_data_t): New typedef. (struct _prf_file_t): Include an array of one _prf_data_t structure. * prof_file.c (profile_open_file): Fill in "data" field. Drop some old Mac specific code. (profile_flush_file_data): Renamed from profile_flush_file, now takes prf_data_t argument. (profile_flush_file_data): Likewise. (profile_free_file): Now calls profile_free_file_data. (profile_free_file_data): New function, with most of old profile_free_file code. * prof_init.c (profile_init_path): Removed old Mac version. (profile_ser_size, profile_ser_externalize): Get file data from new "data" field. * prof_set.c (rw_setup, profile_update_relation, profile_clear_relation, profile_rename_section, profile_add_relation): Likewise. * prof_tree.c (profile_node_iterator): Likewise. * test_profile.c (do_batchmode): Likewise. * prof_int.h (profile_flush_file): Now a macro. * prof_err.et (PROF_MAGIC_FILE_DATA): New error code value. ticket: 1237 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15037 dc483132-0cff-0310-8789-dd5450dbe970
* * prof_get.c (conf_yes, conf_no): Entries now point to const.Ken Raeburn2002-12-072-4/+10
| | | | | | (profile_parse_boolean): Updated type of 'p' correspondingly. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15036 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Quote the argument to AC_CHECK_HEADER. AutoconfEzra Peisach2002-12-062-1/+6
| | | | | | 2.57 was having problems. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15032 dc483132-0cff-0310-8789-dd5450dbe970
* * depfix.sed: Remove tcl-specific headers from dependencies.Tom Yu2002-11-272-2/+10
| | | | | | Delete now obsolete comment about gcc-specific directories. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15017 dc483132-0cff-0310-8789-dd5450dbe970
* update dependenciesTom Yu2002-11-271-1/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15016 dc483132-0cff-0310-8789-dd5450dbe970
* Invoke autoconf/autoreconf with the option --localdir or --include dependingEzra Peisach2002-11-142-2/+21
| | | | | | | on if pre/post autoconf 2.54. In 2.55 --localdir has been removed and replaced with --include which was introduced in 2.53. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14996 dc483132-0cff-0310-8789-dd5450dbe970
* Implement an install-headers target to install public headers into KRB5_INCDIR;Sam Hartman2002-10-074-0/+13
| | | | | | | | probably called by setting DESTDIR. ticket: 1208 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14912 dc483132-0cff-0310-8789-dd5450dbe970
* Move test_* from all to check targetSam Hartman2002-10-032-1/+8
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14909 dc483132-0cff-0310-8789-dd5450dbe970
* * depgen.sed: Solaris sed doesn't like '\(^.*$\)'; replace it withTom Yu2002-09-272-1/+6
| | | | | | '^\(.*\)$'. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14905 dc483132-0cff-0310-8789-dd5450dbe970
* Work out pathname for gcc fixincludes headers via "-print-libgcc-file-name" andKen Raeburn2002-09-143-5/+23
| | | | | | | | | | substitutions in depgen.sed at "make depend" time, and emit patterns into depfix2.sed to strip them out of dependencies, instead of hard-coding pathnames for Athena gcc installations we know about in depfix.sed. Verify that gcc is being used, before trying to rebuild dependencies. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14861 dc483132-0cff-0310-8789-dd5450dbe970