Commit Graph

5061 Commits

Author SHA1 Message Date
wiz 7ec6567148 Sort sections, use standard headers. 2002-02-02 01:35:30 +00:00
wiz d30b208c5a Drop an unnecessary empty line. 2002-02-02 01:33:55 +00:00
wiz df220a8153 Paragraph markup improvements, use Xr in one place. 2002-02-02 01:32:25 +00:00
wiz ddb67af4bb Drop superfluous .Pp. 2002-02-02 01:31:50 +00:00
wiz b85170c751 Improve markup, sort section, sort SEE ALSO. 2002-02-02 01:31:16 +00:00
wiz 923aa5f99b Drop an empty line. 2002-02-02 01:30:39 +00:00
wiz e24be883e9 Sort sections. 2002-02-02 01:27:52 +00:00
wiz 3bd1b31f25 Use Xr for xrefs and use standard headers. 2002-02-02 01:27:22 +00:00
wiz cfc1b4eee7 Sort sections, use standard headers. 2002-02-02 01:26:51 +00:00
wiz 7bdc66a6c8 Sort section, punctuation nit. 2002-02-02 01:26:18 +00:00
wiz b083512733 Sort sections, mark up xrefs with .Xr. 2002-02-02 01:25:25 +00:00
wiz 1f9a8d013a Sort sections, use standard headers. 2002-02-02 01:23:39 +00:00
wiz 6aaa7bfd72 Sort section, punctuation nits. 2002-02-02 01:22:18 +00:00
wiz ca3452180b Punctuation nits. 2002-02-02 01:21:44 +00:00
wiz 73d8bdb949 Drop a superfluous .Pp. 2002-02-02 01:21:00 +00:00
wiz 9e32083ba9 Sort sections, sort SEE ALSO. 2002-02-02 01:19:48 +00:00
tv 9fbd88883c Roll in fixes to permit cross-compiling from non-NetBSD hosts. This
round has been tested on Solaris/x86 and Linux hosts.

* Add host tools cap_mkdb, ctags, m4, uudecode.
* Protect __RCSID() and __COPYRIGHT() better.
* Reduce the number of places that need to include "config.h", to keep
  sources closer to their "vanilla" versions.
* Add more compat #defines and autoconf-checked functions.
2002-01-31 22:43:33 +00:00
tv 76834aef57 Protect __RCSID and __COPYRIGHT from being invoked if not defined. 2002-01-31 19:36:47 +00:00
tv 6f9b615f48 Make sure DESTDIR is defined before attempting to use it in a dependency. 2002-01-31 15:21:09 +00:00
tv 2b7bf32264 Make sure DESTDIR is set before using it in a dependency. 2002-01-31 15:16:21 +00:00
tv a328e34106 Make almost all tools compile and run properly on non-NetBSD hosts. (In
particular, most tools now run correctly on Solaris 7.)
2002-01-29 10:20:28 +00:00
lukem 6dba6d95f7 add <util.h> back in for native builds. 2002-01-29 00:31:37 +00:00
lukem 4e4ee42772 don't bother initialising pwfile[] to _PATH_MASTERPASSWD and grfile[]
to _PATH_GROUP, because the simple_get{pw,gr}*() functions should not
be called by anything before those path arrays are setup by setup_getid().
2002-01-29 00:29:32 +00:00
tv fcae5f73b7 Add hooks to make mtree compilable from src/tools. 2002-01-29 00:07:27 +00:00
ichiro 3ee53752e9 It is missing fflush() when scanning the network and no avaible AP. 2002-01-28 22:07:30 +00:00
simonb f69ac131ba Drop the setgid'ness now that ../../usr.bin/vmstat/dkstats.c uses
sysctls now.
2002-01-28 02:16:56 +00:00
martin 977cd3d18e Fix leftover from ioctl generalization, causing crashes by checking
the first character of a NULL pointer to detect zero length strings.

