summaryrefslogtreecommitdiffstats
path: root/usr.bin/w
Commit message (Collapse)AuthorAgeFilesLines
* w(1) is not setgid binary since r53279, so remove the setgid() call.delphij2015-09-092-13/+1
| | | | | | Reviewed By: wollman MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D3541
* Upgrade libxo to 0.4.5.marcel2015-08-241-1/+1
| | | | | | | Local changes incorporated by 0.4.5: r284340 Local changes retained: r276260, r282117 Obtained from: https://github.com/Juniper/libxo
* Widen the host field so that a full IPv6 address will be seen.markm2015-07-141-1/+1
|
* Add META_MODE support.sjg2015-06-131-0/+23
|\ | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp
| * dirdeps.mk now sets DEP_RELDIRsjg2015-06-081-2/+0
| |
| * Merge sync of headsjg2015-05-273-10/+23
| |\ | |/ |/|
| * Updated/new dependenciessjg2014-11-191-0/+1
| |
| * Merge from head@274682sjg2014-11-194-55/+89
| |\
| * | Updated dependenciessjg2014-05-161-1/+0
| | |
| * | Updated dependenciessjg2014-05-101-0/+2
| | |
| * | Updated dependenciessjg2013-03-111-0/+1
| | |
| * | Updated dependenciessjg2013-02-161-2/+0
| | |
| * | Sync with HEAD.obrien2013-02-083-10/+9
| |\ \
| | \ \
| | \ \
| *-. \ \ Sync from headsjg2012-11-042-2/+2
| |\ \ \ \
| * | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-221-0/+22
| | |/ / / | |/| | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | | | Fix libxo output from uptime commandallanjude2015-04-162-8/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the libxo output for uptime returned multiple 'uptime' keys, one each for number of days, hours, and minutes of uptime. This is invalid JSON. This patch makes the output the raw number of seconds, as well as adding keys for the individual unit values A string of the original output from the plain-text uptime command is also added Differential Revision: https://reviews.freebsd.org/D2063 Reviewed by: jmg Approved by: marcel Sponsored by: ScaleEngine Inc.
* | | | | Call xo_finish(3) before exiting in usage().markj2015-03-091-0/+1
| | | | |
* | | | | Add xo_finish() to w.c in case it's invoked as uptimegrembo2015-02-101-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed by: marcel Approved by: marcel Differential Revision: https://reviews.freebsd.org/D1821
* | | | | Convert to usr.bin/ to LIBADDbapt2014-11-251-2/+1
| |_|_|/ |/| | | | | | | | | | | Reduce overlinking
* | | | Fix text output for the uptime command.marcel2014-11-111-1/+1
| | | | | | | | | | | | | | | | Reported by: "Max N. Boyarov" <zotrix@bsd.by>, ae@
* | | | Sort the references in "SEE ALSO" by section first; then alphabetically.marcel2014-11-061-3/+3
| | | | | | | | | | | | | | | | Pointed out by: brueffer@
* | | | Document that w(1) supports libxo(3).marcel2014-11-051-1/+4
| | | |
* | | | Convert to use libxo.marcel2014-11-053-37/+82
| | | | | | | | | | | | | | | | | | | | Obtained from: Phil Shafer <phil@juniper.net> Sponsored by: Juniper Networks, Inc.
* | | | don't reinvent the wheel: rely on basename(3)eadler2014-10-081-16/+2
| | | | | | | | | | | | | | | | Reviewed by: nwhitehorn
* | | | Revert r253748,253749avg2013-07-281-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | This WIP should not have been committed yet. Pointyhat to: avg
* | | | remove needless inclusion of machine/cpu.h in userlandavg2013-07-281-1/+0
| |_|/ |/| | | | | | | | MFC after: 21 days
* | | - Move 'showthreads' check out of fmt.c.jhb2013-01-191-4/+3
| | | | | | | | | | | | | | | - Update shadow copy of fmt_argv() prototype in w.c and fix calls for additional parameter.
* | | Set showthread = 0 for w(1).delphij2013-01-181-0/+1
| | | | | | | | | | | | X-MFC: together with r245610
* | | Fix whitespace.ed2012-11-172-7/+6
| |/ |/| | | | | MFC after: 1 week
* | Use CLOCK_UPTIME to get the uptime.emaste2012-10-121-1/+1
| |
* | Bump date missed in r202756eadler2012-09-141-1/+1
|/ | | | | | | PR: docs/171624 Submitted by: bdrewery Approved by: gabor MFC after: 3 days
* Add missing static keywords to w(1)ed2011-11-061-14/+13
|
* Only print entries for which ut_host points to a character device.ed2011-07-051-1/+1
| | | | | | Now that we use utmpx, we more often have entries for which the ut_line is left blank. To prevent us from returning struct stat for "/dev/", check that the resulting stat structure belongs to a character device.
* Remove the advertising clause from UCB copyrighted files in usr.bin. Thisjoel2010-12-116-24/+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
* Initialize the execfile argument to NULL instead of _PATH_DEVNULL. This ↵brucec2010-02-081-1/+2
| | | | | | | | allows the -M option to be used without specifying -N. PR: bin/138146 Approved by: rrs (mentor) MFC after: 3 days
* Remove stale references to utmp(5) and its corresponding filenames.ed2010-01-211-2/+2
| | | | I removed utmp and its manpage, but not other manpages referring to it.
* Port w(1) to utmpx.ed2010-01-132-7/+8
| | | | | | | | | Let it print "-" when the TTY string is empty. In this case, it must also make sure it doesn't match processes who also have no controlling TTY. Otherwise it will print random kernel processes when trying to pick the best matching process. Eventually it should look at the value of ut_pid as well.
* This now passes a make universe with WARNS=6.dwmalone2010-01-071-2/+0
|
* Shuffle parens to avoid type-punning warning.dwmalone2010-01-051-1/+1
|
* Build usr.bin/ with WARNS=6 by default.ed2010-01-021-0/+2
| | | | Also add some missing $FreeBSD$ to keep svn happy.
* Revert most part of 200420 as requested, as more review and polish isdelphij2009-12-132-0/+4
| | | | needed.
* Remove unneeded header includes from usr.bin/ except contributed code.delphij2009-12-112-4/+0
| | | | Tested with: make universe
* Let w(1) use utmpx.ed2009-12-062-31/+28
| | | | | | | | | | We don't have UT_*SIZE anymore. One of the reasons for that is because all strings are null terminated, there is no need for apps to copy strings out of the utmpx structure. This means we can define W_DISP*SIZE lengths for all columns. While there, adjust the sizes a little. Steal some bytes from the username column, while extending the hostname column quite a bit.
* When -n is specified, attempt to turn hostnames found in utmp into IPume2009-11-221-11/+31
| | | | | | | | addresses, again. However, change a hostname into an IP address, only when a host has just one A/AAAA RR. Requested by: candy__at__kgc.co.jp MFC after: 2 weeks
* 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-303-12/+24
| | | | | | 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>
* Fix markup.ru2006-12-141-7/+10
|
* Use sysctlbynamephk2006-05-111-6/+1
|
* Obtain true uptime through clock_gettime(CLOCK_MONOTONIC, struct *timespec)andre2005-10-171-9/+3
| | | | | | instead of subtracting 'bootime' from 'now'. Sponsored by: TCP/IP Optimization Fundraise 2005
OpenPOWER on IntegriCloud