History log of /freebsd-current/usr.bin/w/pr_time.c
Revision Date Author Comments
# bdcbfde3 23-Nov-2023 Warner Losh <imp@FreeBSD.org>

usr.bin: Remove ancient SCCS tags.

Remove ancient SCCS tags from the tree, automated scripting, with two
minor fixup to keep things compiling. All the common forms in the tree
were removed with a perl script.

Sponsored by: Netflix


# e5d258c9 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: two-line .c pattern

Remove /^#include\s+<sys/cdefs.h>.*$\n\s+__FBSDID\("\$FreeBSD\$"\);\n/


# 04f6b9cb 21-Oct-2022 Dag-Erling Smørgrav <des@FreeBSD.org>

w: cosmetic fixes.

Sponsored by: Klara, Inc.


# 8a16b7a1 20-Nov-2017 Pedro F. Giffuni <pfg@FreeBSD.org>

General further adoption of SPDX licensing ID tags.

Mainly focus on files that use BSD 3-Clause license.

The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.

Special thanks to Wind River for providing access to "The Duke of
Highlander" tool: an older (2014) run over FreeBSD tree was useful as a
starting point.


# fbbd9655 28-Feb-2017 Warner Losh <imp@FreeBSD.org>

Renumber copyright clause 4

Renumber cluase 4 to 3, per what everybody else did when BSD granted
them permission to remove clause 3. My insistance on keeping the same
numbering for legal reasons is too pedantic, so give up on that point.

Submitted by: Jan Schaumann <jschauma@stevens.edu>
Pull Request: https://github.com/freebsd/freebsd/pull/96


# 76c0abf1 05-Nov-2014 Marcel Moolenaar <marcel@FreeBSD.org>

Convert to use libxo.

Obtained from: Phil Shafer <phil@juniper.net>
Sponsored by: Juniper Networks, Inc.


# da52b4ca 11-Dec-2010 Joel Dahl <joel@FreeBSD.org>

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


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# fe0506d7 09-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.


# 821df508 12-Dec-2009 Xin LI <delphij@FreeBSD.org>

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


# 6f2d3221 11-Dec-2009 Xin LI <delphij@FreeBSD.org>

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

Tested with: make universe


# 285c40cb 13-Sep-2009 Hajimu UMEMOTO <ume@FreeBSD.org>

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

Approved by: re (kib)


# 277dbce9 07-Sep-2009 Xin LI <delphij@FreeBSD.org>

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


# 34903a55 30-Aug-2009 Hajimu UMEMOTO <ume@FreeBSD.org>

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

Reported by: takawata


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# e39ee421 19-Aug-2008 Andrey A. Chernov <ache@FreeBSD.org>

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>


# e8e649cc 06-Jun-2002 Juli Mallett <jmallett@FreeBSD.org>

ANSI style function declarations.


# 8b56c58b 11-Dec-2001 Mark Murray <markm@FreeBSD.org>

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

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


# 9575fb2f 21-Mar-2001 Andrey A. Chernov <ache@FreeBSD.org>

Fix width for printing time


# 5f2de0a7 02-Mar-2001 Andrey A. Chernov <ache@FreeBSD.org>

Oops, remove tabs sneaked in wrong place


# 00034645 02-Mar-2001 Andrey A. Chernov <ache@FreeBSD.org>

Use AM/PM time only when available in locale


# 65824845 09-Nov-1999 David Nugent <davidn@FreeBSD.org>

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.


# c3aac50f 27-Aug-1999 Peter Wemm <peter@FreeBSD.org>

$Id$ -> $FreeBSD$


# 69b41093 10-Jan-1999 Peter Wemm <peter@FreeBSD.org>

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.


# 8109e672 28-Dec-1997 Alexander Langer <alex@FreeBSD.org>

-Wall cleanup.


# 57bd99e6 26-Aug-1997 Philippe Charnier <charnier@FreeBSD.org>

Revert some casts I introduced.
Requested by: Bruce.


# 90389da9 25-Aug-1997 Philippe Charnier <charnier@FreeBSD.org>

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


# 6d7977a7 07-Mar-1997 Kazutaka YOKOTA <yokota@FreeBSD.org>

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.


# 70498d5a 11-Feb-1997 Daniel O'Callaghan <danny@FreeBSD.org>

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

Possibly a 2.2 candidate.


# fbad6604 08-Oct-1995 Andrey A. Chernov <ache@FreeBSD.org>

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


# 89cc2fab 21-Sep-1995 Dima Ruban <dima@FreeBSD.org>

Print "1day" instead of "1days"


# 656dcd43 07-Aug-1995 Garrett Wollman <wollman@FreeBSD.org>

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


# 7799f52a 30-May-1995 Rodney W. Grimes <rgrimes@FreeBSD.org>

Remove trailing whitespace.


# 255318a8 26-Sep-1994 Andrey A. Chernov <ache@FreeBSD.org>

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


# 9b50d902 26-May-1994 Rodney W. Grimes <rgrimes@FreeBSD.org>

BSD 4.4 Lite Usr.bin Sources