summaryrefslogtreecommitdiffstats
path: root/src/util
Commit message (Collapse)AuthorAgeFilesLines
...
* * fake-addrinfo.c: New file.Ken Raeburn2004-07-193-3/+60
| | | | | | * Makefile.in (STLIBOBJS, LIBOBJS, SRCS): Add it. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16614 dc483132-0cff-0310-8789-dd5450dbe970
* update dependenciesKen Raeburn2004-07-161-2/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16611 dc483132-0cff-0310-8789-dd5450dbe970
* update dependenciesKen Raeburn2004-07-161-13/+24
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16610 dc483132-0cff-0310-8789-dd5450dbe970
* * pty-int.h: Include port-sockets.h instead of netdb.h and netinet/in.hKen Raeburn2004-07-162-2/+6
| | | | | | | ticket: 2379 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16609 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (MLIBS): Add $(LIBS)Ken Raeburn2004-07-152-1/+3
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16599 dc483132-0cff-0310-8789-dd5450dbe970
* * libprofile.exports: Don't try to export krb5int_profile_shared_dataKen Raeburn2004-07-152-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16598 dc483132-0cff-0310-8789-dd5450dbe970
* Make thread-specific data support build under Windows (but don't enable it yet)Ken Raeburn2004-07-072-2/+11
| | | | | | | | * threads.c (struct tsd_block) [_WIN32]: Define. (k5_setspecific) [_WIN32]: Don't fill in a 'next' field. Fix variable reference for TSD key. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16551 dc483132-0cff-0310-8789-dd5450dbe970
* * error_message.c (remove_error_table) [!ENABLE_THREADS && DEBUG_THREADS]: ↵Ken Raeburn2004-07-042-1/+6
| | | | | | Update test for "initialized" field in mutex git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16540 dc483132-0cff-0310-8789-dd5450dbe970
* typo in last changeKen Raeburn2004-06-241-1/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16512 dc483132-0cff-0310-8789-dd5450dbe970
* * threads.c: Reorganize code: One definition of each function, withKen Raeburn2004-06-242-181/+177
| | | | | | | per-platform conditional tests inside, instead of per-platform definitions for each function. Combine common aspects of each function across platforms. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16511 dc483132-0cff-0310-8789-dd5450dbe970
* Delete preprocessor tests for macintosh, __MWERKS__, applec, and THINK_C, allKen Raeburn2004-06-226-20/+11
| | | | | | | part of the pre-Mac OS X support. (Except the bits in the Yarrow code, where it was part of the upstream source.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16506 dc483132-0cff-0310-8789-dd5450dbe970
* * threads.c (key_lock): Change to a k5_mutex_t.Ken Raeburn2004-06-212-21/+72
| | | | | | | | | | | | | | | (k5_key_register): Use k5_ lock routines. (pthread_getspecific, pthread_setspecific, pthread_key_create, pthread_key_delete) [HAVE_PRAGMA_WEAK_REF]: Declare weak. (tsd_if_single) [HAVE_PRAGMA_WEAK_REF]: New variable. (krb5int_thread_support_init): Do pthread key creation only if pthread code is loaded. (krb5int_thread_support_fini): Do pthread key deletion only if pthread code is loaded. (k5_key_register, k5_getspecific, k5_setspecific): Use tsd_if_single when pthread code is not loaded. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16502 dc483132-0cff-0310-8789-dd5450dbe970
* ignore generated timestamp file autoconf.stmpKen Raeburn2004-06-191-0/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16498 dc483132-0cff-0310-8789-dd5450dbe970
* * mpool/mpool.c (mpool_get, mpool_write): Check that the offset calculationKen Raeburn2004-06-192-0/+17
| | | | | | didn't overflow. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16495 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (SHLIB_EXPLIBS): Add $(LIBS)Ken Raeburn2004-06-194-2/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16494 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (all-windows): Build support directoryKen Raeburn2004-06-182-0/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16483 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (BUILDTOP, LIBNAME, XTRA, OBJFILE): Define for Windows.Ken Raeburn2004-06-183-2/+126
| | | | | | | | | | | | | (LIBOBJS): Define. ($(BUILDTOP)/include/krb5/autoconf.h): Disable rule on Windows. * threads.c (tls_idx, key_lock, destructors, destructors_set): New variables for Windows. (krb5int_thread_support_init, krb5int_thread_support_fini, k5_key_register, k5_getspecific, k5_setspecific, k5_key_delete, krb5int_thread_detach_hook): New functions for Windows. Some are just placeholders. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16482 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in ($(OUTPRE)test_et.exe): New target.Ken Raeburn2004-06-184-11/+63
| | | | | | | | | | | | | | | (check-windows): Build and run test_et.exe. * error_message.c: Include autoconf.h. (HAVE_STRERROR) [_WIN32]: Don't define. (error_message) [_WIN32]: Check for range WSABASEERR+[0,1100) instead of all values under 12000. Use k5_getspecific and k5_setspecific for local buffer. * test_et.c (EXPORT_LIST): Define on Windows. (main): Use add/remove_error_table, not the initialize_ routines. (main) [EXPORT_LIST]: Don't test error_table_name, it's not in the export list. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16481 dc483132-0cff-0310-8789-dd5450dbe970
* Purge make targets and variables (and a few files) relating to the old,Ken Raeburn2004-06-176-12/+13
| | | | | | unmaintained Mac OS 9 (and earlier) support. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16473 dc483132-0cff-0310-8789-dd5450dbe970
* * depfix.sed: Delete /os/usr/include as well, to cope with anTom Yu2004-06-162-0/+7
| | | | | | | athena hack. (#include "/os/usr/include/sys/rwstlock.h" in sys/vnode.h) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16469 dc483132-0cff-0310-8789-dd5450dbe970
* * libkrb5support.exports: Drop krb5int_foreach_localaddrKen Raeburn2004-06-142-1/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16444 dc483132-0cff-0310-8789-dd5450dbe970
* * pty-int.h (_AIX && _THREAD_SAFE): Undefine _THREAD_SAFEKen Raeburn2004-06-122-0/+19
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16439 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (include/generated.stmp): New intermediate target file, toKen Raeburn2004-06-123-5/+18
| | | | | | | | | | prevent repeated generation of unchanging header files. (include/config.h, include/db-config.h): Depend on it. ($(srcdir)/include/autoconf.stmp, $(srcdir)/include/config.h.in): Likewise. (clean-includes): Delete the new intermediate target files. * configure.in: Generate include/generated.stmp when config.status is run. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16438 dc483132-0cff-0310-8789-dd5450dbe970
* Run make dependSam Hartman2004-06-082-6/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16424 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in ($(srcdir)/include/config.h.in): Always use --include, never tryKen Raeburn2004-06-082-1/+6
| | | | | | --localdir. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16421 dc483132-0cff-0310-8789-dd5450dbe970
* Change all uses of LIB in UNIX makefiles to LIBBASE, for better WindowsKen Raeburn2004-06-0412-6/+30
| | | | | | | | | compatibility. (Windows nmake exports make variables into the environment, and LIB is treated by the Windows linker as a search path for libraries, thus breaking the linking on Windows of anything needing libraries from the search path in directories where we build libraries on UNIX.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16411 dc483132-0cff-0310-8789-dd5450dbe970
* * prof_file.c (profile_open_file): Handle earlier (draft POSIX) specificationsKen Raeburn2004-06-042-4/+13
| | | | | | of getpwuid_r. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16408 dc483132-0cff-0310-8789-dd5450dbe970
* Oops. Fixes last night's test failures in last night's build..Ken Raeburn2004-06-032-0/+6
| | | | | | | * com_err.c (com_err_va): In success case, don't then fall through into error case. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16402 dc483132-0cff-0310-8789-dd5450dbe970
* Closer to thread-safe..Ken Raeburn2004-06-033-1/+17
| | | | | | | | * configure.in: Check for getpwuid_r. * prof_file.c (profile_open_file) [HAVE_PWD_H && HAVE_GETPWUID_R]: Use getpwuid_r if available. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16395 dc483132-0cff-0310-8789-dd5450dbe970
* The com_err library is now probably as thread-safe as it's going to get, onKen Raeburn2004-06-034-8/+74
| | | | | | | | | | | | | | | | | UNIX; Windows still needs work.... * com_err.c: Include stdlib.h. (com_err_hook_lock): New mutex. (com_err_lock_hook_handle): New function. (com_err_va, set_com_err_hook, reset_com_err_hook): Call com_err_finish_init, and grab the lock. * error_message.c: Don't include k5-thread.h. (com_err_finish_init): New function. (com_err_initialize): Initialize the new mutex. * error_table.h: Include k5-thread.h. (com_err_hook_lock, com_err_finish_init): Declare. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16394 dc483132-0cff-0310-8789-dd5450dbe970
* * error_message.c (terminated): New variable.Ken Raeburn2004-05-312-0/+14
| | | | | | | (com_err_terminate): Set it. (remove_error_table): Check it, warn and abort if set. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16379 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: When generating prtest, use AC_CONFIG_FILESEzra Peisach2004-05-242-1/+7
| | | | | | | instead of K5_GEN_FILE so that a chmod may be added to make the script executable. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16354 dc483132-0cff-0310-8789-dd5450dbe970
* Use compile-time tests using system headers to determine byte order on AIX.Ken Raeburn2004-05-234-1/+13
| | | | | | | | | | | (cf ticket 2551, already pulled up and marked resolved) * configure.in: Check for sys/param.h too. * include/db-int.h: Include sys/param.h if available. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16351 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (DEPLIBS, MLIBS, SHLIB_EXPDEPS, SHLIB_EXPLIBS): Add the new ↵Ken Raeburn2004-05-132-4/+9
| | | | | | support library git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16327 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Check for machine/endian.h too.Ken Raeburn2004-05-074-2/+32
| | | | | | | | | | * include/db-int.h: Include machine/endian.h if available. Check for __LITTLE_ENDIAN__ and __BIG_ENDIAN__, _MIPSEB and _MIPSEL. ticket: 2551 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16322 dc483132-0cff-0310-8789-dd5450dbe970
* * threads.c (krb5int_thread_support_fini) [!ENABLE_THREADS]: Provide a dummyKen Raeburn2004-05-062-0/+8
| | | | | | function for now. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16320 dc483132-0cff-0310-8789-dd5450dbe970
* * fake-addrinfo.c: DeletedKen Raeburn2004-05-063-12/+3
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16319 dc483132-0cff-0310-8789-dd5450dbe970
* Start using our first bit of per-thread storageKen Raeburn2004-05-063-8/+70
| | | | | | | | | | | | | | | | | * error_message.c (buffer): Static variable deleted. (com_err_initialize): Register cleanup support for com_err thread-specific data key. (error_message): Use a per-thread dynamically-allocated buffer instead of static storage, for the case where an unknown error code is given. If any errors occur allocating or tracking the buffer, return a fixed message. * t_com_err.c: Include stdlib.h. If TEST_THREADS is defined, include pthread.h. (run): Renamed from main, changed signature. (main): New function. Just call run, or if TEST_THREADS is defined, create a thread to call it. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16318 dc483132-0cff-0310-8789-dd5450dbe970
* Since the AES code builds, and doesn't do any configure-time byte order checksKen Raeburn2004-05-065-1/+77
| | | | | | | | | | | | | | | | | | | | | | | | that I noticed, something similar ought to work for the DB code. This is the first cut; nightly testing builds should tell us if it's sufficient on most of the platforms we work on. * include/db-int.h: Include stdlib.h, and endian.h if available. (LITTLE_ENDIAN, BIG_ENDIAN, BYTE_ORDER): If not defined, and if versions with one or two leading underscores are defined, define the no-underscore form in terms of the with-underscore one. (DB_BYTE_ORDER): Define by checking LITTLE_ENDIAN, BIG_ENDIAN, and BYTE_ORDER; report an error if that doesn't work. Don't check WORDS_BIGENDIAN. * Makefile.in (all-prerecurse): Make sure headers generated by config.status are up to date. (include/config.h, $(srcdir)/include/config.h.in, include/db-config.h): New rules. * configure.in: Don't check byte order here. Check for endian.h. ticket: 2551 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16317 dc483132-0cff-0310-8789-dd5450dbe970
* build dependenciesKen Raeburn2004-05-051-4/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16313 dc483132-0cff-0310-8789-dd5450dbe970
* * foreachaddr.c: Deleted. Code moved to lib/krb5/os/localaddr.c.Ken Raeburn2004-05-053-840/+7
| | | | | | * Makefile.in (SRCS, STLIBOBJS): Updated. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16309 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Enable dependency support for shared lib.Ken Raeburn2004-05-053-5/+15
| | | | | | | | * Makefile.in (test_et, t_com_err): Depend on, and link against, the new support library. (SHLIB_EXPDEPS, SHLIB_EXPLIBS, SHLIB_RDIRS, SHLIB_DIRS): New variables. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16308 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (SHLIB_EXPLIBS): Include $(LIBS).Ken Raeburn2004-05-052-2/+4
| | | | | | (SHLIB_RDIRS): Use $(KRB5_LIBDIR), for lack of anything better. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16307 dc483132-0cff-0310-8789-dd5450dbe970
* * threads.c (k5_key_register, destructors, k5_setspecific) [!ENABLE_THREADS]:Ken Raeburn2004-05-052-3/+7
| | | | | | Update to fit declarations. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16305 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (LOCAL_SUBDIRS): Build support libraryKen Raeburn2004-05-052-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16304 dc483132-0cff-0310-8789-dd5450dbe970
* exports listKen Raeburn2004-05-052-0/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16302 dc483132-0cff-0310-8789-dd5450dbe970
* * foreachaddr.c: New file, based on include/foreachaddr.cKen Raeburn2004-05-053-2/+841
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16301 dc483132-0cff-0310-8789-dd5450dbe970
* fix lib name; add fini funcKen Raeburn2004-05-041-2/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16300 dc483132-0cff-0310-8789-dd5450dbe970
* * New directory.Ken Raeburn2004-05-044-0/+315
| | | | | | | | * Makefile.in: New file. * threads.c: New file. Thread-specific data support. * fake-addrinfo.c: New file. Placeholder. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16299 dc483132-0cff-0310-8789-dd5450dbe970
* Make com_err tests exercise the shared-library supportKen Raeburn2004-05-043-6/+25
| | | | | | | | | | * configure.in: Invoke KRB5_BUILD_PROGRAM and KRB5_RUN_FLAGS. * Makefile.in (PROG_RPATH, PROG_LIBPATH, RUN_SETUP): New variables. (test_et, t_com_err): Use the built library, even if shared. (check-unix): Set up the environment properly to load shared libraries when running the test programs. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16298 dc483132-0cff-0310-8789-dd5450dbe970