aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/rusers
Commit message (Collapse)AuthorAgeFilesLines
* clnt_broadcast(3): fix eachresult argument typeBrooks Davis2026-02-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | The `eachresult` argument is documented to take a function pointer of type: bool_t (*)(caddr_t, struct sockaddr_in *) It was declared to take a resultproc_t which has historically been declared to be: bool_t (*resultproc_t)(caddr_t, ...); This overlapped well enough for currently supported ABIs where variadic arguments are passed in registers, but this declaration is misaligned with the documentation (resultproc_t takes three arguments) and will be fixed in a followup commit. Fix the type to be non-variadic, matching callbacks, and define a convenience type of as most callbacks take something other than a char * as their first argument and need to be cast. Effort: CHERI upstreaming Reviewed by: ngie, glebius, jhb Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D54940
* move the SunOS r-commands into the rcmds packageLexi Winter2025-05-051-1/+2
| | | | | | | | | | | | | | | | | | | | rup, rusers and rwall implement the SunOS remote status utilities based on RPC. these are not widely used nowadays and most users won't have them enabled, so there's no reason to ship them in the utilities packages. move the command-line utilities and their respective daemons into the rcmds package, which already contains the related utilities rwho and ruptime. improve the comment/description of the rcmds package to be more informative and mention its new contents. while here, standardise formatting in the affected Makefiles. Reviewed by: manu, imp, des, emaste Approved by: des (mentor) Differential Revision: https://reviews.freebsd.org/D50143
* Remove residual blank line at start of MakefileWarner Losh2024-07-151-1/+0
| | | | | | | This is a residual of the $FreeBSD$ removal. MFC After: 3 days (though I'll just run the command on the branches) Sponsored by: Netflix
* usr.bin: Remove ancient SCCS tags.Warner Losh2023-11-271-2/+0
| | | | | | | | Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script. Sponsored by: Netflix
* Remove $FreeBSD$: one-line nroff patternWarner Losh2023-08-161-1/+0
| | | | Remove /^\.\\"\s*\$FreeBSD\$$\n/
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-162-2/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* Remove $FreeBSD$: two-line .c patternWarner Losh2023-08-161-3/+0
| | | | Remove /^#include\s+<sys/cdefs.h>.*$\n\s+__FBSDID\("\$FreeBSD\$"\);\n/
* Update/fix Makefile.depend for userlandSimon J. Gerraty2023-04-191-1/+0
|
* rusers: modernize a bitEitan Adler2018-06-251-5/+5
| | | | Notes: svn path=/head/; revision=335638
* spdx: initial adoption of licensing ID tags.Pedro F. Giffuni2017-11-181-0/+2
| | | | | | | | | | | | | | | | | | | | 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. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Initially, only tag files that use BSD 4-Clause "Original" license. RelNotes: yes Differential Revision: https://reviews.freebsd.org/D13133 Notes: svn path=/head/; revision=325966
* 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/+22
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | 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 sync of headSimon J. Gerraty2015-05-272-4/+3
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=283595
| * 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 FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+23
| | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | mdoc: sort SEE ALSO.Joel Dahl2014-12-261-2/+2
| | | | | | | | Notes: svn path=/head/; revision=276258
* | Convert to usr.bin/ to LIBADDBaptiste Daroussin2014-11-251-2/+1
|/ | | | | | | Reduce overlinking Notes: svn path=/head/; revision=275042
* Add missing static keywords to rusers(1)Ed Schouten2011-11-061-3/+3
| | | | Notes: svn path=/head/; revision=227179
* 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
* Build usr.bin/ with WARNS=6 by default.Ed Schouten2010-01-021-1/+0
| | | | | | | Also add some missing $FreeBSD$ to keep svn happy. Notes: svn path=/head/; revision=201386
* Sync program's usage() with manpage's SYNOPSIS.Ruslan Ermilov2005-05-211-1/+1
| | | | Notes: svn path=/head/; revision=146466
* Sort SEE ALSO references (in dictionary order, ignoring case).Ruslan Ermilov2004-07-041-2/+2
| | | | Notes: svn path=/head/; revision=131594
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-2/+4
| | | | Notes: svn path=/head/; revision=131491
* Fix a couple of warnings:David Malone2004-05-192-2/+6
| | | | | | | | | | | 1) Missing include for declaration of time conversion functions. 2) Avoid a couple of alignment warnings on 64 bit arches by memcpying the things pointed to by caddrs into variables of the right type. Bump WARNS to 6 while I'm here. Notes: svn path=/head/; revision=129459
* More xdrproc_t warnings.Peter Wemm2003-10-261-4/+5
| | | | Notes: svn path=/head/; revision=121545
* Trivial warnings fixes; staticise and use unsigned.Mark Murray2002-04-281-13/+16
| | | | | | | Use __FBSDID(). Notes: svn path=/head/; revision=95619
* I've been meaning to do this for a while. Add an underscore to theMatthew Dillon2002-01-191-1/+1
| | | | | | | | | | | time_to_xxx() and xxx_to_time() functions. e.g. _time_to_xxx() instead of time_to_xxx(), to make it more obvious that these are stopgap functions & placemarkers and not meant to create a defacto standard. They will eventually be replaced when a real standard comes out of committee. Notes: svn path=/head/; revision=89572
* Fix time_t == int assumption, properly convert protocol int to time_t.Matthew Dillon2001-10-281-3/+2
| | | | Notes: svn path=/head/; revision=85638
* mdoc(7) police: removed HISTORY info from the .Os call.Ruslan Ermilov2001-07-101-1/+1
| | | | Notes: svn path=/head/; revision=79535
* mdoc(7) police: sort xrefs.Ruslan Ermilov2001-07-051-2/+2
| | | | Notes: svn path=/head/; revision=79280
* Call clnt_destroy() to prevent exhausting resources.Mike Heffner2001-06-191-0/+1
| | | | | | | | | PR: bin/14255 Reviewed by: Kenji Tomita <tommy@ti.com> MFC after: 2 weeks Notes: svn path=/head/; revision=78456
* Cleanup the mix of styles in this file:Mike Heffner2001-06-191-116/+115
| | | | | | | | | | | | - spaces -> tabs - return(0) -> return (0) - wrap longlines Reviewed by: md5 MFC after: 2 weeks Notes: svn path=/head/; revision=78455
* Correct cross-reference:Maxim Sobolev2001-06-071-2/+2
| | | | | | | | | portmap.8 --> rpcbind.8 Submitted by: .Xr testing script Notes: svn path=/head/; revision=77878
* mdoc(7) police: properly use a -diag list in the DIAGNOSTICS section.Dima Dorfman2001-04-131-4/+4
| | | | | | | Reviewed by: ru Notes: svn path=/head/; revision=75495
* MAN[1-9] -> MAN.Ruslan Ermilov2001-03-271-1/+0
| | | | Notes: svn path=/head/; revision=74848
* Bring in a hybrid of SunSoft's transport-independent RPC (TI-RPC) andAlfred Perlstein2001-03-191-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | associated changes that had to happen to make this possible as well as bugs fixed along the way. Bring in required TLI library routines to support this. Since we don't support TLI we've essentially copied what NetBSD has done, adding a thin layer to emulate direct the TLI calls into BSD socket calls. This is mostly from Sun's tirpc release that was made in 1994, however some fixes were backported from the 1999 release (supposedly only made available after this porting effort was underway). The submitter has agreed to continue on and bring us up to the 1999 release. Several key features are introduced with this update: Client calls are thread safe. (1999 code has server side thread safe) Updated, a more modern interface. Many userland updates were done to bring the code up to par with the recent RPC API. There is an update to the pthreads library, a function pthread_main_np() was added to emulate a function of Sun's threads library. While we're at it, bring in NetBSD's lockd, it's been far too long of a wait. New rpcbind(8) replaces portmap(8) (supporting communication over an authenticated Unix-domain socket, and by default only allowing set and unset requests over that channel). It's much more secure than the old portmapper. Umount(8), mountd(8), mount_nfs(8), nfsd(8) have also been upgraded to support TI-RPC and to support IPV6. Umount(8) is also fixed to unmount pathnames longer than 80 chars, which are currently truncated by the Kernel statfs structure. Submitted by: Martin Blapp <mb@imp.ch> Manpage review: ru Secure RPC implemented by: wpaul Notes: svn path=/head/; revision=74462
* Prepare for mdoc(7)NG.Ruslan Ermilov2001-01-161-1/+1
| | | | Notes: svn path=/head/; revision=71102
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-201-1/+1
| | | | Notes: svn path=/head/; revision=68963
* More rusers to .Nm convertionPhilippe Charnier2000-03-271-5/+9
| | | | | | | Some of them found by: Sheldon Notes: svn path=/head/; revision=58703
* Add section number to .Xr. Put arguments under .Ar.Philippe Charnier2000-03-261-3/+7
| | | | Notes: svn path=/head/; revision=58621
* Remove single-space hard sentence breaks. These degrade the qualitySheldon Hearn2000-03-011-3/+6
| | | | | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc. Notes: svn path=/head/; revision=57670
* $Id$ -> $FreeBSD$Peter Wemm1999-08-283-3/+3
| | | | Notes: svn path=/head/; revision=50477
* Proper casting for clnt_broadcast() args.Jordan K. Hubbard1997-09-151-2/+2
| | | | Notes: svn path=/head/; revision=29469
* Remove argv0, cosmetic in usage(), use err(3), add Xr to rwho(1) and users(1).Philippe Charnier1997-08-082-38/+33
| | | | Notes: svn path=/head/; revision=27976
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-223-3/+3
| | | | Notes: svn path=/head/; revision=23012