summaryrefslogtreecommitdiffstats
path: root/src/util
Commit message (Collapse)AuthorAgeFilesLines
* * mkrel: When generating multiple tarballs, also generate aTom Yu2001-04-062-14/+26
| | | | | | | consolidated tarball. Default to making a single tarball. [pullups from krb5-1-2-2-branch] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13146 dc483132-0cff-0310-8789-dd5450dbe970
* * com_err.h: For struct error_table, change the base from anEzra Peisach2001-03-122-1/+6
| | | | | | unsigned to signed long (error messages and tables are signed) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13075 dc483132-0cff-0310-8789-dd5450dbe970
* * test_et.c (main): Only use sys_nerr tests if HAVE_SYS_ERRLISTKen Raeburn2001-03-083-1/+9
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13062 dc483132-0cff-0310-8789-dd5450dbe970
* * krb5.conf: Test with trailing whitespace on "default_realm"Tom Yu2001-02-022-2/+7
| | | | | | line. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12990 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in: Remove rule for aix.bincmds; we don't need itTom Yu2001-01-293-13/+12
| | | | | | | | | | anymore. * makeshlib.sh: Use the linker flag -berok so that unresolved symbols don't turn into link-time errors for building shared libs on AIX. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12960 dc483132-0cff-0310-8789-dd5450dbe970
* rebuiltKen Raeburn2001-01-201-11/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12916 dc483132-0cff-0310-8789-dd5450dbe970
* * com_err.h (add_error_table, remove_error_table): Annotate as modifyingKen Raeburn2001-01-205-25/+48
| | | | | | | | | | | | | | | | internal state. (struct et_list, _et_list): Remove. * error_table.h (struct et_list, _et_list): Put back here. * error_message.c (add_error_table, remove_error_table): Annotate specific modifications. Disable inconsistent-defifition checks since _et_list isn't describe in the header file but is global and modified. * et_c.awk: Make the generated initialization function simply call add_error_table, and drop the static linked-list node. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12915 dc483132-0cff-0310-8789-dd5450dbe970
* update to implement equivalent of ref countKen Raeburn2001-01-184-24/+33
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12911 dc483132-0cff-0310-8789-dd5450dbe970
* Make compile_et script installable, and install it.Ken Raeburn2001-01-184-21/+47
| | | | | | Use it when building test programs too. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12910 dc483132-0cff-0310-8789-dd5450dbe970
* * sane_hostname.c: Switch off of KRB5_USE_INET6 instead ofTom Yu2001-01-132-2/+9
| | | | | | | AF_INET6, which may be defined without a corresponding struct sockaddr_in6. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12901 dc483132-0cff-0310-8789-dd5450dbe970
* Use const sockaddr pointer in interface.Ken Raeburn2000-12-064-17/+87
| | | | | | Use get{name,addr}info if available, to pick up IPv6 support. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12884 dc483132-0cff-0310-8789-dd5450dbe970
* make pty_make_sane_hostname take sockaddr* arg instead of sockaddr_in*Ken Raeburn2000-12-063-7/+20
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12883 dc483132-0cff-0310-8789-dd5450dbe970
* restore GSS_DLLIMP, KRB5_EXPORTVAR, NEAR macrosKen Raeburn2000-12-062-2/+8
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12882 dc483132-0cff-0310-8789-dd5450dbe970
* fix typoKen Raeburn2000-12-061-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12881 dc483132-0cff-0310-8789-dd5450dbe970
* Remove a bunch of macro definitions we don't use.Ken Raeburn2000-12-069-173/+116
| | | | | | | | | Run lclint on t_com_err test case; tune options; more annotations. Use <com_err.h> instead of duplicated definitions in generated files. Rebuild Perl versions of awk scripts for generating files. Dump K&R C support, assume C89/C++. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12880 dc483132-0cff-0310-8789-dd5450dbe970
* undo last changeKen Raeburn2000-12-061-2/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12879 dc483132-0cff-0310-8789-dd5450dbe970
* tweak names of perl scriptsKen Raeburn2000-12-061-2/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12878 dc483132-0cff-0310-8789-dd5450dbe970
* try lclint on a com_err test program; misc cleanupKen Raeburn2000-12-062-7/+41
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12877 dc483132-0cff-0310-8789-dd5450dbe970
* some notes on interactions with 64-bit systemsKen Raeburn2000-12-061-0/+15
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12876 dc483132-0cff-0310-8789-dd5450dbe970
* make "make check" do somethingKen Raeburn2000-11-143-3/+21
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12868 dc483132-0cff-0310-8789-dd5450dbe970
* * dyn_create.c (DynCopy): Arguments to memcpy were reversed. FoundEzra Peisach2000-11-092-1/+6
| | | | | | | | while playing with lclint. DynCopy is not used in our tree. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12867 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (check-unix): Built and execture dyntestEzra Peisach2000-11-0910-12/+49
| | | | | | | | | | | | | | * test.c: Include string,h, stdlib.h. * dyn_create.c, dyn_delete.c, dyn_insert.c, dyn_put.c, dyn_realloc.c: Cast arguments to malloc(), realloc(), memmove() to size_t. * dynP.h: Provide full prototypes for _DynRealloc() and _DynResize(). * dyn.h: Add prototype for DynAppend. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12866 dc483132-0cff-0310-8789-dd5450dbe970
* problems found in auditingKen Raeburn2000-11-081-0/+34
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12857 dc483132-0cff-0310-8789-dd5450dbe970
* clarify a littleKen Raeburn2000-11-081-3/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12856 dc483132-0cff-0310-8789-dd5450dbe970
* Test out lclint and its4 on com_err library. One lclint error left on Solaris,Ken Raeburn2000-11-0812-83/+347
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | due to deficiencies in lclint. Its4 chokes in parser. * com_err.h (struct error_table): Annotate MSGS as pointing to 'shared' data. (error_message): Returned data is 'observer' and 'dependent'; modifies internal state. * com_err.c (default_com_err_proc): Cast various return values to void. (reset_com_err_hook): Use NULL, not 0. (com_err_hook): Annotate as 'null'. * error_table.h (_et_list): Annotate as 'null' and 'dependent'. (struct et_list): Annotate NEXT as 'dependent' and 'null', and TABLE as 'dependent'. (struct dynamic_et_list): Duplicate et_list definition, except NEXT is annotated as 'only' instead of 'dependent'. (error_table_name, error_table_name_r): Annotate for lclint. * et_h.awk: Add lclint annotations for initialize_* functions. * error_message.c (_et_list): Can be 'null'. (error_message): Explicitly compare against zero. Cast strerror arg to int. (et_list_dynamic): New variable, for dynamically allocated list elements; _et_list is now for statically allocated elements only. (add_error_table, remove_error_table): Check both lists. * et_name.c (error_table_name, error_table_name_r): Annotate for lclint. * init_et.c (et_add_error_table): Change "link" to "e" to avoid confusion with C library function in analysis tools. * et1.et, et2.et, t_com_err.c: New files. Exercise addition and removal of error tables from list, using both interfaces. * Makefile.in (LCLINT, LCLINTOPTS, ITS4, ITS4OPTS): New variables. (do-lclint, do-its4, et1.o, et2.o, t_com_err.o, t_com_err): New targets. Not automatically invoked at present. (FILES): Updated. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12855 dc483132-0cff-0310-8789-dd5450dbe970
* * reconf: Rework syntax to detect version numbers of newerEzra Peisach2000-11-012-7/+30
| | | | | | | autoconf versions. For autoconf > 2.19, we need to pass an absolute path for the localdir to autoreconf. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12846 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Quote macro use inside AC_CHECK_LIB. ChangeEzra Peisach2000-11-012-5/+11
| | | | | | | AC_FUNC_CHECK to AC_CHECK_FUNC, AC_HAVE_FUNCS to AC_CHECK_FUNCS and AC_HEADER_CHECK to AC_CHECK_HEADER.. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12831 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in (AC_COMPILE_TYPE): Declare with AC_DEFUN() insteadEzra Peisach2000-11-012-1/+7
| | | | | | | of define() as newer versions of autoconf check for AC_REQUIRE use outside of AC_DEFUN. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12830 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Use AC_C_CONST instead of AC_CONST andEzra Peisach2000-11-012-2/+7
| | | | | | AC_CHECK_FUNCS instead of AC_HAVE_FUNCS. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12829 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Change AC_RETSIGTYPE to AC_TYPE_SIGNALEzra Peisach2000-11-012-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12828 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Change AC_CONST to AC_C_CONST, AC_HEADER_EGREP toEzra Peisach2000-11-012-3/+9
| | | | | | | AC_EGREP_HEADER, AC_HAVE_HEADERS to AC_CHECK_HEADERS. Updates to autoconf 2 namespace. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12827 dc483132-0cff-0310-8789-dd5450dbe970
* * reconf: Pass "-m util/autoconf" to autoreconf only if we areEzra Peisach2000-10-272-2/+9
| | | | | | | | | | using the source trees version of autoconf. If we trust the installed version of autoconf, we should use their macros. Performance boost of 2x in autoconfing the tree through use of frozen m4 files. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12820 dc483132-0cff-0310-8789-dd5450dbe970
* * reconf: Look for autoconf 2.12 or later. Don't use "grep -q", it's notKen Raeburn2000-10-032-5/+11
| | | | | | portable enough. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12719 dc483132-0cff-0310-8789-dd5450dbe970
* Add AC_PROG_INSTALL to allow the library to be installedEzra Peisach2000-08-112-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12620 dc483132-0cff-0310-8789-dd5450dbe970
* * ss_internal.h: Only use fake sigmask, sigblock and sigsetmask ifEzra Peisach2000-08-072-1/+9
| | | | | | USE_SIGPROCMASK is defined and not POSIX_SIGNALS. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12605 dc483132-0cff-0310-8789-dd5450dbe970
* * listen.c (ss_quit): Now returns void. Fix type of argument ARGV to fitKen Raeburn2000-08-043-6/+14
| | | | | | | | prototype. * ss.h (ss_execute_line) [__STDC__]: Make prototype unconditional. (ss_quit): Use __SS_PROTO and return void, as with other command functions. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12603 dc483132-0cff-0310-8789-dd5450dbe970
* * requests.c (DECLARE): Fix prototype for dispatch functions toEzra Peisach2000-08-025-9/+53
| | | | | | | | | | | | | | | | | | | | properly match what is expected by ss library. * pager.c (ss_pager_create): Cast return from fork to int for use in switch statement. * ss.h: Provide full prototype for ss_name(). Add prototypes for ss_execute_line(), ss_delete_invocation(), ss_add_info_dir(), ss_delete_info_dir(), ss_abort_subsystem(), ss_get_prompt(), ss_set_prompt(), ss_add_request_table(), ss_delete_request_table(), ss_quit(). * ss_internal.h: Made full prototypes for ss_parse(), ss_page_stdin(), ss_pagre_create(). Add prototypes for ss_self_identify(), ss_subsystem_name(), ss_subsystem_version(), ss_unimplemented(). Moved ss_execute_line() to ss.h git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12598 dc483132-0cff-0310-8789-dd5450dbe970
* * krb5.conf: Test with a space after ']' and '{'Ezra Peisach2000-08-023-3/+14
| | | | | | | * prof_parse.c (parse_std_line): Spaces after '{' or ']' should not be a fatal error. This is a common lossage in krb5.conf files. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12595 dc483132-0cff-0310-8789-dd5450dbe970
* * prof_init.c: Cleanup internal type warnings in calls to profile_initEzra Peisach2000-07-245-8/+23
| | | | | | | | | | | | * test_parse.c (main): Cast arguments to error_message. * prof_file.c (profile_open_file): Variable with argument to malloc should be unsigned. * profile.hin: Revert changes to const_profile_filespect_t and profile_filespec_t to preserve interface. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12585 dc483132-0cff-0310-8789-dd5450dbe970
* * et_c.awk: Actually define NOARGS as needed. Add prototype forEzra Peisach2000-07-242-0/+9
| | | | | | error table initiialization function. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12584 dc483132-0cff-0310-8789-dd5450dbe970
* * test/dbtest.c: Cleanup gcc -Wall complaints with printf formatEzra Peisach2000-07-042-12/+20
| | | | | | strings. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12532 dc483132-0cff-0310-8789-dd5450dbe970
* Added prototype for ss_create_invocation()Ezra Peisach2000-07-032-1/+3
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12525 dc483132-0cff-0310-8789-dd5450dbe970
* * test_ss.c (main): Change usage of ss_listen to agree withEzra Peisach2000-07-033-2/+10
| | | | | | | | prototype. * ss.h: Add prototype for ss_listen() git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12522 dc483132-0cff-0310-8789-dd5450dbe970
* * recno/rec_seq.c: Include unused sccsid when LIBC_SCCS definedEzra Peisach2000-07-039-11/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | * recno/rec_close.c (__rec_close): Explicit braces to avoid ambiguous `else' * btree/bt_split.c (bt_psplit): Parenthesis about && and || conditional. * btree/bt_put.c (__bt_put): Extra {} to make nested if/else unambiguous. * btree/bt_open.c (__bt_open): Add parenthesis to ensure precedence ordering. * hash/dbm.c (kdb2_dbm_firstkey): Conditionalize defintion of variables based on use. * hash/hash_func.c: Ifdef out unused static hash functions. * hash/hash.c (init_htab): Remove unused variable. gcc -Wall warnings. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12515 dc483132-0cff-0310-8789-dd5450dbe970
* back out format-attribute changeKen Raeburn2000-07-022-5/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12510 dc483132-0cff-0310-8789-dd5450dbe970
* * clib/strerror.c: #include config.hTom Yu2000-07-017-13/+43
| | | | | | | | | | | | | | | | | * clib/mkstemp.c: #include config.h. * clib/memmove.c: #include config.h. * clib/Makefile.in (LOCALINCLUDES): Add -I../include to get config.h. * configure.in: Generate two config headers, one for internal use and one for external use. Rework clib replacement code to use AC_DEFINE rather than ADD_DEF. * Makefile.in (STOBJLISTS): Add clib. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12505 dc483132-0cff-0310-8789-dd5450dbe970
* * db-config.h.in: New file; contains useful tidbits fromTom Yu2000-07-014-3/+44
| | | | | | | | | | | | | config.h.in generated by autoheader. It is needed because config.h.in has some thing we don't want to leak, like renaming of missing libc functions. * .cvsignore: Twiddle to reflect current reality. * db-int.h: #include config.h since db.h includes db-config.h which is not quite the same now. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12504 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (all-unix, clean_unix): Removed util/db2 includeTom Yu2000-06-302-21/+3
| | | | | | symlinking rules. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12494 dc483132-0cff-0310-8789-dd5450dbe970
* add include file copyingTom Yu2000-06-301-2/+17
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12493 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (all-unix, clean_unix): Update for current geographyTom Yu2000-06-302-7/+10
| | | | | | | of util/db2; needs to be moved to util/db2/Makefile.in at some point. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12489 dc483132-0cff-0310-8789-dd5450dbe970