summaryrefslogtreecommitdiff
path: root/usr.bin/users
Commit message (Collapse)AuthorAgeFilesLines
* Only set WARNS if not definedKyle Evans2020-09-111-1/+1
| | | | | | | | | | | | | This would allow interested parties to do experimental runs with an environment set appropriately to raise all the warnings throughout the build; e.g. env WARNS=6 NO_WERROR=yes buildworld. Not currently touching the numerous instances in ^/tools. MFC after: 1 week Notes: svn path=/head/; revision=365631
* users(1): Use capsicum helpers for usersEitan Adler2018-06-251-1/+2
| | | | | | | In doing so also fix the libcasper.h header to work in C++. Notes: svn path=/head/; revision=335636
* 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-282-2/+2
| | | | | | | | | | | | 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
* style(9) fixAllan Jude2017-01-071-1/+2
| | | | | | | Submitted by: jmallett Notes: svn path=/head/; revision=311652
* Capsicum: add capability mode to users binaryAllan Jude2017-01-071-0/+7
| | | | | | | | | Submitted by: Tyler Littlefield <tyler@tysdomain.com> Reviewed by: cem, oshogbo Differential Revision: https://reviews.freebsd.org/D9046 Notes: svn path=/head/; revision=311581
* Add META_MODE support.Simon J. Gerraty2015-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 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
| * Merge head from 7/28Simon J. Gerraty2014-08-194-117/+71
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=270164
| * 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
* | | Unbreak the build by re-enabling exceptions.Pietro Cerutti2014-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 Notes: svn path=/head/; revision=268619
* | | Turn off exceptions and rtti when building the c++ version of users.David Chisnall2014-07-121-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Neither is used in the program and this saves us 10KB (around 40%) in binary size. Notes: svn path=/head/; revision=268566
* | | Fix a couple of style nits.Ed Schouten2014-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). Notes: svn path=/head/; revision=268500
* | | Don't use auto, as we also need to support GCC 4.2.Ed Schouten2014-07-101-1/+1
| | | | | | | | | | | | Notes: svn path=/head/; revision=268499
* | | Let users(1) use an std::set, instead of std::{vector,sort,unique}.Ed Schouten2014-07-101-14/+11
| | | | | | | | | | | | | | | | | | | | | Reviewed by: gahr Notes: svn path=/head/; revision=268498
* | | Reimplements users(1) in C++.Pietro Cerutti2014-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 Notes: svn path=/head/; revision=268491
* | | - Avoid calling a wrapper function around strcmpPietro Cerutti2014-06-031-10/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Use sizeof(*array) instead of sizeof(element) everywhere CR: D161 Approved by: cognet, bapt Notes: svn path=/head/; revision=267027
* | | - style, remove (void) in front of printf and the likePietro Cerutti2014-06-031-5/+5
| |/ |/| | | | | | | | | | | | | CR: D161 Approved by: cognet, bapt Notes: svn path=/head/; revision=267026
* | Bump date missed in r202756Eitan Adler2012-09-141-1/+1
|/ | | | | | | | | | PR: docs/171624 Submitted by: bdrewery Approved by: gabor MFC after: 3 days Notes: svn path=/head/; revision=240506
* Let the size of the namebuf depend on the size of the ut_user field.Ed Schouten2011-06-181-1/+1
| | | | Notes: svn path=/head/; revision=223222
* Remove the advertising clause from UCB copyrighted files in usr.bin. ThisJoel Dahl2010-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 Notes: svn path=/head/; revision=216370
* Remove stale references to utmp(5) and its corresponding filenames.Ed Schouten2010-01-211-3/+3
| | | | | | | 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-5/+1
| | | | | | | | 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
* Add WARNS?=6, because it seems to build out of the box.Ed Schouten2009-12-051-0/+2
| | | | Notes: svn path=/head/; revision=200155
* Use _ULOG_POSIX_NAMES here, to make eventual porting to <utmpx.h> easier.Ed Schouten2009-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. Notes: svn path=/head/; revision=200154
* Use USER_PROCESS instead of LOGIN_PROCESS.Ed Schouten2009-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. Notes: svn path=/head/; revision=200067
* Port users(1) to libulog.Ed Schouten2009-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. Notes: svn path=/head/; revision=200066
* ANSIify function definitions.David Malone2002-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 Notes: svn path=/head/; revision=102944
* Use `The .Nm utility'Philippe Charnier2002-04-201-2/+3
| | | | Notes: svn path=/head/; revision=95124
* remove __PWarner Losh2002-03-221-2/+2
| | | | Notes: svn path=/head/; revision=92922
* WARNS=2 is going to become the default, so remove it from here.Mark Murray2001-12-111-1/+0
| | | | Notes: svn path=/head/; revision=87700
* Remove a bogus cast and lockdown users(1) with WARNS?=2Mike Barcroft2001-09-092-1/+3
| | | | | | | | | Submitted by: David Hill <david@phobia.ms> Reviewed by: -audit MFC after: 1 week Notes: svn path=/head/; revision=83232
* mdoc(7) police: removed HISTORY info from the .Os call.Ruslan Ermilov2001-07-101-1/+1
| | | | Notes: svn path=/head/; revision=79535
* $Id$ -> $FreeBSD$Peter Wemm1999-08-282-2/+2
| | | | Notes: svn path=/head/; revision=50477
* Add $Id$, to make it simpler for members of the translation teams toNik Clayton1999-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 Notes: svn path=/head/; revision=48792
* Main() returns int.Philippe Charnier1997-08-261-2/+2
| | | | Notes: svn path=/head/; revision=28789
* Was limited to 200 users. New entry is now allocated as needed.Philippe Charnier1997-08-222-23/+43
| | | | | | | | Add usage(). Obtained from:OpenBSD. Notes: svn path=/head/; revision=28563
* compare return value from getopt against -1 rather than EOF, per the finalWarner Losh1997-03-291-1/+1
| | | | | | | posix standard on the topic. Notes: svn path=/head/; revision=24360
* Merge RELENG_2_0_5 into HEADRodney W. Grimes1995-06-111-2/+2
| | | | Notes: svn path=/head/; revision=9202
* BSD 4.4 Lite Usr.bin SourcesRodney W. Grimes1994-05-273-0/+165
Notes: svn path=/cvs2svn/branches/CHRISTOS/; revision=1590