Do not set PPP authentication multiple times while parsing the config
file, just do it once later.
2002-01-26 19:31:20 +00:00
lukem 72b9ef303f be a little bit more verbose 2002-01-26 13:27:53 +00:00
lukem aa99e59f3d - crank default cpg from 16 to 65536, and let the auto-sizing code in
mkfs() do its job
- pass cpgflg=1 to mkfs() if the user provided cpg, =0 otherwise
- improve error reporting in ffs_write_file()
- only add superblock & block map slop for one cylinder group.
  trying to calculate the number of required cylinder groups caused
  too many problems when tweaking parameters for small file systems.
  rely upon slop from minfree, and upon ffs_write_file() to complain
  if the user is too aggressive about tweaking the parameters
2002-01-26 13:22:16 +00:00
martti 53a8f3ca45 Added few ipf examples 2002-01-26 09:30:53 +00:00
wennmach fbd3eb4819 sync usage() message with realty 2002-01-25 20:30:41 +00:00
christos d08bc504d8 If WI_RID_SCAN_APS is not defined, then don't support it. 2002-01-25 17:17:21 +00:00
martti bdbbd6ee47 Fixed link between ipf.5 and ipf6.conf.5 2002-01-24 14:48:37 +00:00
martti c2d00e7ce1 Added missing libraries, filenames and man pages 2002-01-24 08:24:38 +00:00
lukem 002b1b8ff4 -N dbdir allows reading user & group info from a different source 2002-01-24 03:21:34 +00:00
lukem 5781235dfe Add '-N dbdir', to specify that user & group lookups (via pwcache(3)) are to
be done from dbdir/master.passwd and dbdir/group, using simple text file
parsing routines from ../mtree/getid.c
2002-01-24 03:21:07 +00:00
lukem 9ca22e1409 Add '-N dbdir', to specify that user & group lookups (via pwcache(3)) are to
be done from dbdir/master.passwd and dbdir/group, using simple text file
parsing routines.
2002-01-24 03:20:11 +00:00
lukem 25cdf6cf5b add "-i input-device", to specify another device to monitor for activity 2002-01-24 01:34:13 +00:00
thorpej ebc45776d2 vslprintf: Slight hack (?) to make "%r" work with the stdarg
implementation on x86-64.
2002-01-23 18:23:02 +00:00
lukem 3296e70335 revert part of previous; don't monitor framebuffers for input because
they get mtime updates on output.

XXX: need to find out how to monitor a wscons input device other than
ttyE0 that gets updated when keys are pressed on the console keyboard...
2002-01-23 17:30:17 +00:00
lukem cd95ffb688 - check framebuffers for input, because /dev/ttyE0 (wscons framebuffer)
gets modified, not /dev/console or /dev/wskbd
- use /dev/wskbd instead of /dev/wskbd0
- use /dev/wsmouse instead of /dev/wsmouse0
2002-01-23 16:57:51 +00:00
lukem 5647b7df77 Merge create_fsinode() into create_fsnode(), so that a newly created
fsnode always has a valid inode member.   Problem noted by Artem Belevich.
2002-01-23 02:26:21 +00:00
lukem e30101d9d6 more stuff 2002-01-23 02:14:19 +00:00
is ef3617499c add config.h when compiled as host tool. 2002-01-22 13:03:57 +00:00
ichiro 66a56d4efe If the interface isn't up, up and scan.
then, down it when scanning is done.

