summaryrefslogtreecommitdiffstats
path: root/src/util
Commit message (Collapse)AuthorAgeFilesLines
* * getopt.c, getopt_long.c, getopt.h: Update to latest BSD codeDanilo Almeida2000-02-045-40/+341
| | | | | | | | found (from NetBSD). * Makefile.in: Build getopt.lib which includes getopt.obj and getopt_long.obj. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11990 dc483132-0cff-0310-8789-dd5450dbe970
* * listen.c (ss_listen): Local var END should be volatileKen Raeburn2000-02-022-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11987 dc483132-0cff-0310-8789-dd5450dbe970
* * error_message.c, error_table.h: Added support to use ErrorLib Alexandra Ellwood1999-10-281-0/+6
| | | | | | | to get MIT Support Library and Mac OS Toolbox error codes (similar to the way windows does it). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11888 dc483132-0cff-0310-8789-dd5450dbe970
* Added support to use ErrorLib to get MIT Support Library and Mac OS Toolbox ↵Alexandra Ellwood1999-10-282-2/+20
| | | | | | error codes (similar to the way windows does it) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11886 dc483132-0cff-0310-8789-dd5450dbe970
* log tritan's changesTom Yu1999-10-268-0/+56
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11877 dc483132-0cff-0310-8789-dd5450dbe970
* Clean up usage of CFLAGS, CPPFLAGS, DEFS, DEFINES, LOCAL_INCLUDES suchWilfredo Sanchez1999-10-268-53/+49
| | | | | | | that one can override CFLAGS from the command line without losing CPP search patchs and defines. Some associated Makefile cleanup. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11876 dc483132-0cff-0310-8789-dd5450dbe970
* copyright notice updates from 1.1 branchKen Raeburn1999-09-2422-15/+81
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11853 dc483132-0cff-0310-8789-dd5450dbe970
* Danilo's const_profile_filespec_t and other changes from 1.1 branchKen Raeburn1999-09-016-14/+32
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11766 dc483132-0cff-0310-8789-dd5450dbe970
* Removed com_err functions from profile.expMiro Jurisic1999-08-182-3/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11681 dc483132-0cff-0310-8789-dd5450dbe970
* Added et.expMiro Jurisic1999-08-182-0/+12
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11680 dc483132-0cff-0310-8789-dd5450dbe970
* * mkrel (reldate): Fix to deal with release branch snapshotsTom Yu1999-08-172-1/+27
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11666 dc483132-0cff-0310-8789-dd5450dbe970
* * README.NOT.SLEEPYCAT.DB: New file; pointer to README toTom Yu1999-08-164-41/+70
| | | | | | | | | | | hopefully unconfuse people. * README: Add notice to the effect that this is not Berkeley or Sleepycat DB. * README.db2: Renamed from README. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11661 dc483132-0cff-0310-8789-dd5450dbe970
* Remove profile_free_string because we already have profile_release_stringDanilo Almeida1999-08-053-13/+2
| | | | | | (who named these things anyhow?) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11623 dc483132-0cff-0310-8789-dd5450dbe970
* Add profile_free_string to free strings allocated by profile_get_stringDanilo Almeida1999-08-053-0/+18
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11622 dc483132-0cff-0310-8789-dd5450dbe970
* Update dump-utmp from KerbNet 1.2.Ken Raeburn1999-08-034-30/+109
| | | | | | | Add makefile rules for building dump-utmp on request. Fix line id for console on Solaris. (PR561) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11618 dc483132-0cff-0310-8789-dd5450dbe970
* prof_file.c (profile_open_file)Alexandra Ellwood1999-08-031-0/+6
| | | | | | | Mac OS side now sets profile->magic to PROF_MAGIC_FILE so the rest of the functions think it's a real profile. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11617 dc483132-0cff-0310-8789-dd5450dbe970
* Added line to initialize profile->magic on the Macintosh because all of the ↵Alexandra Ellwood1999-08-031-0/+1
| | | | | | other profile library functions check for it and do nothing if it isn't there git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11614 dc483132-0cff-0310-8789-dd5450dbe970
* Updating changelogJeffrey Altman1999-07-231-0/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11593 dc483132-0cff-0310-8789-dd5450dbe970
* If no filespecs are provided, then return an empty profileJeffrey Altman1999-07-231-9/+13
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11590 dc483132-0cff-0310-8789-dd5450dbe970
* clean up more conflictsTom Yu1999-07-231-17/+33
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11580 dc483132-0cff-0310-8789-dd5450dbe970
* resolve conflicts from autoconf-2.13 importTom Yu1999-07-2324-2059/+4977
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11577 dc483132-0cff-0310-8789-dd5450dbe970
* Initial revisionTom Yu1999-07-231-0/+343
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11574 dc483132-0cff-0310-8789-dd5450dbe970
* * prof_int.h (profile_t): Delete typedef, since Miro changed prof_int.h toKen Raeburn1999-07-214-20/+25
| | | | | | | | include profile.h, which also has the typedef. * prof_file.c, prof_init.c: Fix typos and missed variable and type name changes from Miro's patch. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11571 dc483132-0cff-0310-8789-dd5450dbe970
* #ifdefed out krb5_*config_file on MacOSMiro Jurisic1999-07-211-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11570 dc483132-0cff-0310-8789-dd5450dbe970
* Profile library now uses MacOS native file specifiers on MacOS, and file ↵Miro Jurisic1999-07-211-13/+44
| | | | | | paths on all other OSes git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11569 dc483132-0cff-0310-8789-dd5450dbe970
* Profile library now uses MacOS native file specifiers on MacOS, and file ↵Miro Jurisic1999-07-213-90/+136
| | | | | | paths on all other OSes git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11566 dc483132-0cff-0310-8789-dd5450dbe970
* Added #ifdef __cplusplus extern "C"Miro Jurisic1999-07-142-0/+12
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11565 dc483132-0cff-0310-8789-dd5450dbe970
* AddedMiro Jurisic1999-07-101-0/+33
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11553 dc483132-0cff-0310-8789-dd5450dbe970
* Check whether profile is valid before partying on itDanilo Almeida1999-06-232-0/+11
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11527 dc483132-0cff-0310-8789-dd5450dbe970
* minor syntax cleanupKen Raeburn1999-06-182-1/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11522 dc483132-0cff-0310-8789-dd5450dbe970
* Fix memory leak in profile_init_path()Danilo Almeida1999-06-172-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11517 dc483132-0cff-0310-8789-dd5450dbe970
* Get rid of control characters in text fileDanilo Almeida1999-06-152-16/+20
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11512 dc483132-0cff-0310-8789-dd5450dbe970
* Merged changed from Mac_V2_0_derivatives branchMiro Jurisic1999-06-092-1/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11499 dc483132-0cff-0310-8789-dd5450dbe970
* These are a bunch of intertwined changes to the windows build.Danilo Almeida1999-05-196-6/+52
| | | | | | | | | | | | | | | | | | | | | | | | This log message includes all of the different changes across several Makefile.in files (and win-pre.in and win-post.in): - Remove "-" from recursive windows make invocations so that we can bail on a build error. New MIGNORE option restores the previous bailing behavior. - Update windows readme to reflect current practices. - Add NO_OUTDIR synonym for NO_OUTPRE in windows build. - Top-level windows Makefile now builds util which now builds util/windows, util/et, and util/profile (instead of building them directly). - Remove trailing backslash from rule that creates the windows output dir. This backslash would cause the rule to always be invoked. - Move WCONFIG and WCONFIG_EXE definitions into win-pre.in. - Remove rules in include directory that blindly copy include header files from gssapi, et, and profile. Instead, use/add build rules to the components that generate them that copy only when the file changes. - Use dependencies in include/krb5 to copy header files instead of blindly copying them. Add !if 0/!endif wrapper to Unix version of the rules. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11464 dc483132-0cff-0310-8789-dd5450dbe970
* Commit the right version of the Changelog comment for previous checkinTheodore Tso1999-05-151-5/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11444 dc483132-0cff-0310-8789-dd5450dbe970
* makeshlib.sh (library): Add -bnoentry to the AIX shared library linkTheodore Tso1999-05-152-2/+12
| | | | | | | | | line so that the shared libraries can be dynamically loaded. Also make the library file executable, which is apparently also necessary. (Patch from Duke, needed for SAP. Note: I didn't take their addition of -lbsd, since I don't think that's needed or a good idea). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11443 dc483132-0cff-0310-8789-dd5450dbe970
* Do win32 build in subdirDanilo Almeida1999-05-106-26/+40
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11432 dc483132-0cff-0310-8789-dd5450dbe970
* * update_utmp.c (pty_update_utmp): utx.ut_pid is a pid_t, andTom Yu1999-04-242-1/+8
| | | | | | | | ent.ut_pid is sometimes a short; accordingly, use pid rather than ent.ut_pid, which might have gotten truncated. This fixes an Irix problem found by <rbasch@mit.edu>. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11394 dc483132-0cff-0310-8789-dd5450dbe970
* update_wtmp.c: Don't use updwtmpx() even if it exists for glibc 2.1,Theodore Tso1999-04-142-0/+14
| | | | | | | | since it's the same as updwtmp(), and glibc doesn't define PATH_WTMPX. updwtmpx() is not part of the XPG standard anyway. (Needed for RedHat 6.0.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11357 dc483132-0cff-0310-8789-dd5450dbe970
* prof_init.c (profile_abandon): New function which frees the profileTheodore Tso1999-04-145-6/+41
| | | | | | | | | | handle and throwing away any changes that might have been made before they are flushed to disk. prof_file.c (profile_close_file): Move functionality of freeing the profile file to the new function profile_free_file(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11355 dc483132-0cff-0310-8789-dd5450dbe970
* Rename CHANGELOG to CHANGELOG.db2 to avoid messing up things under WindowsTheodore Tso1999-04-081-0/+0
| | | | | | since there is a ChangeLog file which is different. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11345 dc483132-0cff-0310-8789-dd5450dbe970
* * update_wtmp.c: Define WTMPX_FILE to be _PATH_WTMPX in case we'reTom Yu1999-03-282-0/+8
| | | | | | on a system that cleans up the namespace that way. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11323 dc483132-0cff-0310-8789-dd5450dbe970
* * profile.hin: Fix GSS_DLLIMPTom Yu1999-03-152-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11293 dc483132-0cff-0310-8789-dd5450dbe970
* * com_err.h: Fix GSS_DLLIMPTom Yu1999-03-152-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11292 dc483132-0cff-0310-8789-dd5450dbe970
* * profile.hin: Fix prototype of profile_flush() to use long ratherTom Yu1999-03-092-1/+7
| | | | | | | than errcode_t to avoid breaking other stuff that includes profile.h. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11246 dc483132-0cff-0310-8789-dd5450dbe970
* * prof_tree.c (profile_node_iterator): Fix bug where it will loopTheodore Tso1999-03-083-3/+15
| | | | | | | | | | endlessly when searching an empty section. * test_profile.c: Add code so that the "add" code will interpret "NULL" as calling profile_add_relation with a null pointer for the value. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11245 dc483132-0cff-0310-8789-dd5450dbe970
* prof_file.c (profile_flush_file): On the Macintosh, fopen() doesn'tTheodore Tso1999-03-033-2/+19
| | | | | | | | | set errno when fopen fails to open a file. Work around this by setting errno to PROF_FAIL_OPEN in this case. prof_err.et: Add new error code PROF_FAIL_OPEN. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11238 dc483132-0cff-0310-8789-dd5450dbe970
* test_profile.c: Added ability to test profile set functions, and in aTheodore Tso1999-03-0314-81/+531
| | | | | | | | | | | | | | | | | | | | | | batch mode. prof_init.c (profile_flush): Add new public function for flushing changes made to the profile. prof_parse.c (profile_write_tree_file): Add official internal function for flushing out a profile tree to a FILE *. configure.in, prof_file.c (rw_access): Add new function which checks to see whether we have read/write access, and emulate this for losing non-POSIX OS's. prof_file.c (profile_flush_file): Add support for writing modified profile file's. Call profile_flush_file from profile_close_file(). Also fixed minor bugs in prof_tree.c which affected renaming sections and modifying existing relations. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11237 dc483132-0cff-0310-8789-dd5450dbe970
* prof_tree.c: Add new functions profile_get_node_name,Theodore Tso1999-03-039-134/+620
| | | | | | | | | | | | | | | | | | | | | profile_get_node_value, profile_find_node, profile_remove_node, profile_set_relation_value, profile_rename_node. Rewrite profile_find_node_relation and profile_find_node_subsection in terms of profile_find_node. prof_set.c, Makefile.in: Add a new file which exports the public interfaces for setting profile entries. prof_get.c, prof_init.c, prof_int.h: Add the KRB5_DLLIMP and KRB5_CALLCONV to all of the various profile routines so they can be properly exported via a Windows DLL. prof_int.h: Add definition for the flags in the profile structure. prof_err.et: Add new error codes PROF_SET_SECTION_VALUE, PROF_EINVAL, PROF_READ_ONLY, and PROF_EXISTS. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11236 dc483132-0cff-0310-8789-dd5450dbe970
* test_parse.c (main): Add a call to profile_verify_node so we can testTheodore Tso1999-02-193-4/+24
| | | | | | | | | | the internal rep invariants. prof_tree.c (profile_verify_node): Fix bug in profile_verify_node in the group_level test. Also make profile_verify_node check the return code when it is recursively testing the child nodes. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11189 dc483132-0cff-0310-8789-dd5450dbe970