summaryrefslogtreecommitdiffstats
path: root/usr.bin/users
Commit message (Collapse)AuthorAgeFilesLines
* Add META_MODE support.sjg2015-06-131-0/+21
|\ | | | | | | | | | | | | | | | | | | | | 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 head from 7/28sjg2014-08-194-117/+71
| |\ | |/ |/|
| * 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 from headsjg2012-11-041-1/+1
| |\ \
| * | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-221-0/+19
| | |/ | |/| | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | Unbreak the build by re-enabling exceptions.gahr2014-07-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Disabling them breaks build on archs using GCC. The problem is at line 156 of bits/basic_ios.h: if (this->exceptions() & __state) __throw_exception_again; With exceptions disabled __throw_exception_again is defined as #define __throw_exception_again at line 45 of exception_defines.h and the code results in an empty loop body, which fails because of -Werror. Approved by: cognet
* | | Turn off exceptions and rtti when building the c++ version of users.theraven2014-07-121-0/+1
| | | | | | | | | | | | | | | Neither is used in the program and this saves us 10KB (around 40%) in binary size.
* | | Fix a couple of style nits.ed2014-07-101-4/+3
| | | | | | | | | | | | | | | | | | - Use set instead of std::set, to be consistent with the rest of the file. - Remove return (0); it's not required. - Add a dash at the beginning of the copyright, per style(9).
* | | Don't use auto, as we also need to support GCC 4.2.ed2014-07-101-1/+1
| | |
* | | Let users(1) use an std::set, instead of std::{vector,sort,unique}.ed2014-07-101-14/+11
| | | | | | | | | | | | Reviewed by: gahr
* | | Reimplements users(1) in C++.gahr2014-07-102-65/+26
| | | | | | | | | | | | | | | | | | | | | This reduces the lines of code by roughly 50% (not counting the COPYRIGHT header) and makes it more readable by using standard algorithms. Approved by: bapt
* | | - Avoid calling a wrapper function around strcmpgahr2014-06-031-10/+3
| | | | | | | | | | | | | | | | | | | | | - Use sizeof(*array) instead of sizeof(element) everywhere CR: D161 Approved by: cognet, bapt
* | | - style, remove (void) in front of printf and the likegahr2014-06-031-5/+5
| |/ |/| | | | | | | CR: D161 Approved by: cognet, bapt
* | Bump date missed in r202756eadler2012-09-141-1/+1
|/ | | | | | | PR: docs/171624 Submitted by: bdrewery Approved by: gabor MFC after: 3 days
* Let the size of the namebuf depend on the size of the ut_user field.ed2011-06-181-1/+1
|
* Remove the advertising clause from UCB copyrighted files in usr.bin. Thisjoel2010-12-112-8/+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
* Remove stale references to utmp(5) and its corresponding filenames.ed2010-01-211-3/+3
| | | | I removed utmp and its manpage, but not other manpages referring to it.
* Perform all trivial ports to utmpx for usr.bin/.ed2010-01-132-5/+1
| | | | | They were already converted to use libulog, so it's easy to convert them to utmpx.
* Build usr.bin/ with WARNS=6 by default.ed2010-01-021-2/+0
| | | | Also add some missing $FreeBSD$ to keep svn happy.
* Add WARNS?=6, because it seems to build out of the box.ed2009-12-051-0/+2
|
* Use _ULOG_POSIX_NAMES here, to make eventual porting to <utmpx.h> easier.ed2009-12-051-4/+5
| | | | | By the time we gain a real <utmpx.h>, it's just a matter of changing the include at the top and -lulog from the Makefile.
* Use USER_PROCESS instead of LOGIN_PROCESS.ed2009-12-031-1/+1
| | | | | | POSIX isn't clear about how the fields should be used, but according to utmpx(5) on Linux, LOGIN_PROCESS refers to a TTY that's still running a getty.
* Port users(1) to libulog.ed2009-12-032-22/+27
| | | | | | Instead of digging through the utmp database by hand, use proper API calls to do so. Instead of parsing entries with a non-empty ut_user, we now look at LOGIN_PROCESS entries.
* ANSIify function definitions.dwmalone2002-09-041-6/+3
| | | | | | | | | Add some constness to avoid some warnings. Remove use register keyword. Deal with missing/unneeded extern/prototypes. Some minor type changes/casts to avoid warnings. Reviewed by: md5
* Use `The .Nm utility'charnier2002-04-201-2/+3
|
* remove __Pimp2002-03-221-2/+2
|
* WARNS=2 is going to become the default, so remove it from here.markm2001-12-111-1/+0
|
* Remove a bogus cast and lockdown users(1) with WARNS?=2mike2001-09-092-1/+3
| | | | | | Submitted by: David Hill <david@phobia.ms> Reviewed by: -audit MFC after: 1 week
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-101-1/+1
|
* $Id$ -> $FreeBSD$peter1999-08-282-2/+2
|
* 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
* Main() returns int.charnier1997-08-261-2/+2
|
* Was limited to 200 users. New entry is now allocated as needed.charnier1997-08-222-23/+43
| | | | | Add usage(). Obtained from:OpenBSD.
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-291-1/+1
| | | | posix standard on the topic.
* Merge RELENG_2_0_5 into HEADrgrimes1995-06-111-2/+2
|
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-273-0/+165
OpenPOWER on IntegriCloud