point out from lha@stacken.kth.se, kern/15328
2002-01-22 02:09:11 +00:00
enami d1998d430a Use .Fl instead of hardcoding -. 2002-01-22 01:35:39 +00:00
wiz b36c0a5406 deamon -> daemon 2002-01-21 14:42:26 +00:00
ichiro 780b3934d4 display Beacon Interval of STA 2002-01-21 12:59:50 +00:00
ichiro 1635f76bf6 forces if_wi to initiate one round of access point scan.
This code was written by jrb@cs.pdx.edu, modified and bug-fixed by ichiro@netbsd.org
2002-01-21 11:35:06 +00:00
wiz c43de8bde2 Include err.h for err(3) prototype. 2002-01-19 17:07:51 +00:00
wiz a2d753e3ef Whitespace nits. 2002-01-19 11:44:57 +00:00
mjl 7ea8665c72 Catch open failure and exit with error instead of crashing. 2002-01-19 06:10:13 +00:00
wiz 483f92284e Whitespace nits. 2002-01-19 03:39:46 +00:00
wiz 59652c8572 Punctuation nits. 2002-01-19 03:38:36 +00:00
wiz 1b9e345181 Whitespace nits, sort SEE ALSO. 2002-01-19 03:37:38 +00:00
wiz f79ee8e50f Sort sections, mark up AUTHORS section. 2002-01-19 03:36:44 +00:00
wiz 30a3135df2 Sort SEE ALSO and sections, use .An in AUTHORS section. 2002-01-19 03:36:20 +00:00
wiz 7e266c9a07 Improve markup. 2002-01-19 03:35:21 +00:00
wiz 4e823ac145 Whitespace nits. 2002-01-19 03:35:05 +00:00
wiz 8f48ce1461 Sort sections, sort SEE ALSO, whitespace nit. 2002-01-19 03:27:06 +00:00
wiz aaba2b6d8a Whitespace nits. 2002-01-19 03:26:30 +00:00
wiz 3ecf4fd4b7 Whitespace nits, sort SEE ALSO and sections. 2002-01-19 03:26:04 +00:00
wiz f01b2c896b Drop an unnecessary .Pp, sort sections, add postfix .Xr, and improve markup. 2002-01-19 03:25:12 +00:00
wiz 5d2bc3031d empty line -> .Pp; sort sections. 2002-01-19 03:24:14 +00:00
wiz 00dce9aae8 Sort sections, whitespace nit. 2002-01-19 03:23:47 +00:00
wiz 6051a9a396 Sort sections. 2002-01-19 03:23:11 +00:00
wiz 34828cce4a Convert .Xr to non-existing program to Ic. 2002-01-19 03:22:53 +00:00
wiz d8081e42ef Sort SEE ALSO and sections. 2002-01-19 03:22:19 +00:00
wiz 51d0450786 Whitespace and punctuation nits, use standard headers. 2002-01-19 03:21:59 +00:00
wiz 81bf50c114 Whitespace nits. 2002-01-19 03:21:15 +00:00
wiz 01497fccea Whitespace nits, use standard headers. 2002-01-19 03:20:56 +00:00
wiz 3aebd5a62c Improve markup, sort sections. 2002-01-19 03:20:33 +00:00
wiz 6955458037 Whitespace nits. 2002-01-19 03:20:06 +00:00
wiz 6e1dd286e7 Drop unhelpful BUGS section and a trailing empty line. 2002-01-19 03:19:42 +00:00
wiz 5a14269d52 Sort sections. 2002-01-19 03:19:21 +00:00
wiz f931748857 Drop unhelpful BUGS section. 2002-01-19 03:18:52 +00:00
wiz ecff1ade60 Drop some unnecessary empty lines, improve markup in some places. 2002-01-19 03:18:35 +00:00
wiz b86bccf480 Drop some unnecessary empty lines. 2002-01-19 03:17:42 +00:00
wiz ea5e7da234 Drop a trailing empty line. 2002-01-19 03:17:08 +00:00
wiz 45c833365a Drop some unnecessary .Pp and an unnecessary section, and replace an empty
line with .Pp.
2002-01-19 03:16:41 +00:00
wiz 9afed566e5 Sort sections. 2002-01-19 03:15:44 +00:00
wiz 6b626e5f08 Use standard headers, sort sections, mark up AUTHORS section a bit more. 2002-01-19 03:15:05 +00:00
wiz 546138910d Drop some unnecessary .Pp, sort sections and SEE ALSO. 2002-01-19 03:14:33 +00:00
wiz cf8a1479f6 Whitespace and punctuation nits, improve some markup. 2002-01-19 03:14:10 +00:00
wiz c982600639 Drop .Pp before subsection, whitespace nit and sort sections. 2002-01-19 03:12:56 +00:00
wiz 8beb130316 Whitespace and punctuation nits, sort SEE ALSO. 2002-01-19 03:12:18 +00:00
wiz 76cb93f4d7 Drop a trailing empty line. 2002-01-19 03:11:44 +00:00
wiz 51d5c7d6bd Whitespace nit, sort sections. 2002-01-19 03:11:34 +00:00
wiz 5ba5a79d16 Sort SEE ALSO. 2002-01-19 03:10:41 +00:00
wiz 6b314d973d Whitespace nits. 2002-01-19 03:10:26 +00:00
wiz 98832f4861 Whitespace nit, sort sections. 2002-01-19 03:10:06 +00:00
wiz 5db87f557b Whitespace nits. 2002-01-19 03:09:21 +00:00
wiz 578af6b124 Fix xref. 2002-01-19 03:09:06 +00:00
wiz 3abdd84a78 Whitespace nits, and standardize an xref. 2002-01-19 03:08:50 +00:00
wiz b0729ea665 Whitespace and punctuation nits. 2002-01-19 03:08:12 +00:00
wiz 7986ed946b Whitespace nits. 2002-01-19 03:07:54 +00:00
wiz 1a73e0f493 Whitespace and punctuation nits. 2002-01-19 03:07:33 +00:00
wiz 320ebd413b Whitespace nits. 2002-01-19 03:06:54 +00:00
wiz 99fc854a8f Whitespace nit, sort sections. 2002-01-19 03:06:26 +00:00
wiz 302fd23037 Whitespace nits. 2002-01-19 03:05:58 +00:00
wiz 776f7c2e1e Sort SEE ALSO, fix an xref. 2002-01-19 03:05:35 +00:00
wiz 611cc11bd4 Sort SEE ALSO. 2002-01-19 03:05:00 +00:00
wiz 04a507da91 Whitespace nits. 2002-01-19 03:04:34 +00:00
wiz a2b8af2136 Sort SEE ALSO. 2002-01-19 03:04:20 +00:00
wiz bc145df2ee Use .Nx, replace empty line with .Pp. 2002-01-19 02:01:35 +00:00
lukem f3c2d5334e logpath_add(): store pointer to strdup(3)ed copy of path provided.
fixes -P /some/file.
2002-01-18 10:27:50 +00:00
lukem f482103022 use -1 instead of 0 as the value to indicate if a numeric parameter
hasn't been set and thus needs a default override.
allows minfree and rotdelay to take a value of 0.
2002-01-18 08:39:23 +00:00
lukem be917c6b28 apply changes from revs 1.56-1.59 of newfs/mkfs.c:
* revision 1.56
	the change of calculation of inodes per group in rev 1.52 was far too
	aggressive; rework to be a bit less susceptable to round-off error.
	now it's likely that the density might not be obtained with a small
	filesystem with a large number of inodes (e.g -s 4M -i 1k), but that's
	an extremely unlikely corner case that can easily be rectified with
	command-line arguments.
	fixed provided in private email by Takao Shinohara <shin@sm.sony.co.jp>
	should resolve PRs [bin/14049] and [bin/14046]
    [ this fixes a problem in makefs(8) that matt green reported ]

