tron
8b451badf9
Add proper error reporting via the return code:
...
Remember if any of the "route" commands failed and return an error in
that case.
2009-10-07 08:06:11 +00:00
tron
9435d86beb
Add a "return 0" to avoid incorrect error returns because we ran out of
...
lines to read from "/etc/route.conf".
2009-10-07 07:51:28 +00:00
agc
e82f21eb7a
More checks for the return value from memory allocation.
2009-10-07 04:56:51 +00:00
agc
83cfb9deb0
Clean up some Flexelint (issues pointed out by phk - many thanks!).
...
Also make sure the return value for each memory allocation is checked - this
is still a WIP.
2009-10-07 04:18:47 +00:00
elad
c8cfab9333
Extract usermount policy to its own routine.
2009-10-07 01:31:41 +00:00
elad
1e17e53958
Compare against initproc, not pid 1, to check if it's init (unify).
2009-10-07 01:06:57 +00:00
wiz
ddecca9be6
Fix Dd argument (use full month names).
2009-10-06 21:39:58 +00:00
elad
2cb56be586
Add a (weak aliased) machdep_init() as a place to do machdep initialization
...
that can't happen as early as the other init functions as called from
cpu_startup() -- for example, register kauth(9) listeners.
Put unprivileged policy in the x86 code; used by i386, amd64, and xen.
2009-10-06 21:07:05 +00:00
elad
14dd40c754
Allow root to do things that the subsystem allows as well (unify).
...
This is important in the case someone manages to load the suser secmodel
and remove subsystem specific listeners; without this change they would
have ended up with a root user that can only do privileged operations.
2009-10-06 20:34:22 +00:00
christos
40ab82d3c3
fix regression exit1: Don't exec the last command in a subshell if it has
...
trap[0] (trap EXIT) set. Fork instead to give the shell a chance to execute
the trap when it is done.
2009-10-06 20:05:10 +00:00
jdc
7ffe6d60fa
Return the same information whether or not we have wide characters.
...
Problem pointed out by Rhialto on current-users.
2009-10-06 20:03:27 +00:00
apb
db8f79df3d
Make this slightly more portable; it has to run on arbitary host
...
platforms at build time. Previousy, some shells were confused by
some of the "[ ... ]" tests.
2009-10-06 19:56:58 +00:00
plunky
0fbc382d6d
allow to specify 32-bit bluetooth short alias or full UUID strings
...
on the commandline.
2009-10-06 19:21:17 +00:00
pooka
b02819edcd
don't double free p2m
2009-10-06 16:57:54 +00:00
haad
d8802513da
Enable build of 64 bit atomic ops in userspace for i386. This is needed for
...
all 32 bit archs which doesn't have a 64 atomic ops. This change enable MKZFS
build for a i386.
2009-10-06 16:28:10 +00:00
pooka
5290e6c820
Give a p2k node an internal state. This allows us to do proper
...
reference counting and not release nodes based just on puffs'
impression of if they are free.
This also allows us to reclaim vnodes already in inactive if the
file system so desires. Some file systems, most notably ffs, change
file state already in inactive. This could lead to a deadlock in
the middle of inactive and reclaim if some other puffs operation
was processed in between (as exposed by haad's open(at) test
program).
Also, properly thread the componentname from lookup to the actual
vnode operation. This required the changes the rump componentname
routines. Yes, the rename case is truly mindbogglingly disgusting.
Puke for yourself.
2009-10-06 16:23:03 +00:00
sborrill
88bbf990c2
Commit patch from PR#41926. Confirmed to work by PR submitter on two
...
controllers as well myself and another on viaide.
Stops errors such as the following when probing SATA drives through
controllers that offer the legacy pciide interface:
viaide1 channel 0: reset failed for drive 0
OK bouyer@
2009-10-06 13:45:01 +00:00
pooka
a373547b43
Use uint64_t instead of size_t for block device partition size.
...
from jak
2009-10-06 13:05:44 +00:00
haad
6a4395f648
Replace another openat call with open + changed path.
...
XXX. This commit should be reverted after proper implementation of *at syscalls.
2009-10-06 12:03:47 +00:00
pooka
0f0ad0a73d
Build proper version for i386 (since it works) and dummy versions
...
for the rest until the disklabel MD problems get sorted out.
2009-10-06 09:12:47 +00:00
haad
db47593719
iMark done tasks as done and move *at implementation task to post-import phase.
2009-10-06 08:47:59 +00:00
cegger
58b5db465d
- use EXIT_FAILURE/EXIT_SUCCESS
...
- whitespace nits
- ansify cleanup()/usage()
- remove pointless parenthesis on return
2009-10-06 06:43:15 +00:00
agc
57036e7063
More Flexelint cleanup from issues pointed out by phk - thanks! - just easy
...
low-hanging fruit for now.
2009-10-06 05:54:24 +00:00
elad
0bef641c61
Unify: >= 0 -> > -1.
2009-10-06 05:03:58 +00:00
elad
ce7ff2b92d
Cosmetic changes to declarations. No functional change.
2009-10-06 05:01:51 +00:00
elad
756638cf95
Factor out a block of code that appears in three places (Veriexec, keylock,
...
and securelevel) so that others can use it as well.
2009-10-06 04:28:10 +00:00
agc
b491010d02
More Flexelint cleanup from phk - many thanks! - low-hanging fruit for
...
just now.
2009-10-06 03:30:59 +00:00
agc
1603af0219
Clean up more Flexelint, from phk - many thanks! - just low-hanging fruit
...
for just now.
2009-10-06 02:46:17 +00:00
agc
814ccb85bf
Clean up Flexelint warnings - from phk, many thanks - just low-hanging
...
fruit for just now.
2009-10-06 02:39:53 +00:00
agc
5a83dba05a
More Flexelint fixes from phk - just low-hanging fruit for just now -
...
many thanks!
2009-10-06 02:26:05 +00:00
rmind
9abdb3b71e
tmpfs_rename: handle hard-links correctly. Fixes PR/41236.
2009-10-06 00:17:24 +00:00
rmind
b619d660f4
Remove X86_IPI_WRITE_MSR (and msr_ipifuncs.c), replace all uses in drivers
...
with xc_broadcast(). AMD K8 PowerNow driver tested by <jakllsch>, thanks!
Closes PR/37665.
2009-10-05 23:59:30 +00:00
rmind
c9a5a18df3
mq_timedsend/mq_timedreceive: timeout value is absolute, not relative.
...
While here, drop unecessary (since fdesc API changes) lwp_t arguments.
Bug reported by Stathis Kamperis, thanks!
2009-10-05 23:49:46 +00:00
rmind
ae2795775d
ufsdirhash_recycle(): modify ufs_dirhashmem atomically.
2009-10-05 23:48:08 +00:00
rmind
5503429772
shmexit: simplify a lot by avoiding unnecessary memory allocations, since
...
it is a last reference, just re-lock and check mapping list again. Often
there wont be re-locks at all, moreover, shm_lock is not contended at all.
2009-10-05 23:47:04 +00:00
rmind
c3a98b4c87
semu_alloc: simplify a little.
2009-10-05 23:46:02 +00:00
rmind
43533de20b
Add callback(9) man page. Reviewed and improved by <wiz>, thanks!
2009-10-05 23:44:10 +00:00
rmind
ac8f63538a
Convert cpu_number(), which can be sparse, to cpu_index(), which is MI.
2009-10-05 23:39:27 +00:00
rmind
63a834705c
pthread_attr(3): sync with reality i.e. uncomment descriptions about
...
various functions we support. Fix license style.
2009-10-05 23:37:01 +00:00
rmind
26ce5a50b4
pthread(3): mention that we use 1:1 threading model; remove descriptions
...
of no longer used environment variables.
2009-10-05 23:35:42 +00:00
rmind
81bc3e51a5
Add check to avoid multiple inclusions and redefinitions.
...
KNF while here.
2009-10-05 23:33:48 +00:00
haad
ecabea58c7
Do not use sysent solaris framework there is no such thing in a NetBSD.
2009-10-05 23:31:16 +00:00
haad
5f7d5874f0
Add cddl directory to external build framework. build things from osnet dir
...
only when MKZFS variable is set.
2009-10-05 22:44:26 +00:00
haad
cc9255a89b
Add support for mounting zfs filesystems to mountall script. ZFS configuration
...
is stored in /etc/zpool.cache and it is automatically loaded to kernel from
filesystem. Filesystems are then configured accordingly to their properties
loaded from cache file.
2009-10-05 22:39:27 +00:00
haad
fbd1c01117
Add zfs sets and needed veriables to hook zfs into the build. ZFS on i386
...
need still one fix othervise it should be ready for testing.
2009-10-05 22:32:58 +00:00
dyoung
7b7a580067
Replace u_quad_t with uint64_t. u_quad_t is just a typedef for
...
uint64_t, so no ABI/API breakage will result from this change.
2009-10-05 21:25:05 +00:00
dyoung
0fabd75b6e
It's a big job to write detachment hooks for pciide(4) and all of
...
its derivatives, and I haven't the time myself. In struct
pciide_product_desc, provide a tiny bit of commented-out code to
guide an enterprising developer who takes on the immense task.
2009-10-05 20:03:47 +00:00
dyoung
e30873664a
Improve readability of trap() by extracting two subroutines,
...
trap_print() and check_dr0().
2009-10-05 19:04:14 +00:00
christos
14c3063365
add the error from ifpromisc to the panic.
2009-10-05 17:58:15 +00:00
haad
ded7269130
Disable *at functions for now. These functions should be implemented
...
because they are part of POSIX standard but it seems to be a long time process.
XXX. This commit should be reverted after adding support for openat and fstatat.
2009-10-05 16:25:27 +00:00