Commit Graph

9029 Commits

Author SHA1 Message Date
pooka
de3f0274f6 Don't set PUFFS_FLAG_OPDUMP by default. 2008-11-14 13:45:25 +00:00
pooka
b2fa04c6b2 Now that MKPUFFS is default, kill it as advertised.
While there, give puffs and refuse files sensible syspkg entries.
2008-11-12 13:17:27 +00:00
reed
862cfefb55 Output (when verbose) when storing checksum files.
This may be a little noisy.
As discussed on current-users in March 2008.
2008-11-08 02:11:54 +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
christos
61a52fac84 PR/39874: Geoff C. Wing: For compatibility trim hostname domains in bsd
output format when matching host lines.
2008-11-07 15:42:01 +00:00
minskim
a325bf28ac Remove trailing whitespace. 2008-11-07 07:36:38 +00:00
dbj
66394bcdd9 ensure mtree_err gets a format string 2008-11-04 23:22:48 +00:00
wiz
1f13db8251 Sort sections, use more markup, sort options, spelling fixes, improve
formatting.
2008-11-04 19:43:04 +00:00
christos
00f6effc9c use localtime_r 2008-11-04 18:52:25 +00:00
reinoud
82af0a3f3e Fix manpage; it showed option -i where it had to be -I 2008-11-04 13:54:10 +00:00
blymn
d08a89fb84 Call tzset() to init TZ information for localtime(). 2008-11-04 10:01:56 +00:00
christos
9d5a7031b8 make sure that we memset the struct tm we pass to mktime and set isdst to -1
so that it will figure out if daylight savings is to be applied or not. From
Anon Ymous
2008-11-03 22:59:51 +00:00
christos
88283dd7fa no point in using int_fast16_t here. 2008-11-03 15:08:16 +00:00
christos
79e7aba61d PR/39857: Bernd Ernesti: Fix broken output caused by a wrong offset. From
Martin Schuette.
2008-11-03 02:44:01 +00:00
christos
1c6aec2060 Import syslogd SoC project by Martin Schuette:
- new syslog protocol api syslogp(3) that supports structured data
	  and draft-rfc timestamps
	- reliable tcp connections with queueing
	- encrypted connections
2008-10-31 16:12:18 +00:00
ahoka
40ccd11cb5 Import changes from the MirBSD Project:
Initialise memory before writing to only part of it,
making sure that the string is NUL-terminated

Allocate the maximum allowed length (including the
terminating NUL byte) for the temporary name string, make sure
the final output is NUL terminated, and copy back the NUL when
overwriting the previously created name (since maxlen is always
at least 1 less than ISO_FILENAME_MAXLENGTH_WITH_PADDING, this
is no problem)

Patches from Thorsten Glaser through freenode.net.
2008-10-30 18:43:13 +00:00
jkunz
fb8ec4c35a Ported alipm(4) and admtemp(4) from OpenBSD. 2008-10-29 17:26:56 +00:00
snj
ffabc8967d s/explicitely/explicitly/ 2008-10-29 17:09:47 +00:00
christos
ec0b686d24 moved to external long time ago. 2008-10-28 14:09:34 +00:00
apb
a02cace51f Use ${TOOL_SED} instead of plain "sed" in "!=" assignments.
This may need more work to prevent warning messages during
"make cleandir" when the commands in "!=" assignments are executed
even though tools may not have been built.
2008-10-25 22:35:36 +00:00
apb
f46c1de7cb Use ${TOOL_SED} instead if plain sed in Makefiles. 2008-10-25 22:27:34 +00:00
christos
bd4f4705da remove genmask completely and correctly. 2008-10-25 22:12:20 +00:00
christos
421f72243a don't set RTAX_GENMASK. 2008-10-25 17:48:13 +00:00
apb
e7b9864dba Move quotation marks to the correct place in eval statements
that were broken by the previous change.
2008-10-22 15:20:05 +00:00
mishka
0678a17226 Perform line feed after printing usage line. 2008-10-22 07:59:43 +00:00
apb
f3f295c281 Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.
2008-10-19 22:05:23 +00:00
snj
cf5b9ad4fa Xref netconfig(5). Requested by Martin S. Weber in PR bin/39605. 2008-10-19 21:18:22 +00:00
christos
bdb5cd51ab fix so that we can compile with PIC 2008-10-19 15:22:17 +00:00
scw
d8ed07b38f With the demise of ../wpa_supplicant/crypto_libc.c, enable the
internal AES/SHA1 implementations.
2008-10-18 14:41:49 +00:00
scw
2756a71007 Fix previous. 2008-10-18 14:40:48 +00:00
scw
156b133dd5 Ditch crypto_libc.c in favour of the internal AES/MD5/SHA1 implementations
in the WPA distribution when building without native crypto.

For hostapd in particular, using crypto_libc.c unconditionally meant that
up until now the program has been pretty much unusable for anything which
requires cryptographic key exchanges. E.g. WPA/WPA2.

