mike [Sat, 1 Jun 2002 18:37:46 +0000 (18:37 +0000)]
Add POSIX.1-2001 WCONTINUED option for waitpid(2). A proc flag
(P_CONTINUED) is set when a stopped process receives a SIGCONT and
cleared after it has notified a parent process that has requested
notification via waitpid(2) with WCONTINUED specified in its options
operand. The status value can be checked with the new WIFCONTINUED()
macro.
bde [Sat, 1 Jun 2002 17:39:46 +0000 (17:39 +0000)]
Fixed the return value of fpsetmask(). The API requires inversion of the
mask on both input and output to fpsetmask(), but this was only done for
input, so fpsetmask() returned the complement of the old mask (ANDed with
the mask bitfield).
alc [Sat, 1 Jun 2002 16:59:30 +0000 (16:59 +0000)]
o Revert a part of revision 1.66, contrary to what that commit message says,
deinlining vm_map_entry_behavior() and vm_map_entry_set_behavior()
actually increases the kernel's size.
o Make vm_map_entry_set_behavior() static and add a comment describing
its purpose.
o Remove an unnecessary initialization statement from vm_map_entry_splay().
green [Sat, 1 Jun 2002 13:25:47 +0000 (13:25 +0000)]
Fix a bug in sed(1)'s "s" command wherein if an escape ("\" character)
was initiated at the last character of the line buffer, the Wrong
Thing was done and sed barfed by interpreting the following NUL byte
as a digit. Instead, pull up the next buffer and record that the "\"
was last seen.
Quick, low impact band-aide to unbreak the build. Added && 0 so we
ifdef out what appears to be a bogus call to softintr using data
elements that aren't in the softc.
alfred [Sat, 1 Jun 2002 07:18:32 +0000 (07:18 +0000)]
Should have been part of recent commit:
Fix GCC warnings caused by initializing a zero length array. In the process,
simply things a bit by getting rid of 'struct ng_parse_struct_info' which
was useless because it only contained one field.
But now I'm unbreaking compilation by adjusting these files to the recent
netgraph change.
imp [Sat, 1 Jun 2002 05:14:11 +0000 (05:14 +0000)]
Use a common function to map the bogus intlines.
Don't require pin be non-zero before we map bogus intlines, always do it.
This fixes a number of problems on HP Omnibook computers.
archie [Fri, 31 May 2002 23:48:03 +0000 (23:48 +0000)]
Fix GCC warnings caused by initializing a zero length array. In the process,
simply things a bit by getting rid of 'struct ng_parse_struct_info' which
was useless because it only contained one field.
imp [Fri, 31 May 2002 23:39:04 +0000 (23:39 +0000)]
Quick, low impact band-aide to unbreak the build. Added && 0 so we
ifdef out what appears to be a bogus call to softintr using data
elements that aren't in the softc.
archie [Fri, 31 May 2002 22:09:57 +0000 (22:09 +0000)]
Fix a bug in m_split(): the "m->m_ext.ext_size" field of an mbuf was being
set to zero. This field indicates the total space in the external buffer
and therefore should not be modified after the external buffer is added.
Add a comment warning that the mbufs returned by m_split() might be read-only.
Fix M_TRAILINGSPACE() to return zero if !M_WRITABLE(m).
bmah [Fri, 31 May 2002 15:45:48 +0000 (15:45 +0000)]
pkg_version was incorrectly claiming that 1.5 == 1.5.0.1, because
we weren't properly checking for the case that the two version strings
being compared had different numbers of components. This has been
fixed.
Pointed out by: sobomax
Reviewed by: silence on -ports
jhb [Fri, 31 May 2002 13:39:55 +0000 (13:39 +0000)]
If 'netInteractive' is set to true in an installation script, then
temporarily turn off the nonInteractive variable around the DHCP and IPv6
Yes/No questions in a network device setup so that those questions are
asked.
tjr [Fri, 31 May 2002 13:07:05 +0000 (13:07 +0000)]
Break the code to display status info for one job out from showjobs() into
showjob(), use it inside dowait() to display status info for consistency,
and in a format closer to what the standard requires.
tjr [Fri, 31 May 2002 12:31:23 +0000 (12:31 +0000)]
Instead of keeping just the jobid of the most recently bg'd or fg'd job,
keep a linked list of the jobs, most recently used first. This is required
to support the idea of `previous job', and to allow the jobs fg and bg
default to be correct according to POSIX.
robert [Fri, 31 May 2002 09:41:09 +0000 (09:41 +0000)]
- Replace the bandaid introduced in revision 1.110 with
a better solution.
- Add braces for a ``for'' statement containing a single
multi-line statement.
silby [Fri, 31 May 2002 04:27:51 +0000 (04:27 +0000)]
Ensure that packet counts are always reset to 0 when
a route is cloned. Previously, they took on the count
of their parent route (which was sometimes nonzero.)
Submitted by: Andre Oppermann <oppermann@pipeline.ch>
MFC after: 5 days
alc [Fri, 31 May 2002 03:48:55 +0000 (03:48 +0000)]
Further work on pushing Giant out of the vm_map layer and down
into the vm_object layer:
o Acquire and release Giant in vm_object_shadow() and
vm_object_page_remove().
o Remove the GIANT_REQUIRED assertion preceding vm_map_delete()'s call
to vm_object_page_remove().
o Remove the acquisition and release of Giant around vm_map_lookup()'s
call to vm_object_shadow().
marcel [Fri, 31 May 2002 01:07:13 +0000 (01:07 +0000)]
Don't use an incomplete array type to mark the start of the padding
because the padding should be inserted before the array and not after
it, as is done by GCC 3.1. Instead use an explicit uint32_t field
to get what was intended and on top of that make the size of the
padding explicit. This also doesn't depend on a C99 feature.
While here, expand the comment. Just to make a point.
semenu [Thu, 30 May 2002 22:04:17 +0000 (22:04 +0000)]
Remove lock from ffs_vget introduced by v1.24. Instead of locking the
vnode creation globaly, we allow processes to create vnodes concurently.
In case of concurent creation of vnode for the one ino, we allow processes
to race and then check who wins.
Assuming that concurent creation of vnode for same ino is really rare case,
this is belived to be an improvement, as it just allows concurent creation
of vnodes.
Idea by: bp
Reviewed by: dillon
MFC after: 1 month
schweikh [Thu, 30 May 2002 20:48:13 +0000 (20:48 +0000)]
Do not use man entities for items that have been removed, because they
create a link to man.cgi with a manpath for 5-current. Following this
link gives a "Sorry, no data found for `labpc(4)'". Instead, simply
write labpc(4) without any markup (for which pkg_update(1) is prior art)
Remove some whitespace at EOL while I'm here.
peter [Thu, 30 May 2002 19:46:34 +0000 (19:46 +0000)]
Ignore a c++ that is version other than 3.1 if it does not also match
cc's version. libgcc.a will have been clobbered and will no longer have
the old c++ support.
jmallett [Thu, 30 May 2002 19:34:31 +0000 (19:34 +0000)]
Restructure sanity checks so that -I and -J just override eachother, rather
than triggering a usage(). Allow -R and -I to be specified in any order, and
thus change how -R checks for -I not being given and triggering a usage().