| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
the unused global var.
|
|
|
|
| |
WARNS=2 not added to Makefile as it is to become default.
|
| |
|
|
|
|
|
|
|
|
| |
be 30 seconds off. (Thanks to Vladimir B.Grebenschikov
<vova@express.ru> for the PR and ru for a more elegant fix.)
PR: bin/30680
Approved by: ru
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
into addresses as we have no idea what address family they belong to.
When -n is not specified, resolve IPv6 as well as IPv4 addresses found
in the host field of utmp. Use realhostname_sa() to resolve addresses
(the old code was wrong).
Rename ``x'' to ``x_suffix'' to avoid confusion.
Hard code the host column width to 16 (against the imminent increase
of UT_HOSTSIZE in utmp.h).
|
|
|
|
|
| |
PR: 24654
Submitted by: Daniel Hemmerich zartik@yahoo.com
|
|
|
|
|
|
| |
of _POSIX2_LINE_MAX.
MFC after: 1 week
|
| |
|
| |
|
|
|
|
| |
locales, so leads to confusion
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
the idle time instead of the atime.
This makes entries for people that have logged in but done nothing
else show up correctly.
Reviewed by: markk@knigma.org
|
|
|
|
|
|
|
|
|
|
|
|
| |
no longer contains kernel specific data structures, but rather
only scalar values and structures that are already part of the
kernel/user interface, specifically rusage and rtprio. It no
longer contains proc, session, pcred, ucred, procsig, vmspace,
pstats, mtx, sigiolst, klist, callout, pasleep, or mdproc. If
any of these changed in size, ps, w, fstat, gcore, systat, and
top would all stop working. The new structure has over 200 bytes
of unassigned space for future values to be added, yet is nearly
100 bytes smaller per entry than the structure that it replaced.
|
|
|
|
|
| |
/dev/null as the default kernel and /dev/mem filenames, but still allow
the usual overrides)
|
| |
|
|
|
|
|
|
|
|
| |
match with all of them, rather than only supporting a single user.
PR: 11121
Kinda submitted by: James Howard <howardjp@byzantine.student.umd.edu>
Reviewed by: DES
|
| |
|
|
|
|
|
| |
PR: 11286
Submitted by: Hans Huebner <hans@chaosradio.berlin.ccc.de>
|
|
|
|
|
|
| |
Cosmetic: Don't shadow the `p' variable.
Remove two unused variables.
PR: 3638
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
"uptime" the right way. Sheesh.
|
|
|
|
| |
Suggested by: bde
|
|
|
|
| |
PR: 8593
|
| |
|
|
|
|
|
|
| |
instead of hardcoding header line.
PR: 6325
|
|
|
|
| |
PR: bin/2832
|
|
|
|
|
|
|
|
|
|
|
| |
as large as UT_LINESIZE (/usr/include/utmp.h). If the tty name is logged
with this size why isn't the w command reporting it?
(We should probably report the tty/cua prefix then as well ? /phk)
PR: 4187
Reviewed by: phk
Submitted by: Jorge M. Goncalves <ee96199@tom.fe.up.pt>
|
|
|
|
| |
"up 1 user"
|
| |
|
|
|
|
|
| |
tty basis, instead of just the top level process.
Submitted by: terry
|
| |
|
|
|
|
| |
posix standard on the topic.
|
|
|
|
|
|
|
|
| |
null-terminated.
Should go to RELENG_2_1 and RELENG_2_2.
Reviewed by guido@freebsd.org.
|
|
|
|
|
|
| |
eliminate unsightly blank line.
Possibly a 2.2 candidate.
|
| |
|
|
|
|
|
| |
compatible with any program
Suggested by: peter
|
| |
|
| |
|
|
|
|
| |
Partially submitted by: henrich@msu.edu (Charles Henrich)
|
|
|
|
| |
Submitted by: smpatel (Sujal Patel)
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
This gives us more room to breath with tty names, especially with drivers
that support large numbers of ports.. eg: specialix and digiboard.
This does not actually change the current tty names, it just allows room
for reporting more characters if the drivers use them.
|
|
|
|
| |
which is no longer bogusly installed in /usr/include.
|
|
|
|
|
|
|
|
|
|
|
|
| |
a gethostbyname() on it. That can take a long time... (especially
if the reason the IP address is in there in the first place is because
login/rlogind/telnetd couldn't find it either....)
This patch reduces the gethostbyaddr lookup time to 2 seconds, the idea being
that if the local nameserver knows the answer, it'll answer within that time,
otherwise we dont care... :-)
This change doesn't do anything about whether or not w should do this in the
first place, but at least it will make the current behavior less painful.
Reviewed by: David Greenman
|
|
|
|
|
|
|
| |
as per the manual page. Closes PR578.
Reviewed by:
Submitted by: Kenneth D. Merry
Obtained from:
|
| |
|
|
|
|
|
|
| |
w doesn't handle the non-'\0' terminated char arrays in struct utmp properly.
Submitted by: jarle@idt.unit.no
|