summaryrefslogtreecommitdiffstats
path: root/src/util
Commit message (Collapse)AuthorAgeFilesLines
...
* * sane_hostname.c (pty_make_sane_hostname): Remove unusedTom Yu1999-02-182-1/+5
| | | | | | "char *scratch". git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11178 dc483132-0cff-0310-8789-dd5450dbe970
* * sane_hostname.c: Re-order so that pty-int.h precedes libpty.h toTom Yu1999-02-172-2/+7
| | | | | | prevent conflicting definitions of struct sockaddr_in git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11174 dc483132-0cff-0310-8789-dd5450dbe970
* * sane_hostname.c: Force maxlen to be 16 if it's less than 16,Tom Yu1999-02-122-1/+5
| | | | | | since otherwise a numeric IP address won't fit. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11169 dc483132-0cff-0310-8789-dd5450dbe970
* bump minor versionTom Yu1999-02-122-2/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11168 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in: Add sane_hostname.{o,c}Tom Yu1999-02-124-2/+112
| | | | | | | | | * libpty.h: Add prototype for make_sane_hostname. * sane_hostname.c: New file; add function to "sanitize" hostname for logging purposes. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11165 dc483132-0cff-0310-8789-dd5450dbe970
* (Forgot to check in ChangeLog earlier...)Theodore Tso1999-02-091-0/+11
| | | | | | | | | | | | prof_tree.c (profile_node_iterator): Added comments indicating that profile_node_iterator, not being an exported interface, returns pointers into the parse tree, and that values should be strdup()'ed before returning them to a calling application. prof_get.c (profile_iterator): Strdup the name and value strings before returning them to the calling application. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11153 dc483132-0cff-0310-8789-dd5450dbe970
* * et_c.awk: Fix to not depend on CPP symbol "unix"Tom Yu1999-02-023-2/+8
| | | | | | * et_h.awk: Fix to not depend on CPP symbol "unix". git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11137 dc483132-0cff-0310-8789-dd5450dbe970
* Added missing #include of termios.hTheodore Tso1999-01-271-0/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11134 dc483132-0cff-0310-8789-dd5450dbe970
* listen.c (print_prompt): Replace BSD-style ioctl with termios interfaceTheodore Tso1999-01-273-12/+12
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11133 dc483132-0cff-0310-8789-dd5450dbe970
* Makefile.in, configure.in: Move the responsibility for generatingTheodore Tso1999-01-279-36/+33
| | | | | | | Makefile files for the following subdirectories to the top-level: util, util/send-pr, util/dyn, lib, config-files, and gen-manpages. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11132 dc483132-0cff-0310-8789-dd5450dbe970
* configure.in: Remove test CHECK_WAIT_TYPE since nothing is using theTheodore Tso1999-01-273-1/+7
| | | | | | results of that test (WAIT_USES_INT). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11131 dc483132-0cff-0310-8789-dd5450dbe970
* * prof_tree.c (profile_node_iterator): Added comments indicating thatTheodore Tso1999-01-252-2/+39
| | | | | | | | | | | profile_node_iterator, not being an exported interface, returns pointers into the parse tree, and that values should be strdup()'ed before returning them to a calling application. prof_get.c (profile_iterator): Strdup the name and value strings before returning them to the calling application. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11124 dc483132-0cff-0310-8789-dd5450dbe970
* profile.hin: Fix definition of PROTOYPE so that it works under C++Theodore Tso1999-01-212-1/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11113 dc483132-0cff-0310-8789-dd5450dbe970
* prof_tree.c (profile_node_iterator): Make sure the pointer to theTheodore Tso1999-01-023-3/+26
| | | | | | | | | iterator function is non-NULL before checking the magic value. prof_file.c (profile_open_file): Add ability to parse filenames that begin with "~/" and substitute it with "$HOME/". git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11096 dc483132-0cff-0310-8789-dd5450dbe970
* prof_get.c: Add new public profile_iterator functions for iteratingTheodore Tso1998-12-045-5/+62
| | | | | | over values found in the profile file. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11062 dc483132-0cff-0310-8789-dd5450dbe970
* 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