* revision 1.58
	clamp bsize to MAXBSIZE

* revision 1.59
	don't bother printing a warning about the cylinder group size being
	restricted if -c isn't given; it just confuses a user of newfs (and
	the cpg info is printed as part of the display anyway), and prints an
	unnecessary warning for mount_mfs.

XXX: I must rework newfs/mkfs.c to make it easier to just .PATH into makefs(8)
2002-01-18 08:32:34 +00:00
lukem d860e86b14 don't need ffs/buf.h here 2002-01-18 08:20:32 +00:00
wiz d2eb889fd9 Whitespace nits; use standard headers. 2002-01-16 12:01:12 +00:00
onoe 34bf2039e8 Fixed the range of max data length (dot11FragmentationThreshold)
for -d option: 350..2304 -> 256..2346 (default is 2304)
Fixed the range of RTS/CTS threshold (dot11RTSThreshold)
for -r option: 0..2047 -> 0..2347 (default is 2347)
2002-01-16 06:54:17 +00:00
wiz a0bbd28ed1 Drop trailing dot in .Nd, sort SEE ALSO, use standard headers, format AUTHORS
section.
2002-01-15 14:19:27 +00:00
lukem 92a4d3d477 pwd_mkdb doesn't need a private version of getpwent.o any more. 2002-01-15 11:41:43 +00:00
wiz 633ece12e5 Update re getopt()ing of sunlabel. 2002-01-15 01:58:45 +00:00
wiz 0690e2497a Add sunlabel(8). 2002-01-15 00:57:27 +00:00
manu e1ef443282 Enable clockctl 2002-01-13 15:49:11 +00:00
yamt 59998d6154 check if timeout already expired before select.
from OpenBSD/FreeBSD.
2002-01-12 02:42:58 +00:00
itojun dad921a24e daemon(3) has to be called prior to file descriptor initialization. 2002-01-11 05:33:22 +00:00
itojun 5f38ec918c daemon(3) has to be called prior to file descriptor setups. 2002-01-11 04:35:52 +00:00
itojun 4a1ad619af daemon(3) has to be called before opening file descriptors.
noticed by markus@openbsd, sync with kame
2002-01-11 04:20:55 +00:00
christos 03dae382df - KNF... Add NetBSD copyright, pass lint, getopt, modernize, blah. 2002-01-10 21:43:10 +00:00
martin 7b6f872d11 Add, #ifdef SPPP_IF_SUPPORT, special case treatment for sys/net/if_spppsubr.c
based interfaces. Note: all other interface types work the same as before,
and no names are hardcoded.

