History log of /freebsd-10-stable/usr.bin/w/pr_time.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 216370 11-Dec-2010 joel

Remove the advertising clause from UCB copyrighted files in usr.bin. This
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


# 200462 13-Dec-2009 delphij

Revert most part of 200420 as requested, as more review and polish is
needed.


# 200420 11-Dec-2009 delphij

Remove unneeded header includes from usr.bin/ except contributed code.

Tested with: make universe


# 196956 07-Sep-2009 delphij

Constify format string pointer, otherwise this would trigger warning when
higher warning level is enabled.


# 196652 30-Aug-2009 ume

Fix the problem that the entry broke into two lines with multi-byte
AM/PM format.

Reported by: takawata


# 181922 20-Aug-2008 ache

w(1) uses strftime %b with to print the abbreviated month name
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>


# 97981 06-Jun-2002 jmallett

ANSI style function declarations.


# 87674 11-Dec-2001 markm

WARNS=2 fix, use __FBSDID() and sort includes.

WARNS=2 not added to Makefile as it is to become default.


# 74603 21-Mar-2001 ache

Fix width for printing time


# 73366 02-Mar-2001 ache

Oops, remove tabs sneaked in wrong place


# 73365 02-Mar-2001 ache

Use AM/PM time only when available in locale


# 53073 10-Nov-1999 davidn

Fix cosmetic bug in time display. Current day logins are now displayed
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.


# 50477 27-Aug-1999 peter

$Id$ -> $FreeBSD$


# 42481 10-Jan-1999 peter

Fix the annoying bug introduced in rev 1.18 that caused each line to be
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.


# 32055 28-Dec-1997 alex

-Wall cleanup.


# 28785 26-Aug-1997 charnier

Revert some casts I introduced.
Requested by: Bruce.


# 28694 25-Aug-1997 charnier

Typo in usage(). Err -> errx when testing allocations.


# 23493 07-Mar-1997 yokota

Made sure the string formated by strftime() is properly
null-terminated.

Should go to RELENG_2_1 and RELENG_2_2.

Reviewed by guido@freebsd.org.


# 22558 11-Feb-1997 danny

Reduce the command field width by one when idle time is > 9 days, to
eliminate unsightly blank line.

Possibly a 2.2 candidate.


# 11339 08-Oct-1995 ache

Fix one column wrong offset in previous change days->day


# 10948 21-Sep-1995 dima

Print "1day" instead of "1days"


# 9987 07-Aug-1995 wollman

Delete bogus referneces to timezone code internal header file `tzfile.h',
which is no longer bogusly installed in /usr/include.


# 8874 30-May-1995 rgrimes

Remove trailing whitespace.


# 3138 26-Sep-1994 ache

idle time == 0 printed now as "-" like in good old BSD
skip cua* 3 chars as tty* 3 lchars


# 1591 27-May-1994 rgrimes

This commit was generated by cvs2svn to compensate for changes in r1590,
which included commits to RCS files with non-trunk default branches.


# 1590 27-May-1994 rgrimes

BSD 4.4 Lite Usr.bin Sources