Commit Graph

5022 Commits

Author SHA1 Message Date
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
hubertf
75b2df2eee don't hardcode "tar"'s program name, use TAR_FULLPATHNAME instead 2001-12-30 04:46:21 +00:00
wiz
654780212e client, not clinet. 2001-12-27 13:22:01 +00:00
abs
dd94d9b295 Convert some 'long's to 'uint32_t's. Now rdate works against an LP64 box. 2001-12-26 17:01:39 +00:00
wiz
3cb5c6721b Typo and grammar fix. 2001-12-26 15:13:57 +00:00
mason
8f3eeb9b40 fix typo - meant to get this in last commit, forgot 2001-12-26 15:10:57 +00:00
mason
0e1a977737 fix typo - s/unltimate/ultimate/ 2001-12-26 15:08:46 +00:00
lukem
28073e3899 - use snprintf() instead of sprintf() when printing strerror.
(from openbsd via freebsd)
- use strtoll instead of strtoq()
2001-12-24 00:54:28 +00:00
thorpej
e6d41917cc Newlines in string literals are not supported by ANSI C, and some
preprocessors complain bitterly when they are encountered.

For now, terminate all lines with \n (and make each line its own
string literal).  The author of this code can figure out how to
do the sed trick another way.
2001-12-23 22:41:27 +00:00
atatat
65ace4b729 Properly use $TMPDIR or /tmp for the temporary config file stuff,
instead of ".".  Read-only source trees are "good".
2001-12-21 19:09:43 +00:00
ad
9523ee5f87 First appeared in 1.5.3. 2001-12-18 13:28:42 +00:00
wiz
c7acbbe729 Nuke syssrc/usr.sbin/dbsym, since it has been replaced by
gnusrc/gnu/usr.sbin/dbsym.
Ok'd by thorpej.
2001-12-17 22:33:11 +00:00
wiz
30bd97e016 Don't descend into dbsym anymore.
Only sun3[x] was building it anyway, and now it's converted to
USE_NEW_TOOLCHAIN, where all ports (will) have it. The other reason to
descend is the man page, but what use is a man page if the program
doesn't get installed? [gnu/usr.sbin/dbsym has its own copy of the
man page.]
Ok'd by thorpej.
2001-12-17 21:22:51 +00:00
atatat
eb0a09d704 Teach config how to store the config in a .h file such that it can be
embedded in the resulting kernel binary.
2001-12-17 15:39:43 +00:00
jhawk
521fae39bb .Nm punct => .Nm "" punct
minor markup fixes.
2001-12-15 21:21:00 +00:00
thorpej
e54cc793b1 Only build dbsym if not USE_NEW_TOOLCHAIN. 2001-12-15 03:23:11 +00:00
thorpej
ddeb0819ad <dev/irdaio.h> -> <dev/ir/irdaio.h> 2001-12-14 20:10:19 +00:00
wiz
2f3bcd9810 Comment out now-empty .Rs/.Re. 2001-12-14 12:32:50 +00:00
lukem
0ab8000335 as this installs in /sbin, set LDSTATIC?=-static. fixes PR [bin/14886] 2001-12-14 00:52:34 +00:00
gmcgarry
367be6a153 Sprinkle around the term "machine description file", since this is
the term used in config(9), autoconf(9) and in Torek's paper.

Also remove (comment out) reference to the 4.4BSD config docs,
since they are not installed in usr/share/doc/smm/02.config and
possibly aren't relevant any longer.  From comments made on
tech-kern by jhawk and tls.
2001-12-13 19:47:19 +00:00
fredette
e4e309c64c Define both NLIST_ELF32 and NLIST_AOUT on m68000. 2001-12-12 22:19:18 +00:00
fredette
bba72d2b40 Add optional "-f disktab" argument, that will look up a disk
typename in the given disktab(5) file, instead of in /etc/disktab.
2001-12-12 16:55:10 +00:00
lukem
b0b0a32ad7 Set NOxxx= before <bsd.own.mk> is pulled in (even indirectly).
Otherwise the appropriate MKxxx=no won't be defined .
2001-12-12 12:24:19 +00:00
tv
8e6f7afb5b MKfoo=no -> NOfoo 2001-12-12 01:48:43 +00:00
martin
b7af7aeccd Move /usr/sbin/pppoectl to /sbin/pppoectl, so we can call it from
ifconfig.pppoe* files.

Rename the source directory and files to match the primary purpose
of this utility - probably noone is using this for ISDN now anymore,
as isdnd has simpler ways to acomplish the same.
2001-12-10 17:22:09 +00:00
wiz
61cbc31fe7 Sort options, fix a typo, and some minor clean-up. 2001-12-10 15:04:51 +00:00
martin
136813d385 Call up-scripts for interface already up on startup to account for the
late start of this daemon on system boot.
Add and document an option to prevent this.
2001-12-10 14:54:09 +00:00
jmc
c1c3d851ce Don't set $ROFF as the default from bsd.doc.mk is the same thing. This way
bsd.own.mk can override for cross builds correctly
2001-12-09 23:40:24 +00:00
atatat
6dce2e2bec Make the kernel depend on vers.o' instead of newvers'. This
eliminates the need to unconditionally rebuild vers.o and subsequently
to relink the kernel every time you type make, even if you just
finished one.
2001-12-09 16:04:03 +00:00
soren
7bee75fe59 Fix pasto. 2001-12-09 07:52:20 +00:00
ross
0e9118e359 put mdsetimage back in for old toolchain platforms 2001-12-09 00:49:09 +00:00
jmc
0ce9aa8e6c Add pwd_mkdb as a toolchain bit for builds 2001-12-07 02:28:53 +00:00
wiz
6a71504b07 Add a ',' between two Xrefs. 2001-12-06 10:57:20 +00:00
atatat
42e4429bad Since defopt has been totally eradicated from the tree and is
considered "bad form", let's tell people they shouldn't use it.
2001-12-05 23:42:37 +00:00
jhawk
22fc75e3b6 Xr config.9 2001-12-05 20:58:04 +00:00
augustss
f11415a9a0 Add EXAMPLES section. 2001-12-05 20:12:37 +00:00
augustss
f0e6efec63 Remove extra / in path name. 2001-12-05 16:11:37 +00:00
wiz
700a908aad Sort options. Use .Pp instead of empty line. Improve English in DIAGNOSTICS. 2001-12-05 11:18:08 +00:00
lukem
ebbf3dddb5 rework fsnode' into two components; fsnode' contains the name and tree
information and a link to the appropriate fsinode, and `fsinode' contains
the inode information and a reference count. multiple fsnodes may point
to the same fsinode.  this replaces the 'dup' pointer in the previous code.
2001-12-05 11:08:53 +00:00
augustss
6c60cf7faa Another xref. 2001-12-05 02:11:23 +00:00