aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/bootparamd/callbootd
Commit message (Collapse)AuthorAgeFilesLines
* clnt_broadcast(3): fix eachresult argument typeBrooks Davis2026-02-021-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* 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.sbin: Remove ancient SCCS tags.Warner Losh2023-11-271-1/+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 sh patternWarner Losh2023-08-162-2/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-161-2/+0
| | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
* Mark usage function as __dead2 in programs where it does not returnAlfonso Gregory2023-07-071-1/+1
| | | | | | | | In most cases, usage does not return, so mark them as __dead2. For the cases where they do return, they have not been marked __dead2. Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/735
* Update/fix Makefile.depend for userlandSimon J. Gerraty2023-04-191-1/+0
|
* bootparamd: Fix several warnings and increase warn level to 6.Yoshihiro Takahashi2021-01-021-15/+11
| | | | | | | | | | | | | - Increase WARNS to 6. - Except -Wcast-align and -Wincompatible-pointer-types-discards-qualifiers checks. - Use ANSI C prototype. - Statically variables and functions. - Add extern declaration for global variables. - Rename local variables to resolve shadow warnings. PR: 71667 MFC after: 2 weeks
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* Fix WARNSEnji Cooper2017-08-171-12/+5
| | | | | | | | | | | | | | - Remove ad hoc inet_ntoa prototype declaration; it's already handled by the included headers. - De-K&Rify the function prototypes for eachres_whoami(..), eachres_getfile(..), and main(..). MFC after: 1 week PR: 71667 Tested with: clang (5.0), gcc (4.2.1, 5) Notes: svn path=/head/; revision=322635
* Utilize SYSROOT from r320119 in places where DESTDIR may be wanting WORLDTMP.Bryan Drewery2017-06-191-1/+1
| | | | | | | | | | | | | | Since buildenv exports SYSROOT all of these uses will now look in WORLDTMP by default. sys/boot/efi/loader/Makefile A LIBSTAND hack is no longer required for buildenv. MFC after: 2 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=320122
* DIRDEPS_BUILD: Regenerate without local dependencies.Bryan Drewery2016-02-241-10/+0
| | | | | | | | | | | These are no longer needed after the recent 'beforebuild: depend' changes and hooking DIRDEPS_BUILD into a subset of FAST_DEPEND which supports skipping 'make depend'. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=295989
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+31
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * 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
| * Merge headSimon J. Gerraty2014-04-282-2/+2
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=265044
| * Updated dependenciesSimon J. Gerraty2013-03-111-0/+2
| | | | | | | | 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/+31
| | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | NO_MAN= has been deprecated in favor of MAN= for some time, go aheadWarner Losh2014-04-131-1/+1
| | | | | | | | | | | | | | | | | | and finish the job. ncurses is now the only Makefile in the tree that uses it since it wasn't a simple mechanical change, and will be addressed in a future commit. Notes: svn path=/head/; revision=264400
* | Use INADDR_NONE instead of -1 to check inet_addr() result.Kevin Lo2013-10-151-1/+1
|/ | | | | | | Reviewed by: glebius Notes: svn path=/head/; revision=256506
* Consistently set RPCGEN_CPP when running rpcgen, so the C preprocessorDimitry Andric2012-02-071-3/+3
| | | | | | | | | set via ${CPP} is used, instead of always using hardcoded /usr/bin/cpp. MFC after: 1 week Notes: svn path=/head/; revision=231118
* Fix warning when compiling with gcc46:Eitan Adler2012-01-201-3/+2
| | | | | | | | | | error: variable 'clnt_stat' set but not used Approved by: dim, cperciva (mentor, blanket for pre-mentorship already-approved commits) MFC after: 3 days Notes: svn path=/head/; revision=230361
* Cleanup of userland __P useKevin Lo2007-11-071-3/+3
| | | | Notes: svn path=/head/; revision=173412
* Pass -C to rpcgen.Stefan Farfeleder2005-02-091-3/+3
| | | | Notes: svn path=/head/; revision=141569
* 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
* fix problem with uninitalized ptr (from PR)John-Mark Gurney2003-06-201-8/+13
| | | | | | | | | | other minor clean up. PR: bin/2785 Submitted by: mpp Notes: svn path=/head/; revision=116598
* Perform a major cleanup of the usr.sbin Makefiles.David E. O'Brien2001-07-201-1/+3
| | | | | | | | These are not perfectly in agreement with each other style-wise, but they are orders of orders of magnitude more consistent style-wise than before. Notes: svn path=/head/; revision=80029
* Bring in a hybrid of SunSoft's transport-independent RPC (TI-RPC) andAlfred Perlstein2001-03-191-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* $Id$ -> $FreeBSD$Peter Wemm1999-08-282-2/+2
| | | | Notes: svn path=/head/; revision=50479
* #include <arpa/inet.h> for inet_* definitions.Peter Wemm1998-06-121-2/+4
| | | | Notes: svn path=/head/; revision=36917
* Fixed `make -j9' by putting generated headers in ${SRCS}. Removed bogusBruce Evans1998-04-261-5/+6
| | | | | | | | dependencies of generated .c files on generated headers (these made `make -JN' work provided `depend' was made first). Sorted sources lists. Notes: svn path=/head/; revision=35466
* Use err(3). Add usage and prototypes. Remove Xref: Diskless(8) does notPhilippe Charnier1997-09-041-27/+31
| | | | | | | exist. Use An/Aq macros for Author. Notes: svn path=/head/; revision=29102
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-222-2/+2
| | | | Notes: svn path=/head/; revision=22997
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-142-2/+2
| | | | | | | | | | | 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
* Add a dependency on the .x source file and avoid copying it.Bruce Evans1995-07-041-15/+10
| | | | | | | | | | bootparam_prot.x was changed for nfsv3 but bootparamd and callbootd kept using the old version which fortunately failed at build time. Copying hasn't been necessary since path handling was fixed in rpcgen/rpc_main.c some time ago. Notes: svn path=/head/; revision=9394
* Remove trailing whitespace.Rodney W. Grimes1995-05-302-24/+24
| | | | Notes: svn path=/head/; revision=8857
* Stop callbootd from dumping core when attempting to directly query aBill Paul1995-03-261-1/+6
| | | | | | | | bootparam server on a host that isn't running bootparamd: if clnt_create() comes back with a NULL pointer, bail out with an error. Notes: svn path=/head/; revision=7385
* Took out .include "../../Makefile.inc" which shouldn't be needed now that IBill Paul1995-03-021-2/+1
| | | | | | | | put a proper Makefile.inc in the top level of the bootparam heirarchy. (Someday I'll learn. *sigh*) Notes: svn path=/head/; revision=6843
* My patch this morning was not complete. I never tested make install - stupidlyJordan K. Hubbard1995-03-011-1/+2
| | | | | | | | | | | | | | thinking that it would work :( The install program never get a destination directory. Here is another patch that should also be added. I think this should be the last one for these makefiles :) [Note: I realize that there are more things wrong than this, but this should at least get the tree compiling again! -jkh] Submitted by: John Hay <jhay@mikom.csir.co.za> Notes: svn path=/head/; revision=6805
* The current bootparamd makefiles break if you do a make obj first. It doesPoul-Henning Kamp1995-03-011-13/+11
| | | | | | | | | | | | work if you don't have the obj link. Here is a patch for it. It will still work if you don't have an obj link:) (I stuck a ${DESTDIR} in front of the absolute path to /usr/include... /phk) Reviewed by: phk Submitted by: John Hay <jhay@mikom.csir.co.za> Notes: svn path=/head/; revision=6798
* Obtained from: The Xkernel source distributionBill Paul1995-02-262-0/+215
I hope I'm doing this right. This is an initial version of bootparamd for FreeBSD based on a public domain rpc.bootparamd implementation by a gentleman named Klas Heggemann. This program has apparently been around for a while. The README explicitly lists the code as public domain, so I guess it's safe to use. This program is needed for booting diskless SunOS and Solaris machines. rarpd is also required, but that's in the works too. I have made two changes to this code: - Implemented NIS lookups. If /etc/bootparams contains a '+' then the bootparams map is consulted. - Allow 0.0.0.0 as a user-specified router address. The SunOS rpc.bootparamd returns this value in many cases. Notes: svn path=/cvs2svn/branches/bootparamd/; revision=6751