Commit Graph

140465 Commits

Author SHA1 Message Date
yamt 163be2ac64 change_utimes: use nanotime(9) rather than time(9). 2005-10-01 06:13:42 +00:00
yamt f615d37667 simplify lwp exit code. 2005-10-01 06:12:44 +00:00
christos 39e9173002 use a counter to prevent from mounting ptyfs twice. Using save_ptm is not
good enough, because if we don't have COMPAT_BSDPTY, then it will stay NULL.
2005-10-01 05:30:12 +00:00
yamt a13c4821e3 mark runtime obsolete. 2005-10-01 04:11:19 +00:00
yamt ac3e57ebff we don't have the global runtime anymore. 2005-10-01 04:09:06 +00:00
atatat fca6393ad4 Add "cwd" and "root" symlinks to each process's directory. The cwd
link points to the process's current working directory, and the root
link points to the process's root directory.  What else would you
expect?

For directories that are out of reach (caller is in a chroot, target
process is in a different chroot, etc), the links point to "/"
instead.
2005-10-01 03:17:37 +00:00
tsutsui 97776d231d - Use mtc0/mfc0 rather than dmtc0/dmtc0 for the PageMask register.
- Tidy up some comments.
2005-10-01 02:05:19 +00:00
macallan 8240aaf01d revert unnecessary geometry changes, add missing {} so turning off the
cursor when leaving emulation mode and getting it back when re-entering really
works now.
2005-10-01 01:10:50 +00:00
wiz 57f7dd924d Sort option descriptions. Use more macros. New sentence, new line.
Add missing .El.
2005-10-01 00:03:47 +00:00
uwe e97ebbc6c8 Minor KNF police. 2005-09-30 23:16:26 +00:00
cube 774136f54f Note the latest config(1) additions. 2005-09-30 23:05:02 +00:00
cube 7b7c582a4f Introduce two new statements:
no device at <attachment>

     <attachment> can take two forms:  either numbered/wildcarded, in which
     case only exactly matching instances will be removed, or plain (with
     no number or wildcard), in which case all matching instances will be
     removed.

     When <attachment> is a plain interface attribute, all instances using
     that attribute (either directly or through an explicit device) will be
     removed.

     E.g.:
             auich* at pci? dev ? function ?
             audio0 at audiobus?
             audio1 at auich?
             audio* at auich0

             no device at auich0     -> removes audio*
             no device at auich?     -> removes audio1
             no device at auich      -> removes audio1 _and_ audio*
             no device at audiobus?  -> removes audio0
             no device at audiobus   -> removes audio0, audio1 and audio*

  no <device>

     As in the previous case, <device> can either be numbered/starred, in
     which case all exactly matching instances are removed, or plain, in
     which case all instances of the device are removed.

    E.g.: (continuing previous example)

             no audio* -> removes 'audio* at auich0'
             no audio  -> removes all audio instances
2005-09-30 22:51:46 +00:00
cube c130d400ba Rework the way orphan device instances are handled. To achieve that, keep
track of instances attaching at root, and walk down the tree of active
device instances.  Then, all instances that are not marked active are
found as orphans.

Doing it that way allows us to simply ignore orphan devices, instead of
warning about them and still keep them in the configuration.  Now, orphaned
instances are considered as never having existed.

In the end, this allows 'no <device> at <attachment>' to be much more
efficient, as the user doesn't have to negate all descendents of the
instance s/he actually wants to negate.  Warnings are still emitted,
though.

While there, make official a side-effect of the previous lack of action
against orphaned instances:  config(1) used to warn about instances that
attach at a numbered device when no instance of that device with that
number existed, even though there was a starred instance of the device.

E.g. (provided by Alan Barrett):

    pciide* at pci? dev ? function ? flags 0x0000
    wdc0    at isa? port 0x1f0 irq 14 flags 0x00
    wdc1    at isa? port 0x170 irq 15 flags 0x00
    atabus* at ata?
    wd0     at atabus0 drive 0

With this commit, config(1) will no longer warn about 'wd0 at atabus0'.
2005-09-30 22:36:20 +00:00
macallan 8d7ddb1d4e - turn off the hardware cursor when leaving WSDISPLAYIO_MODE_EMUL
- only lock the hardware cursor when not in WSDISPLAYIO_MODE_EMUL
- allow cursor position between 0 and (screen width + max. cursor width - 1),
  same for height so it can move partially offscreen in all directions
2005-09-30 22:28:19 +00:00
macallan a07be5404a fix borked MicroSPARC IIep microtime() from previous version. 2005-09-30 22:09:29 +00:00
rpaulo 57f605ecda Add sysexits.3 man page. 2005-09-30 20:57:15 +00:00
rpaulo 35d2bef12a Add a comment asking to update sysexits(3) when adding more entries. 2005-09-30 20:56:19 +00:00
rpaulo 9622c7ed25 Add sysexits.3 2005-09-30 20:55:26 +00:00
rpaulo 13419de87f Add a manual page for <sysexists.h>, from FreeBSD with a minor
adjustments (removed reference to the style(9) man page added NetBSD
to the HISTORY section) by me.
2005-09-30 20:54:58 +00:00
rpaulo e24e702bdb .An -nosplit 2005-09-30 20:18:12 +00:00
tv 964f98e703 Make slightly more portable without extra conditionals needed:
- Use getpgrp() rather than getpgid(0).
  (getpgrp() is already used elsewhere in this same file.)

- Use waitpid(-1, a, b) rather than wait3(a, b, NULL).
2005-09-30 18:57:55 +00:00
christos ae3dca21e8 Patches from Liam Foy to:
- Use realloc instead of allocating 1000 structures.
- Remove NUSERS nonsense. If this is kept, shouldn't
  who(1) comply with it too?
