aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/ypbind
Commit message (Collapse)AuthorAgeFilesLines
* various: general adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-271-1/+3
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. 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. No functional change intended. Notes: svn path=/head/; revision=326276
* 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
* ypbind(8): let calloc(3) do the multiplying.Pedro F. Giffuni2017-03-131-1/+1
| | | | Notes: svn path=/head/; revision=315215
* 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
* Use strlcpy() instead of strncpy() when copying to dom_domain toDon Lewis2016-05-121-3/+15
| | | | | | | | | | | | | | ensure that the latter is NUL terminated since it is passed as an argument to *printf(). Warn about NIS domains that are too long. Reported by: Coverity CID: 1009620, 1009621 MFH: 1 week Notes: svn path=/head/; revision=299573
* Don't need cast malloc.Marcelo Araujo2015-11-161-3/+3
| | | | | | | | Approved by: rodrigc (mentor) Differential Revision: D4117 Notes: svn path=/head/; revision=290903
* Fix a ton of speelling errorsEitan Adler2015-10-211-1/+1
| | | | | | | | | | arc lint is helpful Reviewed By: allanjude, wblock, #manpages, chris@bsdjunk.com Differential Revision: https://reviews.freebsd.org/D3337 Notes: svn path=/head/; revision=289677
* Fix a warning spotted by gcc4.9: dereferencing type-punned pointer will breakMarcelo Araujo2015-07-161-26/+31
| | | | | | | | | | | | | strict-aliasing rules. Declare some variables as statics as well as some functions that are internal helpers. Update the function broadcast_result() to a post-K&R definition. Differential Revision: D2690 Reviewed by: rodrigc, dim Notes: svn path=/head/; revision=285618
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+21
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | 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 head from 7/28Simon J. Gerraty2014-08-191-1/+1
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=270164
| * 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-281-27/+25
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265044
| * | 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/+22
| | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | use .Mt to mark up email addresses consistently (part2)Baptiste Daroussin2014-06-201-1/+1
| |/ |/| | | | | | | | | | | | | PR: 191174 Submitted by: Franco Fichtner <franco@lastsummer.de> Notes: svn path=/head/; revision=267668
* | Replace Sun RPC license for TI-RPC library with a 3-clause BSD license,Hiroki Sato2013-12-151-27/+25
|/ | | | | | | | with the explicit permission of Sun Microsystems in 2009. The code in question in this file was copied from lib/libc/rpc/pmap_getport.c. Notes: svn path=/head/; revision=259417
* Protect NIS client with madvise(2) since this daemon is requiredGleb Smirnoff2011-10-241-0/+4
| | | | | | | for succesful authentication of users. Notes: svn path=/head/; revision=226690
* Don't let the "available"/"not available" logs flap quite so badly. In theMark Murray2010-10-081-6/+17
| | | | | | | | case of a multi-interfaced host, sub-second flapping can fill up the logs too quickly. This fixes that. Notes: svn path=/head/; revision=213611
* Fix incorrect usage of 'assure' and 'insure'.Rebecca Cran2010-08-281-1/+1
| | | | | | | Approved by: rrs (mentor) Notes: svn path=/head/; revision=211936
* The last big commit: let usr.sbin/ use WARNS=6 by default.Ed Schouten2010-01-021-0/+2
| | | | Notes: svn path=/head/; revision=201390
* Don't rely on private RPC data structures when there is a perfectly goodDoug Rabson2008-09-151-22/+4
| | | | | | | public API. Notes: svn path=/head/; revision=183038
* Expand *n't contractions.Ruslan Ermilov2005-02-131-1/+1
| | | | Notes: svn path=/head/; revision=141846
* Remove definition of struct dom_binding, it's non-standard C code andStefan Farfeleder2004-10-171-1/+0
| | | | | | | unnecessary since src/include/rpcsvc/ypclnt.h's revision 1.10. Notes: svn path=/head/; revision=136620
* Per letter dated July 22, 1999 remove 3rd clause of Berkeley derived softwareWarner Losh2004-08-071-4/+0
| | | | | | | (with permission of addtional copyright holders where appropriate) Notes: svn path=/head/; revision=133249
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-2/+3
| | | | Notes: svn path=/head/; revision=131500
* Correct a spelling error.Ceri Davies2003-06-041-1/+1
| | | | Notes: svn path=/head/; revision=115851
* Use __FBSDID over rcsid[]. Protect copyright[] where needed.David E. O'Brien2003-05-032-7/+5
| | | | Notes: svn path=/head/; revision=114601
* xids are u_int32_ts, which are not necessarily the same size as time_ts orBill Fenner2002-09-161-2/+2
| | | | | | | unsigned longs. This fixes "ypbind -S ... -m" on sparc64. Notes: svn path=/head/; revision=103428
* The .Nm utilityPhilippe Charnier2002-07-141-5/+7
| | | | Notes: svn path=/head/; revision=99968
* Spell void * as void * rather than caddr_t. This is complicated by theDag-Erling Smørgrav2002-04-282-37/+41
| | | | | | | | | fact that caddr_t is often misspelled as char *. Sponsored by: DARPA, NAI Labs Notes: svn path=/head/; revision=95658
* o Move NTOHL() and associated macros into <sys/param.h>. These areMike Barcroft2002-02-181-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | deprecated in favor of the POSIX-defined lowercase variants. o Change all occurrences of NTOHL() and associated marcros in the source tree to use the lowercase function variants. o Add missing license bits to sparc64's <machine/endian.h>. Approved by: jake o Clean up <machine/endian.h> files. o Remove unused __uint16_swap_uint32() from i386's <machine/endian.h>. o Remove prototypes for non-existent bswapXX() functions. o Include <machine/endian.h> in <arpa/inet.h> to define the POSIX-required ntohl() family of functions. o Do similar things to expose the ntohl() family in libstand, <netinet/in.h>, and <sys/param.h>. o Prepend underscores to the ntohl() family to help deal with complexities associated with having MD (asm and inline) versions, and having to prevent exposure of these functions in other headers that happen to make use of endian-specific defines. o Create weak aliases to the canonical function name to help deal with third-party software forgetting to include an appropriate header. o Remove some now unneeded pollution from <sys/types.h>. o Add missing <arpa/inet.h> includes in userland. Tested on: alpha, i386 Reviewed by: bde, jake, tmm Notes: svn path=/head/; revision=90868
* ANSIfy and remove some dead code.Dag-Erling Smørgrav2002-02-062-50/+23
| | | | | | | Sponsored by: DARPA, NAI Labs Notes: svn path=/head/; revision=90298
* Apply the following mechanical transformations in preparation forDag-Erling Smørgrav2002-02-063-57/+61
| | | | | | | | | | | | | | | | | | | | ansification and constification: s{\s+__P\((\(.*?\))\)}{$1}g; s{\(\s+}{\(}g; s{\s+\)}{\)}g; s{\s+,}{,}g; s{(\s+)(for|if|switch|while)\(}{$1$2 \(}g; s{return ([^\(].*?);}{return ($1);}g; s{([\w\)])([!=+/\*-]?=)([\w\(+-])}{$1 $2 $3}g; s{\s+$}{\n};g Also add $FreeBSD$ where needed. MFC after: 1 week Notes: svn path=/head/; revision=90297
* yp(4) -> yp(8).Ruslan Ermilov2002-01-141-1/+1
| | | | | | | PR: docs/30797 Notes: svn path=/head/; revision=89362
* Perform a major cleanup of the usr.sbin Makefiles.David E. O'Brien2001-07-201-2/+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
* Increment `i' in case of -S so that its argument isn't treated asDima Dorfman2001-07-191-1/+1
| | | | | | | | | | | another, unknown option. Submitted by: Naoki Kobayashi <shibata@geo.titech.ac.jp> and Harti Brandt <brandt@fokus.gmd.de>, respectively. Pointy hat to: dd Notes: svn path=/head/; revision=79953
* Remove whitespace at EOL.Dima Dorfman2001-07-151-1/+1
| | | | Notes: svn path=/head/; revision=79755
* Whine if we discover an unknown option. This program doesn't useDima Dorfman2001-07-131-0/+2
| | | | | | | | | getopt(3) (and can't be converted without breaking compatibility), and it's very irritating to have it silently DTWT if one combines options together (e.g., "-msS domain,server"). Notes: svn path=/head/; revision=79665
* Nuke unused variables.Dima Dorfman2001-06-241-1/+0
| | | | Notes: svn path=/head/; revision=78737
* Don't dereference a pointer after freeing that pointer.Ben Smithurst2001-06-231-2/+3
| | | | | | | | | | PR: 27990 Reviewed by: dd, phk Tested by: dd MFC after: 2 weeks Notes: svn path=/head/; revision=78674
* Finally fix __yp_ping(). We can't use the old locally defined clntudp_call()Bill Paul2001-03-271-239/+26
| | | | | | | | | | method anymore since the code inside the RPC library has changed too much. Now that the clnt_dg module has the necessary code internally, we can yank out the local method code and turn on the ASYNC hack with clnt_control(). This will make the -m flag work again. Notes: svn path=/head/; revision=74880
* - Backout botched attempt to introduce MANSECT feature.Ruslan Ermilov2001-03-261-0/+1
| | | | | | | - MAN[1-9] -> MAN. Notes: svn path=/head/; revision=74816
* Set the default manual section for usr.sbin/ to 8.Ruslan Ermilov2001-03-201-1/+0
| | | | Notes: svn path=/head/; revision=74532
* Bring in a hybrid of SunSoft's transport-independent RPC (TI-RPC) andAlfred Perlstein2001-03-192-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Fix typo: compatability -> compatibility.Jeroen Ruigrok van der Werven2001-02-061-1/+1
| | | | | | | Compatability is not an existing english word. Notes: svn path=/head/; revision=72093
* Fix typo: seperate -> separate.Jeroen Ruigrok van der Werven2001-02-061-1/+1
| | | | | | | Seperate does not exist in the english language. Notes: svn path=/head/; revision=72091