aboutsummaryrefslogtreecommitdiff
path: root/sbin/dump/dumprmt.c
Commit message (Collapse)AuthorAgeFilesLines
* sbin: Automated cleanup of cdefs and other formattingWarner Losh2023-11-271-3/+0
| | | | | | | | | | | | | | | | Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row. Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/ Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/ Remove /\n+#if.*\n#endif.*\n+/ Remove /^#if.*\n#endif.*\n/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/ Sponsored by: Netflix
* sbin: Remove ancient SCCS tags.Warner Losh2023-11-271-3/+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
* Purge more stray embedded $FreeBSD$ stringsJohn Baldwin2023-09-251-2/+0
| | | | | | | These do not use __FBSDID but instead use bare char arrays. Reviewed by: imp, emaste Differential Revision: https://reviews.freebsd.org/D41957
* Clean up global variable declarations in the dump and restoreKirk McKusick2020-04-041-1/+0
| | | | | | | | | | | | utilities so that they will compile with -fno-common. Started by: Kyle Evans (kevans) Reviewed by: Kyle Evans (kevans) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D24210 Notes: svn path=/head/; revision=359627
* General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-201-0/+2
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 3-Clause license. 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. Notes: svn path=/head/; revision=326025
* 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
* Fixed unformatting of copyright clause 4 in previous commit.Bruce Evans2004-04-101-1/+1
| | | | Notes: svn path=/head/; revision=128085
* Remove advertising clause from University of California Regent's license,Mark Murray2004-04-091-5/+1
| | | | | | | | | per letter dated July 22, 1999. Approved by: core, imp Notes: svn path=/head/; revision=128073
* Make this WARNS=2 clean byJohan Karlsson2003-11-141-1/+1
| | | | | | | | | | | | | - using (intmax_t) and %j - giving a non-empty format string to msg() Include <stdint.h> directly instead of depending on <inttypes.h> to do it. Tested by: make universe Notes: svn path=/head/; revision=122669
* De-Kerberise (KerberosIV). KerberosIV is no longer present, andMark Murray2003-05-011-15/+4
| | | | | | | | remote backups can still be done with Kerberos authentication using SSH and Kerberos 5. Notes: svn path=/head/; revision=114452
* Use the standardized CHAR_BIT constant instead of NBBY in userland.Mike Barcroft2002-09-251-0/+1
| | | | Notes: svn path=/head/; revision=103949
* o remove __PWarner Losh2002-03-201-56/+35
| | | | | | | | o Use ANSI function definitions o unifdef -D__STDC__ Notes: svn path=/head/; revision=92837
* Zap a number of #ifdef sunos blocks, and all of the `register'Ian Dowse2001-11-171-13/+8
| | | | | | | keywords. Notes: svn path=/head/; revision=86473
* Add include of errno.h where needed, remove extern int errno where not.Warner Losh2000-04-141-1/+1
| | | | | | | These commits were inspired by a similar commit to netbsd. Notes: svn path=/head/; revision=59216
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50476
* Add support for dealing with ENOSPC as the error code returned by a tapeJustin T. Gibbs1998-09-151-11/+8
| | | | | | | device hitting EOM on a write. Notes: svn path=/head/; revision=39256
* Make `dump' exit codes confirm to manual page.Joseph Koshy1998-07-141-4/+4
| | | | | | | | PR: 5346 Style-check-by: bde Notes: svn path=/head/; revision=37635
* Correct use of .Nm. Add rcsid. Remove unused #includes.Philippe Charnier1998-06-151-3/+4
| | | | Notes: svn path=/head/; revision=36997
* Turn on TCP_NODELAY on the remote socket, to turn off sender silly windowBill Fenner1998-05-171-6/+3
| | | | | | | | | | | | syndrome avoidance. The combination of SWS avoidance and ack-every-other causes low throughput if the block size divided by the MSS is odd (which is true with the default block size and MSS). Turning on TCP_NODELAY disables the Nagle algorithm and sender SWS avoidance. The rdump request/response protocol can not invoke Nagle and cannot cause SWS, so this has no negative effects. Notes: svn path=/head/; revision=36115
* Implement Kerberized rcmd for rdump/rrestore. This is lacking theGarrett Wollman1997-04-291-5/+15
| | | | | | | | | | options one would normally expect to set the realm, enable encryption, and whatnot, but this actually is able to contact the remote server, so at least it's a start. (As a bonus, the stripped static binary is unquestionably exportable.) Notes: svn path=/head/; revision=25288
* Merge Lite2 changes (rather bigish, the dump/restore folks should check)Peter Wemm1997-03-111-2/+3
| | | | Notes: svn path=/head/; revision=23672
* Fix many buffer overflows, correct usage of strcat and implementWarner Losh1997-01-071-6/+6
| | | | | | | | | | $TAPE. Inspired by OpenBSD's work in this area. Reviewed by: Peter Wemm, Guido van Rooij and Jordan Hubbard. Obtained from: OpenBSD Notes: svn path=/head/; revision=21409
* Use fprintf(stderr,) instead of msgtail() so it works for restore as well.Bill Fenner1996-11-011-0/+1
| | | | Notes: svn path=/head/; revision=19317
* Temporarily disable an information message that was added in the lastPeter Wemm1996-11-011-1/+0
| | | | | | | | commit.. This causes a link error in sbin/restore which also uses this file. Notes: svn path=/head/; revision=19315
* Make rdump error messages a little clearer and make them look like dumpBill Fenner1996-11-011-12/+35
| | | | | | | | messages, and make it explicit that stderr output came from the remote end. (e.g. "rmt: command not found") Notes: svn path=/head/; revision=19300
* If rcmd() fails, return immediately instead of trying a bunch ofBill Fenner1996-10-281-6/+9
| | | | | | | | | | | | setsockopt()'s on a -1 file descriptor. Remove attempt to decrease TCP MSS; it makes no sense. Set the IP TOS to IPTOS_THROUGHPUT as an indication that this is an application sending large blocks of data, as recommended by RFC1700. Notes: svn path=/head/; revision=19239
* Andreas Klemm's patch set for dump(8), with some minor (cosmetic)Joerg Wunsch1995-11-181-1/+4
| | | | | | | | | | | | | | | | | | | changes and one addition by me. . Use reasonable defaults for the tape drive (/dev/rst0) instead of something we actually don't have. . Add a summary line displaying the alapsed time and the total throughput. . Replace "rmt" for the remote location of rmt(8) by "/etc/rmt", since this is the historical protocol, and relying on the $PATH causes a big pain. Make it adjustable via an environmental variable though. Reviewed by: joerg (for Andreas' part) Submitted by: andreas@knobel.gun.de (Andreas Klemm) Notes: svn path=/head/; revision=12377
* BSD 4.4 Lite sbin SourcesRodney W. Grimes1994-05-261-0/+380
Note: XNSrouted and routed NOT imported here, they shall be imported with usr.sbin. Notes: svn path=/head/; revision=1558