Commit Graph

163870 Commits

Author SHA1 Message Date
jmmv
513f77f76c Add the debug files for id's h_id helper tool. 2007-11-22 11:32:12 +00:00
pooka
a4b032e2c8 quick & dirty support & tests for ioctl 2007-11-22 11:28:48 +00:00
pooka
2bde3fa647 Support bdev/cdev ioctl. 2007-11-22 11:26:27 +00:00
yamt
a3dbd70683 lfs_mountroot: use vfs_destroy. 2007-11-22 10:51:44 +00:00
yamt
33e66db218 fix lockdebug_mem_check. 2007-11-22 10:47:37 +00:00
xtraeme
f517956d37 Print the error if sysmon_envsys_register() fails and add a missing
return in that case.
2007-11-22 08:15:00 +00:00
yamt
44cbe3d429 remove lock_machdep.c 2007-11-22 07:44:40 +00:00
xtraeme
efb076273b kthread_create1 is no more, ok thx. 2007-11-21 23:11:06 +00:00
elad
6887492c26 Make securelevel a "secmodel" of its own.
While it's true that it's part of the traditional 4.4BSD security model,
there may come a time where a different "primary" security model used for
fine-grained privileges (ie., splitting root's responsibilities to various
privileges that can be assigned) may want to still have a securelevel
setting.

Idea from Daniel Carosone:

  http://mail-index.netbsd.org/tech-security/2006/08/25/0001.html

The location of the removed files, for reference, was:

  src/secmodel/bsd44/secmodel_bsd44_securelevel.c
  src/secmodel/bsd44/securelevel.h
2007-11-21 22:49:05 +00:00
drochner
e3e9b75351 Fix in6_pcbrtentry() for the case of IPv6-mapped IPv4 addresses:
don't assume that the cached route is a sockaddr_in6, and do the
right comparisions so that no out-of-bounds memory is accessed.

