summaryrefslogtreecommitdiff
path: root/lib/libutil/logwtmp.c
Commit message (Collapse)AuthorAgeFilesLines
* Use strlcpy() when we mean it.Xin LI2008-10-171-2/+1
| | | | Notes: svn path=/head/; revision=183989
* Remove California Regent's clause 3, per letterWarner Losh2007-01-091-4/+0
| | | | Notes: svn path=/head/; revision=165906
* NI_WITHSCOPEID cleanup. Neither RFC 2553 nor RFC 3493 definesHajimu UMEMOTO2005-05-131-6/+1
| | | | | | | | NI_WITHSCOPEID, and our getaddrinfo(3) does nothing special for it, now. Notes: svn path=/head/; revision=146187
* ANSIfy, WARNSify, CONSTify. Bit of style(9)-ify.Mark Murray2003-10-181-4/+1
| | | | Notes: svn path=/head/; revision=121193
* Oops. Some ut_time stuff slipped through the cracks. These turned outPeter Wemm2002-11-171-1/+2
| | | | | | | to be non-fatal due to stack alignment roundups. Notes: svn path=/head/; revision=107030
* #include <time.h> for the definition of time functions instead ofBruce Evans2002-02-251-1/+2
| | | | | | | | | depending on namespace pollution 2 layers deep in <sys/stat.h>. Sorted includes. Notes: svn path=/head/; revision=91241
* Add __FBSDID()s to libutilMatthew Dillon2001-09-301-3/+3
| | | | Notes: svn path=/head/; revision=84225
* Move trimdomain() into it's own source file and tidy things up a bit.Brian Somers2001-03-141-57/+1
| | | | | | | | | Fix disorder in the Makefile. Reviewed (mostly) by: bde Notes: svn path=/head/; revision=74261
* Support v6 login.Yoshinobu Inoue2000-01-151-7/+24
| | | | Notes: svn path=/head/; revision=56010
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50476
* If given host.domain:nn[.nn], trimdomain() now reduces it toBrian Somers1999-04-091-9/+33
| | | | | | | host:nn[.nn] (if the domain is the same as the local one). Notes: svn path=/head/; revision=45505
* bcopy -> memmoveBrian Somers1999-04-081-2/+2
| | | | | | | Suggested by: archie Notes: svn path=/head/; revision=45459
* Tidy up trimdomain() and document it.Brian Somers1999-04-071-11/+8
| | | | | | | Don't truncate one byte short of the passed length. Notes: svn path=/head/; revision=45430
* Handle hostnames up to MAXHOSTNAMELEN-1 in length.Brian Somers1999-04-071-10/+9
| | | | | | | | | Use bcopy() instead of strcpy() to handle potentially overlapping regions. Un-obscure/complicate some code. Notes: svn path=/head/; revision=45421
* Now take stdio.h out of files that don't require it.Jordan K. Hubbard1998-10-091-2/+1
| | | | Notes: svn path=/head/; revision=40117
* All these have to include stdio.h now.Jordan K. Hubbard1998-10-091-1/+2
| | | | Notes: svn path=/head/; revision=40091
* Trim a domain part for wtmp as same as showed by "netstat -r".Atsushi Murai1998-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> Notes: svn path=/head/; revision=36559
* The parameters to logwtmp should be const char'sPaul Traina1997-09-041-2/+4
| | | | Notes: svn path=/head/; revision=29119
* Protect the copyright comments from reformatting bySteve Price1997-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> Notes: svn path=/head/; revision=28179
* If hostname > UT_HOSTSIZE, use its numeric address instead to keepAndrey A. Chernov1996-06-171-4/+18
| | | | | | | valid entries into utmp and wtmp Notes: svn path=/head/; revision=16432
* Bump libutil revision after recent addition of setproctitle().Peter Wemm1996-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. Notes: svn path=/head/; revision=13137
* BSD 4.4 Lite Lib SourcesRodney W. Grimes1994-05-271-0/+67
Notes: svn path=/cvs2svn/branches/unlabeled-1.1.1/; revision=1573