aboutsummaryrefslogtreecommitdiff
path: root/include/protocols
Commit message (Collapse)AuthorAgeFilesLines
* dumprestore.h: Fix typos in source code commentsGordon Bergling2024-03-031-3/+3
| | | | | | - s/dumpped/dumped/ (cherry picked from commit 8f87d402e32178974038212fbf4b1564447df0e0)
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-162-2/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* Remove $FreeBSD$: two-line .h patternWarner Losh2023-08-165-10/+0
| | | | Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
* include: Fix typosElyes Haouas2023-02-221-1/+1
| | | | Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
* Clean up global variable declarations in the dump and restoreKirk McKusick2020-04-041-1/+1
| | | | | | | | | | | | 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
* Use a private definition of osockaddr rather then relying on typeBrooks Davis2019-01-181-3/+12
| | | | | | | | | | | | namespace polution in sys/socket.h. Also remove support for operation on 4.3BSD. PR: 224529 Differential Revision: https://reviews.freebsd.org/D14505 Notes: svn path=/head/; revision=343161
* include: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-205-4/+14
| | | | | | | | | | | | | | | | | 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=326024
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+11
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | 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 from headSimon J. Gerraty2013-09-051-1/+3
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=255263
| * \ sync from headSimon J. Gerraty2013-04-121-1/+3
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=249429
| * | | 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-222-1/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | | Remove NO_OBJSimon J. Gerraty2015-06-111-1/+0
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | For meta mode we will want objdirs. Differential Revision: D2748 Reviewed by: brooks imp Notes: svn path=/head/; revision=284255
* | | Add proper prerequisites for even two more headers.Ed Schouten2013-05-211-1/+3
| |/ |/| | | | | | | | | | | Spotted by: http://hacks.owlfolio.org/header-survey/ Notes: svn path=/head/; revision=250889
* | Add static/const keywords to the arrays.Ed Schouten2013-04-091-1/+3
|/ | | | | | | | | | | | This theoretically allows a compiler to optimize (parts of) the array away if unused. While there, make the array size implicit and use a _Static_assert() to ensure that the definition matches up with the number of elements in the list. Notes: svn path=/head/; revision=249311
* Don't use ino_t in dumprestore protocol definition.Gleb Kurtsou2012-05-181-1/+10
| | | | | | | | | | | | Since ino_t size is about to change to 64-bits, replace ino_t used in dump protocol definition with 32-bit dump_ino_t to preserve backward compatibility. At some point, it may be necessary to use spare fields in struct in order to fully support 64-bit inode numbers. Sponsored by: Google Summer of Code 2011 Notes: svn path=/head/; revision=235601
* Remove clause 3 from Berkeley copyrights. Add a few $FreeBSD$'s.Warner Losh2010-02-165-25/+9
| | | | Notes: svn path=/head/; revision=203965
* Expand dump to allow MAX_INT dump levels.Kirk McKusick2008-05-241-9/+0
| | | | | | | | PR: bin/100732 Submitted by: Matthew Vincenz <msvincen@midway.uchicago.edu> Notes: svn path=/head/; revision=179275
* Update the dump program to save extended attributes. UpdateKirk McKusick2007-02-261-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the restore program to restore all dumped extended attributes. If the restore is running as root, it will always be able to restore all extended attributes. If it is not running as root, it makes a best effort to set them. Using the -v command line flag or the `verbose' command in interactive mode will display all the extended attributes being set on files (and at the end on directories) that are being restored. It will note any extended attributes that could not be set. The extended attributes are placed on the dump image immediately following each file's data. Older versions of restore can work with the newer dump images. Old versions of restore will correctly restore the file data and then (silently) skip over the extended attribute data and proceed to the next file. This resolves PR 93085 which will be closed once the code has been MFC'ed. Note that this code will not compile until these header files have been updated: <protocols/dumprestore.h> and <sys/extattr.h>. PR: bin/93085 Comments from: Poul-Henning Kamp and Robert Watson MFC after: 3 weeks Notes: svn path=/head/; revision=167011
* Start the dreaded NOFOO -> NO_FOO conversion.Ruslan Ermilov2004-12-211-1/+1
| | | | | | | OK'ed by: core Notes: svn path=/head/; revision=139103
* For variables that are only checked with defined(), don't provideRuslan Ermilov2004-10-241-1/+1
| | | | | | | any fake value. Notes: svn path=/head/; revision=136910
* Sync HEAD sources to vendor branch import of routed v2.27 from rhyolite.com.Bruce M Simpson2004-02-251-1/+4
| | | | | | | | | | | Update <protocols/routed.h> for the MD5 changes requested in bin/35843. Preserve local changes. Education by: obrien, markm, pointy-stick PR: bin/35843 (and doubtless others) Notes: svn path=/head/; revision=126250
* Change utimes to set the file creation time (for filesystems thatKirk McKusick2002-07-171-2/+2
| | | | | | | | | | | support creation times such as UFS2) to the value of the modification time if the value of the modification time is older than the current creation time. See utimes(2) for further details. Sponsored by: DARPA & NAI Labs. Notes: svn path=/head/; revision=100207
* This commit adds basic support for the UFS2 filesystem. The UFS2Kirk McKusick2002-06-211-8/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | filesystem expands the inode to 256 bytes to make space for 64-bit block pointers. It also adds a file-creation time field, an ability to use jumbo blocks per inode to allow extent like pointer density, and space for extended attributes (up to twice the filesystem block size worth of attributes, e.g., on a 16K filesystem, there is space for 32K of attributes). UFS2 fully supports and runs existing UFS1 filesystems. New filesystems built using newfs can be built in either UFS1 or UFS2 format using the -O option. In this commit UFS1 is the default format, so if you want to build UFS2 format filesystems, you must specify -O 2. This default will be changed to UFS2 when UFS2 proves itself to be stable. In this commit the boot code for reading UFS2 filesystems is not compiled (see /sys/boot/common/ufsread.c) as there is insufficient space in the boot block. Once the size of the boot block is increased, this code can be defined. Things to note: the definition of SBSIZE has changed to SBLOCKSIZE. The header file <ufs/ufs/dinode.h> must be included before <ufs/ffs/fs.h> so as to get the definitions of ufs2_daddr_t and ufs_lbn_t. Still TODO: Verify that the first level bootstraps work for all the architectures. Convert the utility ffsinfo to understand UFS2 and test growfs. Add support for the extended attribute storage. Update soft updates to ensure integrity of extended attribute storage. Switch the current extended attribute interfaces to use the extended attribute storage. Add the extent like functionality (framework is there, but is currently never used). Sponsored by: DARPA & NAI Labs. Reviewed by: Poul-Henning Kamp <phk@freebsd.org> Notes: svn path=/head/; revision=98542
* Use explicitly sized fields for the tape format definition.Poul-Henning Kamp2002-05-141-1/+1
| | | | | | | Sponsored by: DARPA & NAI Labs. Notes: svn path=/head/; revision=96562
* Added new bsd.incs.mk which handles installing of header filesRuslan Ermilov2002-05-121-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | via INCS. Implemented INCSLINKS (equivalent to SYMLINKS) to handle symlinking include files. Allow for multiple groups of include files to be installed, with the powerful INCSGROUPS knob. Documentation to follow. Added standard `includes' and `incsinstall' targets, use them in Makefile.inc1. Headers from the following makefiles were not installed before (during `includes' in Makefile.inc1): kerberos5/lib/libtelnet/Makefile lib/libbz2/Makefile lib/libdevinfo/Makefile lib/libform/Makefile lib/libisc/Makefile lib/libmenu/Makefile lib/libmilter/Makefile lib/libpanel/Makefile Replaced all `beforeinstall' targets for installing includes with the INCS stuff. Renamed INCDIR to INCSDIR, for consistency with FILES and SCRIPTS, and for compatibility with NetBSD. Similarly for INCOWN, INCGRP, and INCMODE. Consistently use INCLUDEDIR instead of /usr/include. gnu/lib/libstdc++/Makefile and gnu/lib/libsupc++/Makefile changes were only lightly tested due to the missing contrib/libstdc++-v3. I fully tested the pre-WIP_GCC31 version of this patch with the contrib/libstdc++.295 stuff. These changes have been tested on i386 with the -DNO_WERROR "make world" and "make release". Notes: svn path=/head/; revision=96462
* WARNS-n and lint(1) silencer. Declare (const) strings properly asMark Murray2002-02-031-1/+1
| | | | | | | 'const char *'. Notes: svn path=/head/; revision=90138
* Use fixed-size fields in the structure for the timed protocol. ThisJohn Baldwin2001-11-201-4/+9
| | | | | | | | | | | | includes changing a struct timeval to an explicit structure of two int32_t's. This requires using temporary timevals in several places when calling gettimeofday(), settimeofday(), etc. With this timed now works properly on 64-bit platforms such as Alpha. Obtained from: NetBSD Notes: svn path=/head/; revision=86644
* Make the protocol/dumprestore.h header match restore's idea of the dumpMatthew Dillon2001-10-281-2/+4
| | | | | | | | | | | header for the case where sizeof(time_t) != sizeof(int). dumprestore.h was embedding time_t when it should have been embedding int32_t. Use time_to_time32() and time32_to_time() to convert between the protocoll/file-format time and time_t. Notes: svn path=/head/; revision=85635
* Zap $Revision$Peter Wemm1999-09-051-1/+0
| | | | Notes: svn path=/head/; revision=50968
* $Id$ -> $FreeBSD$Peter Wemm1999-08-271-2/+2
| | | | Notes: svn path=/head/; revision=50473
* Restored rev.1.11 which was clobbered by rev.1.12 (translated to `C').Bruce Evans1999-05-111-2/+2
| | | | Notes: svn path=/head/; revision=46990
* 16 characters for the device name in /etc/dumpdates is not longJacques Vidrine1999-05-081-2/+2
| | | | | | | | | | enough, particularly when using vinum. Allow 32 characters (arbitrary, I know) instead. PR: bin/11433 Notes: svn path=/head/; revision=46663
* Part of routed upgrade.Mark Murray1999-05-021-4/+4
| | | | | | | Submitted by: Vernon Schryver <vjs@calcite.rhyolite.com> Notes: svn path=/head/; revision=46305
* 64bit clean nowDima Ruban1998-11-081-1/+1
| | | | Notes: svn path=/head/; revision=40999
* 64bit fixes.Dima Ruban1998-10-271-9/+9
| | | | | | | | | | (Note: ``dump'' doesn't work on alpha yet. Apparently there's a problem somewhere is the physio() area) Submitted by: myself && Matt Dillon. Notes: svn path=/head/; revision=40668
* make talk/talkd work on alpha.Dima Ruban1998-10-201-3/+3
| | | | Notes: svn path=/head/; revision=40536
* Translated to `C' - commented out #ident.Bruce Evans1998-01-161-1/+1
| | | | Notes: svn path=/head/; revision=32545
* Back out all of yesterdays include file changes.Eivind Eklund1997-05-074-13/+1
| | | | Notes: svn path=/head/; revision=25551
* Make a lot of include-files self-contained. I excluded the patches changingEivind Eklund1997-05-074-1/+13
| | | | | | | | | | | int's to gid_t and uid_t - should I commit these, too? Closes PR misc/2625. Submitted by: Julian Assange <proff@iq.org> Notes: svn path=/head/; revision=25520
* Matching routed.h to go along with latest routed.Garrett Wollman1996-11-191-2/+14
| | | | Notes: svn path=/head/; revision=19886
* New version of routed.h to match new version of routed.Garrett Wollman1996-08-271-17/+20
| | | | Notes: svn path=/head/; revision=17844
* New routed.h that goes with the new routed.Garrett Wollman1996-07-221-13/+1
| | | | Notes: svn path=/head/; revision=17253
* Protocol definitions for RIPv2.Garrett Wollman1996-05-301-21/+88
| | | | | | | Obtained from: Vernon Schryver <vjs@mica.denver.sgi.com> Notes: svn path=/head/; revision=16009
* Remove trailing whitespace.Rodney W. Grimes1995-05-302-5/+5
| | | | Notes: svn path=/head/; revision=8858
* Changed idempotent strings to reflect directory area.Paul Richards1994-08-215-10/+10
| | | | | | | | Reviewed by: Submitted by: Notes: svn path=/head/; revision=2163
* BSD 4.4 Lite Include SourcesRodney W. Grimes1994-05-245-0/+497
Notes: svn path=/head/; revision=1539