summaryrefslogtreecommitdiffstats
path: root/src/util
Commit message (Collapse)AuthorAgeFilesLines
...
* * 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
* * error_message.c (com_err_terminate): Free heap storage in et_list_dynamicKen Raeburn2004-04-292-0/+8
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16279 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (LIBINITFUNC, LIBFINIFUNC): New variablesKen Raeburn2004-04-292-0/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16278 dc483132-0cff-0310-8789-dd5450dbe970
* updated dependenciesKen Raeburn2004-04-243-4/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16269 dc483132-0cff-0310-8789-dd5450dbe970
* Added support for library initialization and finalization, and verificationKen Raeburn2004-04-247-24/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | | that the initializer completed successfully. Delay initialization on POSIX until the first "verification" call. Currently specific to a few platforms, but should still build on others without thread support enabled. Use it to finish creating (if necessary) and destroy mutexes, and free some other storage "permanently" allocated by libraries (currently, libkrb5 cache/keytab type registries only). Change initialization of static mutexes to a two-step operation, a static "partial" initializer and a "finish_init" routine called from a thread-safe environment like library initialization is assumed to be. POSIX will use the former, Windows will use the latter, and the debug support will check that *both* have been used. Added init/fini functions to com_err, profile, krb5, and gssapi libraries. (The profile library one may need to be removed later.) The existing ones, not thread-safe, are still around. Use weak symbol support if available to figure out if the pthread library has been linked in, and avoid calling certain routines if the C library stubs are known not to exist or work. Stub declarations for thread-specific data. Minor bugfixes, whitespace changes. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16268 dc483132-0cff-0310-8789-dd5450dbe970
* * libupdate.sh: Deleted.Ken Raeburn2004-04-233-57/+5
| | | | | | | | * Makefile.in (libupdate, makeshlib): Targets deleted. (all-recurse): Don't depend on them. (clean): Don't try to delete them. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16265 dc483132-0cff-0310-8789-dd5450dbe970
* * makeshlib.conf: DeletedKen Raeburn2004-04-232-67/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16264 dc483132-0cff-0310-8789-dd5450dbe970
* update dependenciesKen Raeburn2004-04-231-0/+8
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16261 dc483132-0cff-0310-8789-dd5450dbe970
* Add files containing the export lists used on UNIX, in each directoryKen Raeburn2004-04-226-0/+173
| | | | | | | | | | | | | | where we build a shared library, whether or not it gets installed. These should match the complete AIX export lists for a full build including krb4 support, and will eventually be used on other UNIX platforms, and cut down to just the symbols we actually want to export. We'll also have to add additional information, eventually, for versioning and such, but currently this is just a list of C symbol names. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16259 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Remove tests for strsave, sys_errlist,Ezra Peisach2004-04-122-30/+6
| | | | | | | krb5_sigtype, setjmp, dirent, F_SETOWN. These are left over from the split from appl/bsd. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16242 dc483132-0cff-0310-8789-dd5450dbe970
* * btree/bt_seq.c: Include string.hKen Raeburn2004-04-032-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16228 dc483132-0cff-0310-8789-dd5450dbe970
* Thread-safe manipulation of registered error-table listKen Raeburn2004-03-183-11/+34
| | | | | | | | | | * error_message.c: Include k5-thread.h. (_et_list): Now always static. (et_list_lock): New mutex. (error_message): Lock it while manipulating the table lists. (add_error_table, remove_error_table): Likewise. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16183 dc483132-0cff-0310-8789-dd5450dbe970
* * error.c (ss_error): Always use ANSI C form. Don't try to hide theKen Raeburn2004-03-183-46/+7
| | | | | | | | declaration in the header file. * ss.h: Always use the prototype forms of declarations. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16178 dc483132-0cff-0310-8789-dd5450dbe970
* Change profile code over to new thread macros, and enable data sharing alwaysKen Raeburn2004-03-143-26/+40
| | | | | | | | | | | | | | | * prof_int.h: Include k5-thread.h. Don't include sys/types.h and pthread.h. (SHARE_TREE_DATA): Always define. (USE_PTHREADS): Don't define. (prof_mutex_lock, prof_mutex_unlock): Deleted. (struct global_shared_profile_data): Change mutex to use k5_mutex_t instead of pthread_mutex_t. (g_shared_trees_mutex): Don't conditionalize on USE_PTHREADS. * prof_file.c (krb5int_profile_shared_data): Initialize mutex. (profile_open_file, profile_dereference_data): Use new mutex macros. Check return status when locking. Fix a potential memory leak in an error case. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16163 dc483132-0cff-0310-8789-dd5450dbe970
* * prof_get.c (profile_parse_boolean): Declare first argument asEzra Peisach2004-03-082-1/+6
| | | | | | const char *. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16160 dc483132-0cff-0310-8789-dd5450dbe970
* Change subdir processing so that SUBDIRS will contain the configuredKen Raeburn2004-03-084-2/+9
| | | | | | | | | | | | | | subdirs only for the makefile in the directory with the configure script, and will have only $(LOCAL_SUBDIRS) elsewhere. Drop the use of "MY_SUBDIRS=." to override SUBDIRS in favor of this way of keeping SUBDIRS empty. Drop other uses of MY_SUBDIRS in favor of LOCAL_SUBDIRS or (in one case, the top level) overriding the SUBDIRS setting from pre.in. One less thing to keep tweaking as configure scripts get reorganized and merged. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16158 dc483132-0cff-0310-8789-dd5450dbe970
* * reconf: Delete autom4te.cache directories after running autoreconfKen Raeburn2004-03-062-0/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16151 dc483132-0cff-0310-8789-dd5450dbe970
* Move apputils dir from util to lib, to get its proper place in theKen Raeburn2004-02-267-157/+5
| | | | | | build process (after include). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16128 dc483132-0cff-0310-8789-dd5450dbe970
* dependency updatesKen Raeburn2004-02-241-5/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16121 dc483132-0cff-0310-8789-dd5450dbe970
* ignore some more generated filesKen Raeburn2004-02-243-0/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16119 dc483132-0cff-0310-8789-dd5450dbe970
* Move daemon.c into a new library of utility routines for linking our programsKen Raeburn2004-02-247-1/+160
| | | | | | | | | | | | against but which we don't want to install as a separate library. Change Kerberos and application servers to link against the library if they might need the replacement daemon() function. Add a dummy file to the library in case daemon() is not needed, so we don't have an empty library, which we may not handle properly. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16118 dc483132-0cff-0310-8789-dd5450dbe970
* ignore fakedest dirKen Raeburn2004-02-241-0/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16117 dc483132-0cff-0310-8789-dd5450dbe970
* * prof_init.c (prof_int32): If long is 4 bytes and int is not, then use long,Ken Raeburn2004-02-192-1/+6
| | | | | | not int, for prof_int32. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16105 dc483132-0cff-0310-8789-dd5450dbe970
* protoizeKen Raeburn2004-02-195-8/+12
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16100 dc483132-0cff-0310-8789-dd5450dbe970
* ProtoizeKen Raeburn2004-02-197-215/+105
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16099 dc483132-0cff-0310-8789-dd5450dbe970
* priocntl workaround for Solaris 9 pty-close bugTom Yu2004-02-132-4/+3
| | | | | | | | | | | | Implement gross hack to use priocntl to work around the Solaris 9 pty-close bug. Run expect at a higher class "FX" priority than spawned processes, which run at a lower class "FX" priority. "make check" needs to start from a process which has FX priority >= 30 and FX priority limit >= 30. Thanks to Bill Sommerfeld for the hints. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16069 dc483132-0cff-0310-8789-dd5450dbe970
* Tru64 and Irix have RPATH issues for test suiteTom Yu2004-02-122-0/+12
| | | | | | | | | | Implement hack for faking up _RLD_ROOT with a shadow of the directory tree up to the installed "lib" directory. This helps with running tests on Tru64 and Irix. ticket: 1793 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16066 dc483132-0cff-0310-8789-dd5450dbe970
* prof-int.h should include pthread.h when USE_PTHREADS is definedAlexandra Ellwood2004-01-302-0/+11
| | | | | | ticket: 2180 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15985 dc483132-0cff-0310-8789-dd5450dbe970
* * prof_get.c (profile_iterator_create): NAMES argument points to const pointers.Ken Raeburn2003-12-203-2/+8
| | | | | | * profile.hin (profile_iterator_create): Declaration updated. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15953 dc483132-0cff-0310-8789-dd5450dbe970
* make dependKen Raeburn2003-12-151-2/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15928 dc483132-0cff-0310-8789-dd5450dbe970
* move prof-int.h to be the first include file in order to obtainJeffrey Altman2003-12-1410-14/+25
| | | | | | | | | platform specific preprocessor variables used to selectively import other header files ticket: 2068 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15921 dc483132-0cff-0310-8789-dd5450dbe970
* work around Solaris 9 pty-close bugTom Yu2003-12-063-1/+63
| | | | | | | | | | | | Create a LD_PRELOAD object, exitsleep, that will sleep for a short time prior to calling the real exit() function. This attempts to work around a Solaris 9 kernel bug where output will get lost if it is written to a pty immediately prior to the pty close. ticket: new component: krb5-build git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15864 dc483132-0cff-0310-8789-dd5450dbe970
* darwin build can't compile util/et test programKen Raeburn2003-07-042-1/+6
| | | | | | | | | | | | | | The autoconf tests correctly determine that sys_nerr exists, and that no declaration is needed. The test_et.c code checks the wrong condition, though, and the system header declaration of sys_nerr conflicts with the one in that source file. (The native one is const.) * test_et.c: Conditionalize sys_nerr declaration on NEED_SYS_ERRLIST, not HAVE_SYS_ERRLIST. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15670 dc483132-0cff-0310-8789-dd5450dbe970
* Remove leading spaces in #define and #include in public headers to support ↵Alexandra Ellwood2003-07-032-16/+18
| | | | | | | | K&R C compilers ticket: 1648 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15667 dc483132-0cff-0310-8789-dd5450dbe970