| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
| |
VHANG_FIRST is not defined, declare local variable.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13231 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
| |
have utmpname() but not utmpname().
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13230 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
| |
property of incomming parameter in casts.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13228 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13226 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13192 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13184 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13062 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
| |
line.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12990 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12916 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12911 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
| |
Use it when building test programs too.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12910 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
| |
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 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
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12883 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12882 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12881 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12879 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12878 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12877 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12876 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12868 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12857 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12856 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
AC_CHECK_FUNCS instead of AC_HAVE_FUNCS.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12829 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12828 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
portable enough.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12719 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12620 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
| |
USE_SIGPROCMASK is defined and not POSIX_SIGNALS.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12605 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|