summaryrefslogtreecommitdiffstats
path: root/src/util
Commit message (Collapse)AuthorAgeFilesLines
...
* * libpty.h: Change variable line in prototype to tty_line toEzra Peisach2001-06-222-1/+6
| | | | | | prevent shadowing. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13485 dc483132-0cff-0310-8789-dd5450dbe970
* * test/dbtest.c: Cast argument to isspace() to int. Do not shadowEzra Peisach2001-06-215-51/+59
| | | | | | | | | global variables type and flags. * btree/bt_search.c, btree/bt_seq.c, recno/rec_search.c: Change local variable index to idx. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13467 dc483132-0cff-0310-8789-dd5450dbe970
* * error_message.c (error_message): Conditional label on _sgi soEzra Peisach2001-06-212-0/+7
| | | | | | gcc does not warn about being defined and not used. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13438 dc483132-0cff-0310-8789-dd5450dbe970
* * btree/bt_delete.c, btree/bt_put.c, recno/rec_delete.c,Ezra Peisach2001-06-216-68/+76
| | | | | | | | | recno/rec_put.c: Change local variable index to idx. * hash/hash_page.c: Change local variable stat to status to prevent shadowing system function. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13437 dc483132-0cff-0310-8789-dd5450dbe970
* delete some unnecessary castsKen Raeburn2001-06-213-2/+10
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13425 dc483132-0cff-0310-8789-dd5450dbe970
* handle irix high-numbered error codesKen Raeburn2001-06-203-7/+24
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13392 dc483132-0cff-0310-8789-dd5450dbe970
* getsyms: Fix quoting around find command looking for configure.in files; ↵Ken Raeburn2001-06-162-1/+6
| | | | | | sort list git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13352 dc483132-0cff-0310-8789-dd5450dbe970
* * test_profile.c: Include <string.h> for strcmp() prototypeEzra Peisach2001-06-112-1/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13337 dc483132-0cff-0310-8789-dd5450dbe970
* * pty-int.h: Provide revoke() prototype if system headers lackingEzra Peisach2001-06-114-4/+32
| | | | | | | | | | | * logwtmp.c: Provide logwtmp() prototype if needed. * configure.in: Check for system provided getutmp(), logwtmp() and revoke() prototypes. Check for util.h, libutil.h. * update_wtmp.c: Provide prototype for getutmp() if needed. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13336 dc483132-0cff-0310-8789-dd5450dbe970
* * argv_parse.c (argv_parse): Cast argument to isspace() as int.Ezra Peisach2001-06-113-5/+11
| | | | | | | | | | * prof_parse.c (skip_over_blanks, parse_std_line, need_double_quotes): Likewise On some systems, isspace() is a macro indexing an array. Gcc warns on indexing an array with a char. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13335 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (MLIBS): Do not link against libgen.a for testEzra Peisach2001-06-112-1/+6
| | | | | | programs. (only needed for krb5 an_to_ln code). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13329 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Check for system provided getutmp() prototypeEzra Peisach2001-06-113-1/+26
| | | | | | * update_wtmp.c: Provide prototype for getutmp() if needed. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13325 dc483132-0cff-0310-8789-dd5450dbe970
* * request_tbl.c (ss_add_request_table): Do not cast argument toEzra Peisach2001-06-072-1/+6
| | | | | | realloc() to char *. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13291 dc483132-0cff-0310-8789-dd5450dbe970
* * getpty.c: Make pty_getpty() into ptyint_getpty_ext(), which hasTom Yu2001-05-164-36/+379
| | | | | | | | | | | | | | | | | | | an extra argument that determines whether to call grantpt() and unlockpt() on systems that support it. The new pty_getpty() will simply call the extended version. This is to support some wackiness needed by pty_paranoia.c tests. * pty-int.h: Add prototype for ptyint_getpty_ext(). * pty_paranoia.c: Add rant about ptys and quirks therein. Needs to be updated somewhat. Add some more paranoia for the case where we actually succeed in opening the slave of a closed master and then succeed in opening the same master. This program will get rewritten at some point to actually see what things result in EOFs and under what conditions data will actually get passed between master and slave. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13243 dc483132-0cff-0310-8789-dd5450dbe970
* * pty_paranoia.c: New file; do many paranoid checks about cttyTom Yu2001-05-115-2/+367
| | | | | | | | | | | | | | | | handling by the pty drivers. * Makefile.in: Add rules for pty_paranoia and check-paranoia, which runs pty_paranoia. * configure.in: Define REVOKE_NEEDS_OPEN for Tru64. Add support for program building and run flags for the sake of pty_paranoia. * open_slave.c: Fix somewhat; AIX doesn't like opening the ctty twice, so only do initial open if we special-case it in configure.in, e.g. for Tru64. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13239 dc483132-0cff-0310-8789-dd5450dbe970
* * logwtmp.c: Delete code under "#if 0". Fix reversed test forTom Yu2001-05-093-49/+20
| | | | | | | | | | | loggingin. Don't forget to set the ut_tv or ut_time for the entry. * update_utmp.c: Update rant about Tru64; remove fetching of ut_user from old entry. The existence of the old ut_user in the logout entry in wtmp was confusing last. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13237 dc483132-0cff-0310-8789-dd5450dbe970
* * cleanup.c: Call update_utmp() with the correct pid to assist inTom Yu2001-05-086-215/+288
| | | | | | | | | | | | | | | | | | | finding the old utmp entry. * open_ctty.c: Reformat somewhat and revise comment. * open_slave.c: Rework significantly. Primarily, keep a fd open to the slave if we need to reopen the slave device following vhangup() or revoke(), to accommodate various OS quirks. * update_utmp.c: Revise history section somewhat to document more HP-UX brokenness. Search via ut_pid before searching via ut_line. Copy stuff around because entuxent() will clobber some things. * void_assoc.c: Revise comment and reformat somewhat. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13234 dc483132-0cff-0310-8789-dd5450dbe970
* * open_slave.c (pty_open_slave): If revoke() present on system butEzra Peisach2001-05-042-1/+6
| | | | | | VHANG_FIRST is not defined, declare local variable. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13231 dc483132-0cff-0310-8789-dd5450dbe970
* * dump-utmp.c: Fix some off-by-one errors. Handle cases where weTom Yu2001-05-042-10/+18
| | | | | | have utmpname() but not utmpname(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13230 dc483132-0cff-0310-8789-dd5450dbe970
* * pty-int.h: Fix typo; VHANG_first -> VHANG_FIRSTTom Yu2001-05-043-2/+27
| | | | | | | * open_slave.c (pty_open_slave): Add workaround for Tru64 v5.0, since its revoke() will fail if the slave isn't open already. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13229 dc483132-0cff-0310-8789-dd5450dbe970
* * sane_hostname.c (pty_make_sane_hostname): Preserve constEzra Peisach2001-05-032-1/+6
| | | | | | property of incomming parameter in casts. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13228 dc483132-0cff-0310-8789-dd5450dbe970
* * cleanup.c (pty_cleanup): Delcare local variable only ifEzra Peisach2001-05-034-1/+21
| | | | | | | | | | | | | | | VHANG_LAST defined. * logwtmp.c (pty_logwtmp): Only declare local variables if logwtmp() not available on system. * sane_hostname.c (sockaddrlen): Only define static function if HAVE_GETNAMEINFO defined. (pty_make_sane_hostname) Declare goto target only if code compiled in. gcc warning cleanups git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13227 dc483132-0cff-0310-8789-dd5450dbe970
* * update_utmp.c (pty_update_utmp): Fix typo (OWRONLY -> O_WRONLY)Ken Raeburn2001-05-022-1/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13226 dc483132-0cff-0310-8789-dd5450dbe970
* * update_wtmp.c (ptyint_update_wtmpx): Add missing semi-colon inEzra Peisach2001-05-012-1/+6
| | | | | | code path if PTY_UTMP_E_EXIT and PTY_UTMPX_E_EXIT exist. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13223 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Fix some quoting of shell variables when passingTom Yu2001-04-304-23/+46
| | | | | | | | | | | | | | to "test". Reorder some logic in consistency checks to validate cache variables against "yes" to account for possible empty or nonexistent values. * pty-int.h: Fix conditional prototype of update_wtmp(). * update_wtmp.c: Fix conditional compilation of update_wtmp() to cover the case where we have setutxent() but don't have updwtmpx() and WTMPX_FILE, as is the case on some Linux installations. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13222 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in(K5_CHECK_UT_MEMBER): Fix typo in previous; makeTom Yu2001-04-282-1/+5
| | | | | | | sure to include the correct header when checking structure members. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13219 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Many changes to support the rewriting of the utmpTom Yu2001-04-289-398/+1111
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pieces of libpty. Do a large amount of checking for consistency of various utmp and utmpx APIs as currently understood. See rant in update_utmp.c. * dump-utmp.c: Rewrite; now has capability to use utmp{,x}name() to extract entries from utmp and utmpx files. Adjusts field widths when printing as appropriate. * libpty.h: Update call signature for update_utmp() and logwtmp(); make prototypes unconditional. * logwtmp.c: Rewrite. Use pututline() or pututxline() API whenever possible. * pty-int.h: Update call signatures for update_wtmp{,x}(); make prototypes unconditional. * sane_hostname.c: Use the autoconf-correct macro names. * update_utmp.c: Rewrite. Basically, use functions from the pututline() or pututxline() API whenever possible, to avoid lossage. Inserted large rant about the conjectured history of BSD utmp, sysV utmp, and utmpx, as well as documentation about some known quirks. * update_wtmp.c: Rewrite. Add new function ptyint_logwtmpx() that takes a utmpx rather than a utmp, so it can fail to lose data converting to and from utmp. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13218 dc483132-0cff-0310-8789-dd5450dbe970
* test.c: Always include stdlib.hEzra Peisach2001-04-252-2/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13192 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in: Add lclint supportEzra Peisach2001-04-256-24/+100
| | | | | | | | | | | | | | * dyn.h: Lclint annotate functions. * dyn_create.c (DynCreate): Do not assume that malloc(0) is valid and returns a valid pointer. Fix memory leak if malloc fails. * dyn_realloc.c (_DynResize): Turn off warning of shifting a signed variable. * test.c: Check the return values of all library calls. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13191 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (unixmac): Target deletedKen Raeburn2001-04-174-4/+8
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13184 dc483132-0cff-0310-8789-dd5450dbe970
* * 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