christos
10aa8c24e9
only for when trap if we are going to exit.
2009-10-07 18:12:11 +00:00
sjg
baca35f4e0
The parser used to break dependency lines at ';' without regard
...
for substitution patterns. This (perhaps coupled with the
new handling of .for variables in ${:U<value>...) caused interesting
results for lines like:
.for file in ${LIST}
for-subst: ${file:S;^;${here}/;g}
add a unit-test to keep an eye on this.
2009-10-07 16:40:30 +00:00
agc
7affbacab9
More checking of allocation return values where not already done.
...
Revamp hash initialisation to return a success/failure error code.
Document places where we prefer to continue with a NULL buffer,
rather than silently continue with possibly erroneous results.
2009-10-07 16:19:51 +00:00
joerg
a8429a111e
pkg_install-20091006:
...
- restore pkg_add -f functionality for missing dependencies (PR 42001)
- pkg_admin rebuild should count packages correctly (he@), also count @pkgdir
- fix gpg-sign-package syntax in pkg_admin(1)
- change default URL for pkg-vulnerabilities to use HTTP
2009-10-07 13:19:36 +00:00
pooka
366ae82927
Use uvm_readahead.c instead of null stubs.
2009-10-07 10:23:50 +00:00
pooka
2038fbfec8
use vref() for increasing reference count instead of homegrown brilliance
2009-10-07 09:55:35 +00:00
pooka
3398bac8f2
g/c some prehistoric interfaces which have been superceded by others.
2009-10-07 09:50:43 +00:00
pooka
9759195360
* set winsize to memwinsize in initial getwindow(). makes no functional
...
difference, but looks less like a debug hack leftover.
* explain memory windows vs. directio a little better in comment
2009-10-07 09:42:14 +00:00
pooka
a8268fa583
space -> tab in one entry for consistency
2009-10-07 09:24:27 +00:00
pooka
788da19b0b
do initial window allocation test at proper offsets
2009-10-07 09:23:03 +00:00
pooka
61d1563c1b
Allow to set size and host file offset for etfs files and rumpblk.
2009-10-07 09:17:54 +00:00
cegger
c11a222581
man(1): display manpage when specified with a path
2009-10-07 08:47:47 +00:00
haad
275f2eee59
Use ptob function from zfs and not NetBSD one.
2009-10-07 08:47:12 +00:00
cegger
656e85b2f1
Mimic OSX behaviour:
...
On OS X it is possible to specify the manpage filename
with a full or relative path like this:
man ./foo.5
or
man /cd/foo/bar.1.gz
This is really helpful to view the manpage quickly while editing it.
patch presented on current-users@ and tech-userlevel@:
http://mail-index.netbsd.org/current-users/2009/10/06/msg010767.html
http://mail-index.netbsd.org/tech-userlevel/2009/10/06/msg002675.html
No objections
2009-10-07 08:30:31 +00:00
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