aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/who
Commit message (Collapse)AuthorAgeFilesLines
* Remove $FreeBSD$: one-line nroff patternWarner Losh2023-08-231-1/+0
| | | | | | | Remove /^\.\\"\s*\$FreeBSD\$$\n/ Similar commit in main: (cherry picked from commit b2c76c41be32)
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-232-2/+0
| | | | | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/ Similar commit in main: (cherry picked from commit d0b2dbfa0ecf)
* Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-231-2/+0
| | | | | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/ Similar commit in main: (cherry picked from commit 1d386b48a555)
* spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDWarner Losh2023-07-251-1/+1
| | | | | | | | | | | The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause. Discussed with: pfg MFC After: 3 days Sponsored by: Netflix (cherry picked from commit 4d846d260e2b9a3d4d0a701462568268cbfe7a5b)
* pkgbase: Put accounting utilities in the acct packageEmmanuel Vadot2023-02-021-0/+1
| | | | (cherry picked from commit 0c6b2a91795167203f442a84aac2570397226e56)
* who(1): Add EXAMPLES sectionFernando ApesteguĂ­a2020-08-301-2/+43
| | | | | | | | | | | Add EXAMPLES section covering all the flags except -m and -bTu covered by other flags. Approved by: manpages (bcr@) Differential Revision: https://reviews.freebsd.org/D26219 Notes: svn path=/head/; revision=364977
* various: general adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-271-0/+2
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. 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. No functional change intended. Notes: svn path=/head/; revision=326276
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* Renumber copyright clause 4Warner Losh2017-02-281-1/+1
| | | | | | | | | | | | 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 Notes: svn path=/head/; revision=314436
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+18
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * Sync from headSimon J. Gerraty2012-11-041-1/+1
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=242545
| * Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+19
| | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | Remove contractions.Joel Dahl2012-10-071-1/+1
|/ | | | Notes: svn path=/head/; revision=241331
* General mdoc(7) and typo fixes.Glen Barber2012-05-101-1/+1
| | | | | | | | | PR: 167696 Submitted by: Nobuyuki Koganemaru (kogane!jp.freebsd.org) MFC after: 3 days Notes: svn path=/head/; revision=235211
* And of course, I forgot to add -a to the usage.Ed Schouten2012-02-111-1/+1
| | | | Notes: svn path=/head/; revision=231537
* Attempt to implement who -a.Ed Schouten2012-02-112-22/+16
| | | | | | | | | According to POSIX, -a is equal to -bdlprtTu. It seems this is not true in practice, as -b normally restricts the output to BOOT_TIME entries and all implementations that I know of don't. Notes: svn path=/head/; revision=231536
* Add the XSI option -b to show date of the last reboot.Sergey Kandaurov2011-10-282-8/+31
| | | | | | | | | | That required to increase the LINE field to fit the output of -b. While here, change the row() function to take a const argument. In collaboration with: ed Notes: svn path=/head/; revision=226881
* Remove the advertising clause from UCB copyrighted files in usr.bin. ThisJoel Dahl2010-12-111-4/+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 Notes: svn path=/head/; revision=216370
* Remove stale references to utmp(5) and its corresponding filenames.Ed Schouten2010-01-211-13/+13
| | | | | | | I removed utmp and its manpage, but not other manpages referring to it. Notes: svn path=/head/; revision=202756
* Perform all trivial ports to utmpx for usr.bin/.Ed Schouten2010-01-132-6/+2
| | | | | | | | They were already converted to use libulog, so it's easy to convert them to utmpx. Notes: svn path=/head/; revision=202200
* Build usr.bin/ with WARNS=6 by default.Ed Schouten2010-01-021-2/+0
| | | | | | | Also add some missing $FreeBSD$ to keep svn happy. Notes: svn path=/head/; revision=201386
* Several refinements to libulog's API.Ed Schouten2009-12-261-1/+1
| | | | | | | | | | | | - Only set the fields in the ulog_utmpx structure that are valid for the command in question. This means that strings like "shutdown" or "~" are not visible to the user anymore. - Rename UTXF_* to UTXI_*, indicating the indexation, instead of using the `antique' filename. If we ever get rid of utmp, it makes little sense calling it by its old name. Notes: svn path=/head/; revision=201033
* Revert most part of 200420 as requested, as more review and polish isXin LI2009-12-131-0/+1
| | | | | | | needed. Notes: svn path=/head/; revision=200462
* Remove unneeded header includes from usr.bin/ except contributed code.Xin LI2009-12-111-1/+0
| | | | | | | Tested with: make universe Notes: svn path=/head/; revision=200420
* Port who(1) to utmpx.Ed Schouten2009-12-052-58/+56
| | | | | | | | | | | | | (Un)fortunately there is no standardized interface to switch between utmp database files, so we must call ulog_setutxfile() here. I'm also changing the column widths to magic numbers here. Display layout should in this case not be derived from structure fields sizes. Because I don't want struct utmpx ever to become too small, the fields are too big to reserve all the space. Notes: svn path=/head/; revision=200166
* In wall and who, check that the utmp entry isn't stalled, as it is done in w.Olivier Houchard2006-02-211-3/+21
| | | | | | | | | | Apparently with the new pts code stalled entries are printed, when they are not with the BSD ptys. Submitted by: Michal Mertl <mime at traveller dot cz> Notes: svn path=/head/; revision=155875
* Move variable initialization to reduce compiler warning.Philippe Charnier2005-05-291-2/+2
| | | | Notes: svn path=/head/; revision=146753
* Added the EXIT STATUS section where appropriate.Ruslan Ermilov2005-01-171-1/+1
| | | | Notes: svn path=/head/; revision=140368
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-2/+4
| | | | Notes: svn path=/head/; revision=131491
* Fix a warning that showed up on 64 bit systems. It was actually a realPeter Wemm2003-10-261-1/+1
| | | | | | | bug that had been swept under the carpet. Notes: svn path=/head/; revision=121548
* Remove unimplemented System V options from the getopt() option string.Tim J. Robbins2002-12-211-1/+1
| | | | Notes: svn path=/head/; revision=108146
* mdoc(7) police: markup polishing.Ruslan Ermilov2002-11-261-3/+1
| | | | | | | Approved by: re Notes: svn path=/head/; revision=107276
* utmp.ut_time and lastlog.ll_time are explicitly int32_t rather thanPeter Wemm2002-11-151-3/+5
| | | | | | | | | | | | | | | time_t. Deal with the possibility that time_t != int32_t. This boils down to this sort of thing: - time(&ut.ut_time); + ut.ut_time = time(NULL); and similar for ctime(3) etc. I've kept it minimal for the stuff that may need to be portable (or 3rd party code), but used Matt's time32 stuff for cases where that isn't as much of a concern. Approved by: re (jhb) Notes: svn path=/head/; revision=106966
* Style: put static qualifier on definition of static functions.Tim J. Robbins2002-06-201-7/+7
| | | | Notes: svn path=/head/; revision=98483
* Refer to environ(7) for description of COLUMNS. Note the effects of LANG,Tim J. Robbins2002-06-071-11/+9
| | | | | | | LC_ALL and LC_TIME upon the utility. Notes: svn path=/head/; revision=97975
* Respect the setting of the COLUMNS environment variable, use it instead ofTim J. Robbins2002-06-042-6/+29
| | | | | | | the TTY width obtained by ioctl() when set & non-null. (SUSv3) Notes: svn path=/head/; revision=97800
* mdoc(7) police: lint.Ruslan Ermilov2002-05-301-8/+9
| | | | Notes: svn path=/head/; revision=97548
* Write "FROM" heading above the hostname column, like NetBSD and GNU do.Tim J. Robbins2002-05-281-0/+1
| | | | Notes: svn path=/head/; revision=97374
* Reimplement the who(1) utility to add some features required by SUSv3:Tim J. Robbins2002-05-092-122/+270
| | | | | | | | | | | | | | -H option (show column headings), -T (show mesg(1) state), -m (same as "am I"), -u (show idle time), -q (quick mode; list names in columns). PR: 36128 Reviewed by: mike Notes: svn path=/head/; revision=96299
* remove __PWarner Losh2002-03-221-3/+3
| | | | Notes: svn path=/head/; revision=92922
* WARNS=2 fix, use __FBSDID().Mark Murray2001-12-111-11/+13
| | | | | | | WARNS=2 is not in Makefile, as this will be the default. Notes: svn path=/head/; revision=87679
* Remove whitespace at EOL.Dima Dorfman2001-07-151-2/+2
| | | | Notes: svn path=/head/; revision=79755
* Correct path to wtmp.Dima Dorfman2001-06-271-2/+2
| | | | | | | | PR: 28433 Submitted by: Joseph Mallett <jmallett@xMach.org> Notes: svn path=/head/; revision=78868
* Include missing header files which define functions for which gcc hasDima Dorfman2001-06-241-0/+1
| | | | | | | builtins (e.g., exit, strcmp). Notes: svn path=/head/; revision=78718
* Don't attempt to parse %cAndrey A. Chernov2001-03-211-3/+9
| | | | Notes: svn path=/head/; revision=74589