Commit Graph

9686 Commits

Author SHA1 Message Date
wiz e35956774d Sort option descriptions. 2010-05-05 22:11:19 +00:00
wiz 430d51d315 Accept -v in getopt(); sort flag cases. 2010-05-05 22:10:50 +00:00
joerg aa73978631 Add verbose flag -v and make -q the default behavior. 2010-05-05 13:19:51 +00:00
pooka cf3a71d4a7 Add rump_au-naturel, which instead of mounting a file system inside
the rump kernel just attaches to / in said rump kernel instance.
This is mostly useful in case wanting to see what nodes components
create (see Makefile).

not built without manual intervention
2010-04-29 22:42:48 +00:00
plunky 366a13e705 additionally query the "PnP Information" service record to discover
any USB Forum vendor-id and product-id values and store them in the
property list if found.
2010-04-28 06:18:07 +00:00
joerg b9cf7d31ab Add the constant database reader (cdbr(3)) and writer ((cdbw(3)).
They implement a space efficent write-once database with fast access
path. Switch the services(5) database to use cdb. The size of the
database file decreases from 2.1MB disk space to 307KB. Access
performance is about the same if setservent(0) is used and about an
order of magnitude faster otherwise. services_mkdb defaults to the new
format, but can optionally create the old db(3) format as well for
statically linked legacy applications.
2010-04-25 00:54:44 +00:00
jruoho 73bd86de75 Define _PATH_POWER and use it. 2010-04-24 20:44:33 +00:00
dyoung ca088e5210 Do not try in postinstall(8) to replicate the code in etc/mtree/Makefile
that assembles /etc/mtree/NetBSD.dist.  Instead, use the Makefile's
new target, emit_dist_file, to assemble the correct NetBSD.dist.

Previously, 'postinstall -m amd64 -s $SRC_TOP' would install a
NetBSD.dist that was missing /usr/lib/i386/ et cetera.
2010-04-23 19:21:08 +00:00
plunky edefcdeffb no [longer?] need to define _KERNEL when including <net/route.h> 2010-04-23 15:30:30 +00:00
christos e1c0dee238 workaround for MKPIE=yes until binutils-2.20.1 is imported. From Piotr Meyer 2010-04-23 02:10:01 +00:00
wiz c43843983b Remove trailing whitespace, replace "Ar -i" with "Fl i". 2010-04-16 13:56:45 +00:00
jmcneill 2ad2163edc add examples for setting ipv6 default routes in ip-up/ip-down scripts 2010-04-16 13:47:50 +00:00
wiz d692f84d06 Sort options in SYNOPSIS (flags without arguments first). 2010-04-11 21:34:18 +00:00
pooka 04c1597880 Add raw mode, which skips ASCII'ification and can be used if reading
structures from the kernel into debug program memory is desired.
2010-04-11 15:08:17 +00:00
pooka c8360f5cc9 Instead of totally giving up, dump CTLTYPE_STRUCT as hex, much
like sysctl -x (but not fancy like -dosequis).
2010-04-11 08:30:17 +00:00
jruoho 5e7a0d0a3b A general update. Remove (hopefully the last) references to sendmail(8), etc. 2010-04-10 08:29:53 +00:00
joerg 4f69f7fc94 No trailing whitespace 2010-04-05 19:36:29 +00:00
pooka 326638b53f In case we create a file, reclaim the vnode, and lookup the file
without the directory timeout expiring, we get vattr_null as the
attributes for that file.  Ensure that we always report sane
attributes by getting them from the server if this is the case.
(also, sprinkle some const)

Fixes problem reported by dyoung.   But wait!  The bug's medallion
begins to glow!  The bug looks much better!  I crumble to dust.

There's probably another similar bug related to "lazy open".  It
will trigger if we reclaim a node before the response to the open
arrives.  Even the comments (typoless) know about this bug ...
But verifying it exists and fixing it will have to wait for another
day.
2010-04-01 02:34:09 +00:00
pooka f53fd22c3c fix typo (at least it was in an error string instead of a comment) 2010-03-31 14:54:07 +00:00
pooka be33b37b2e regen 2010-03-31 14:49:46 +00:00
pooka 5e15c7d5fc MAP_COPY is available only in _KERNEL .... uh, so don't use it here. 2010-03-31 14:49:02 +00:00
pooka 5fb5ff121c Add note saying that the manual page is autogenerated and all parts
may not apply to this particular server.

TODO: have three different texts, one for device backed file systems
(e.g. ffs), another for network backed (e.g. nfs), and a third for
fictional (e.g. kernfs)
2010-03-31 14:45:59 +00:00
pooka e83b6a1151 generate 2010-03-31 14:33:37 +00:00
pooka bde226973a Add kernfs server.
Don't build & install it by default, since it represents the state
of the rump virtual kernel and not the host kernel.  However, it's
useful for debugging kernfs.
2010-03-31 14:22:27 +00:00
cegger 0cffce294c make this build again after ieee1394 update 2010-03-29 10:49:34 +00:00
dholland d4ca0466e8 Avoid SIGSEGV in forked child process for (some?) instant-disconnect clients. 2010-03-25 16:36:00 +00:00
jruoho 260563ef8c Note also here that this is a legacy daemon that is more or less deprecated. 2010-03-20 09:22:37 +00:00
jruoho 7e4def2e7d Add a note that APM was deprecated by the PC manufacturers in about 1996.
Mention the APM emulation layer of ACPI. In addition, some small fixes.
2010-03-20 07:59:44 +00:00
cnst deaf16ef51 Remove aiboost(4) as obsolete and redundant since the introduction of aibs(4).
http://mail-index.netbsd.org/tech-kern/2010/03/06/msg007458.html

Reviewed by <pgoyette>, <cegger>, <jruoho>, <tech-kern>.
2010-03-19 04:04:27 +00:00
wiz 35d2900127 Quote question mark so it's correctly marked up.
Problem reported by Ryo HAYASAKA in PR 42963.
2010-03-12 09:36:15 +00:00
christos 0fa7bdbba6 PR/42943: Takashi Sogabe: pppd generates invalid netmask 2010-03-10 13:45:39 +00:00
wiz 8c68fa47ec Sort sections. Try to improve description of -t. 2010-03-09 10:54:01 +00:00
kiyohara cecd9b8efc Remove white-spaces. 2010-03-09 02:01:51 +00:00
plunky c683e41b5d use %zd for ssize_t argument 2010-03-08 21:48:42 +00:00
plunky 7937d424ef fix compilation errors 2010-03-08 21:19:29 +00:00
kiyohara 3e3acb56cf Add -t, -F, -P. 2010-03-08 18:35:51 +00:00
kiyohara 4670060018 Add option 'test mode'(-t).
Can test your Bluetooth module via com-port.
  This mode guess speed for bcsp(4) or btuart(4), if not respond.
2010-03-08 17:59:52 +00:00
kiyohara 45be6911c0 Add options 'no parity'(-P) and 'disable flow control'(-F).
Also default enable parity for bcsp.
2010-03-08 17:41:11 +00:00
pooka 50cfd7e754 add commented out nqmfs 2010-03-08 12:48:31 +00:00
pooka c11c0f21f8 Not Quite MFS
Instead of copulating with newfs to produce a new FFS image into
memory, mmap() a given existing image and pass that as the backing
store.  If -s is given, mmap is done with MAP_SHARED and changes
are kept across mounts, else MAP_COPY (i.e. MAP_PRIVATE for us) is
done and changes are lost when the server exits.

Note: -s does not guarantee any kind of file system safety whatsoever
and in case of kill, crash, exit or other form of elusion,
everything will be, according to our theme, quite screwed.
2010-03-08 12:46:33 +00:00
plunky 6f9cc4f169 add some LOG_DEBUG 2010-03-07 10:58:40 +00:00
pooka ed49ad5f70 Give usage() a chance.
XXX: UKFS_DEVICE_ARGVPROBE() interface
2010-03-03 17:37:01 +00:00
joerg bfbe4c3572 Use HUGE_VAL instead of INFINITY as positive infinity (or maximum value)
is good enough and the side effects of ISO C99 7.12 (4) are not desired.
2010-03-01 00:13:47 +00:00
mlelstv 68b19a91fd Adjust for change in kernel that stores physical block numbers
in superblock that point to the journal.
2010-02-27 12:07:40 +00:00
wiz 60e71df88e Sort options. 2010-02-27 10:49:58 +00:00
wiz 55641935f7 Sort options. Add -j to SYNOPSIS. Bump date for -j. 2010-02-27 10:49:42 +00:00
mlelstv f8f395ea25 Print both commit headers, even for disks with larger block sizes. 2010-02-27 09:53:33 +00:00
mlelstv b13adfa46e Add support to print the WAPBL journal. 2010-02-27 09:05:59 +00:00
cegger 14bab12404 check for svm feature flags if cpuid function 0x8000000a is available. 2010-02-23 08:46:33 +00:00
bouyer 1d8e4d24e4 Make block fields one char wider; allows to sanely display quotas up to
99.9GB while still fitting 80 columns.
Something else needs to be found for the long term ...
2010-02-17 18:55:14 +00:00
pooka d317936de6 umgah. meant fts, not fsu 2010-02-17 15:54:10 +00:00
pooka 046f5845a2 Bump the initial rootdir link count guess to a ludicrous value. 2010-02-17 15:50:54 +00:00
pooka 73655f9fb0 Save "." attributes in readdir. This fixes the root link count
after readdir is called for the root dir the first time (yes,
there's still a window of wrong link count after the fs is mounted.
it's currently quite difficult to call sftp_readdir() from outside
the main loop).

Should fix "find /mnt" problem for a mountpoint with more than the
"guessed" amount of subdirectories, as reported by dyoung.
2010-02-17 15:47:36 +00:00
plunky de7a8fb394 sort entries in structure
clarify init name type for CSR modules
2010-02-17 09:49:41 +00:00
mlelstv 03a893b3fd Read the padded superblocks to avoid problems with disks that have
larger sectors than 512 Bytes.
2010-02-16 18:57:53 +00:00
mrg f23127ca0a don't call most/all Core2's "(Merom)". 2010-02-16 00:13:14 +00:00
pgoyette c4b330d512 Document the new {high, maximum}-capacity keywords, and some general
clean-up.
2010-02-15 23:04:11 +00:00
pgoyette 55a81df24d Update cross-reference to refer to new aibs(4) instead of aiboost(4) 2010-02-15 22:38:28 +00:00
pgoyette 74999bdda4 Update userland envstat(8) to handle new {high,maximum}-capacity limits. 2010-02-15 22:37:14 +00:00
njoly 9a9cbde160 Fix double free, when requesting an invalid sensor. 2010-02-12 14:26:27 +00:00
cnst 7397d018ca remove the fourth (empty) column from the -T printouts; ok pgoyette 2010-02-12 05:02:40 +00:00
cnst 0854bc43a8 fix a typo resulting in warn-max being shown in two columns (one time instead of crit-min); ok pgoyette 2010-02-09 05:32:51 +00:00
cnst 1c23afa3cb New aibs(4) driver for ASUSTeK AI Booster (ACPI ATK0110) hardware monitor
with limit support.

        http://thread.gmane.org/gmane.os.netbsd.devel.kernel/35654

Reviewed by <pgoyette>, <jruoho> and <tech-kern>.
2010-02-09 03:19:50 +00:00
he 76d4444c78 When using -lcurses, you also need -lterminfo.
This fixes the build for sun2, and also builds with LDSTATIC=-static,
since archive libraries don't record inter-library dependencies.
2010-02-06 23:45:24 +00:00
pooka 70b8adf303 Give credit: psshfs was inspired by FUSE sshfs. 2010-02-03 17:16:29 +00:00
pooka 7face90494 statvfs:
Since bresvd is not available from the server, calculate:
	bresvd = bfree - bavail.

Then df calculates:
	bavail = bfree - bresvd;

And we now get a much more accurate report from df on how much one
can write to the fs.
2010-02-03 17:02:52 +00:00
roy 98eb889579 Userland now builds and uses terminfo instead of termcap.
OK: core@, jdc@
2010-02-03 15:34:37 +00:00
drochner 6d0b625409 The structure returned by USB_DEVICEINFO has the vendor/device strings
UTF-8 encoded now. We can't simply print this to a terminal, so
convert it to the current codeset first.
2010-02-02 16:25:30 +00:00
wiz 05f103b5db New sentence, new line. 2010-01-30 08:57:49 +00:00
pgoyette c6140fa206 Since we never have both a limit value and a limit %capacity value,
remove the Capacity column.

Reduce inter-column spacing, and display all four limits on one page,
rather than using the -W command line option to switch between critical
and warning limits.  (The -W option is still permitted, but has no
effect.)

%capacity limits are displayed in the WarnMin and CritMin columns, but
have a trailing % sign.
2010-01-30 02:56:39 +00:00
mbalmer 0f58fac97e fix language 2010-01-28 14:12:11 +00:00
wiz dfe95627e5 Bump date for previous. 2010-01-27 06:52:24 +00:00
jruoho df40d4f10f Some miscellaneous fixes:
* Apparently there is only a single location for the scripts. Thus, remove
   the references to "/etc/powerd/scripts/apm" and "/etc/powerd/scripts/acpi".
 * Correct confusion: instead of "the device with which the device is
   associated", write "the device with which the event is associated".
   Correct also an example related to this.
 * Improve wording, grammar, and markup in few places.
2010-01-26 20:37:13 +00:00
jruoho 65a2d62a82 Emphasize the script names and events. 2010-01-26 14:28:23 +00:00
mrg 048f27069a remove the HISTORY section that merely claimed this manual page was
new (but it was written in 1994 :-)
2010-01-26 06:03:02 +00:00
pooka 26994c608b Define concept "disk based file system" and flag appropriate file
systems as such.
2010-01-25 15:55:36 +00:00
wiz 8a2acb8ef0 -f is not mandatory. 2010-01-23 10:47:04 +00:00
sborrill 51f4fcdba7 Enable CONFIG_DEBUG_FILE option to allow debug messages to be sent to
a file instead of stdout.
2010-01-22 16:41:57 +00:00
wiz 0e068e9935 Fix date. 2010-01-20 14:00:48 +00:00
uebayasi b833b11a50 Document -t (modify mtime). Bump date. 2010-01-20 13:50:27 +00:00
christos e684a7b22f check if i is in range before using it. 2010-01-18 04:53:10 +00:00
drochner 23174fa441 Invert the flag bits to control module loading: rename
LOADMODULES->NOMODULES and READBOOTCONF->NOBOOTCONF.
This way, the default value (0) wired into old bootxx_* and installed
to file systems remains valid and we avoid problems on partial updates.
2010-01-17 14:54:43 +00:00
joerg 228bb419cc Use .%U for URLs instead of .%O. 2010-01-15 19:19:32 +00:00
drochner 79f027bbd6 On i386/amd64, define two flag bits in the boot parameters which control
whether modules are loaded and whether boot.cfg is evaluated, and
set both to "off" per default in the PXE bootloader.
Extend "installboot" to toggle the bits.
This way, pxeboot works with existing dhcp server setups (and as
described in the manpage) out of the box. Also, boot.cfg reading
involves a stat() call which is horribly inefficient with the
TFTP pseudo file system.
2010-01-14 17:49:31 +00:00
tsutsui e5f39b5e90 Remove if defined(__RCSID) around __RCSID() macro.
#include "nbtool_config.h" is enough for tools.
2010-01-14 16:27:49 +00:00
pooka ef38ca9933 Make r/w servers unmount themselves cleanly upon receiving SIGINT/TERM. 2010-01-12 18:43:37 +00:00
wiz be1708fee6 Anon tells me it should be "on the order of", not "in the order of".
Hi marc!
2010-01-11 14:30:02 +00:00
wiz be7ea74662 New sentence, new line. 2010-01-11 09:49:19 +00:00
mbalmer ec0de7b4ec some wording fixes 2010-01-11 09:21:39 +00:00
mbalmer 06404c9d5f remove stupid casts. if lint complains about return values that are ignored,
lint should fe fixed, and not code being cluttered.
2010-01-10 19:40:11 +00:00
snj 34d0fbb3ff Add a missing semicolon. Noted by Tomasz Motyl in PR bin/42603. 2010-01-10 19:04:35 +00:00
joerg 4e2447c901 Don't leak two file descriptors in cp(). From Igor Zinovik.
Explicitly check the close for errors and bail out if needed.
2010-01-10 16:40:00 +00:00
mbalmer 89644c3065 Various language fixes.
From FreeBSD.
2010-01-09 10:43:11 +00:00
pooka e828ea6b56 Fix compilation with -Wsign-compare. Apparently 5.0 doesn't have
-Wsign-compare enabled, which explains a thing or two ...

pointed out by gson
2010-01-08 10:53:31 +00:00
wiz a9e00b2097 Don't be terse. 2010-01-07 23:35:45 +00:00
pooka eac396bb5a errx() already contains progname ... 2010-01-07 21:26:49 +00:00
pooka 754f939dd3 Don't allow mangling of uid or gid -1, since they have a special
meaning in the sftp protocol.
2010-01-07 21:23:10 +00:00
pooka 6cd252da60 Fix chgrp (and don't rely on VNOVAL being -1, however unlikely that
is to be broken).
2010-01-07 21:19:45 +00:00
pooka c4291c195a Add -u and -g, which allow to remap one (local,remote) uidgid, i.e.
umapfs without the fuss.
2010-01-07 21:05:50 +00:00
tsutsui 17ad8ece63 Add a sectorsize parameter member in struct ib_params and use it
where sector size (disk block size) is required, instead of
DEV_BSIZE constant which means device I/O block size.

"Looks reasonable" from dholland@, and fixes tools installboot(8)
on Cygwin where DEV_BSIZE != 512 as mentioned in PR toolchain/42555.
2010-01-07 13:26:00 +00:00
mbalmer 40406154b1 Fix typo in comment. 2010-01-06 06:30:37 +00:00
mbalmer 43f131c4e8 Only use an auto-determined interface if it is the only one in the system
that is up and running.  This change prevents wake(8) from picking an
arbitrary interface (which is possibly the wrong one).
2010-01-04 11:34:39 +00:00
wiz f5e16a46b4 Capitalize Ethernet. 2010-01-03 19:04:26 +00:00
mbalmer 18af789290 Indicating the interface over which to send Wake on LAN frames is optional,
if the interface is not given on the command line, wake(8) will use the
first ethernet interface that is up and running.
2010-01-03 17:58:14 +00:00
wiz 31ac57e452 Fix previous: Dd argument and lost Em markup. 2010-01-01 21:44:07 +00:00
mbalmer acf41ffe98 fold long lines. 2010-01-01 21:26:18 +00:00
wiz e68a42515b Bump date for gid_range. 2009-12-31 20:14:19 +00:00
mlelstv 6ee63fe8b0 Add new keyword gid_range to usermgmt.conf which specifies a default
GID range for groupadd(8).
2009-12-31 19:59:31 +00:00
abs 564d9d15f0 Put "MAN= acpidump.8" back outside the i386/amd64 block so its in the
MI manpages, and non i386/amd64 setlists are correct again
2009-12-27 21:42:22 +00:00
christos 9a4b585a95 running postinstall fix should also say why fontconfig did not work, like
all other postinstall methods.
2009-12-24 21:52:57 +00:00
mbalmer a72f71643d Fix typo in comments, no code change. 2009-12-23 09:17:40 +00:00
cegger 3b140d483b Import acpidump from FreeBSD per request from jmcneill@
Changes made in the port:
- adapt path to iasl from /usr/sbin/iasl to /usr/bin/iasl
- fix realpath() usage to accomplish NetBSD's behaviour
- use EXIT_FAILURE/EXIT_SUCCESS everywhere
- fix crash on corrupt DSDT file and print proper error message
- implemented additional ACPI table parsers for
  BERT, BOOT, CPEP, DBGP, EINJ, ERST, HEST, MSCT, SBST,
  SLIT, SPCR, TCPA, WAET, WDAT and WDRT
2009-12-22 08:44:03 +00:00
cegger de1cae9a73 msg.txt 2009-12-22 08:44:02 +00:00
cegger 09f2089b95 Import acpidump from FreeBSD per request from jmcneill@
Changes made in the port:
- adapt path to iasl from /usr/sbin/iasl to /usr/bin/iasl
- fix realpath() usage to accomplish NetBSD's behaviour
- use EXIT_FAILURE/EXIT_SUCCESS everywhere
- fix crash on corrupt DSDT file and print proper error message
- implemented additional ACPI table parsers for
  BERT, BOOT, CPEP, DBGP, EINJ, ERST, HEST, MSCT, SBST,
  SLIT, SPCR, TCPA, WAET, WDAT and WDRT
2009-12-22 08:44:02 +00:00
mbalmer 9e1aa40062 Better wording. 2009-12-21 15:48:33 +00:00
mbalmer 0b145a4077 Fix synopsis to make it clear that at least one lladdr is required. 2009-12-21 08:42:39 +00:00
christos 0283f36219 PR/42486: Ed Ravin nfsd sometimes exits prematurely during port-scan fix
from freebsd bin 61084 applied (preserving errno properly). The accept
code should be merged.
2009-12-21 05:06:55 +00:00
nakayama 89f2cb29c8 Add xref to ofctl(8). 2009-12-19 23:10:57 +00:00
pooka 0ab737e1d6 add ranty rant about data storage in tmpfs 2009-12-17 14:06:38 +00:00
pooka 0446aae700 Call ukfs_part_release(). For completeness and educational value. 2009-12-13 21:16:54 +00:00
nakayama 1c54a66d99 System utilities, boot programs and kernel modules are machine
(port) specific not CPU, so use MACHINE not MACHINE_ARCH.
2009-12-13 05:01:32 +00:00
pooka abcee849c9 This is linked against rumpnet_sockin, so it should not be linked
against rumpnet_netinet anymore.
2009-12-11 16:46:27 +00:00
kardel 142d831562 Merge ntp 4.2.4p8 2009-12-08 21:52:05 +00:00
mbalmer 74f49bc48d s/the the/the/ 2009-12-08 09:46:01 +00:00
dsl 111a678bed VNDIOCSET now returns a 64bit unsigned size.
Use compat ioctls if the kernel rejects the request.
Fixes PR/41873.
2009-12-06 16:35:16 +00:00
kiyohara 24a2c2d7c2 Add unistone. 2009-12-06 13:21:37 +00:00
kiyohara 4e74fe3282 Support Infineon UniStone (PBA31308).
from Gumstix's bluez-utils-hciattach-pba31308.patch.
  tested on Gumstix verdex-pro.
2009-12-06 12:55:46 +00:00
kiyohara adcbe4e3eb Fix some bugs.
1. Remove O_NDELAY.  Please block it.  Or read() returns EAGAIN.
 2. We want data size.  header already read.
 3. Call errx().  errno(2) unspecified at now.
2009-12-06 12:47:37 +00:00
kiyohara c7fee8db52 Check return values. 2009-12-06 12:31:07 +00:00
kiyohara 69144e751e Fix comment. CSR use BlueCore command. 2009-12-06 12:29:48 +00:00
pooka 70d4493c77 Remove the portalfs kernel file system driver. Replace mount_portal(8)
with a version based on puffs.  User functionality remains the same.
2009-12-05 20:11:01 +00:00
pooka a1c4673949 Adapt ukfs users to the new ukfs_part interface. 2009-12-03 14:27:16 +00:00
pooka 3b493fbd05 remove unnecessary LDADD 2009-12-03 14:26:44 +00:00
mbalmer 9b182ae0ac s/the the/the/ 2009-11-22 18:45:27 +00:00
mbalmer f0a888ee5f make sense 2009-11-22 18:43:27 +00:00
mbalmer 124961627e s/the the/the/ 2009-11-22 18:40:26 +00:00
roy 431f7b204e Use resolvconf(8) to manage /etc/resolv.conf 2009-11-21 07:53:59 +00:00
christos 6b6eea3c51 allow comparing v2 and v3 filehandles. 2009-11-19 22:27:26 +00:00
enami 29551a2991 Prevent sign extension when reading device number in ufs1 on disk inode
so that devname(3) correctly converts it to device filename.
2009-11-19 02:52:54 +00:00
drochner 86b474fa0d ANSIfy, sprinkle "const" 2009-11-17 18:58:07 +00:00
drochner 5fbc003349 ANSIfy partially 2009-11-17 18:37:45 +00:00
christos e6f376b325 Fix pppd for ipv6 link-local addresses. Change the prefix length to 72 bits.
Thanks to Nagae Hidetake for providing patches and testing.
2009-11-14 04:47:03 +00:00
mishka 5da27c1396 The ippool(5) manpage mentions ippool.conf (which is also more common
name for config files) - add it to distribution. Per <hubertf> suggestion.
2009-11-13 09:51:13 +00:00
dyoung 2bd83a5fc2 Update date. 2009-11-06 20:51:43 +00:00
dyoung 95d78285f1 Teach ndp(8) about override_rtadv. 2009-11-06 20:51:19 +00:00
skrll 96092d9e00 Whitespace. 2009-11-06 15:41:58 +00:00
christos 225e9fc5c1 make this compile. 2009-11-06 15:36:55 +00:00
joerg 3e36bb3dce Drop __SCCSID. It is only of archeological interest. 2009-11-06 15:00:31 +00:00
chuck a8036503d8 rev 1.18 un-covered some bugs:
1. add_interdomain and add_secure are optional... not all maps use these
    keys.  if we are unable to add them due to a YPERR_KEY (meaning they
    are not being used), then we should not flag this as a general error.

 2. if we have a failure (status <= 0) we unlink_db() the temp database
    as part of error handling.   but we should not overwrite our error
    status code with the return value from unlink_db() because if the
    unlink_db() works (likely true) than that success will wipe out our
    error code and the calling yppush will think we worked.
2009-11-05 21:26:25 +00:00
chuck 1f5ddb4eb6 in the case where ypbind is serving more than one domain (i.e.
not just the yp_get_default_domain() domain), we must remove
any old binding files from /var/yp/binding (BINDINGDIR) from
previous runs, or the non-yp_get_default_domain()'s will not
bind properly.   add a purge_bindingdir() function that basically
does "rm BINDINGDIR/*.[0-9]" at ypbind startup time.

example case of where this is an issue: bind a second (non-default)
domain.   ypbind will create and flock a /var/yp/binding/xxx.2
file for it.  stop and restart ypbind.  the old /var/yp/binding/xxx.2
file will remain from the previous run.   since it is not flock()'d
by the new instance of ypbind, libc functions like yp_master() will
fail without even bothering to talk to ypbind itself.   (and ypbind
is totally unaware of the old file...)
2009-11-05 19:34:06 +00:00
chuck fd40ef4f59 yppush RPC is supposed to return yppush_status error/status codes
(e.g. YPPUSH_SUCC, YPPUSH_NOMAP, etc.).

Functions like yp_master, yp_order_host, yp_master_host, and
yp_match_host return YPERR-style error codes.  YPERR-style error
codes do not directly correspond to yppush_status codes, so it
is a bad idea to just directly YPERR codes into the yppush return
status value (it causes failing yppush runs to print confusing
error messages).

Change ypxfr.c to convert the YPERR codes to YPPUSH codes.
2009-11-05 15:23:55 +00:00
pooka 597f5b5581 Link fs components into binary instead of loading dynamically now
that it's possible (dependency handling changes to rumpuser_dl).
2009-11-05 14:17:07 +00:00
pooka 5866121c7c more lp64 it's-a-sign! fixes 2009-11-05 13:28:18 +00:00
pooka 07b61426de WARNS=2 (netsmb is not pointer-sign-confusion-lp64-clean) 2009-11-05 13:26:02 +00:00
pooka 1aa117e65e lp64 sign comparison 2009-11-05 13:09:56 +00:00
pooka 23517ba3a1 Need to p2k_init() (i.e. fork()) earlier to not lose threads created
in rump_init().
2009-11-05 12:00:18 +00:00
pooka a91d18a45a pump up the WARNS to 4 2009-11-05 11:41:43 +00:00
pooka de048bdaae const woes 2009-11-05 11:40:24 +00:00
joerg 13ed0794d0 Escape literal backslashes. 2009-11-02 00:35:32 +00:00
joerg d1a4d78e86 Drop undefined macros. 2009-11-02 00:33:34 +00:00
joerg 02c40990a1 Drop ".i0", it is an undefined macro. 2009-11-02 00:29:04 +00:00
joerg fa47d7aeec Fix markup. 2009-11-01 20:25:57 +00:00
jakllsch 87dcea5d47 Use documentation prefix.
Drop trailing whitespace.
Remove repeated word.
Bump date.
2009-11-01 15:19:19 +00:00
jakllsch 691255789a Use documentation prefix. 2009-11-01 15:17:59 +00:00
christos 53a85f7e1b add -DROUTEINFO 2009-10-31 22:32:51 +00:00
christos 2853bbf4b7 use %option instead of #define YY_NO_... 2009-10-29 14:49:02 +00:00
christos ffd8793875 no need for YY_NO here. 2009-10-29 14:41:02 +00:00
christos ca70685cf2 option noinput nounput 2009-10-29 14:40:09 +00:00
christos e5f4435e87 option noinput 2009-10-29 14:39:23 +00:00
christos aecc92ac3d option noinput nounput 2009-10-29 14:38:37 +00:00
christos a4ac032926 no unput 2009-10-28 22:49:38 +00:00
christos 2f78b1a39a no unput 2009-10-28 22:37:50 +00:00
christos 6e36ff926d PR/42239: M. Levinson: paxctl(8) fails since binutils 2.19.1 upgrade
binutils-2.19.1 tries to create one note section for all adjacent loadable
note sections, instead of the old behavior where each note is in its own
section. The fix looks at the section headers instead of the program headers
for the note.
2009-10-27 16:27:47 +00:00
tsutsui 359ac4c562 A checksum value in alpha boot block is stored in little endian,
so use le64toh() to print it on the host tool.
While here, use consistent (unsignd long long) casts on printing it.
2009-10-26 14:26:25 +00:00
plunky b04b174c48 after setting the L2CAP link mode in server mode, retrieve the kernels
interpretation of it and check specifically for auth when creating the
service record.
2009-10-25 19:28:45 +00:00
wiz 1675d276fa Bump date for previous. 2009-10-25 01:30:48 +00:00
jakllsch 96c2887e36 Renumber 6bone addresses to documentation prefix.
Fix broken URL for totd site.
Add reference to pkgsrc/net/totd.
2009-10-25 01:09:09 +00:00
plunky f379f083fb use correct value for 10 Mbps 2009-10-24 20:06:42 +00:00
reed 2d0dbf5439 Change manpage reference from talkd to ntalkd.
(Man link does exist, but no binary.)
2009-10-24 12:23:47 +00:00
reed f20256f240 Fix man page reference from non-existent dhcp(8) to dhcpd(8).
Hope this was what was intended.
2009-10-24 12:22:24 +00:00
tsarna 4a827eaa92 Back out mDNS changes which were not discussed.
There is design work that needs to be done first.
2009-10-22 22:50:35 +00:00
wiz aec158cb35 Bump date for mDNS support. 2009-10-22 21:43:28 +00:00
jkunz bd5b8260f5 Add mDNS Service Directory support to inetd(8).
inetd(8) can now advertize services in the mDNS-SD.
(Per service configuration option in inetd.conf(5).)
2009-10-22 16:34:27 +00:00
snj febb7cce65 Drop 3rd and 4th clauses. Approved by gwr@ (copyright holder). 2009-10-21 23:12:09 +00:00
snj 550147bd6a Remove 3rd and 4th clauses in christos' license. OK christos. 2009-10-21 01:07:44 +00:00
snj 1a868936e6 Remove 3rd and 4th clauses. Approved by Mats O Jansson (copyright holder). 2009-10-21 00:01:56 +00:00
pooka 95a13440ba use rump_pub interface name 2009-10-20 02:14:54 +00:00
pooka 9d203cca46 g/c unused variable 2009-10-20 02:14:12 +00:00
snj 07ce40632e Follow upstream's lead and remove third and fourth clauses (except on
from usr.sbin/mopd/common/pf.c, where only the ad clause is removed,
because it has a shared UCB copyright) on Mats O Jansson's files.

