summaryrefslogtreecommitdiffstats
path: root/usr.bin/w/pr_time.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Revert most part of 200420 as requested, as more review and polish isdelphij2009-12-131-0/+1
| | | | needed.
* Remove unneeded header includes from usr.bin/ except contributed code.delphij2009-12-111-1/+0
| | | | Tested with: make universe
* Constify format string pointer, otherwise this would trigger warning whendelphij2009-09-081-1/+1
| | | | higher warning level is enabled.
* Fix the problem that the entry broke into two lines with multi-byteume2009-08-301-8/+19
| | | | | | AM/PM format. Reported by: takawata
* w(1) uses strftime %b with to print the abbreviated month nameache2008-08-201-1/+2
| | | | | | | | | | if a user logged in more than a week ago. This may contain multibyte characters (e.g. when using UTF-8). This string is then aligned on byte-length rathern than char-length, resulting in misalignment and unfinished multibyte characters. PR: 126657 Submitted by: Johan van Selst <johans@stack.nl>
* ANSI style function declarations.jmallett2002-06-071-4/+2
|
* WARNS=2 fix, use __FBSDID() and sort includes.markm2001-12-111-5/+5
| | | | WARNS=2 not added to Makefile as it is to become default.
* Fix width for printing timeache2001-03-211-5/+4
|
* Oops, remove tabs sneaked in wrong placeache2001-03-021-2/+2
|
* Use AM/PM time only when available in localeache2001-03-021-5/+2
|
* Fix cosmetic bug in time display. Current day logins are now displayeddavidn1999-11-101-4/+9
| | | | | | | as plain time as originally intended, instead of displaying DayHH times when the login time happens to be prior the GMT - TZ difference. (Only noticable on systems operating east of GMT/UTC). Local times are now used to determine the day.
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Fix the annoying bug introduced in rev 1.18 that caused each line to bepeter1999-01-101-3/+6
| | | | | | | | | | | | | | | | one character shorter than the previous in a stairstep fashion when long idle times were involved. A couple of nits: - spelling/typo fix. - some of the easier style(9) fixes where it was bothering me. - Handle 100+ days idle time (ha!). Probably the right thing to do is to do a snprintf into a buffer and strlen the result rather than doing hackery on magic numbers. XXX the wide (and mostly unused) username and tty columns annoy me since it it could be used for more useful information for the command. We should actually count the largest username and tty and adjust like 'ls -l' does.
* -Wall cleanup.alex1997-12-281-3/+3
|
* Revert some casts I introduced.charnier1997-08-261-3/+3
| | | | Requested by: Bruce.
* Typo in usage(). Err -> errx when testing allocations.charnier1997-08-251-2/+6
|
* Made sure the string formated by strftime() is properlyyokota1997-03-071-1/+2
| | | | | | | | null-terminated. Should go to RELENG_2_1 and RELENG_2_2. Reviewed by guido@freebsd.org.
* Reduce the command field width by one when idle time is > 9 days, todanny1997-02-111-1/+5
| | | | | | eliminate unsightly blank line. Possibly a 2.2 candidate.
* Fix one column wrong offset in previous change days->dayache1995-10-081-1/+1
|
* Print "1day" instead of "1days"dima1995-09-221-2/+4
|
* Delete bogus referneces to timezone code internal header file `tzfile.h',wollman1995-08-071-9/+8
| | | | which is no longer bogusly installed in /usr/include.
* Remove trailing whitespace.rgrimes1995-05-301-1/+1
|
* idle time == 0 printed now as "-" like in good old BSDache1994-09-271-0/+3
| | | | skip cua* 3 chars as tty* 3 lchars
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-271-0/+104
OpenPOWER on IntegriCloud