Gleb Smirnoff
0f4a3524dd
When used as divert socket we need to decouple stack when node is entered
...
from socket side. Use ng_queue_fn() instead of ng_send_fn().
2005-05-13 11:40:08 +00:00
Gleb Smirnoff
aacdb11479
Since there is no way to queue a function call to node, create
...
ng_queue_fn() - a queue version of ng_send_fn().
2005-05-13 11:35:02 +00:00
Peter Edwards
34ddec12b1
lockmgr(...,LK_DRAIN,...) requires a balancing LK_RELEASE: recent
...
INVARIANTS dependent checks in userret() pinpointed a missing
invocation here.
Remove an unused variable while here.
Reviewed By: bp@
Reported By: yongari@
MFC After: 3 days
2005-05-13 11:27:48 +00:00
Søren Schmidt
265da99ce9
Cleanup comments
2005-05-13 10:25:19 +00:00
Hartmut Brandt
3814743160
Move the Boolean and ReturnStatus stuff from sprite.h to util.h and
...
get rid of sprite.h.
Obtained from: DragonFlyBSD
2005-05-13 08:53:00 +00:00
Søren Schmidt
bb8a0cf2cf
Fix more ATAPI breakage.
...
Apparently some devices are very picky on details :)
2005-05-13 07:58:05 +00:00
Hartmut Brandt
5a7a21e591
Make Shell_Init() static - it's only used here.
...
Make sure we don't end up with shellPath beeing non-zero, but shellName
beeing zero in the error case - back out cleanly from the error.
When executing a command for macro assignment in Cmd_Exec() stuff the
path of the shell into argv[0], not the name. This makes no difference
from the functionality point of view, but allows the regression tests to
determine whether make executes the correct shell.
2005-05-13 06:31:45 +00:00
Joe Marcus Clarke
0749600611
Add libdata/pkgconfig. It is used under ${LOCALBASE} as much (if not more)
...
than under ${X11BASE}.
Discussed with: portmgr
MFC after: 1 day
2005-05-13 04:06:04 +00:00
Jacques Vidrine
032e56ae9b
Default hyperthreading on in -CURRENT. No seatbelts in CURRENT (^_^)
...
Requested by: peter, jhb
2005-05-13 00:57:04 +00:00
Jacques Vidrine
f6108b6158
Add a knob for disabling/enabling HTT, "machdep.hyperthreading_allowed".
...
Default off due to information disclosure on multi-user systems.
Submitted by: cperciva
Reviewed by: jhb
2005-05-13 00:10:56 +00:00
Nate Lawson
a6761eb377
If there is a problem during probe, be sure to free up any resources
...
allocated for it. The normal exit case handles this correctly so we
use it as well for errors.
Submitted by: pjd
Obtained from: Coverity Prevent
2005-05-12 22:35:08 +00:00
Robert Watson
83ae2ce161
Remove unimplemented ACL types.
...
Reported by: Hervé Kergourlay <herve dot kergourlay at atempo dot com>
2005-05-12 22:01:18 +00:00
John Baldwin
a4c24c66bc
Actually use the iterating variable in the for loop when trying to avoid
...
overflow.
Reported by: Vladislav Shabanov vs at rambler-co dot ru
MFC after: 1 week
Glanced at: alfred
2005-05-12 20:04:48 +00:00
Juli Mallett
36f45138fb
Add a flag (-q) which prints no header for the file and which doesn't indent the
...
match text; it also doesn't warn() for files which can't be opened. Remove
global variables. Use bool. fopen(3) the files instead of freopen(3)ing stdin.
2005-05-12 18:57:37 +00:00
Juli Mallett
3b7d275a3d
Include <err.h>. On my system CVS Make(1) has an implicit declaration of
...
warnc(3) without it.
2005-05-12 16:40:16 +00:00
Christian Brueffer
355ff30c95
Wordsmithing.
...
PR: 80133
Submitted by: Zheyu Shen <free.bsd@gmx.net>
MFC after: 3 days
2005-05-12 16:18:58 +00:00
Hartmut Brandt
fda7e43bda
Still too early to bump WARNS - there are still warnings on 64bit
...
architectures.
2005-05-12 15:58:25 +00:00
Hartmut Brandt
2c050ec33f
Make sure machine is initialize before use. Also make two pointers const
...
to get rid of the last two const warnings.
2005-05-12 15:54:52 +00:00
Hartmut Brandt
fac1e7a589
Get rid of the warning about vfork() clobbering variables.
...
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.246)
2005-05-12 15:54:17 +00:00
Hartmut Brandt
616b319ded
Do mktemp() by hand to get rid of the mktemp() warning and the
...
possible associated security hole.
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.245)
2005-05-12 15:45:14 +00:00
Hartmut Brandt
6bf2b616ac
Use a variable initialized to a string instead of the string directly
...
to get rid of a const warning.
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.244)
2005-05-12 15:41:02 +00:00
Hartmut Brandt
375209dd24
Move code in CondToken() and get rid of a goto.
...
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.243)
2005-05-12 15:38:11 +00:00
Hartmut Brandt
8de86ef91d
Remove a useless else and un-indent the following code.
2005-05-12 15:35:33 +00:00
Hartmut Brandt
a604bcc55d
Revert the previous accidential commit.
2005-05-12 15:20:50 +00:00
Hartmut Brandt
46180c9f74
Cleanup SuffFindArchDeps() to get rid of two const-warnings.
...
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.240)
2005-05-12 15:20:03 +00:00
Hartmut Brandt
7ea02fbf54
The first element of the vector built by brk_string() is never
...
used so there is no need to stuff the value of .MAKE into it,
which btw isn't set for quite a while already.
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.239)
2005-05-12 15:10:45 +00:00
Hartmut Brandt
059649b9ce
Cleanup. Move initialisation of file and program global variables
...
to top of main() and sort them. Make chdir_verify_path() static - it
is used only here.
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.238)
2005-05-12 15:04:14 +00:00
Hartmut Brandt
1185781977
Replace a lot of Var_Set(..., VAR_GLOBAL) by Var_SetGlobal().
...
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.237)
2005-05-12 14:47:22 +00:00
Hartmut Brandt
7007abaf14
Cleanup main(). Move catching SIGCHLD into job.c. Move unsetenv("ENV")
...
into job.c. Move retrieving of environment nearer to the place where it
is actually used and invert the preprocessor conditionals to use
positive logic.
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.236)
2005-05-12 14:43:32 +00:00
Hartmut Brandt
54a923046f
Reshuffle functions to get rid of prototypes.
...
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.235)
2005-05-12 14:35:01 +00:00
Hartmut Brandt
3db87a68e0
Compat_RunCommand is used only in job.c so make it static there.
...
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.234)
2005-05-12 14:33:24 +00:00
Hartmut Brandt
7594df85cf
Move variable printing from main.c to var.c
...
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.233)
2005-05-12 14:31:42 +00:00
Hartmut Brandt
8b8eb9e2ab
Fix the fix for bin/72510 applied in job.c:1.70. Actually there have
...
been two maxJobs variables: one static in job.c and one global used in
main.c and parse.c. Makeing one global out of these was the wrong way
to fix the problem. Instead rename the global one to jobLimit and keep
maxJobs static in job.c.
Suggested by: rwatson
PR: bin/72510
2005-05-12 14:16:44 +00:00
Gleb Smirnoff
35fd572dcb
- Gather statistics about failed mbuf+cluster+ng_item allocations.
...
- Adjust comments and variables names in nfinfo.
2005-05-12 13:52:49 +00:00
Yoshihiro Takahashi
77bcc9ce35
Move the pc98 keymap define into pckbdtables.h because it should be used
...
only on the pckbd driver.
2005-05-12 13:39:31 +00:00
Yoshihiro Takahashi
164e09ddb4
- Move the NPX_DEBUG option to options.{i386,pc98} and use opt_npx.h.
...
- Move npx related defines to {i386,pc98}/include/npx.h to remove #include
{isa,cbus}.h.
2005-05-12 12:47:41 +00:00
Yoshihiro Takahashi
d6c331a30d
Remove unused IO_NPX* defines.
2005-05-12 12:36:31 +00:00
Hartmut Brandt
0ec9b6feef
Move some global variables to the correct files.
...
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.232)
2005-05-12 11:58:39 +00:00
Hartmut Brandt
e30f38a08e
Untwist the convoluted if() expressions in JobFinish(). They
...
could benefit from even more untwisting.
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.23[01])
2005-05-12 11:47:17 +00:00
Hartmut Brandt
d8549718a9
Move some comments around to where they belong and remove some unneccessary
...
gcc magic.
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.229)
2005-05-12 11:16:04 +00:00
Hartmut Brandt
f7a01b8dcc
Convert Compat_RunCommand() to use ProcWait(). This also gives Cmd_Exec()
...
the potential to handle interrupts which it doesn't currently.
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.228)
2005-05-12 11:09:45 +00:00
Hartmut Brandt
32b5d9451b
Make a function ProcWait() that waits for the given process.
...
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.227)
2005-05-12 10:55:37 +00:00
Hartmut Brandt
4eb51779c8
Overhaul the fork(), exec() code. Put all the common handling that
...
takes place in the child process in a function ProcExec(). Make sure,
that the child does not call malloc() or other potential dangerous
functions (there are still calls to Punt() in the error case that
should go away). Allocate the argv string via malloc to overcome
the non-constness bug of the execvp prototype. Change the handling of
shell meta-characters and move the builtin list near the list of shell
builtins. Both of these lists should actuall be configurable by the .SHELL
target since they depend on the shell used.
Patch: 7.21[2-9], 7.22[0-46]
Submitted by: Max Okumoto <okumoto@ucsd.edu>
2005-05-12 10:40:57 +00:00
Peter Grehan
10b00dd4f3
The final test in unlock_and_deallocate() to determine if GIANT needs to be
...
unlocked wasn't updated to check for OBJ_NEEDGIANT. This caused a WITNESS
panic when debug_mpsafevm was set to 0.
Approved by: jeffr
2005-05-12 04:09:41 +00:00
Pawel Jakub Dawidek
07ebf8c8c3
We don't use 'mp' variable, but we do want to mount devfs, ehh.
2005-05-12 01:49:51 +00:00
Paul Saab
0077b0163f
When looking for the next hole to retransmit from the scoreboard,
...
or to compute the total retransmitted bytes in this sack recovery
episode, the scoreboard is traversed. While in sack recovery, this
traversal occurs on every call to tcp_output(), every dupack and
every partial ack. The scoreboard could potentially get quite large,
making this traversal expensive.
This change optimizes this by storing hints (for the next hole to
retransmit and the total retransmitted bytes in this sack recovery
episode) reducing the complexity to find these values from O(n) to
constant time.
The debug code that sanity checks the hints against the computed
value will be removed eventually.
Submitted by: Mohan Srinivasan, Noritoshi Demizu, Raja Mukerji.
2005-05-11 21:37:42 +00:00
Olivier Houchard
e85d3fc3c8
Don't forget to copy the TP when forking, or bad things will happen to the
...
child process if it tries to use threads.
2005-05-11 21:20:42 +00:00
Christian Brueffer
befb7f333f
Fix three typos in comments. Two of them obtained from OpenBSD.
...
MFC after: 3 days
2005-05-11 21:10:35 +00:00
Pawel Jakub Dawidek
b8bc5373e1
Remove unised variable introduced by accident in rev 1.168.
...
Found by: Coverity Prevent analysis tool
2005-05-11 19:50:34 +00:00
Pawel Jakub Dawidek
3ac6c13bd4
cp can't be NULL.
...
Noticed by: Coverity Prevent analysis tool
2005-05-11 19:36:56 +00:00