Also add support for a range of authentication protocols (EAP) in hostapd
if we're building with native crypto support.
2008-10-18 12:32:50 +00:00
rmind
d5ea013e1d Disallow user priority adjustments for SCHED_OTHER policy, simplify
convert_pri().  Sync schedctl(8) with the change.  Closes PR/38009.
2008-10-18 03:40:18 +00:00
cube
26626779ff apb's latest change introduced a test to make sure an actual etc.tgz (or an
extraction of it) was provided as -s, but SOURCEMODE was not set to true in
the default case, which is to use /usr/src/etc, a source directory.
2008-10-17 21:31:55 +00:00
christos
3e1e171f06 revert previous; now 'postinstall fix' does not work anymore without having
sets.
2008-10-17 21:20:30 +00:00
christos
3e0c867bca use an existing file otherwise the test always fails. 2008-10-17 21:14:40 +00:00
christos
8b08621cd3 I don't have set.etc!?!? Do you? 2008-10-17 20:52:34 +00:00
pooka
a162d50c30 regen 2008-10-16 10:32:28 +00:00
pooka
44bb67c4bb Be more verbose about the performance hit. 2008-10-16 10:30:17 +00:00
pooka
d72ee403e1 Add & enable rump_nfs. 2008-10-16 09:30:57 +00:00
ad
c1482a51a0 Cosmetic change to previous. 2008-10-15 08:22:06 +00:00
ad
889ba1e151 Don't map cpu index to hardware id. 2008-10-15 08:08:30 +00:00
cegger
9250503c06 do correct octal counting and use CPUID_APM_FLAGS in cpuctl 2008-10-14 15:49:04 +00:00
cegger
68e6aa3a03 print features4: cpuid fn80000001 %ecx on AMD CPUs. 2008-10-13 21:11:46 +00:00
cegger
26997ceaa5 Add cpuid 0x80000001 %ecx features flags. Rename CPUID_MASK4 to CPUID_INTEL_MASK4 for consistency with new CPUID_AMD_MASK4 2008-10-13 19:14:53 +00:00
apb
984db960fe Try to improve warning messages when stage2 bootstrap is not found
in the root of the file systrem in which the installation is being
performed.

Inspired by PR 39728 by der Mouse
2008-10-12 16:03:27 +00:00
apb
d8a2ffd59a Try to improve documentation of the fact that the primary bootstrap is
specified using a file name on the running system, while the secondary
bootstrap is specified using a file name relative to the root of the
file systrem in which the installation is being performed.

Inspired by PR 39728 by der Mouse
2008-10-12 16:02:45 +00:00
pgoyette
5789563301 Update cross-references for addition of dbcool(4) and removal of adt7463c(4)
and adt7467c(4).
2008-10-11 16:00:41 +00:00
christos
9e0fa13510 PR/39719: Edgar Fu: block/inode typo in quotacheck(8) 2008-10-09 14:56:35 +00:00
pooka
f4ce96e86b check rump_init() return value 2008-10-07 23:22:05 +00:00
joerg
3d4926cda4 Finish moving pkg_install to src/external/bsd/pkg_install. 2008-10-07 16:06:12 +00:00
apb
3c2b458230 In both postinstall and etcupdate, in modes where the -s argument
refers to tgz files or to a directory in which tgz files have already
been extracted, make it an error for the files that should have come
from etc.tgz to be missing.  This is intended to prevent users from
accidentally deleting necessary files when they run "postinstall -s
xetc.tgz fix".

Use the absence of .../etc/mtree/set.etc in the extracted directory
as a test for the error case.
2008-10-04 08:07:38 +00:00
joerg
39741d2848 Hook up libfetch and pkg_install update. 2008-10-02 17:54:51 +00:00
wiz
dc9400e90c Drop trailing whitespace; bump date for previous. 2008-10-02 09:11:28 +00:00
sborrill
38f52fbaa5 Add example using installboot -e 2008-10-02 08:51:22 +00:00
christos
26d7c490fb mention the delete bug in the man page. prompted by perry. 2008-10-01 12:43:46 +00:00
christos
ffa1f2c907 Fix symlink lossage:
- Use lstat instead of stat to find the destination path. we can make a symlink
  to a broken symlink this way.
- When calling process to create a link, check if the source is a symlink
  instead of trying to remove what the symlink points to!
- Don't create hard links to directories.

XXX: NB. Still sup is broken when used with the delete option. This is because
in the delete pass, it goes and tries to delete all files in the old list
that don't exist in the new list. This is a problem when a directory becomes
a symlink to a hierarchy that contains the same names. Then sup will cross
the symlink and start deleting files and directories from the destination.
This is not easily fixed. Don't use sup with symlink/rsymlink and the delete
option at the same time or *be careful*!
2008-09-30 20:49:14 +00:00
dholland
b0188b51ef Refine previous: can put the main -> mymain thing in the .x file, which is
both tidier and also doesn't break update builds.
2008-09-30 06:25:22 +00:00
dholland
fe23e175c3 Enable the code that reads /etc/pcnfsd.conf. It was disabled because
rpcgen offers no mechanism to call it from the rpcgen-created main().
So, use the preprocessor to rename that mymain() and provide another
main() that loads the config file first.

PR bin/12758.
2008-09-30 05:20:42 +00:00
reed
12f08b06b6 Fix the Title of manual page so it our official name (rpc.pcnfsd).
Install so first file installed matches this correct manual page
name.

(Both manual pages are still installed. And only rpc.pcnfsd binary is
installed. So no change.)
2008-09-27 04:47:01 +00:00
reed
8e4f10c1d5 ndiscvt is architecture specific.
So install manual page to architecture sub directory.
And add architecture to the manual page document title.
(Note that ndis(4) is already done that way.)

On netbsd-docs, I was told if it is made machine independent
in the future, we can then revert this change.
2008-09-27 04:33:04 +00:00
reed
1c28a8061d Fix less-than-or-equal to just less-than.
I noticed this in the postscript output.