thorpej OK'd usr.sbin/rpc.yppasswdd/yppasswdd_mkpw.c, where he shares
copyright.
2009-10-20 00:51:13 +00:00
snj 0e24aa0d20 Remove third and fourth clauses, as was done upstream in revision 1.25. 2009-10-19 23:25:43 +00:00
bouyer 6d07b400dc Remove closes 3 & 4 from my licence. Lots of thanks to Soren Jacobsen
for the booring work !
2009-10-19 18:41:07 +00:00
pooka a4001afaf1 remove abort trap leftover from my testing 2009-10-18 19:58:04 +00:00
pooka c5e347e2a8 Use new p2k interfaces and make it possible to detach rump_smbfs 2009-10-18 19:38:35 +00:00
pooka 8209f3a11a adapt to new p2k interfaces 2009-10-18 19:37:25 +00:00
pooka a64df16285 Remove threading ifdefs. It was never easy to run the nfs client
without threads, but now it's even more difficult due to sillyrename
using workqueue, so whoever wants to do it will have to take to
manual fiddling.
2009-10-18 16:02:15 +00:00
pooka 2d07f409b9 Use write through cache here too. Doesn't make the same kind of
difference as with smbfs since nfs is "stateless", but better to
have the data on the server ASAP in case some other nods wants to
use it.
2009-10-18 15:57:15 +00:00
christos b0af10adcf fix size_t issues on _LP64 2009-10-18 15:23:54 +00:00
pooka 8a8f57910d Use PUFFS_KFLAG_WTCACHE since it's sensible for a distributed file
server (plus it makes write work in the first place since the
descriptors don't get closed before the cache is flushed).
2009-10-18 15:14:13 +00:00
christos 5a6c88acad pass lint 2009-10-17 22:26:13 +00:00
christos 10dc222174 change to strchr and strrchr 2009-10-17 20:46:03 +00:00
christos 99d395c60f Make this compile again. I should have tried to compile the patches myself,
but ran out of time this morning.
2009-10-16 22:45:18 +00:00
christos de1256ff71 constification from Paul Ripke to make it compile on OS/X 2009-10-16 12:41:37 +00:00
hubertf 2058a998c8 Fix -p:
* rm_eo is the first character *after* the match, so no need for a +1
 * Blowfish hashes are only 53 chars long, not 54
2009-10-15 23:03:02 +00:00
plunky 8ac5e94172 reinstate a sentence partly removed in v1.43 regarding the default
facility/priority for local kernel messages
2009-10-15 20:35:07 +00:00
joerg 1444b07e5e Explicitly request literal mode after .Xr. 2009-10-15 02:15:19 +00:00
joerg 45354b5b39 Expand [= prog-name =] in man pages. 2009-10-15 01:28:10 +00:00
joerg cb83818524 Fix markup. 2009-10-15 00:59:01 +00:00
joerg dd5fba70d0 Fix markup. 2009-10-14 22:59:11 +00:00
pooka bf3992af18 Adjust names of external rump control interfaces to match the
new rump_pub namespace.
2009-10-14 18:22:50 +00:00
christos da2c7e7359 - use const where appropriate
- don't cast return value from malloc
2009-10-13 12:11:19 +00:00
apb 138c8d4f23 /usr/X11R7/lib/X11/xkb/symbols/pc used to be a directory, but changed
to a file on 2009-06-12.  Fixing this requires removing the directory
(which we can do) and re-extracting the xbase set (which we can't do),
or at least adding that one file (which we may be able to do if X11SRCDIR
is available).

Reviewed by mrg, snj
2009-10-13 07:47:00 +00:00
yamt 76034769e6 deal with the output of new objdump. 2009-10-13 00:49:38 +00:00
pooka a5cf1bb4b7 make this compatible with bool.h. no functional change intended. 2009-10-11 16:30:19 +00:00
wiz 0bfda1e22c Sort sections, fix SEE ALSO. End sentence with dot. 2009-10-11 09:25:19 +00:00
sborrill f549e36e60 Add hdaudioctl(8), a tool to manipulate hdaudio(4) devices.
It offer the following subcommands:
	list - shows all child codec
	get - get a plist of the chosen codec's widget configuration
	set - forcibly reconfigure a specified codec from a plist
	graph - generate a graphviz file for the specified codec
2009-10-11 08:57:54 +00:00
pooka 68c5575108 Start cleaner without the sleep(1) hack now that it's possible. 2009-10-09 16:38:21 +00:00
plunky 7583393055 handle device page timeout value as LE 2009-10-09 12:58:28 +00:00
plunky d8166becbf use the bt_dev(3) api instead of rolling our own inquiry and
request functions
2009-10-08 19:50:03 +00:00
plunky 7efcafc964 fiddle with printing of "Class of Device" values
- pass the class of device octet stream to the function
  - only print where the format is known (we only know format #0)
  - use language from the Baseband Assigned numbers document
  - use bit numbers from the Baseband Assigned numbers document
  - add Health device major class

(only these changes this time :)
2009-10-08 19:31:41 +00:00
plunky 3729e633c8 revert previous commit
(bah, I committed the wrong version and there are some other
changes that may not work with current sources)
2009-10-08 19:29:42 +00:00
plunky ba4cd6cd5e fiddle with printing of "Class of Device" information
- pass the octet stream pointer to the function
  - only print where the format is known (we only know format #0)
  - use language from the Baseband Assigned numbers document
  - use bit numbers from the Baseband Assigned numbers document
  - add Health device major class
2009-10-08 19:25:24 +00:00
cegger 82c98410be fix acpidump segfault 2009-10-08 13:16:13 +00:00
pooka d07d1f307a Support disklabels. 2009-10-07 20:59:09 +00:00
pooka 018821014f No need to ukfs_modload() ext2fs anymore. 2009-10-07 20:11:05 +00:00
plunky 89a4552c35 use the bt_dev(3) API for increased portability 2009-10-05 12:34:26 +00:00
joerg 4ab84a7335 Fix markup. Handle the DECnet documentation like a journal. 2009-10-04 20:53:23 +00:00
jmcneill 204f5f079e - add newer VIA C7 core and VIA Nano.
- when printing an unknown VIA CPU, default to 'Unknown IDT/VIA' instead of 'C3'
2009-10-02 13:54:01 +00:00
tsarna a8bcd3b5c3 Multicast DNS ("Bonjour") support, based on Apple's mDNSResponder. 2009-09-29 23:56:26 +00:00
mbalmer 98c9076713 Rename 'pulse' to 'pulsate' to make clear it is a continuous strain of
pulses and and not a single shot pulse that is emitted by devices
supporting this kind of operation.
2009-09-25 20:27:50 +00:00
mbalmer e5d5fe6e06 Jonatha Kollasch has a GPIO device that can pulse the output lines.
Support it wuth the GPIO_PIN_PULSE attribute and the 'pulse' paramater
to gpioctl.  Discussed with Jonathan.
2009-09-25 19:37:03 +00:00
apb 8f2b54e18a Fix errors in previous: "optional" and "ignore" keywords also need the
appendfield treatment.
2009-09-22 04:38:21 +00:00
njoly 5fde6173c5 Make do_mtree correctly report failure if either special or
NetBSD.dist checks failed, not only the last one.
2009-09-21 18:03:03 +00:00
apb 4f2b672958 Do not print a trailing space on each line with "mtree -C". 2009-09-19 21:41:43 +00:00
apb 4133fb0075 Fix the "mtree -M" problem reported in PR 42031 by Geoff Wing.
The cause of the problem was that part of the code assumed that
nodecmp() on two nodes with the same name would return 0, but in
fact nodecmp() would return -1 or +1 if one of the nodes was a
directory and the other was not.  The fix is to separate the notion
of whether or not a duplicate name was found from the notion of
where the new node should appear in the list.
2009-09-19 20:42:06 +00:00
plunky 6fe312c1a9 offer some actual information about what PaX might be, and provide
tips for further reading.
2009-09-17 08:07:17 +00:00
mlelstv d2979fb02a Distinguish between UFS1 and UFS2 inodes by reading the ufsmount structure,
the previous heuristic of comparing the size fields of inode and dinode
failed.
2009-09-16 07:27:41 +00:00
skrll 52749c1bca Rely on the new and "just as awful as the old" hack in the battle of rump
vs link sets.
2009-09-14 17:24:20 +00:00
degroote 2d48ac808c Import pfsync support from OpenBSD 4.2
Pfsync interface exposes change in the pf(4) over a pseudo-interface, and can
be used to synchronise different pf.

This work was part of my 2009 GSoC

No objection on tech-net@
2009-09-14 10:36:48 +00:00
plunky 9501383a83 print features from 3.0 + HS spec, including extended features 2009-09-11 19:22:15 +00:00
skrll b7d7171c7c Allow this to build while link sets and rump are broken. 2009-09-11 06:48:50 +00:00
mrg cfb8df7f4f install the fontconfig files into /etc/fonts/conf.avail, and symlink
the default ones into /etc/fonts/conf.d, as per default.

reported by jukka marin on netbsd-users.
2009-09-07 21:07:02 +00:00
mrg 2bd0cf0757 - do not create X11 subdirs always anymore
- we now only create them when building X11, and only create the ones
  we need (X11R6 xor X11R7)

- all these subdirs are now in the xbase set

- move the logic for running mtree into etc/mtree/Makefile

- split NetBSD.dist into 3 files, and have the build and postinstall handle
  creating a possibly merged one.  we still have a single installed file
  called "NetBSD.dist".
2009-09-07 19:34:29 +00:00
pooka f59c73ba56 Build & install rump_smbfs 2009-09-06 21:03:27 +00:00
pooka b0d965c6f5 Add rump_smbfs. It's innards are different from most file systems
in two respects:
    * in addition to vfs (and networking), it depends on kernel
      device code to provide /dev/nsmb
    * mounting involves having lengthy chats with the kernel smb
      device instead of the typical "parse args and mount(2) away".

Seems to be pretty stable, at least data seems to flow over it
faster than over in-kernel nfs.
2009-09-06 20:26:47 +00:00
plunky 0b2b507e45 bump date for previous 2009-09-01 18:20:14 +00:00
plunky e4d755d754 add xrefs for bluetooth drivers bcsp(4), btbc(4) and sbt(4) 2009-09-01 18:19:08 +00:00
plunky ff3abe1407 update/correct printing of HCI version numbers according to the
recently published Assigned Numbers documents at www.bluetooth.com
2009-09-01 18:04:33 +00:00
plunky 9abf5ef727 actually exit on errors 2009-08-30 19:24:40 +00:00
hubertf 545302a120 improve wording a bit 2009-08-28 21:19:13 +00:00
christos 12102b7fae port to non NetBSD systems. 2009-08-27 19:40:06 +00:00