summaryrefslogtreecommitdiffstats
path: root/usr.bin/finger/lprint.c
Commit message (Collapse)AuthorAgeFilesLines
* Build finger(1) with WARNS=6.ed2011-10-141-1/+1
|
* Remove the advertising clause from UCB copyrighted files in usr.bin. Thisjoel2010-12-111-4/+0
| | | | | | | | | is in accordance with the information provided at ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change Also add $FreeBSD$ to a few files to keep svn happy. Discussed with: imp, rwatson
* Migrate finger(1) towards utmpx.ed2010-01-131-2/+1
| | | | | | It was already ported to use libulog, which makes it simpler now. Be sure to catch the error returned by setutxdb(). Otherwise it may perform a lookup on the utx.active database.
* Migrate finger(1) away from <utmp.h>.ed2009-12-281-1/+2
| | | | | | | Unfortunately it also uses lastlog, which means we must resort to local extensions of the utmpx-interface. Because the user name and TTY name are now nul-terminated, there is no need to copy around strings as often.
* Revert most part of 200420 as requested, as more review and polish isdelphij2009-12-131-1/+1
| | | | needed.
* Remove unneeded header includes from usr.bin/ except contributed code.delphij2009-12-111-1/+1
| | | | Tested with: make universe
* Add multiple inclusion guards. Mostly this is for extern.h, which wasjmallett2004-03-141-1/+0
| | | | | | | included twice by lprint.c, which included both finger.h and extern.h. finger.h, in turn, includes extern.h. The redundant include of extern.h was removed from lprint.c, as part of this change, but the include guards were added anyway out of spite.
* If stat() on the terminal specified in utmp fails due to ENOENT, don'trwatson2003-04-021-1/+2
| | | | | | | | | print a warning, and set the idletime variable for the entry to -1; then pick up the -1 later in sprint() and lprint() and ignore those idle times by printing just whitespace. When third party applications, such as kdm, insert utmp entries, they sometimes use strings like ":0", which can't be stat()'d and currently result in warnings that are not helpful to the user.
* ANSIify function definitions.dwmalone2002-09-041-12/+6
| | | | | | | | | Add some constness to avoid some warnings. Remove use register keyword. Deal with missing/unneeded extern/prototypes. Some minor type changes/casts to avoid warnings. Reviewed by: md5
* Add -g option, which restricts printing of the gecos fields to just the user'smini2002-07-021-0/+3
| | | | | | | | | real name. PR: bin/39462 Submitted by: Mike Makonnen <makonnen@pacbell.net> Obtained from: NetBSD MFC after: 1 week
* remove __Pimp2002-03-221-3/+3
|
* Unremoved used includes. <sys/time.h> is needed if <sys/stat.h> isn'tbde2002-02-251-0/+2
| | | | | polluted, and <sys/types.h> is strictly a prerequisite for <sys/stat.h> untiil we drop support for pre-2001 versions of POSIX.
* GRR. Unbreak WARNS=2.peter2002-02-081-1/+1
| | | | | | | | | cc1: warnings being treated as errors usr.bin/finger/lprint.c: In function `lprint': usr.bin/finger/lprint.c:191: warning: precision is not type int (arg 2) *** Error code 1 Pointy hat to: markm
* Style improvements recommended by Bruce as a follow up to somedwmalone2001-12-101-5/+6
| | | | | | | | of the recent WARNS commits. The idea is: 1) FreeBSD id tags should follow vendor tags. 2) Vendor tags should not be compiled (though copyrights probably should). 3) There should be no blank line between including cdefs and __FBSDIF.
* WARNS=2 fix, remove 'register' and use __FBSDID().markm2001-12-021-16/+16
|
* Don't attempt to parse %cache2001-03-211-23/+34
|
* Spellingcharnier2001-02-061-11/+6
| | | | Remove unused #includes
* .publickey -> .pubkey to match other finger daemons.des2001-01-041-1/+1
| | | | Suggested by: assar
* Add support for a .publickey file.des2000-12-291-0/+2
| | | | | Submitted by: Svein Skogen <tds@nsn.no> Reviewed by: brian, ru
* -Wall cleanup.ru2000-10-231-10/+7
| | | | PR: 22187
* Allow finger.conf to contain aliases for files that will be displayedbrian2000-08-251-7/+7
| | | | | | when fingered. Submitted by: Mark Knight <markk@knigma.org>
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* fix 8bit clean issueache1998-08-071-5/+5
| | | | PR: 7519
* Add rcsid, usage(). Silent -Wall. Use warn(3).charnier1997-07-021-0/+5
|
* Skip \r character while printing Plan/etc. text files, it allows toache1997-03-171-2/+4
| | | | | handle \r\n and \n\r files properly. Previous variant put ^M for \r\n and ^M\n for \n\r
* Merge from Lite2peter1997-03-111-3/+6
|
* Allow national printable chars in .planache1995-08-081-1/+1
|
* Replace asctime/ctime by strftime %c to use national representationache1995-08-081-6/+7
|
* Delete bogus referneces to timezone code internal header file `tzfile.h',wollman1995-08-071-2/+1
| | | | which is no longer bogusly installed in /usr/include.
* Install Luke's enhancements for finger.pst1994-09-071-1/+20
| | | | | | | | | | By default, behave like the old ugly 4.4bsd finger and print office information instead of remote login information. It's an easy one line fix to make it behave like most other vendor's fingers if we decide to change the default. Reviewed by: pst
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-271-0/+333
OpenPOWER on IntegriCloud