aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/rup/rup.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove $FreeBSD$: two-line .c patternWarner Losh2023-08-161-3/+0
| | | | Remove /^#include\s+<sys/cdefs.h>.*$\n\s+__FBSDID\("\$FreeBSD\$"\);\n/
* rup: Fix -Wcast-align warningsJilles Tjoelker2018-07-031-19/+8
| | | | | | | | | | | | | | | Fix possible strict aliasing issue (if time_t is the same size as int but not int but for example long) which also resulted in a false positive warning on systems with 64-bit time_t. Pointer casts are bad; we can just copy the time_t. Elsewhere, avoid casting char * to int * by using memcpy(). Reviewed by: eadler Differential Revision: https://reviews.freebsd.org/D16075 Notes: svn path=/head/; revision=335905
* rup: compile with WARNS=6Eitan Adler2018-06-251-5/+3
| | | | Notes: svn path=/head/; revision=335637
* 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
* Catch up with 64bit time_t on sparc64. The rstat packet expects a 32bitPhilip Paeps2005-12-041-5/+19
| | | | | | | | | | | time_t and times will look incorrect on machines with 64bit time_t. PR: 88788 Submitted by: Keith White <Keith.White -at- site.uottawa.ca> MFC after: 1 week Notes: svn path=/head/; revision=153090
* Sync program's usage() with manpage's SYNOPSIS.Ruslan Ermilov2005-05-211-1/+1
| | | | Notes: svn path=/head/; revision=146466
* More xdrproc_t warnings.Peter Wemm2003-10-261-4/+7
| | | | Notes: svn path=/head/; revision=121545
* Style only; format function declarations, sort header includes, andMark Murray2002-04-281-20/+26
| | | | | | | use __FBSDID(). Notes: svn path=/head/; revision=95616
* If the remote uptime is less than one minute, print the uptime inBill Fenner2001-10-171-0/+2
| | | | | | | seconds instead of leaving the uptime field blank. Notes: svn path=/head/; revision=85039
* Call clnt_destroy() to prevent exhausting resources.Mike Heffner2001-06-191-0/+2
| | | | | | | | | PR: bin/14255 Reviewed by: Kenji Tomita <tommy@ti.com> MFC after: 2 weeks Notes: svn path=/head/; revision=78456
* 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
* getopt and friends are declared in <unistd.h>Warner Losh2000-09-041-1/+0
| | | | | | | getopt returns -1 not EOF. Notes: svn path=/head/; revision=65428
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50477
* PR: bin/6193Daniel O'Callaghan1998-04-011-2/+2
| | | | | | | | Submitted by: Max Euston <meuston@jmrodgers.com> Make times between 0000-0059 and 1200-1259 show as 12:xx, not 0:xx Notes: svn path=/head/; revision=34993
* Silence a warning with a cast.Jordan K. Hubbard1997-09-151-2/+2
| | | | Notes: svn path=/head/; revision=29468
* Use err(3), so eliminate use of `argv0'.Philippe Charnier1997-08-071-22/+19
| | | | Notes: svn path=/head/; revision=27955
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-221-1/+1
| | | | Notes: svn path=/head/; revision=23012
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
| | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. Notes: svn path=/head/; revision=21673
* Fix bug found by newly visible prototypes in rpc. The code was passingPeter Wemm1996-12-301-2/+5
| | | | | | | an in to a function instead of a "struct timeval". Notes: svn path=/head/; revision=21093
* Amend my fix a bit. My way failed to take leap years into account. TheBill Paul1995-11-211-11/+4
| | | | | | | | | | simplest thing is to just calculate the days using curtime - boottime / 86400. The modification for this is less obtrusive anyway. Suggested by: Bill Fenner <fenner@parc.xerox.com> Notes: svn path=/head/; revision=12445
* Rup uses tm_yday in its uptime printout, but ignores tm_year. This meansBill Paul1995-11-191-3/+11
| | | | | | | | | | | that if you do an rup on a machine that's been running longer than a year, you get the wrong day count. Now we factor in 365 * (curtime.tm_year - boottime.tm_year) to get the correct value. (I noticed this while running rup on a SunOS machine I have that's been up 525 days. My FreeBSD machines all said it had only been up for 160 (525-365) days. :) Notes: svn path=/head/; revision=12384
* Remove trailing whitespace.Rodney W. Grimes1995-05-301-6/+6
| | | | Notes: svn path=/head/; revision=8874
* rup from FreeBSD 1.1.5.1Geoff Rehmet1994-08-281-0/+227
Reviewed by: Geoff Submitted by: John Brezak Notes: svn path=/cvs2svn/branches/FBSD_1/; revision=2343