Home | History | Annotate | Download | only in libutil
History log of /src/lib/libutil/ttymsg.c
RevisionDateAuthorComments
 1.23  18-Jan-2009  lukem fix -Wsign-compare issues
 1.22  27-Aug-2005  elad Lint warnings.
 1.21  08-Jan-2005  christos Avoid spinning if writing to a pty returns 0. This happened to me when
I had a pty with a suspended sshd (why?).
 1.20  10-Nov-2004  christos - don't complain if the pty is of the form pts/n
- fix off by one error in iovlen bounds checking
- print the function name in the error message and make the
error messages consistent
- knf
 1.19  29-Mar-2004  wiz Use pid_t for pids. From Jeff Ito in PR 24854.
 1.18  07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.
 1.17  27-Mar-2003  lukem Clear O_NONBLOCK correctly (previous code probably only worked because
O_NONBLOCK and F_SETFL are the same value).
Obtained from FreeBSD PR 8681 via FreeBSD's usr.bin/wall/ttymsg.c 1.5.
 1.16  16-Aug-2002  itojun defend against malicious line in ut_line, which could cause unwanted
writes to anything under /dev. revoke setuid/gid privs earlier.
From: xs@kittenz.org
 1.15  05-Jul-2000  ad - __RCSID() police.
- ANSIfy.
- Miscellaneous style changes.
- Shutup lint(1) in one or two cases.
 1.14  20-Sep-1999  lukem back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
 1.13  16-Sep-1999  lukem * use _DIAGASSERT() to check pointer arguments against NULL and file
descriptors against -1 (as appropriate).
* add actual checks which to detect stuff that would trigger_DIAGASSERT(),
and attempt to return a sane error condition.
* knf some code
* remove some `register' decls.

the first two items result in the addition of code similar to the
following in various functions:

_DIAGASSERT(path != NULL)
#ifdef _DIAGNOSTIC
if (path == NULL) {
errno = EFAULT;
return (-1);
}
#endif
 1.12  02-Jul-1999  simonb More trailing white space.
 1.11  27-Sep-1998  christos Use posix signal system calls.
XXX: Library functions should not unblock signals like this!
 1.10  10-Aug-1998  perry bzero->memset, bcopy->memcpy, bcmp->memcmp
 1.9  09-May-1998  kleink Delint last.
 1.8  08-May-1998  kleink Fix some arithmetics lossage on typeless pointers.
 1.7  22-Jan-1998  perry unregisterify
 1.6  01-Jul-1997  mikel indicate new location in error message
 1.5  29-Jun-1997  christos - RCSID police
- Add ttymsg.3
 1.4  11-Feb-1997  mrg remove possibly dangerous sprintf and strcpy calls.
 1.3  17-Nov-1994  jtc Merged with 4.4lite
Changed to conform to NetBSD's new RCS Id conventions.
 1.2  01-Aug-1993  mycroft Add RCS identifiers.
 1.1  21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2  17-Nov-1994  jtc imported from 4.4lite
 1.1.1.1  21-Mar-1993  cgd initial import of 386bsd-0.1 sources

RSS XML Feed