- Be consistent with who(1). Add two identical options
  from who(1). These are -q and -H.
- General Cleans:
	- Move globals into local scope
	- Re-write a macro to remove an uneccessary
	  variable.
	- Use UT_NAMESIZE.
	- Remove unecessary header etc.

And from me, KNF, pass lint.
2005-09-30 17:58:24 +00:00
jmmv 38c8dceb4b Explicitly initialize the tn_lockf field. I expect problems in some
situations otherwise...
2005-09-30 14:29:19 +00:00
jmmv ea3755726f Do not use stdbool.h; it breaks the build on ports using gcc 2.x (such as
vax).  Ew.  Pointed out by he@.
2005-09-30 14:25:07 +00:00
wiz 179b01d905 Fix typo reported by David A. Holland in PR 31422. 2005-09-30 13:46:56 +00:00
simonb be630e4bf2 Split the fstab examples so that adding newer examples doesn't need a
shuffling of previous examples across line boundaries.
2005-09-30 12:55:13 +00:00
dyoung 3d52cdeb53 In cd9660_mount, initialize imp to VFSTOISOFS(mp) instead of NULL.
Remove redundant assignments to imp.  This fixes the page fault
panic when the kernel mounts an ISO9660 filesystem, introduced at
revision 1.27.
2005-09-30 08:15:46 +00:00
jmmv 3d17d70f0c Add a fstab.tmpfs sample file showing simple but common sample entries.
Suggested by martti@.
2005-09-29 21:06:43 +00:00
jmmv 4d3c62ba48 Make the file system names column wide enough to suit all names.
Terminate all entries with a dot (for consistency with the ones that were
like this before).
Few minor markup fixes.
2005-09-29 21:02:14 +00:00
jmmv 1a0ed0c2e8 Mention tmpfs; noted by martti@. While here, also mention smbfs and ptyfs. 2005-09-29 20:59:13 +00:00
jmmv 34afcb6a5d Add an EXAMPLES section. Requested by martti@ to clarify the purpose of
the field before the mount point.
2005-09-29 20:54:23 +00:00
skrll 0063b53d7b Improve interrupt handling:
- don't disable/enable as we're already at splnet()
	- ack the interrupts early

Fixes my "lost interrupt" problem.

Thanks to dyoung and scw for the suggestions.
2005-09-29 19:57:36 +00:00
jmmv b6d141c71c Implement the tmpfs_advlock operation. Makes "user-level" file locking
work (aka lockf(3)).
2005-09-29 19:48:21 +00:00
skrll c9b506e88e Fix the endianness of the scan command.
All the channels get the right scan type/dwelltime now.
2005-09-29 19:45:57 +00:00
abs 97f580372a If we're enabling ipfilter then we should really have IPFILTER_LOG 2005-09-29 17:21:24 +00:00
perry 720c10e2b5 Add trademark notice. 2005-09-29 17:15:52 +00:00
christos 3888bec411 Move the duplicate mount check sooner, and fix a leak. 2005-09-29 14:45:56 +00:00
tron fe7c56c577 The list of keywords must be sorted because it is search with bsearch(3).
Correcting this makes mtree(8) work again under Solaris.
2005-09-29 14:29:03 +00:00
tsutsui 0c1404101b - Remove duplicated #include.
- kseg2iobufsize should be vsize_t, not vaddr_t.
2005-09-29 10:39:43 +00:00
kent 50e11da459 * shorten *_init_dacgroup() functions
* add a hook point for widget initialization and implement for ALC882
2005-09-29 04:14:03 +00:00
yamt 5ce7d98710 tmpfs_getattr: return up-to-date timestamps. 2005-09-28 23:42:14 +00:00
martin 39f4abb7a9 Remove spurious debug output accidently commited in revision 1.44. 2005-09-28 21:36:23 +00:00
nathanw ff56508626 Set sc->sc_cfdata.cf_fstate to FSTATE_STAR rather than FSTATE_NOTFOUND
so that config_detach() doesn't panic.

(XXX this points to some disagreement between config_attach_pseudo()
and config_detach() over the correct role of pseudo-device cfdata)
2005-09-28 18:25:19 +00:00
seanb 6d8b694cb5 - Close NULL dereference when a GIFALIAS is performed on
a non existant address.
- Code review: christos
2005-09-28 17:56:27 +00:00
nathanw 74b0c97cb7 Pull in <machine/endian.h> on NetBSD instead of hardcoding to
big-endian.
2005-09-28 17:27:26 +00:00
christos eb01b7b0b4 Rename "hash.c" to "hashhl.c" since this is included from *hl.c files.
The name "hash.c" is already used in db/hash/hash.c, and having duplicated
names, aside from it being bad style, breaks the tools/nbcompat build
because it picks the wrong hash.c file. Thanks to greg for helping debug
this.
2005-09-28 16:31:45 +00:00
kent 4443bcd69a add codec-specific code for ALC260, ALC880, ALC882,
and STAC9221 to detect DAC/ADC cominations.
2005-09-28 14:26:19 +00:00
kent 6e455dd565 split azalia.c into three files.
* azalia_codec.c: code for specific codecs
  * azalia.c: other code
  * azalia.h: common definitions
2005-09-28 13:06:49 +00:00
rpaulo 81e95d22ed Oops, typo. 2005-09-28 12:41:49 +00:00
rpaulo 700318b43a Disable TMPFS. It is about Solaris TMPFS, not ours and is not yet
implemented.
2005-09-28 11:15:06 +00:00