summaryrefslogtreecommitdiffstats
path: root/src/util
Commit message (Collapse)AuthorAgeFilesLines
...
* copyright updateKen Raeburn2006-01-261-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17620 dc483132-0cff-0310-8789-dd5450dbe970
* copyright noticesKen Raeburn2006-01-262-0/+48
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17619 dc483132-0cff-0310-8789-dd5450dbe970
* * export-check.pl: Accept 'S' in nm outputKen Raeburn2006-01-262-2/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17618 dc483132-0cff-0310-8789-dd5450dbe970
* * export-check.pl: Accept 'G' in nm outputKen Raeburn2006-01-262-2/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17617 dc483132-0cff-0310-8789-dd5450dbe970
* Check the export lists against the newly built shared library to make sure allKen Raeburn2006-01-252-0/+59
| | | | | | | | | | | | | the symbols we want to export are actually defined. GNU/Linux only, for the moment, but it ought to work on any system using the GNU version of nm, and not too hard to modify for other ways of extracting the exported symbols of a library. * util/export-check.pl: New file. * config/shlib.conf (*-*-linux*): Run export-check.pl after building a shared library. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17609 dc483132-0cff-0310-8789-dd5450dbe970
* * fake-addrinfo.c (krb5int_in6addr_any): Always defineKen Raeburn2006-01-252-5/+3
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17608 dc483132-0cff-0310-8789-dd5450dbe970
* * threads.c (krb5int_mutex_alloc, krb5int_mutex_free, krb5int_mutex_lock,Ken Raeburn2006-01-253-1/+53
| | | | | | | | | | | | krb5int_mutex_unlock): New functions. (krb5int_mutex_lock_update_stats, krb5int_mutex_unlock_update_stats, krb5int_mutex_report_stats): Always define, even if not doing anything. * libkrb5support.exports: Export the new functions. ticket: 3417 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17607 dc483132-0cff-0310-8789-dd5450dbe970
* Back out unwanted change to profile_tcl.cSam Hartman2006-01-111-745/+311
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17586 dc483132-0cff-0310-8789-dd5450dbe970
* Remove krb5_callconv from non-exported internal functionSam Hartman2006-01-111-311/+745
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17585 dc483132-0cff-0310-8789-dd5450dbe970
* Looks like the current Red Hat gcc on Athena emits duplicates and "./foo.h",Ken Raeburn2005-12-222-1/+28
| | | | | | | | | | neither of which we've properly addressed before. * depfix.pl (uniquify): New subroutine. (do_subs_2): Use it. (do_subs): Fix substitution pattern for " ./". git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17573 dc483132-0cff-0310-8789-dd5450dbe970
* make dependTom Yu2005-11-295-60/+41
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17505 dc483132-0cff-0310-8789-dd5450dbe970
* mkrel should delete .svn directoriesTom Yu2005-11-032-1/+5
| | | | | | | | | | * mkrel: Delete .svn directories to avoid pathname length bloat. ticket: new target_version: 1.4.3 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17480 dc483132-0cff-0310-8789-dd5450dbe970
* Rename depfix2.pl to depfix.plKen Raeburn2005-10-272-1/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17459 dc483132-0cff-0310-8789-dd5450dbe970
* Roll all the "make depend" transformations into one perl scriptKen Raeburn2005-10-273-68/+66
| | | | | | | | * util/depfix2.pl: Incorporate all substitutions from depfix.sed. * util/depfix.sed: Deleted. * config/post.in (.depend): Don't run sed, just use perl. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17458 dc483132-0cff-0310-8789-dd5450dbe970
* * ac_check_krb5.m4: Set LIBS rather than LDFLAGSTom Yu2005-10-252-2/+6
| | | | | | | ticket: 2923 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17451 dc483132-0cff-0310-8789-dd5450dbe970
* Delete setting and testing of STAT_ONCE_PER_SECOND, just always do itKen Raeburn2005-10-213-10/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17449 dc483132-0cff-0310-8789-dd5450dbe970
* * ac_check_krb5.m4: Example autoconf macro to use krb5-config forTom Yu2005-10-182-0/+63
| | | | | | | | | setting build flags for applications. ticket: 2923 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17433 dc483132-0cff-0310-8789-dd5450dbe970
* Move the db2 library to the site of its one use, the kdb-db2 module.Ken Raeburn2005-10-04118-50897/+7
| | | | | | Update configuration scripts, pathname make variables, etc., accordingly. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17407 dc483132-0cff-0310-8789-dd5450dbe970
* * fake_addrinfo.c (getaddrinfo): AI_NUMERICSERV fix for AIXKen Raeburn2005-09-092-1/+15
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17380 dc483132-0cff-0310-8789-dd5450dbe970
* update mkrel for svnTom Yu2005-09-082-5/+11
| | | | | | | | | | * mkrel: Update for svn. ticket: new target_version: 1.4.3 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17376 dc483132-0cff-0310-8789-dd5450dbe970
* fix more executable permissionsTom Yu2005-08-259-0/+0
| | | | | | | | | | Fix some more executable permissions missing from import. ticket: new tags: pullup target_version: 1.4.3 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17357 dc483132-0cff-0310-8789-dd5450dbe970
* Delete .cvsignore files; contents have already been Sam Hartman2005-08-249-41/+0
| | | | | | set on svn:ignore properties. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17353 dc483132-0cff-0310-8789-dd5450dbe970
* Make configuration scripts executableSam Hartman2005-08-241-0/+0
| | | | | | | | | | | | Mark the shell scripts under config and util as executable. Tom, this probably wants to be pulled up to the 1.3 branch as well. ticket: new Tags: pullup Target_Version: 1.4.3 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17352 dc483132-0cff-0310-8789-dd5450dbe970
* All configure.in scripts: Use K5_AC_INIT instead of AC_INITKen Raeburn2005-08-2010-5/+25
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17342 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in ($(FAKEPREFIX)/lib): Target deleted.Ken Raeburn2005-08-172-4/+5
| | | | | | (all-unix): Don't build it. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17331 dc483132-0cff-0310-8789-dd5450dbe970
* Add stub for krb5int_pthread_loaded() for WindowsJeffrey Altman2005-07-282-0/+10
| | | | | | ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17323 dc483132-0cff-0310-8789-dd5450dbe970
* Update dependenciesKen Raeburn2005-06-215-41/+60
| | | | | | | | | N.B.: The version of gcc used this time ("gcc version 3.4.3 20041212 (Red Hat 3.4.3-9.EL4)") seems to emit some duplicate dependencies -- some header files get listed twice. This is annoying but shouldn't cause any harm.... git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17256 dc483132-0cff-0310-8789-dd5450dbe970
* remove old makefileKen Raeburn2005-06-211-652/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17255 dc483132-0cff-0310-8789-dd5450dbe970
* * profile.swg (errcode_t* tcl8 argout typemap): Cast return value fromKen Raeburn2005-06-063-20/+27
| | | | | | | | error_message to char* to silence Sun compiler warning. (errcode_t tcl8 out typemap): Likewise. * profile_tcl.c: Regenerated. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17229 dc483132-0cff-0310-8789-dd5450dbe970
* Add run-time determination of whether thread support is available in theKen Raeburn2005-06-013-1/+68
| | | | | | | | | | | | | | | | | support library. Check lots of weak references, and call pthread_once a couple of times, to distinguish a broken stub from the real thing. * threads.c [HAVE_PRAGMA_WEAK_REF]: Declare pthread_{g,s}etspecific, pthread_key_{create,delete}, pthread_{create,join} as weak references. (krb5int_pthread_loaded, loaded_test_aux) [HAVE_PRAGMA_WEAK_REF]: New functions. (flag_pthread_loaded, loaded_test_once) [HAVE_PRAGMA_WEAK_REF]: New variables. * libkrb5support.exports: Add krb5int_pthread_loaded. ticket: 3084 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17223 dc483132-0cff-0310-8789-dd5450dbe970
* * fake-addrinfo.c (fai_add_hosts_by_name): Pass null pointer instead of telnetKen Raeburn2005-05-182-2/+36
| | | | | | as service name. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17218 dc483132-0cff-0310-8789-dd5450dbe970
* updated dependencies for socket-utils.h changeKen Raeburn2005-04-281-1/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17205 dc483132-0cff-0310-8789-dd5450dbe970
* Stop generating per-directory sed scripts, and use perl to compute the patternsKen Raeburn2005-04-213-141/+113
| | | | | | | | | | | | | | on the fly instead. (Next step, someday, integrate this script and depfix.sed, so we only have to run one script.) * config/post.in (depend-dependencies): Use (and depend on) depfix2.pl instead of .depfix2.sed. (.depfix2.sed): Target deleted. (DEPTARGETS): Delete .depfix2.sed and .depfix2.tmp. * util/depgen.sed: Deleted. * util/depfix2.pl: New file. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17187 dc483132-0cff-0310-8789-dd5450dbe970
* * depgen.sed: Delete faulty check for $(srcdir), and redundant check for ↵Ken Raeburn2005-04-202-26/+6
| | | | | | $(SRCTOP) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17186 dc483132-0cff-0310-8789-dd5450dbe970
* update dependenciesKen Raeburn2005-04-131-16/+16
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17179 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Don't check for getpwuid_r here.Ken Raeburn2005-03-263-17/+9
| | | | | | | | | * prof_file.c (profile_open_file): Use k5_getpwuid_r. ticket: 2982 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17158 dc483132-0cff-0310-8789-dd5450dbe970
* threads.c (thread_termination): Free array of pointers to thread-specific ↵Alexandra Ellwood2005-03-202-24/+38
| | | | | | | | data (t) on thread termination. Use existing mutex to prevent the deletion of the array from interfering with the global list of thread specific data (used for library termination) ticket: 2971 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17129 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (EXTRADEPSRCS): DefineKen Raeburn2005-03-142-0/+24
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17123 dc483132-0cff-0310-8789-dd5450dbe970
* st_mtim.tv_nsec, not tv_usecKen Raeburn2005-03-133-4/+4
| | | | | | | ticket: 2959 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17122 dc483132-0cff-0310-8789-dd5450dbe970
* profile library should check high-resolution timestamps if availableKen Raeburn2005-03-134-1/+26
| | | | | | | | | | | | | | | | | | | | | With the current profile code, it's possible for a file to be read when partially written, with the writing of the new file contents being completed within the same 1-second clock value, causing the profile code not to re-read the contents. Using a higher-resolution timestamp, available on many systems now, should help reduce that window. (Checking file sizes should also, consider doing that separately.) * configure.in: Check struct stat for fields st_mtimensec, st_mtimespec.tv_nsec, and st_mtim.tv_usec. * prof_file.c (profile_update_file_data): If one of them is found, use it as the fractional part of the timestamp. Do re-read the file if the fractional parts don't match. * prof_int.h (struct _prf_data_t): Add new field frac_ts. ticket: new status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17121 dc483132-0cff-0310-8789-dd5450dbe970
* profile_clear_relation doesn't work, iterator still sees deleted nodesKen Raeburn2005-03-043-0/+50
| | | | | | | | | | | | | | | | The "deleted" flag was being checked when writing out the file, but not when iterating through using the profile handle being used to do the deletions. * prof_tree.c (profile_node_iterator): After checking skip_num counter, also skip over deleted nodes. * prof_test1 (test3): New proc. (top level): Run it. ticket: new target_version: 1.4.1 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17111 dc483132-0cff-0310-8789-dd5450dbe970
* possible profile null pointer deref in threaded appKen Raeburn2005-02-234-8/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | There seems to be a problem with a null pointer popping up when profile_node_iterator reads ...->data->root to start walking through the contents. Don't have a lot of details, but I've got some patches that might tighten things up a little. * prof_tree.c (profile_node_iterator): Check that the root node pointer is not null; raise assertion failure if it is. * prof_int.h: Include k5-platform.h. (struct _prf_data_t): Reorder fields, and insert some padding. * prof_file.c (scan_shared_trees_locked): Check that the "root" field isn't null. (profile_open_file): Update the in-memory file contents after updating the refcount instead of before. (profile_update_file_data): If the root node in the file data is null, always do the update. Check that it's not null before returning a success indication. (profile_dereference_data_locked): Scan linked list of file data objects for sanity check, before and after. (profile_dereference_data_locked): Don't do it here. ticket: new status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17106 dc483132-0cff-0310-8789-dd5450dbe970
* * et/error_message.c (com_err_initialize, com_err_terminate): IfKen Raeburn2005-02-094-2/+33
| | | | | | | | | SHOW_INITFINI_FUNCS is defined, print tracing messages. * profile/prof_file.c (profile_library_initializer, profile_library_finalizer): If SHOW_INITFINI_FUNCS is defined, print tracing messages. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17094 dc483132-0cff-0310-8789-dd5450dbe970
* There is a memory leak here, if a thread has registered some per-thread dataKen Raeburn2005-02-092-2/+30
| | | | | | | | | | | | | | | | when we delete the key. Fixing it will require walking through the per-thread data of every thread and freeing the objects... and watching for deadlocks in the case where a thread is exiting at the same time. * threads.c (k5_key_delete) [pthread case]: Reset flags and destructor function pointer to unset state. (krb5int_thread_support_init, krb5int_thread_support_fini): If SHOW_INITFINI_FUNCS is defined, print some tracing messages. ticket: 2916 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17092 dc483132-0cff-0310-8789-dd5450dbe970
* * threads.c (k5_key_delete) [ENABLE_THREADS && !_WIN32]: Don't abort,Ken Raeburn2005-01-182-2/+7
| | | | | | | | just leak resources for now. ticket: 2888 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17052 dc483132-0cff-0310-8789-dd5450dbe970
* re-initialize 'terminated' variable to 0 during initialization routineJeffrey Altman2005-01-181-1/+2
| | | | | | ticket: 2888 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17051 dc483132-0cff-0310-8789-dd5450dbe970
* Some applications such as Eudora on Windows load and unload the KerberosJeffrey Altman2005-01-174-0/+14
| | | | | | | | | | | libraries as part of a plug-in. Plugins are often loaded for a specific purpose and then unregistered. In order to support this model, the libraries must restore the library state to the uninitialized state when the library is unloaded. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17050 dc483132-0cff-0310-8789-dd5450dbe970
* fix calling convention for thread support fnsKen Raeburn2005-01-142-6/+18
| | | | | | | | | | | | | | | | This depends on a change to k5-thread.h that was included with a checkin I did earlier for 2878. * threads.c (k5_mutex_lock_update_stats, krb5int_mutex_unlock_update_stats, krb5int_mutex_report_stats): Define as KRB5_CALLCONV. (krb5int_mutex_lock_update_stats, krb5int_mutex_unlock_update_stats, krb5int_mutex_report_stats) [_WIN32]: Undef macros before defining functions. ticket: new target_version: 1.4 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17037 dc483132-0cff-0310-8789-dd5450dbe970
* * prof_file.c (profile_open_file): If mutex creation fails, free storageKen Raeburn2005-01-142-1/+4
| | | | | | | | | directly instead of calling profile_close_file. ticket: 2878 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17035 dc483132-0cff-0310-8789-dd5450dbe970
* * error_message.c (com_err_terminate): Lock the list mutex before walkingKen Raeburn2005-01-142-1/+8
| | | | | | | | | through it; unlock and destroy it afterwards. ticket: 2878 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17030 dc483132-0cff-0310-8789-dd5450dbe970