Commit Graph

8827 Commits

Author SHA1 Message Date
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