When a if_spppsubr.c based interface is marked IFF_UP, but has not yet
reached phase NETWORK (i.e. it didn't connect yet or authentication has not
yet completed) do not call the ip-up script for it on the initial pass
over all IFF_UP interfaces.

This fixes a race condition on startup when ip-up/ip-down are statefull
and need to be called pairwise (for example if ip-up adds and ip-down
removes a default route).
2002-01-10 20:21:50 +00:00
martin 0f93714245 Pass the remote address (or broadcast addres) to the up/down scripts as
well. This is very usefull for setting up the right routes ;-)

Thanks to Bjoern Labitzke for pointing out this missing feature.
2002-01-10 19:38:51 +00:00
mrg 4ef0e6e1a3 - add a -h option
- kill warnings
- use getmaxpartitions()

XXX: consider renaming options to more standard names and use getopt(3).
2002-01-10 16:26:01 +00:00
mrg 3b989ef166 makefile for sunlabel. 2002-01-10 16:24:41 +00:00
mrg 2c57f36327 der Mouse's sunlabel.doc 2002-01-10 16:15:37 +00:00
agc cfa115fedf Explain a bit more fully the collating sequence which pkg_info(1) uses when
comparing package versions strings.
2002-01-10 10:46:28 +00:00
lukem bf7e120361 setprogname(argv[0]) 2002-01-10 05:31:07 +00:00
agc b85b4de6a6 Bump version number to reflect the pkg_info version number recognition
changes.
2002-01-09 18:50:17 +00:00
agc 2afa28bf02 Pull in a much simplified version of the vtest functionality. This new
functionality adds recognition of '_' and "pl" as pseudonyms for '.',
so that 1.2p2 == 1.2.2, and adds recognition of "pl" and "rc" strings,
which stand for "patchlevel" and "release candidate" respectively.

