summaryrefslogtreecommitdiffstats
path: root/lib/libutil/logwtmp.c
Commit message (Collapse)AuthorAgeFilesLines
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* If given host.domain:nn[.nn], trimdomain() now reduces it tobrian1999-04-091-9/+33
| | | | host:nn[.nn] (if the domain is the same as the local one).
* bcopy -> memmovebrian1999-04-081-2/+2
| | | | Suggested by: archie
* Tidy up trimdomain() and document it.brian1999-04-071-11/+8
| | | | Don't truncate one byte short of the passed length.
* Handle hostnames up to MAXHOSTNAMELEN-1 in length.brian1999-04-071-10/+9
| | | | | | Use bcopy() instead of strcpy() to handle potentially overlapping regions. Un-obscure/complicate some code.
* Now take stdio.h out of files that don't require it.jkh1998-10-091-2/+1
|
* All these have to include stdio.h now.jkh1998-10-091-1/+2
|
* Trim a domain part for wtmp as same as showed by "netstat -r".amurai1998-06-011-1/+40
| | | | | | | | | | | | | Here is a some example for avoiding a confusion. It asssumes a logged host domain is "spec.co.jp". All example is longer than UT_HOSTNAMELEN value. 1) turbo.tama.spec.co.jp: 192.19.0.2 -> trubo.tama 2) turbo.tama.foo.co.jp : 192.19.0.2 -> 192.19.0.2 3) specgw.spec.co.jp : 202.32.13.1 -> specgw Submitted by: Atsushi Murai <amurai@spec.co.jp>
* The parameters to logwtmp should be const char'spst1997-09-041-2/+4
|
* Protect the copyright comments from reformatting bysteve1997-08-131-1/+6
| | | | | | | indent and make this compile -Wall clean like the Makefile suggests that it should. :) Pointed out by: Bruce Evans <bde@zeta.org.au>
* If hostname > UT_HOSTSIZE, use its numeric address instead to keepache1996-06-171-4/+18
| | | | valid entries into utmp and wtmp
* Bump libutil revision after recent addition of setproctitle().peter1996-01-011-0/+2
| | | | | | | | Install (optional) libutil.h with prototypes for the functions and document this in the man page. minor cleanups to the various routines, include the prototype file, declare return codes etc.
* BSD 4.4 Lite Lib Sourcesrgrimes1994-05-271-0/+67
OpenPOWER on IntegriCloud