summaryrefslogtreecommitdiffstats
path: root/usr.bin/w
Commit message (Collapse)AuthorAgeFilesLines
* Use the same technique as ps(1) to avoid the need for setgid. (ie: usepeter1999-11-172-5/+9
| | | | | /dev/null as the default kernel and /dev/mem filenames, but still allow the usual overrides)
* 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-284-4/+4
|
* New w ability: you can list multiple users on the command line and it willgreen1999-07-282-51/+52
| | | | | | | | 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
* Add $Id$, to make it simpler for members of the translation teams tonik1999-07-121-0/+1
| | | | | | | | | | | | | | | | | track. The $Id$ line is normally at the bottom of the main comment block in the man page, separated from the rest of the manpage by an empty comment, like so; .\" $Id$ .\" If the immediately preceding comment is a @(#) format ID marker than the the $Id$ will line up underneath it with no intervening blank lines. Otherwise, an additional blank line is inserted. Approved by: bde
* Clean up some ambiguous nested if/elses.billf1999-07-041-2/+3
|
* fix -n with 16-chars hostnames, modified patch from PRache1999-04-221-4/+7
| | | | | PR: 11286 Submitted by: Hans Huebner <hans@chaosradio.berlin.ccc.de>
* Get things right for tty names of length UT_LINESIZE.brian1999-03-311-16/+15
| | | | | | Cosmetic: Don't shadow the `p' variable. Remove two unused variables. PR: 3638
* Fix the annoying bug introduced in rev 1.18 that caused each line to bepeter1999-01-102-13/+15
| | | | | | | | | | | | | | | | 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.
* No __profname bozoness, no strstr() bozoness... test argv[0] againstdillon1998-12-241-4/+21
| | | | "uptime" the right way. Sheesh.
* Since argv is in scope, use argv[0] instead of __progname.steve1998-12-241-2/+2
| | | | Suggested by: bde
* Do a better job of determining if we were called as uptime(1).steve1998-11-091-5/+2
| | | | PR: 8593
* Remove unused strvisx.imp1998-06-091-10/+2
|
* Cosmetic fix. Compute header field widths from UT_{HOST,LINE,NAME}SIZEjkoshy1998-05-211-4/+13
| | | | | | instead of hardcoding header line. PR: 6325
* Allow `w' to treat a corrupted "utmp" as a non fatal error.jkoshy1998-05-141-4/+7
| | | | PR: bin/2832
* Like most Unices FreeBSD should have a larger tty field at leastphk1998-04-191-3/+4
| | | | | | | | | | | 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>
* Reword using who.1 as a good example of where to start.steve1998-03-221-2/+2
| | | | Submitted by: bde
* Reword the synopsis line so that it makes sense.steve1998-01-121-2/+2
|
* -Wall cleanup.alex1997-12-281-3/+3
|
* If uptime < 1 min print in in secs otherwise we got confusing messageache1997-10-131-10/+12
| | | | "up 1 user"
* Document newly added -d option and fix usage stringache1997-09-122-4/+7
|
* The "-d" option dumps out the entire process list on a per controllingache1997-09-121-11/+40
| | | | | tty basis, instead of just the top level process. Submitted by: terry
* Revert some casts I introduced.charnier1997-08-261-3/+3
| | | | Requested by: Bruce.
* Typo in usage(). Err -> errx when testing allocations.charnier1997-08-254-15/+24
|
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-291-1/+1
| | | | posix standard on the topic.
* Made sure the string formated by strftime() is properlyyokota1997-03-072-2/+4
| | | | | | | | null-terminated. Should go to RELENG_2_1 and RELENG_2_2. Reviewed by guido@freebsd.org.
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Reduce the command field width by one when idle time is > 9 days, todanny1997-02-113-4/+10
| | | | | | eliminate unsightly blank line. Possibly a 2.2 candidate.
* Sort cross references.wosch1997-01-151-2/+2
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* comma typoswosch1996-12-231-1/+2
|
* Increase username field to reflect utmp changesache1996-12-051-1/+1
|
* Do not print herror message, if w -n gethostname failed to be 100%ache1996-06-171-2/+1
| | | | | compatible with any program Suggested by: peter
* Fix xterm/screen/(any program using just :xxx form) compatibilityache1996-06-171-1/+1
|
* Don't try convert "-" to numeric form for -n optionache1996-06-171-1/+1
|
* Fix w -n to really show numeric addresses, close PR 402ache1996-06-171-0/+11
| | | | Partially submitted by: henrich@msu.edu (Charles Henrich)
* Drop privileges if not using standard namelist or kernel file.pst1996-05-301-0/+7
| | | | Submitted by: smpatel (Sujal Patel)
* Change locale to LC_ALL, there is no bitmaskache1995-10-261-1/+1
|
* Add setlocale LC_TIME|LC_CTYPEache1995-10-241-0/+3
|
* Fix one column wrong offset in previous change days->dayache1995-10-081-1/+1
|
* Print "1day" instead of "1days"dima1995-09-221-2/+4
|
* Increase the tty column width from 2 to 3 characters.peter1995-09-041-2/+2
| | | | | | | | 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.
* Delete bogus referneces to timezone code internal header file `tzfile.h',wollman1995-08-072-15/+13
| | | | which is no longer bogusly installed in /usr/include.
* When 'w' finds an IP address in the ut_host field, it attempts to dopeter1995-07-181-0/+8
| | | | | | | | | | | | 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
* Fix the 'w' command so that the -h option correctly supresses the headingpeter1995-07-171-2/+2
| | | | | | | as per the manual page. Closes PR578. Reviewed by: Submitted by: Kenneth D. Merry Obtained from:
* Remove trailing whitespace.rgrimes1995-05-302-3/+3
|
* If an ut_host field in an utmp entry contains a ':' (e.g. for an xterm session)dg1995-05-161-1/+2
| | | | | | w doesn't handle the non-'\0' terminated char arrays in struct utmp properly. Submitted by: jarle@idt.unit.no
* Install with default BINOWN (as it once used to be).dg1995-04-151-1/+0
|
* Install setgid kmem rather than setuid root. The problem with procfs thatdg1995-04-151-1/+2
| | | | was breaking this before has been fixed.
* Correct the grammar for the label of the number of users.smace1995-02-181-1/+1
| | | | It is plural when zero and >1 users are logged in.
OpenPOWER on IntegriCloud