It appears to have been accidently broken during mass conversion
in 2002:
http://mail-index.netbsd.org/source-changes/2002/02/08/0016.html
(Other commits to. I didn't check many others.)
2008-09-27 04:16:15 +00:00
reed
221899b84e Mention that the program is only installed on supported platforms.
(Also add a paragraph break.)

I didn't specifically mention the platforms or what support is needed.
At least someone reading the manpage will have some idea why the tool
is missing from their system.

(Some manual pages mention this in the BUGS section, but I didn't do that.)
2008-09-25 22:44:51 +00:00
reed
ac1e906c96 Remove space from start of line -- it had caused the sentence
to wrap too early.
2008-09-25 13:10:53 +00:00
reed
245b9b7a5a Add missing comma in SEE ALSO list. 2008-09-24 19:28:48 +00:00
reed
0d1a6d8e47 Fix a typo/mispelling.
Spell out minimum and maximum.
2008-09-23 21:50:41 +00:00
rmind
a27aa91b67 Use "processor set" term to avoid confusion with cpuset(3).
Mention pset(3) man page.
2008-09-23 10:09:56 +00:00
junyoung
7af93d757a Fix 'arith: syntax error: " N_SRC_ARGS + 1 "' error which occurs with
the Debian default shell ("dash").

Now cross-build works again on Ubuntu 7.10.
2008-09-21 06:20:07 +00:00
christos
b743dfb7ec unhook amd 2008-09-19 21:42:36 +00:00
mhitch
57fb748258 Use le16toh() instead of le32toh() on a 16 bit value. Fixes display of
inbound frame size on sparc64.
2008-09-17 16:03:28 +00:00
apb
7c483070b7 Fix errors in previous. 2008-09-14 17:25:59 +00:00
apb
2d19284cc9 Document that "ss tgz1:tgz2" was merely deprecated, not removed. 2008-09-14 14:24:15 +00:00
apb
bd0c152346 Remove options deprecated in NetBSD-4.0:
* Remove "-b binarydir" option (use "-s binarydir" instead).
* Remove "-s srcdir/etc" option (use "-s srcdir" instead).

Also document that "-s tgz1:tgz2" is merely deprecated, not removed
(use "-s tgz1 -s tgz2" instead).
2008-09-14 14:22:45 +00:00
apb
50356f5260 Allow "-s tgzfile1:tgzfile2" for backward compatibility. Print a
warning to encourage users to switch to using "-s tgzfile1 -s tgzfile2".
2008-09-14 13:46:51 +00:00
christos
fc978808f9 fix more A0 2008-09-12 14:40:46 +00:00
joerg
cba79e0ec4 Add support for source address hashhing in ALTQs WFQ. This allows to
easily distribute bandwidth for huge number of clients for incoming
traffic.
2008-09-11 17:58:59 +00:00
wiz
67db3ccfa0 Bump date for previous.
XXX: Missing license.
2008-09-10 21:34:28 +00:00
reed
e10acc2a44 Mention that it prints a single network configuration block
to standard output and the passphrase must be 8 to 63 characters
in length.
2008-09-10 20:49:52 +00:00
reed
85ca84de30 Remove extra space.
Spell out "maximum" and "minimum".
2008-09-10 19:41:40 +00:00
apb
8f2f105fda fix missing '$' in previous. 2008-09-07 16:22:12 +00:00
apb
9599e1b7c8 Document the change in meaning of "-s foo:bar". It now means a single
file or directory named "foo:bar".  If you want the old meaning,
use "-s foo -s bar" instead.
2008-09-07 15:24:04 +00:00
apb
d8f98eee1d * Allow colons to appear in the names of tgz files, to address PR 39459.
* Remove the ability to specify a colon-separated list of tgz files
  using a single "-s" option, because ":" is now a valid character within the
  name of a single file.  Callers should use multiple "-s" options
  instead.
2008-09-07 15:22:47 +00:00
apb
fa60b97dcc Document the change in meaning of "-s foo:bar". It now means a single
file or directory nmed "foo:bar".  If you want the old meaning,
use "-s foo -s bar" instead.
2008-09-07 15:21:31 +00:00
apb
41af7abe88 * Allow colons to appear in the names of tgz files, to address PR 39459.
* Allow spaces to appear in the name of the TEMPROOT and SRCDIR directories.
* Remove the ability to specify a colon-separated list of tgz files
  using a single "-s" option, because ":" is now a valid character within the
  name of a single file.  Callers should use multiple "-s" options
  instead.
2008-09-07 15:20:02 +00:00
apb
e08cb252ae Remove "shift" commands that should have been removed when the
option parsing loop was converted to use getopts.  (Hi christos)
2008-09-07 14:31:10 +00:00
apb
a454795e01 Cleanup shell quoting:
* Almost all shell variables are now quoted, except where they
  hold numeric values such as exit status, or where we want
  the shell to split on spaces.

* Constructs like

    _files="$@"
    do_something_with $files

  are changed to

    #_files="$@"
    do_something_with "$@"

* In contexts where we do actually want the args to be concatenated with
  space separators, use "$*", not "$@".

Tested by running "postinstall check" with a SCRATCHDIR whose name
contained spaces.
2008-09-07 12:34:06 +00:00
pooka
f423bfeed2 Due to a recent encounter with a sucky internet connection, add
experimental option -p, which tries to reestablish the connection
to the sftp server in case it is lost.  This currently has a few
limitations (found in the man page), but generally works in some
use cases.

Better support might eventually emerge, but since that requires a
plunge into the depths of puffs_framebuf, I need quite a bit of
Fernet Branca to build up my courage before attempting it.
2008-09-06 12:29:57 +00:00
apb
0d8f46b03d remove debugging code accidentally committed in revision 1.39. 2008-09-05 11:29:42 +00:00
apb
92fa4c85e2 Redo previous in a way that more closely matches the style used
in postinstall(8).
2008-09-05 11:14:24 +00:00
apb
ce2985aecc The shell builtin getopts returns options without the preceding "-",
so adjust a case statement to compensate.
2008-09-05 09:52:38 +00:00
wiz
73d262db0f regen 2008-09-05 09:07:47 +00:00
wiz
0dd18a1929 Fix weird character problem at the source. 2008-09-05 09:07:40 +00:00
wiz
4d6d134c99 Remove weird character. 2008-09-05 09:00:01 +00:00
christos
8283d3d2a9 - `` -> $() and quoting
- getopt -> getopts
- some errors to stderr
- more quoting
2008-09-05 06:04:12 +00:00
pooka
660c5d7442 forgot to commit this - descend into rump_sysvbfs 2008-09-04 16:16:32 +00:00
pooka
7925afe7fc Use mntflags handed to us by parseargs() instead of hardcoded MNT_RDONLY. 2008-09-04 15:38:34 +00:00
pooka
7c5de9872e Use the standard practice of canon_dev/dir instead of argv[optind] 2008-09-04 15:35:58 +00:00
pooka
d559e45903 adjust copyright to match reality. no functional change. 2008-09-04 15:34:55 +00:00
pooka
795cda8d6a Add rump support for sysvbfs. 2008-09-04 12:21:25 +00:00
pooka
183cac798d add file missed in previous commit 2008-09-02 21:14:32 +00:00
pooka
827e91dd6f Make syspuffs mount code supply mount_syspuffs_parseargs() like
the other mount binaries do.  Now syspuffs can be used to run all
puffs file systems as utilities.  This includes fuse file systems
and becomes interesting with the fs-utils project.  We can now do
e.g. this:

  ReFUSE ntfs-3g:
golem> echo hello | fsu_write/fsu_write ntfs-3g puffs ~/img/ntfs.img dafile
golem> fsu_cat/fsu_cat ntfs-3g puffs ~/img/ntfs.img dafile
hello
golem>

  puffs sysctlfs:
golem> fsu_ls/fsu_ls mount_sysctlfs puffs sysctl -l ddb
total 0
-r-xr-xr-x  1 pooka  users  1 Sep  2 22:11 commandonenter
-r-xr-xr-x  1 pooka  users  2 Sep  2 22:11 fromconsole
-r-xr-xr-x  1 pooka  users  3 Sep  2 22:11 lines
-r-xr-xr-x  1 pooka  users  8 Sep  2 22:11 maxoff
-r-xr-xr-x  1 pooka  users  3 Sep  2 22:11 maxwidth
-r-xr-xr-x  1 pooka  users  2 Sep  2 22:11 onpanic
-r-xr-xr-x  1 pooka  users  3 Sep  2 22:11 radix
-r-xr-xr-x  1 pooka  users  2 Sep  2 22:11 tabstops
-r-xr-xr-x  1 pooka  users  2 Sep  2 22:11 tee_msgbuf

Same works for psshfs etcetc.

In other words, this provides total integration for "normal"
in-kernel file systems and puffs/fuse file systems on the ukfs
library level.

Note: implementation is still "first stab" and the fs-utils usage
will no doubt change.
2008-09-02 19:38:25 +00:00
wiz
c41335c886 Drop trailing whitespace. 2008-08-31 09:40:00 +00:00
christos
8cc5178c86 adjust to 0.64 2008-08-30 07:33:58 +00:00
jmcneill
2fec1d86a9 PR# 39364: wpa_cli scan_results shows '0' signal level
Use rssi for level (instead of qual) in scan results, following examples
set by the wpa_supplicant ndis and iphone drivers.
2008-08-29 12:58:19 +00:00
dholland
c0df430585 Fix typo; noted by Taylor R Campbell in PR bin/39428. 2008-08-29 05:10:26 +00:00
gmcgarry
0c1df97ec1 Pull in system headers before local headers to help avoid namespace collisions.
#undef WPA_OUI_TYPE which is later redefined in local headers.
2008-08-29 00:53:15 +00:00
gmcgarry
f9d5e5970d No empty structure initialisation. 2008-08-29 00:50:45 +00:00
gmcgarry
73cbf887f2 Include aml/aml_region.h after aml/aml_common.h to avoid redefinition errors. 2008-08-29 00:50:01 +00:00
gmcgarry
3c9a95916d Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC. 2008-08-29 00:02:21 +00:00
wiz
6db83de410 Bump date for previous. 2008-08-28 21:39:08 +00:00
elric
6457bb1668 Changed one period into a colon.
Added documentation that inetd can open UNIX-domain sockets.  It's been
able to do this for over a decade but it hasn't been documented and it's
quite a nice feature.
2008-08-27 19:55:20 +00:00
seanb
86b8382bbc - Clean up warnings / errors. 2008-08-26 17:38:21 +00:00
pgoyette
22720d94e4 1. For non-Intel vendors, don't overload cpuflags with the extended
flags from CPUID 80000001_EDX.  Instead, keep the extended flags
   separate, in ci_feature3_flags (Intel processors already kept a
   separate ci_feature3_flag value).

2. Decode/display ci_feature3_flag in a vendor-specific manner, since
   the definitions are vendor-specific.

OK cegger@
2008-08-24 20:27:34 +00:00
pooka
e8a1f963a5 fix tyop in error message, no functional change 2008-08-24 18:26:05 +00:00
kardel
90fa03deec resolve ntp 4.2.4p5 import 2008-08-23 09:25:25 +00:00
kardel
1f18cb938c resolve ntp 4.2.4p5 import 2008-08-23 09:10:31 +00:00
pooka
30c29b1b53 * Apparently u9fs returns the inode number as the unique qidpath.
This is fairly annoying if browsing a hierarchy with multiple file
  systems mounted, since at least inode 2 is fairly common.  Compensate
  by comparing modification time also.  Not perfect, but ....
* Don't loop eternally if we attempt to read at or past EOF.  Fixes
  reading files on a non-cached mount.
2008-08-22 17:44:14 +00:00
pgoyette
6d65ba8398 1. provide for warning-min and warning-max alarm levels in addition to
critical-min and critical-max; also, a battery warning-capacity is
   added in addition to a critical-capacity.

2. usr.sbin/envstat is modified to introduce a -W command line switch to
   display the warning-* values instead of the critical-* values, and
   envstat(8) and envsys.conf(5) man pages are updated appropriately.

3. Treat user-defined limits as a single continuum and generate a single
   event regardless of how many boundaries a change in sensor value
   crosses;  ditto for driver-defined limits.

Fixes my PR/39021
Fixes my PR/39022

OK'd by christos@ bouyer@ cube@
2008-08-22 11:27:50 +00:00
plunky
920552413d no need to use -g and _DIAGNOSTIC 2008-08-18 08:25:32 +00:00
plunky
a2cc8bda87 btpand is in section 8 2008-08-17 14:43:07 +00:00
cegger
eee3cf23d8 spelling: Acess -> Access 2008-08-17 14:11:36 +00:00
plunky
897274514a link btpand(8) to build 2008-08-17 13:26:36 +00:00
plunky
1fc74d2104 add btpand(8), a Bluetooth PAN daemon 2008-08-17 13:20:57 +00:00
pooka
3fd391abc8 void * -> puffs_cookie_t
no functional change
2008-08-12 19:51:55 +00:00
pooka
84c098fe27 call puffs_exit() 2008-08-11 16:23:58 +00:00
pooka
716a1797f9 We can actually simply use execvp() instead of /bin/sh for
exec-and-pathsearch-with-environ.
Thanks to bad for pointing this out & apb + blymn for some discussion.
2008-08-11 13:32:55 +00:00
christos
4c20e2ab03 try to handle different byte orders. 2008-08-11 10:58:02 +00:00
tls
b1d270319d Manual pages for accept_filters(9), from FreeBSD. Also, document syntax we
added in NetBSD for specifying accept filters in inetd.conf.
2008-08-10 14:55:13 +00:00
pooka
5f1dda08e4 add manpage for rump_syspuffs 2008-08-09 11:07:26 +00:00
christos
7b65855e71 simplify the code, from xtraeme. 2008-08-09 04:49:23 +00:00
pooka
69b613ef54 exec file server via sh -c to get the benefit of PATH search. 2008-08-08 16:59:02 +00:00
oster
ef887ad15c Since we're printing loc2 and loc3, make the headings match what we print.
Spotted by Paul Goyette on current-users.
2008-08-07 22:26:14 +00:00
pooka
0128ff2d3e add comment stating that the manpage is generated 2008-08-06 20:18:19 +00:00
pooka
79e4f54e20 add simple utility for autogenerating rump man pages 2008-08-06 20:15:30 +00:00
pooka
2c6e40dafe Add manual pages for rump file system servers. 2008-08-06 20:14:08 +00:00
pooka
99fed7264c Refactor mount utilities to provide a mount_fs_parseargs() routine.
Use this routine both in mount_fs and rump_fs to provide equivalent
command line parameters and therefore usage interchangeability.
While doing this, combine some common mountgoop to mountprog.h
2008-08-05 20:57:45 +00:00
tls
717f903a98 Add accept filters, ported from FreeBSD by Coyote Point Systems. Add inetd
support for specifying an accept filter for a service (mostly as a usage
example, but it can be handy for other things).  Manual pages to follow
in a day or so.

OK core@.
2008-08-04 03:55:47 +00:00
simonb
36d65f1138 Merge the simonb-wapbl branch. From the original branch commit:
Add Wasabi System's WAPBL (Write Ahead Physical Block Logging)
   journaling code.  Originally written by Darrin B. Jewell while
   at Wasabi and updated to -current by Antti Kantee, Andy Doran,
   Greg Oster and Simon Burge.

OK'd by core@, releng@.
2008-07-31 05:38:04 +00:00
pooka
dd569b0633 Use command line option parsing code from sbin/mount_msdos to
gain equal usage and behaviour with the "real" counterpart.
2008-07-29 16:06:18 +00:00
pooka
bdf6e0b034 Install rump libraries and utilities to the base system and remove the
private non-installed build infrastructure from sys/rump.

breakdown of commit:
  * install relevant headers into /usr/include/rump
  * build sys/rump/librump/rumpuser and sys/rump/librump/rumpkern
    from src/lib and install as librumpuser and librump, respectively
    + this retains the ability to test a librump build with just the
      kernel sources at hand
  * move sys/rump/fs/lib/libukfs and sys/rump/fs/lib/libp2k to src/lib
    for general consumption, they are not kernel-space dwellers anyway
  * build and install sys/rump/fs/lib/lib$fs as librumpfs_$fs
  * add chapter 3 manual pages for rump, rumpuser, ukfs and p2k
  * build and install userspace kernel file system daemons if MKPUFFS=yes
    is spexified
  * retire fsconsole for now, it will make a comeback with an actually
    implemented version shortly
2008-07-29 13:17:40 +00:00
christos
cd84a96731 fix signed comparison warning. 2008-07-28 17:40:33 +00:00
reinoud
01c0b5bf89 Fix typo in cd9660 functionname cd9660_setup_boot_volume_descritpor ->
cd9660_setup_boot_volume_descriptor.

Interestingly the same typo was used in 3 files!
2008-07-27 10:29:32 +00:00
matt
875074d9fa Make sure to update root.cache too. 2008-07-23 07:43:12 +00:00
lukem
9c1945664c Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.
2008-07-21 13:36:57 +00:00
gmcgarry
76056ad0a3 Replace gcc initialisers with c99 initialisers. 2008-07-21 12:44:25 +00:00
martin
a2e6cc1ff2 UBC license does not require an advertizing clause any more - this files
where probably missed in the initial sweep due to strange formatting
(last clause not explicitly numbered).

FreeBSD converted them (rev. 1.21 pf rarpd.8 and rev 1.41 of rarpd.c
in their repository), nearly four years ago.
2008-07-21 12:30:33 +00:00
apb
4ce9a85c41 man page fixes from PR 39164. 2008-07-18 21:03:03 +00:00
christos
c709bea66c Use htonl like ping/traceroute6 do, from Markus Mayer 2008-07-17 19:23:17 +00:00
drochner
1914237fbe include <stdlib.h> explicitely, for exit(), getprogname() etc.
(it happens to be pulled in by the yacc skeleton, but we shouldn't
rely on this)
2008-07-17 16:24:55 +00:00
christos
53bc7350a9 PR/39157: Markus Mayer: traceroute not 64 bit aware (struct timeval issue) 2008-07-16 21:34:16 +00:00
kardel
fbcf7d7188 make mkver fetch the date information from src/usr.sbin/ntp/importdate
in order to achieve consistent version strings across all builds
2008-07-16 20:53:56 +00:00
perry
12308daaf8 Remove another source of date/build user/build host that I hadn't
caught on the last sweep.
2008-07-16 16:07:42 +00:00
perry
d44cd616e7 Don't include build date information in the binaries any more.
Also don't include "build iteration" information.

Part of the effort to make builds from bit-identical sources result in
bit-identical binaries.
2008-07-15 18:28:10 +00:00
perry
4f4b3cb945 Per christos, s/$$(.*)/unknown/ -- i.e., remove the builder, host and
date of the build from the binaries.

Another step in making builds of bit-identical sources yield
bit-identical binaries.
2008-07-15 18:10:50 +00:00
perry
6bc17775e4 Remove __DATE__ and __TIME__ from usage().
This makes successive builds bit identical. The build date and time is
not very useful for debugging purposes.
2008-07-15 17:51:38 +00:00
dholland
16e3bec279 Clarify how one is supposed to use the pointers returned by getutentries()
(the utmpentry.c code), specifically with respect to who owns them and
when to free them. Now they're owned by utmpentry.c, only. Abolish the
freeutentries() function, which was the wrong abstraction; add instead
endutentries(), which flushes out the internally managed memory.

Update callers as necessary. Some (e.g. talkd) had been leaking memory;
others (e.g. syslogd) had been accidentally freeing and reloading utmp
more often than necessary. There are a couple untidy bits in users and
rwhod that someone should look after sometime, maybe.

Fixes PR bin/35131, which was about talkd's memory leak.
2008-07-13 20:07:48 +00:00
dholland
1d33f98b45 Correct improper escaping of regular expressions in string constants in
awk code. Noted by Aleksey Cheusov in tech-userlevel.
2008-07-13 15:34:16 +00:00
ad
61c0605342 Don't define ISC_PLATFORM_HAVEXADDQ if i386. It only works on the Pentium
or later - and I figured only ZFS would end up using it...
2008-06-23 09:19:34 +00:00
wiz
98c9474675 Use Xr instead of Nm. 2008-06-23 06:52:43 +00:00
dholland
ba135a4729 Avoid zooming off the end of a malloced region. Makes rtsol{,d} -a work.
From Dave Huang in PR bin/38282.
2008-06-23 04:55:27 +00:00
ad
c24177ce10 Some more text. 2008-06-22 21:47:30 +00:00
wiz
ce55a7f589 Bump date for previous. 2008-06-22 14:51:45 +00:00
wiz
f244e7522e Bump date for previous. Drop trailing whitespace. Improve formatting. 2008-06-22 14:50:40 +00:00
wiz
24bd7d6b65 Drop trailing whitespace. 2008-06-22 14:47:13 +00:00
ad
44eb18fda8 Add a dumb, mostly Solaris-compatible psrset command. It's missing some
options. Without it there's no easy way to test or use processor sets.
2008-06-22 13:53:59 +00:00
christos
2d315ce390 netbsd rcsid. 2008-06-22 13:23:50 +00:00
christos
89a537219f make this compile again. 2008-06-22 13:23:05 +00:00
ad
998b5a2fd0 Fix a race with the xadd functions. 2008-06-22 09:42:56 +00:00
christos
08aeee04f0 not everyone has atomic_add_64. 2008-06-22 00:14:06 +00:00
matt
b35d3ac323 Add multiple inclusion protection. Include <isc/types.h> 2008-06-21 23:57:25 +00:00
christos
a3695a098a use our atomic functions. 2008-06-21 22:53:06 +00:00
christos
426f20381b adjust for 9.5.0 2008-06-21 18:59:36 +00:00
peter
430b2da1d5 Install /etc/pf.os with 444 permissions.
Modify postinstall(8) to always upgrade /etc/pf.os.

Suggested by Luke Mewburn in PR/35188.
2008-06-20 17:04:45 +00:00
yamt
fff57c5525 merge yamt-pf42 branch.
(import newer pf from OpenBSD 4.2)

ok'ed by peter@.  requested by core@
2008-06-18 09:06:25 +00:00
rmind
481ae1556f - Add general cpuset macros.
- Use kcpuset name for kernel-only functions.
- Use cpuid_t to specify CPU ID.
- Unify all cpuset users.

API is expected to be stable now.
2008-06-16 01:41:20 +00:00
rmind
1ce83e28f1 Sync with the latest cpuset changes. 2008-06-16 00:33:24 +00:00
rmind
4f3b567e80 Sync with the latest cpuset changes. 2008-06-15 23:30:51 +00:00
christos
fdc568177c Fix bogus debugging code. 2008-06-15 18:33:32 +00:00
explorer
884b12291f install named-compilezone as a symlink to named-checkzone 2008-06-12 07:57:36 +00:00
christos
b7748ce1d5 change HUMAN_NUMBER back to 5 2008-05-31 12:48:41 +00:00
christos
c2a7e74ac0 remove stray ` 2008-05-30 21:53:21 +00:00
christos
6cb1513d20 - fix an amd cache entry.
- merge tables
- support phenom
from Paul Goyette
2008-05-30 18:49:03 +00:00
christos
ab8d9f698c de-duplicated cacheinfo.h 2008-05-30 14:41:57 +00:00
christos
0bb12611f2 let us be 0.3 2008-05-30 14:23:54 +00:00
christos
77cf38f568 PR/38797: FreeBSD support from ttw plus bsd at cobbled dot net. 2008-05-30 14:19:57 +00:00
mrg
c2b95373bf remove clause #3 from my license where there are no other
copyright holders involved.
2008-05-29 14:51:25 +00:00
ad
355c5b9e63 Fix busted test. 2008-05-29 11:32:07 +00:00
drochner
9ee4fa1d83 kill license clauses 3 and 4 2008-05-26 12:15:42 +00:00
wiz
20eb39d315 Sort options in usage. 2008-05-26 08:15:37 +00:00
dholland
e62b84ba61 When running a builtin service (a what? yeah, a piece of useless
legacy code), if the builtin service forks (not all do), avoid leaking
listening sockets into the child process.

If the child process were to keep copies of the listening sockets
around and then hang about for a long time, it would prevent inetd
from being able to re-bind them upon restart.

The listening sockets are tagged close-on-exec, but that doesn't help
when one doesn't exec.

Patch from my own very old PR 8253.
2008-05-26 03:41:25 +00:00
ad
e25a4f7edc Allow starting a new process with the specified parameters. For example:
# schedctl -C SCHED_FIFO top
2008-05-25 23:22:16 +00:00
christos
1c8ebda697 remove printf when the sensor has no statistics; requested by xtraeme. 2008-05-25 20:03:05 +00:00
tsutsui
ff1b9852ce Try DIOCWLABEL ioctl only if write op fails with EROFS
because the ioctl is required and valid only for raw devices.
2008-05-24 19:15:21 +00:00
joerg
bbdb057767 Just ignore a bunch of well-known routing socket messages ifwatchd
doesn't care about to make verbose mode less noisy.  When it does print
an unknown header type, also say which one it doesn't like.
2008-05-24 17:45:14 +00:00
christos
2fa9c865b5 Don't code using side-effects (eliminate queue variable). Unconfuses Coverity
CID 5031.
2008-05-24 15:55:13 +00:00
christos
54cf942f77 Coverity CID 5034: Use after free. Restructure the code to simplify it and
print the error.
2008-05-24 15:45:58 +00:00
lukem
6258c039ac Compile in LDAP if ${USE_LDAP} != "no".
XXX: untested.
2008-05-22 14:45:42 +00:00
ad
11a6779a98 Print AMD power management features. 2008-05-21 01:12:12 +00:00
tron
d5f41fe194 Fix builds with stack protection enabled. 2008-05-18 13:08:58 +00:00
tsutsui
9ac86cd165 Sync intel_cpuid_cache_info with src/sys/arch/x86/x86/identcpu.c. 2008-05-17 13:20:27 +00:00
chuck
77b3637f18 Disable hostname lookup for ypserv(8) libwrap access control,
as they can cause performance problems while ypserv is blocked
waiting for the DNS to respond.  initially discussed here:

	http://mail-index.netbsd.org/tech-userlevel/2006/11/01/0014.html

This diff is from Doug Needham who found an easy way to get
the desired behavior without having to change libwrap.
2008-05-16 16:41:42 +00:00
chris
f703bee5ef Fix two sizeof(__arraycount()) to not use sizeof when looking up the size
of the array.

This fixes a crash when run on amd phenom under amd64.

Issue reported and inital patch by Paul Goyette.
2008-05-15 23:31:56 +00:00
reinoud
e979c658c9 Import writing part of the UDF file system making optical media like CD's
and DVD's behave like floppy discs. Writing is supported upto and including
version 2.01; version 2.50 and 2.60 will follow.

Also extending the UDF implementation to support symbolic links and
hardlinks.

Added are the mmcformat(8) tool to format rewritable CD/DVD discs and
newfs_udf(8).

Limitations:
        all operations can be performed on the file system though the
        sheduling is currently optimised for archiving workloads.

        mv(1)/rename(2) is currently only implemented for non-directories.
2008-05-14 16:49:47 +00:00
ad
fb00930331 Clarify output of 'id' column. 2008-05-12 14:16:04 +00:00
skrll
989d6357d3 Add an option to load a generic boot image into the first 32K of the
cd9660 image.
2008-05-10 19:00:07 +00:00
martin
5d1469bd77 Backout previous: the license sweep touched these files in error, so
restore the old license.
2008-05-10 15:31:03 +00:00
ad
8038b5d5a5 Report: family, model, extfamily, extmodel 2008-05-10 15:01:05 +00:00
tsutsui
6eaaf9f4bd If writing the primary boot fails with EROFS, use DIOCWLABEL ioctl
then try again because some ports have to overwrite LABELSECTOR
which might be protected by bounds_check_with_label(9) on putting
primaty bootxx.
2008-05-09 10:53:55 +00:00
tsutsui
a9e4cec8d9 Use DIOCWLABEL ioctl before writing block 0 which might be
protected by (now MI) bounds_check_with_label(9).
Fixes a problem on sysinst mentioned in PR port-macppc/38016.
2008-05-09 10:14:35 +00:00
christos
8eef858ae2 patch from Dennis den Brok for foomatic 2008-05-07 17:44:44 +00:00
skrll
65d8db46d0 Make this compile. 2008-05-06 09:10:25 +00:00
ad
51e7ff401b PR port-amd64/37461 x86 cpu dmesg output is noisy
Port identifycpu() to userspace. The kernel lies and reports on cpuN while
actually using the values from cpu0, but this attempts to bind itself to the
requested CPU if running as root. That doesn't work properly yet due to
kern/38588, but will do once that's fixed.
2008-05-05 17:54:14 +00:00
martin
592397db3f Move to standard TNF 2 clause license 2008-05-04 12:59:38 +00:00
lukem
66176dfdff Rename MKPRIVATELIB to LIBISPRIVATE, to make it clearer that this is
a variable that is used by in-tree Makefiles to control behaviour.
(MKsomevar variables are generally intended to be controlled by the end-user)
2008-05-03 14:48:30 +00:00
apb
bf49cd32ad Try to make it clear that local changes will be overwritten
by "postinstall fix".
2008-05-03 09:44:45 +00:00
xtraeme
b2bb69490d WARNS=4 love. 2008-05-02 19:59:19 +00:00
xtraeme
c8f61d2b50 WARNS=4 2008-05-02 19:22:10 +00:00
xtraeme
7097d2c139 Constify and other misc fixes to make this build with WARNS=4. 2008-05-02 19:07:44 +00:00
martin
cd22f25e6f Move TNF licenses to 2 clause form 2008-05-02 18:11:04 +00:00
martin
11a6dbe728 Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
martin
4b1e6a65be Convert to 2 clause license 2008-04-30 08:20:03 +00:00
xtraeme
dbce9233f7 Don't show statistics in sensors that will provide a percentage. 2008-04-29 21:46:17 +00:00
martin
3028e483e4 Convert to new 2 clause license 2008-04-29 06:53:00 +00:00
martin
ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
ad
1f959cb4ab Use symbolic names for -C. 2008-04-28 16:52:17 +00:00
ad
4c7ba24481 Add MI code to support in-kernel preemption. Preemption is deferred by
one of the following:

- Holding kernel_lock (indicating that the code is not MT safe).
- Bracketing critical sections with kpreempt_disable/kpreempt_enable.
- Holding the interrupt priority level above IPL_NONE.

Statistics on kernel preemption are reported via event counters, and
where preemption is deferred for some reason, it's also reported via
lockstat. The LWP priority at which preemption is triggered is tuneable
via sysctl.
2008-04-28 15:36:01 +00:00
tsutsui
c007028e0b Enable gcc optimization on m68000 (sun2) again with minimum hacks.
gcc -O0 generates a bit fat binaries.
2008-04-27 03:06:46 +00:00
xtraeme
b02a77aff5 Add missing cast, noticed by Paul Goyette in current-users@. 2008-04-26 20:58:51 +00:00
xtraeme
f4ac0ac2c7 Cur -> Current for the header. 2008-04-26 11:28:26 +00:00
xtraeme
7dbfb3923c In default display mode, fix up the indentation for the critical
limits so that they appear in the correct column.
2008-04-26 11:15:14 +00:00
xtraeme
f960b01be8 * Improve default display output by adding a header that will match
current value as well as critical limits set and sensor unit.

* Add a new flag: -T. When it's enabled statistics will be created for
  the sensors. Max, min and average statistics as well as sensor unit
  will be displayed. Must be used with an interval.

You can see the new code in action here:

http://www.netbsd.org/~xtraeme/envstat_stats.txt

Thanks to jmcneill@ for comments and ideas.
2008-04-26 02:56:57 +00:00
cegger
68519ac971 amdtemp(4): Driver for AMD CPU Temperature Sensors. Adopted from OpenBSD's kate(4).
Changes beyond OpenBSD's driver:
- Improved support for AMD K8
- Added support for AMD Barcelona, AMD Phenom and AMD Griffin
Tested on various single and multi-socket machines.
Review and OK xtreame
2008-04-22 22:37:12 +00:00
plunky
9abc85a7e2 use __arraycount macro instead of rolling our own 2008-04-20 19:34:23 +00:00
xtraeme
e7638e85c4 Remove the 'dvnprinted' bool member of sensor_t, it's unused. 2008-04-17 21:19:12 +00:00
xtraeme
b16a06cd38 * Add support to show output from specified sensors in multiple devices
via the -s flag (the requirement for -d is not there anymore). [1]

You can do something like the following now:

$ envstat -s "acpibat0:charge,acpibat0:charge state,acpitz0:temperature"
[acpibat0]
       charge:      3.015 Ah (79.70%)
 charge state:     NORMAL
[acpitz0]
  temperature:     54.000 degC
$

* As bonus, the code has been modified to use a simple queue for
  the sensors, and this has simplified and improved some parts of the
  code as well.

[1] Item requested by joerg@ yesterday.
2008-04-17 20:51:48 +00:00
plunky
486e4624e5 some changes to serial bluetooth host controller interfaces
btuartd(8) should be named btattach(8) for consistency
with other parts of NetBSD

make btattach(8) a single-use tool for less complexity

device specicific initialisation (from btuart(4)) is carried
out prior to activating the line discipline (in btattach(8)),
which simplifies the API somewhat and means that the user
tool and the kernel do not need to be kept in sync.

btuart(4) driver is much reduced; naming is made consistent
and all tsleep() and delay() are removed to userland
2008-04-15 11:17:47 +00:00
tsutsui
df870ff695 Add more libraries required by libkrb5 etc. in NOPIC case. 2008-04-10 15:42:06 +00:00
ad
15efd9ad99 Do adaptive spinning for rwlocks, but only if the lock is write held and
there are no waiters. This gives a major boost to build.sh on larger
systems as directory vnode locks are exclusive for lookup, but are often
only held for a very short period of time.

This change has the potential to more readily expose lock order reversals
and other types of deadlock.
2008-04-04 17:25:09 +00:00
xtraeme
ba517bc7f5 Mention finsio(4). 2008-04-03 22:51:53 +00:00
xtraeme
979262d0fe Mention pic16lc(4). 2008-04-02 14:29:45 +00:00
xtraeme
e984f5b1da Mention cac(4). 2008-04-02 14:17:40 +00:00
xtraeme
42d9037c3c Mention adt7463c(4) and thinkpad(4) even if the manpages don't exist.
This is to have a reference about which drivers are using the envsys
framework.
2008-04-02 14:15:27 +00:00
christos
6bb1f8cf94 Not the right way to fix this. 2008-03-28 21:17:37 +00:00
he
25a92e43c5 Because privsep.c uses CMSG_SPACE() to size two local arrays, these
ends up as c99 variable-sized local arrays (CMSG_SPACE() uses a function
as part of calculating its result).  This causes the stack protection
code in the compiler to complain, so build this one with -fno-stack-protector
to avoid the problem.

Gets us back to buildability for this program for a number of our ports.
2008-03-28 18:10:53 +00:00
he
d7ce7c850c Make racoonctl build again, sockmisc.c needs -DNOUSE_PRIVSEP in order
to not pull in all the rest of the racoon/ipsec code.
2008-03-28 14:37:08 +00:00
martin
23e1f3f5d4 Use cpu index instead of ID for cpuctl; extend listing to provide both
numbers (but now the ID is only informational).
2008-03-25 15:06:02 +00:00
xtraeme
3ce1136f19 showcpuset: check the correct variable against NULL after calling malloc(3). 2008-03-24 10:33:17 +00:00
xtraeme
fc83e8aa5f - Improve usage().
- Replace malloc+memset(foo, 0, ...) with calloc calls.
2008-03-24 10:22:41 +00:00
mlelstv
2370a334ab Import Heimdal-1.1
more missing files
2008-03-22 09:29:55 +00:00
mlelstv
b0f88a0388 Import Heimdal-1.1 2008-03-22 08:36:48 +00:00
plunky
e0f590bc15 add the knowledge to create service records for "Personal Area Networking"
profiles
	NAP	Network Access Point
	GN	Group Network
	PANU	Personal Area Networking User
2008-03-19 23:15:19 +00:00