In addition, this version should handle alphabetic characters properly
(so that 1.2e == 1.2.5)

Normal NetBSD revision number processing has been retained (and is always
compared after all other tests have been performed).

64-bit integers are used internally for each component of the version
number.
2002-01-09 16:17:08 +00:00
mrg 6659b0b88f der Mouse's sunlabel 2002-01-09 12:59:29 +00:00
lukem 3d76579746 need ufs/ufs/dinode.h for ufs/ffs/fs.h 2002-01-08 06:00:14 +00:00
lukem ee3c027c25 need ufs/ufs/dinode.h for ufs/ffs/fs.h 2002-01-08 05:32:45 +00:00
lukem 944794a509 add "ffs/ufs_inode.h" with a minimal struct inode, to replace
<ufs/ufs/inode.h>, since the latter has a lot of cruft we don't need
and it #include's way more stuff in <sys/*> (etc) than is needed here.
yet another nail in the "let's make makefs a proper host tool" coffin.
2002-01-07 16:56:26 +00:00
lukem 557afc6071 - pull in <ufs/ufs/dinode.h> before <ufs/ffs/fs.h>
- #include <ufs/[uf]fs/*.h> instead of "ufs/[uf]fs/*.h", and don't bother
  with -I../../sys; we'll solve the hostprog problem another way and
  unconditionally pulling in NetBSD-current's usr/src/sys on a host system
  could be a Bad Thing.
2002-01-07 16:27:22 +00:00
lukem d74b2fc0ea fix bugs reported by matt green:
- when calculating file size, round up to frag size not block size
- #define FFS_EI in makefs.h, and include that before [uf]fs/*.h

other stuff:
- round up final size to next block (instead of next sector)
- protect makefs.h from multiple inclusion
2002-01-07 05:07:50 +00:00
mrg b78ea217a6 build this as a host prog. 2002-01-05 07:37:45 +00:00
mrg 2218533d73 build this as a host tool. 2002-01-05 07:00:56 +00:00
martin 4ec800ca5a Adapt to new if_sppp.h ioctls.
Remove limits on names and password length.
2002-01-04 12:24:33 +00:00
ad 6face02d69 Also dump the LCT header, not just the entries. 2002-01-04 10:17:20 +00:00
thorpej b1b955b60f Simply rid ourselves of the evil cpp tricks being done here. The
fact that one version couldn't be made to work on two different versions
of the cpp says something about how portable the code was.
2002-01-01 06:31:49 +00:00
thorpej 6b3e0a100a Remove -I${DESTDIR}/usr/include and -I${DESTDIR}/usr/include/openssl
from CPPFLAGS.
2001-12-31 20:04:47 +00:00
thorpej bf0e32f7fc Remove unneeded/unused TREE_ISEMPTY() (which also happens to clash
with the TREE_ISEMPTY() in menutree.h, which gcc 3.1 correctly warns
about).
2001-12-31 20:00:40 +00:00
thorpej c31bd4704c Fix gcc 3.1 printf format warnings generated by extra arguments being
passed to varargs CPP macros.
2001-12-31 19:52:45 +00:00
thorpej dbaa175ee7 Add comment delimiters around the token after an #endif 2001-12-31 19:46:57 +00:00
thorpej 1b1d20a895 Need <strings.h> for ffs() prototype (noticed by gcc 3.1). 2001-12-31 19:45:03 +00:00
thorpej aa38e62655 Need <stdlib.h> for abort() prototype (noticed by gcc 3.1). 2001-12-31 19:44:27 +00:00
thorpej 82f66ec4a0 Add -I${.CUDRIR} to CPPFLAGS. 2001-12-31 19:41:37 +00:00
thorpej 429c29847e Statements must follow labels. 2001-12-31 19:33:58 +00:00
thorpej d5b972580e Need <string.h> for strcmp() prototype (noticed by gcc 3.1). 2001-12-31 19:31:23 +00:00