btw, the use of "#ifdef INET" throughout the source doesn't look clean
to me: There are 2 cases -- whether AF_INET is usable by userland
programs, and whether IPv4 is supported as on-wire protocol.
2007-11-21 21:18:25 +00:00
jmmv
72ff826442 Add the debug directory for tests/util/id. Noted by drochner@. 2007-11-21 20:49:12 +00:00
bjs
27bbf3c565 Remove #ifdef __OpSys__ sections to make this readable. Add RCS tags.
Nothing done in header files, nor in dev/pci/drm (we might not want to
touch this for the sake of merging) yet.  Compile tested; please let
me know if this broke anything.
2007-11-21 19:22:12 +00:00
pooka
45f44fab6d note major daemons: putter & pud (one of these days I'll commit demogorgon) 2007-11-21 19:12:17 +00:00
pooka
8bd7c98c05 A very terse manual for pud(4) (it leaves almost everything as
an exercise to the reader).
2007-11-21 19:10:23 +00:00
pooka
b21e075586 Short description of putter(9) 2007-11-21 18:40:58 +00:00
pooka
cf9f5c8530 Register a block device and support read/write to it. 2007-11-21 18:11:17 +00:00
pooka
750d633918 Add support for block devices. 2007-11-21 18:10:48 +00:00
is
dc3828d089 de-__P()ify 2007-11-21 16:49:08 +00:00
matt
1d4dffbc51 Make rb_tree_insert_node return true/false whether the node was inserted
or not.
2007-11-21 16:42:51 +00:00
pooka
bc7c4b36bc use BUF_ISREAD/WRITE instead of homegrown variants 2007-11-21 16:30:40 +00:00
pooka
4a5167232c Add BUF_ISREAD() and BUF_ISWRITE() macros to avoid silly code checking
for the B_WRITE pseudo-flag: (bp->b_flags & B_READ) == B_WRITE
2007-11-21 16:30:01 +00:00
njoly
8bb343aabb Add tests to the obsolete files list to be installed. 2007-11-21 16:23:29 +00:00
dsieger
c3e2c70373 Update the list of the core group (s/uwe/cube/). 2007-11-21 15:43:57 +00:00
jmmv
1a8b914c59 No need to set a value for TESTSDIR any more as this is explicitly set
wherever it is needed.
2007-11-21 15:40:09 +00:00
jmmv
80c834ed18 Explicitly define TESTSDIR, because the automatic deduction of its value
breaks the build if some component of NETBSDSRCDIR is a symlink.  Reported
by drochner@.
2007-11-21 15:39:33 +00:00
dsieger
1f9f59ed34 Remove extraneous .Ed 2007-11-21 14:21:31 +00:00
tnozaki
fca38949e4 fix lib/37290
- don't call abort(3) when there's no suitable charset found.
- use iso-8859-1(or INIT1 if specified) for C1 control char.
2007-11-21 14:19:32 +00:00
ginsbach
a3a3ad0162 Changes for standards compliance:
- Accept "-" for msgfile (STDIN) and catfile (STDOUT)

- Merge msgfile into formatted catfile.  The catfile is created if
  it does not exist (current behavior).  If the catfile exists,
  its messages are included in the new catfile.  Collisions between
  set and message numbers cause the msgfile message text to replace
  the existing message text.

  (The $delset directive now makes more sense.)

Standards: The Open Group Base Specifications Issue 6
           IEEE Std 1003.1, 2004 Edition

- Replace corrupt()/nomem() with errx().  The replaced routines
  called local error() -> warning() which prints an input file line
  number.  This probably makes no sense for these conditions (it
  is not a syntax error in msgfile).  Line numbers are completely
  nonsense when dealing with reading a formatted catfile.

- Modify warning() to only print line number when reading from a
  message file.  Also print the current file being processed.

- Don't issue a warning when processing a line with only a message
  number and no trailing space.  This is valid and will delete any
  existing message with that number from the current set.

- Reset lineno for each msgfile processed.
2007-11-21 13:40:09 +00:00
tsutsui
58babb9c75 Roundup e2fs_ipg to make it use whole inode table blocks since
it's still reasonable and some kernel code seems to assume it
(otherwise some inode numbers of directories could be corrupted).

XXX: not sure if odd e2fs_ipg is valid or not in ext2fs spec.
2007-11-21 13:14:06 +00:00
yamt
671754cc2e lockdebug_alloc: detect double initialization explicitly. 2007-11-21 11:33:11 +00:00
pooka
2f06310f4b mmap should return -1 on error. Also, shuffle functions around to
make this more feng shui.
2007-11-21 11:19:44 +00:00
yamt
aebd6aa5c9 add comments 2007-11-21 11:15:50 +00:00
jnemeth
91954fd117 PR/35238 - tls@ -- add _proxy to uid and gid checks 2007-11-21 10:41:03 +00:00
yamt
51e523b832 re-enable lockdebug_mem_check. ad@ said disabling it was a mistake
in the first place.
the implementation has been changed to use rb-tree rather than hash
so that it can check regions larger than page size as well.
2007-11-21 10:25:51 +00:00
yamt
87fcbb0fe8 remove #if 0'ed code. 2007-11-21 10:21:40 +00:00
yamt
f3ea2e999d 4.99.37: kmutex_t and krwlock_t changes. 2007-11-21 10:20:55 +00:00
yamt
38d5e34116 make kmutex_t and krwlock_t smaller by killing lock id.
ok'ed by Andrew Doran.
2007-11-21 10:19:06 +00:00
rillig
55bf992f36 The e* functions don't call the error handler in every case, just in
case of an error.

Mentioned the error conditions for the various functions.
2007-11-21 09:17:24 +00:00
sborrill
3a63ee360d While boot.cfg support is currently i386 only, it is hoped that its use
will be extended to other appropriate ports in future. Note as such in the
bugs section.

This is an MI man page, so should not be flagged as i386 in the header.
2007-11-21 08:14:10 +00:00
dyoung
3b205d80f9 Detect cardbus_setpowerstate() errors and aprint_debug() a warning.
Leave alone the Latency Timer set by the Cardbus bridge.

With version 1.152 of dev/pci/pccbb.c, we can power down the card
when it is not in-use, so do that.
2007-11-21 02:10:45 +00:00
dyoung
a5a3f28dce Sometimes a change of CSTSCHG# accompanies the first interrupt from
an Atheros WLAN.  That generates a CB_SOCKET_EVENT_CSTS event on
the bridge.  The event isn't interesting to pccbb(4), so we used
to ignore the interrupt.  Now, let the child devices try to handle
the interrupt, instead.  The Atheros NIC produces interrupts more
reliably, now: used to be that it would only interrupt if the driver
avoided powering down the NIC's cardslot, and then the NIC would
only work after it was reset a second time.
2007-11-21 02:07:09 +00:00
dogcow
37ec50ec33 silence, might be used uninitialized warning! 2007-11-21 01:31:34 +00:00
dogcow
f5f98b502d add <dev/pud> (hi, pooka!) 2007-11-21 01:28:44 +00:00
dsl
aa21c2800b When copying system call arguments into kernel space, either copy 4
arguments (enough for the majority of calls) or the maximum of 10 (8 plus
2 for sys__syscall).
Avoids all the unlikely-to-be-predicted-correctly in the unrolled loop.
This might be a problem if a thread's stack doesn't have the extra args
mapped - but that is extremely unlikely.
2007-11-21 00:15:08 +00:00
drochner
ad37bd5da3 fix gcc bug #34130 (wrong multiplication with negative constants
inside abs()) which got some attention in the linux kernel mailing
list recently
2007-11-20 23:27:56 +00:00
xtraeme
f0927a591f Put back again softintr_init() that was removed in rev 1.67, this fixes
the panics that people reported on current-users.

Tested and verified by Greg Oster.
2007-11-20 23:10:49 +00:00
joerg
08598b7d45 Merge from jmcneill-pm: XXX allow pci_find_mem to map a 64-bit BAR. 2007-11-20 22:48:49 +00:00
xtraeme
da3a7579a9 Use BUILDSYMLINKS to avoid a compilation error where the source file
has the same name than the LKM.
2007-11-20 21:47:34 +00:00
plunky
166b860e06 allow listening to channel RFCOMM_CHANNEL_ANY, which means that
we should allocate the first available channel at the given
device address.
2007-11-20 20:25:57 +00:00
plunky
fb5c91f9fc when listening, don't attach to the 'any' address unless
we wanted to listen to the 'any' address.
2007-11-20 20:19:24 +00:00