summaryrefslogtreecommitdiffstats
path: root/src/util
Commit message (Collapse)AuthorAgeFilesLines
...
* com_err.h, error_table.h: Use "#if defined(MSDOS) || ..." instead ofTheodore Tso1998-12-014-12/+7
| | | | | | "#if !defined(unix)", since not all Unix compilers define "unix". git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11051 dc483132-0cff-0310-8789-dd5450dbe970
* error_message.c: Use "#if defined(MSDOS) || ..." instead of "#ifTheodore Tso1998-12-012-1/+7
| | | | | | !defined(unix)", since not all Unix compilers define "unix". git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11050 dc483132-0cff-0310-8789-dd5450dbe970
* prof_get.c (profile_get_values): If there are no relations found,Theodore Tso1998-11-172-0/+10
| | | | | | return PROF_NO_RELATION, instead of an empty list. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11043 dc483132-0cff-0310-8789-dd5450dbe970
* Makefile.in: Set the myfulldir and mydir variables (which are relativeTheodore Tso1998-11-1413-242/+480
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to buildtop and thisconfigdir, respectively.) configure.in: Build the test script prtest for doing regression test suites of the profile library. prof_err.et (PROF_MAGIC_ITERATOR): Add a new error code for the magic number for the iterator structure. prof_file.c (profile_update_file): Increment the update serial number when the profile file is re-read. prof_tree.c (profile_make_node_final, profile_is_node_final): Add a new attribute for a node, which is whether or not the node is "final". This controls whether or not the next profile file should be searched when looking up a key which matches the section named by the node. (profile_node_iterator_create, profile_node_iterator_free, profile_node_iterator): New functions which take a profile_t and returns all of the names or values for a particular search key. This iterator follows the rules of doing multiple profile file lookups using the "final node" marker to stop searching subsequent profile files. prof_parse.c (parse_std_line): Add support for marking top level sections, subsections, and individual nodes as final, using the '*' character. (dump_profile_to_file): Print finalized sections with the '*' character. prof_get.c: Update routines to use the iterators provided by prof_tree.c. prof_int.c: Add upd_serial member to the prf_file_t structure. Define the symbolic flags used by the profile node iterator. Add function declarations for profile_make_node_final, profile_is_node_final, profile_node_iterator_create, profile_node_iterator_free, profile_node_iterator, and profile_get_value. test_profile.c: Add the query1 command which tests profile_get_value. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11038 dc483132-0cff-0310-8789-dd5450dbe970
* * prof_init.c (profile_init): Fix a problem whereby if the lastGeoffrey King1998-11-052-3/+12
| | | | | | | pathname in a list of pathnames was nonexistent, an error would be returned that they were all nonexistent. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11015 dc483132-0cff-0310-8789-dd5450dbe970
* Makefile.in: Added prof_get.c to the list of files to be compiledTheodore Tso1998-11-0312-608/+710
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | profile.hin: Added declarations for profile_free_list(), profile_get_relation_names(), and profile_get_subsection_names(). (These are new public interfaces to the profile library.) prof_int.h: Removed the profile_section_t structure, which was used only by the now-defunct prof_section.c file. Added the internal interfaces for the new public interfaces. Removed unused declarations which were never implemented(profile_get, profile_update). prof_init.c: Moved all of the profile querying functions (profile_get_values(), profile_get_value(), etc.) to prof_get.c. In the process, removed the really bletcherous (and badly implemented) profile_get_first_values(), which did nothing like what the named implied. Also added to prof_get.c new functions profile_get_subsection_names() and profile_get_relation_names(). (profile_ser_internalize): Rewrote error handling to be clearer, and removed a bug where memory was not freed correctly in an error case. (profile_init): If a list of pathnames is passed in, profile_init will now try to open all of them, now that we've defined query fallback semantics in prof_get.c prof_parse.c: Fix lint warning. prof_tree.c (profile_find_node_relation, profile_find_node_subsection): Allow the returned value or subsection field to be NULL (in case the caller isn't interested in getting the returned value or subsection, and only cares about getting the name). (profile_delete_node_relation, profile_delete_interior_node_relation): Removed these functions and replaced it with profile_remove_node(), which takes a boolean argument section_flag. (profile_find_node_name): Removed this function. (This was a Cygnus/Fusion special used by the now removed profile_find_first_values() function.) test_profile.c: Added commands to test the new profile_get_subsection_names() and profile_get_relation_names() interfaces. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11011 dc483132-0cff-0310-8789-dd5450dbe970
* pull up 3des implementation from the marc-3des branchMarc Horowitz1998-10-307-4/+27
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11001 dc483132-0cff-0310-8789-dd5450dbe970
* * mkrel: Add fixes to deal with "tails" on release directories,Tom Yu1998-09-252-0/+15
| | | | | | e.g. for beta releases. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10936 dc483132-0cff-0310-8789-dd5450dbe970
* prof_tree.c: (profile_delete_node_relation): Fix bug where deleting aTheodore Tso1998-08-072-10/+18
| | | | | | | | | | node would corrupt the linked list. (profile_add_node): Fix another linked list corruption problem where an insertion into the middle of the linked list didn't update a previous link. [krb5-libs/615] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10784 dc483132-0cff-0310-8789-dd5450dbe970
* Replaced preprocessor symbol _MACINTOSH with macintosh, since macintosh is ↵Miro Jurisic1998-07-176-19/+15
| | | | | | the standard symbol defined by all Mac compiler (oh, sure, it doesn't have _. but at least it's always there) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10653 dc483132-0cff-0310-8789-dd5450dbe970
* Mac: now calling NewCWindow when possible; changed GetNextEvent to WaitNextEventMiro Jurisic1998-07-141-3/+10
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10635 dc483132-0cff-0310-8789-dd5450dbe970
* Added magic incantations for Macontosh CFM-68KMiro Jurisic1998-07-141-1/+12
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10633 dc483132-0cff-0310-8789-dd5450dbe970
* Preliminary fixes for AIX4.3:Sam Hartman1998-07-123-1/+9
| | | | | | | | | | | * Fix static libs on platforms using .a for shared libs * Fix utmp handling for non-hpux platforms with ut_exit different from utmpx. * Include librarymacros in ss configure.in * Remove declarations of h_errno git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10632 dc483132-0cff-0310-8789-dd5450dbe970
* Perl versions of the conversion utilitiesTheodore Tso1998-07-092-0/+535
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10628 dc483132-0cff-0310-8789-dd5450dbe970
* com_err.c (MacMessageBox): Change TextBox to TETextBox to match upTheodore Tso1998-07-022-1/+6
| | | | | | with CodeWarrior changes. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10617 dc483132-0cff-0310-8789-dd5450dbe970
* POSIX states that getopt returns -1 when it is done parsing options,Theodore Tso1998-05-066-5/+18
| | | | | | not EOF. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10550 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (includes): Don't mkdir unless the directory doesn'tTom Yu1998-04-062-1/+6
| | | | | | exist yet. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10522 dc483132-0cff-0310-8789-dd5450dbe970
* * update_utmp.c (pty_update_utmp): Don't record LOGIN_PROCESSTom Yu1998-04-062-1/+10
| | | | | | entries, as they confuse last on some systems. [pty/569] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10520 dc483132-0cff-0310-8789-dd5450dbe970
* gcc -Wall cleanups. Mainly adding prototypes andEzra Peisach1998-03-3010-4/+35
| | | | | | | | | | | | | | | | | | | | | | making sure that functions have return types declared. * ss_internal.h: Add ss_pager_create prototype. * ss.h: Add ss_list_requests prototype. * request_tbl.c (ss_add_request_table, ss_delete_request_table): Declare function types as void. * prompt.c (ss_set_prompt): Declare function as void. * listen.c (ss_quit): Int function should return a value. * list_rqs.c (ss_list_requests): Fix arguments to match proper prototype for a ss type handler. * execute_cmd.c (ss_execute_command): Declare as returning int git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10504 dc483132-0cff-0310-8789-dd5450dbe970
* oops... add PR numberTom Yu1998-03-121-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10500 dc483132-0cff-0310-8789-dd5450dbe970
* * update_utmp.c (pty_update_utmp): Fix bogus entry ofTom Yu1998-03-122-3/+11
| | | | | | PTY_LOGIN_PROCESS types on BSD-ish systems. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10499 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in: Integrate in the krb5 build tree rules.Ezra Peisach1998-03-023-5/+16
| | | | | | | | | | | (use CC_LINK, etc). * configure.in: Add AC_BUILD_PROGRAM for test programs. These changes allow --enable-profiled combined with --disable-static to function in the build tree. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10492 dc483132-0cff-0310-8789-dd5450dbe970
* Remove trailing slash from thisconfigdir. Change directory syntaxTom Yu1998-02-1813-14/+46
| | | | | | used in BUILDTOP. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10464 dc483132-0cff-0310-8789-dd5450dbe970
* Document previous changesTom Yu1998-02-131-0/+15
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10446 dc483132-0cff-0310-8789-dd5450dbe970
* * recno/extern.h: Additional renamingTom Yu1998-02-131-0/+18
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10445 dc483132-0cff-0310-8789-dd5450dbe970
* * hash/extern.h: Additional renamingTom Yu1998-02-134-3/+40
| | | | | | | | | | | * hash/hash_page.c (page_to_oaddr): (is_bitmap_pgno): Declare static to avoid leaking symbols. * hash/search.h: Additional renaming. * hash/hash_log2.c (__log2): Rename explicitly. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10444 dc483132-0cff-0310-8789-dd5450dbe970
* * mpool/mpool.h: Additional renamingTom Yu1998-02-131-0/+10
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10443 dc483132-0cff-0310-8789-dd5450dbe970
* * btree/extern.h: Additional renamingTom Yu1998-02-131-0/+29
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10442 dc483132-0cff-0310-8789-dd5450dbe970
* * db-int.h: Additional renamingTom Yu1998-02-132-0/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10441 dc483132-0cff-0310-8789-dd5450dbe970
* Add AC_PROG_INSTALL since it's needed to install the libraries andTheodore Tso1998-02-132-0/+6
| | | | | | header files. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10436 dc483132-0cff-0310-8789-dd5450dbe970
* * hash/hash.c (__kdb2_hash_open): Rename to avoid potentialTom Yu1998-02-134-26/+37
| | | | | | | | | | | | collision with NetBSD libc. * hash/dbm.c: Rename lots of functions to avoid colliding with native dbm implementations. * db/db.c (kdb2_dbopen): Rename to avoid colliding with NetBSD libc. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10431 dc483132-0cff-0310-8789-dd5450dbe970
* * db.h: Rename dbopen to avoid collision with NetBSD libcTom Yu1998-02-134-0/+24
| | | | | | | | | | * db-ndbm.h: Rename lots of functions to avoid collisions with native dbm implementations. * db-int.h: Rename __hash_open to avoid potential collision with NetBSD libc. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10430 dc483132-0cff-0310-8789-dd5450dbe970
* Mass makefile/configure.in build system revampTheodore Tso1998-02-1225-70/+194
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10424 dc483132-0cff-0310-8789-dd5450dbe970
* prof_parse.c (parse_std_line, parse_quoted_string, need_double_quotes,Theodore Tso1998-01-243-8/+122
| | | | | | | | | | output_quoted_string, dump_profile, dump_profile_to_file): Vastly improved the profile parsing; whitespace at the end of lines are now ignored. Added quoted string parsing, complete with backquote processing. Strings which need to be quoted are properly quoted on output. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10373 dc483132-0cff-0310-8789-dd5450dbe970
* * btree/bt_open.c: Added O_BINARY for __CYGWIN32__.Ezra Peisach1998-01-2121-31/+67
| | | | | | | | | | | | | | | | | | | | | | | | | * clib/mkstemp.c: Added O_BINARY for __CYGWIN32__. * db/db.c: Added O_BINARY for __CYGWIN32__. * hash/dbm.c: Added O_BINARY for __CYGWIN32__. * hash/hash.c: Added O_BINARY for __CYGWIN32__. * hash/hsearch.c: Added O_BINARY for __CYGWIN32__. * include/db-int.h: Added O_BINARY for __CYGWIN32__. * recno/rec_open.c: Added O_BINARY for __CYGWIN32__. * test/dbtest.c: Added O_BINARY for __CYGWIN32__. * test/SEQ_TEST/t.c: Added O_BINARY for __CYGWIN32__. * test/btree.tests/main.c: Added O_BINARY for __CYGWIN32__. * test/hash1.tests/driver2.c: Added O_BINARY for __CYGWIN32__. * test/hash1.tests/tcreat3.c: Added O_BINARY for __CYGWIN32__. * test/hash1.tests/tdel.c: Added O_BINARY for __CYGWIN32__. * test/hash1.tests/thash4.c: Added O_BINARY for __CYGWIN32__. * test/hash1.tests/tread2.c: Added O_BINARY for __CYGWIN32__. * test/hash1.tests/tseq.c: Added O_BINARY for __CYGWIN32__. * test/hash1.tests/tverify.c: Added O_BINARY for __CYGWIN32__. * test/hash2.tests/bigtest.c: Added O_BINARY for __CYGWIN32__. * test/hash2.tests/passtest.c: Added O_BINARY for __CYGWIN32__. Changes originally by Jeremy Allison (jra@cygnus.com) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10364 dc483132-0cff-0310-8789-dd5450dbe970
* * hash/hash_bigkey.c (collect_key, collect_data): Cast mallocEzra Peisach1998-01-154-6/+36
| | | | | | | | | | | | | | | return value to correct types. (raeburn@cygnus.com) * obj/Makefile.in (check): Set srcdir in environment. (raeburn@cygnus.com) * configure.in (AC_COMPILE_TYPE): replacment for AC_CHECK_TYPE that uses AC_TRY_COMPILE instead of AC_EGREP_CPP. For now, only use it for the int32 types (where AC_CHECK_TYPE gets the wrong result on __CYGWIN32__) and plan that AC_CHECK_TYPE itself gets repaired. (Fix by eichin@cygnus.com) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10351 dc483132-0cff-0310-8789-dd5450dbe970
* * hash/dbm.c: Rename the errno member of HTABTom Yu1997-12-214-9/+19
| | | | | | | | | | * hash/hash.h: Rename the errno member of HTAB to local_errno to avoid a collision with a glibc macro. * hash/hash.c: Rename the errno member of HTAB to local_errno to avoid a collision with a glibc macro. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10342 dc483132-0cff-0310-8789-dd5450dbe970
* * getpty.c (pty_getpty): Fix goof in previous, which introducedTom Yu1997-12-072-3/+8
| | | | | | another fencepost error. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10327 dc483132-0cff-0310-8789-dd5450dbe970
* Include <string.h> for memset prototypeEzra Peisach1997-12-072-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10324 dc483132-0cff-0310-8789-dd5450dbe970
* * getpty.c (pty_getpty): Fix checks on string lengths to accountTom Yu1997-12-052-32/+31
| | | | | | for terminating nul character. Some whitespace fixups. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10313 dc483132-0cff-0310-8789-dd5450dbe970
* * pty_err.et: Add PTY_OPEN_SLAVE_TOOSHORT error codeTom Yu1997-12-033-1/+11
| | | | | | | * open_slave.c (pty_open_slave): Check to ensure that the slave name is not NULL or zero-length. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10310 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (clean-unix): Remove db lib symlinksEzra Peisach1997-11-192-0/+8
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10298 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Update to new library build systemTom Yu1997-11-193-42/+22
| | | | | | * Makefile.in: Update to new library build system. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10291 dc483132-0cff-0310-8789-dd5450dbe970
* libupdate.sh: Add semicolons to prevent Bash 2.0 from complaining.Theodore Tso1997-11-142-2/+7
| | | | | | [krb5-build/486] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10279 dc483132-0cff-0310-8789-dd5450dbe970
* * pty-int.h: Do not prototype initialize_pty_error_table asEzra Peisach1997-10-282-1/+5
| | | | | | pty-err.h does as well. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10257 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (CFILES): Add $(srcdir)Ezra Peisach1997-10-242-4/+11
| | | | | | Allows make depend to run, git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10249 dc483132-0cff-0310-8789-dd5450dbe970
* * mkrel: Allow for edits of relevant files that should be changedTom Yu1997-10-082-2/+51
| | | | | | | each time a release is cut. Some snapshot support. Add "-9" flag to gzip. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10219 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (SRCS): Add $(srcdir) as prefix to srcsEzra Peisach1997-10-072-1/+8
| | | | | | Allows make depend to work... git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10209 dc483132-0cff-0310-8789-dd5450dbe970
* Punt HAS_STDLIB_H, NO_STDLIB_H, POSIX_TYPES; see individual ChangeLogsTom Yu1997-10-022-1/+6
| | | | | | for details git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10204 dc483132-0cff-0310-8789-dd5450dbe970
* Modified to work with the new CVS re-organizationTheodore Tso1997-10-011-6/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10203 dc483132-0cff-0310-8789-dd5450dbe970