Commit Graph

84 Commits

Author SHA1 Message Date
joerg fedff36094 ANSIFy + static + __dead 2011-08-30 20:29:41 +00:00
lukem 46c55ef395 Fix -Wshadow and -Wcast-qual issues 2009-04-18 12:57:10 +00:00
reed 5656e47ecf Be consistent (like the other rpc* manual pages) and have the
Document Title match the filename.
Now this is correct alphabetically for the man0 generation.
2008-11-08 02:08:39 +00:00
martin ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
tls 4147a3c54a Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry.  RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros.  Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default.  Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.
2007-05-28 12:06:17 +00:00
dsl e2f49bd9e2 Add (unsigned char) cast to ctype functions 2004-10-30 15:15:37 +00:00
jrf 190b2e4c51 Replaced strncpy with strlcpy. Thanks to Peter Postma who
pointed them our in PR #25762. Approved by christos@NetBSD.org.
2004-09-07 13:20:39 +00:00
jmmv b635f565e7 Homogenize usage messages: make the 'usage' word all lowercase, as this seems
to be the most common practice in our tree.
2004-01-05 23:23:32 +00:00
wiz c594b29834 bootparams, not bootparms. 2003-12-25 19:01:35 +00:00
tsutsui 3422a6eafe Fix Typo. 2003-08-20 13:07:41 +00:00
itojun e195d590d8 make it possible to obtain default router address from any interface (-i).
-r might be sufficient.
http://pc.2ch.net/test/read.cgi/unix/1050823044/377
2003-06-26 05:38:45 +00:00
grant 806593a806 The correct capitalisation of 'NetBSD.org' is (you
guessed it) 'NetBSD.org'.

some mdoc fixes.
2003-02-14 16:11:34 +00:00
thorpej 7ee41d4310 Need to -I${RPC_XDIR} now, since we don't generate the .h file
locally anymore.
2003-01-06 02:26:53 +00:00
sommerfeld 8f6f405641 Use <bsd.rpc.mk> 2003-01-05 19:24:06 +00:00
christos d0deebbba7 Add a simple test to see if the whoami functionality works. 2002-09-11 18:19:42 +00:00
thorpej 9c33b55e7c Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.

	* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
	  of the infratsructure (libraries, support programs, etc.)

	* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
	  building of support for using the corresponding API
	  in various libraries/programs that can use it.

As discussed on tech-toolchain.
2002-03-22 18:10:19 +00:00
lukem a4af05a5cc provide "gateway" example "file" 2002-02-28 01:19:48 +00:00
ross 2a76afae02 Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
tv eef7548a36 Move CLEANFILES up so it is actually used. Noted by Bernd Ernesti. 2002-02-02 17:11:38 +00:00
wiz fa58e5cf9d Sort sections, use standard headers, drop a .Pp. 2002-02-02 01:42:22 +00:00
tv 2b7bf32264 Make sure DESTDIR is set before using it in a dependency. 2002-01-31 15:16:21 +00:00
jhawk 4ac5e36af2 Improve error messages; instead of "getfile failed", now:
getfile can't resolve client %s
  getfile can't resolve server %s for %s
  getfile lookup failed for %s
(the second condition had me chasing my tail for a while recently...)
2001-04-11 06:21:49 +00:00
wiz aa3d785edc Add section to a .Xr. 2001-04-03 11:28:44 +00:00
cgd 25bdbb661e convert to use getprogname() 2001-02-19 23:22:40 +00:00
lukem 13220245b2 use explicit name rather than __progname in openlog 2001-01-11 01:43:25 +00:00
cgd 4bf5f7086b ${RPCGEN}, not hard-coded rpcgen 2000-07-25 06:29:44 +00:00
thorpej 29ea834f56 If we don't get direct match on the token, only attempt to canonicalize
the token if it does not contain globbing characters, and just skip onto
the next line if it does.
2000-07-20 06:21:51 +00:00
enami e9aaacc880 If the line wasn't for the client we are looking for, skip it.
While I'm here, I indented the continuation line properly.
2000-07-04 08:18:44 +00:00
thorpej c1b4b34401 Add support for globbing when matching the host name in the
bootparams(5) file, a'la Solaris.  This is extremely useful
for configuring Jumpstart servers.

From Dan Mercer <dmercer@zembu.com>.
2000-06-28 01:30:56 +00:00
tron a3b6375d9a Add comment to prevent further bogus commits. 2000-06-14 11:15:58 +00:00
explorer 7dca1ce955 Ok, back out previous change. It seems wrong that 'rm -rf /usr/include/*' doesn't DTRT... 2000-06-14 06:54:20 +00:00
explorer 4d23eb7241 Use %lu since BOOTPARAMVERS is defined as ((u_long)1) 2000-06-14 06:27:25 +00:00
mycroft 45d698dd33 Make the rpcsvc dependencies work a bit better. 2000-06-12 01:57:25 +00:00
dan 03facbbdb8 back out previous. I tried hard to make sure that i had up to date
rpcgen and headers so that I didn't do something stupid, but somehow
I still did something stupid.
2000-06-08 12:00:46 +00:00
dan 4891c17d26 tidy up a warning - format specifier for a u_long parameter 2000-06-08 11:40:32 +00:00
cjs d0814a7d34 Revert last change; one needs a new rpcgen and has to do a bit of other
magic described in current-users by fvdl.
2000-06-06 02:18:05 +00:00
cjs a5b96ca6ad BOOTPARAMVERS is apparently a long, so use %lu rather than %u to print it. 2000-06-06 01:40:19 +00:00
veego dc3bf4930d Back out the last commit. It seems that your includes are out of date. 2000-06-04 13:49:21 +00:00
perry f47416ac02 BOOTPARAMVERS is an unsigned long now, it seems 2000-06-04 03:49:49 +00:00
fvdl 643a284d5b Fix printf argument mismatch for version number. 2000-06-03 14:25:20 +00:00
itojun 03b1bcc663 net/if.h is necessary for IFF_LOOPBACK.
accept lo[0-9] or lo$ if we check if_name.
2000-04-27 09:48:59 +00:00
itojun 08507c14c9 declare new function for getting my IPv4 address.
get_myaddress() is not usable any more for security reasons.
the change addresses PR8119.
2000-04-14 12:14:40 +00:00
kleink 03126e1c99 Use full month names with .Dd, as per mdoc.samples(7). 1999-09-12 18:47:10 +00:00
christos d3964689a5 add better debugging info 1999-08-23 01:09:42 +00:00
thorpej 653c3855f5 Use pidfile(3). 1999-06-06 02:38:00 +00:00
abs bf094b728a If -s and/or -d set, report invalid host entries in bootparams when parsed.
Currently an invalid entry will cause any subsequent entries to fail
if hostlookups take take several seconds (This can happen with DNS).
Now we can more easily detect this situation.
1999-04-26 02:35:17 +00:00
cgd b22750720f change:
.Sh "SEE ALSO"
to:
	.Sh SEE ALSO
The doc macros check for the latter (actually just for 'SEE' as the first
argument to .Sh) to set the section header SEE ALSO flag, which modifies
some behaviour (e.g. references done with .Rs/.Re).
1999-04-06 04:54:19 +00:00
nathanw 88e775014b Avoid using a long to store an IP address and simplify slightly.
Makes this work on the Alpha.
(What, nobody's netbooted a sun from an alpha before?)
1999-03-24 22:01:38 +00:00
garbled d1407362ba More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages.  Many more to
come.
1999-03-22 18:43:46 +00:00
lukem e8664c7183 revert; we can't break the existing ABI and API 1998-02-12 03:32:51 +00:00