Tim J. Robbins
52e523ead7
Remove mb-caching hack.
...
Obtained from: Fedora (Tim Waugh)
2005-05-14 03:02:22 +00:00
Peter Grehan
edaccfc8bb
Remove incorrect configuration setting that limited the Kauai ATA controller
...
to be master-only. The slave ATAPI drive on the Mac-Mini is now recognised.
2005-05-14 02:11:45 +00:00
Stefan Farfeleder
c29f424e01
The header glue.h should provide just a declaration for the variable
...
__sglue, not a definition.
PR: 80378
Submitted by: John Engelhart <johne@zang.com>
MFC after: 1 week
2005-05-13 21:12:34 +00:00
Hajimu UMEMOTO
d928d41c84
NI_WITHSCOPEID cleanup
...
Reviewed by: des
2005-05-13 20:51:09 +00:00
Ruslan Ermilov
de6a1361a5
Fix the "only wrote -1 of 32768 bytes: Input/output error" error message.
2005-05-13 20:06:44 +00:00
Paul Saab
fdace17f81
Fix for a bug where the "nexthole" sack hint is out of sync with the
...
real next hole to retransmit from the scoreboard, caused by a bug
which did not update the "nexthole" hint in one case in
tcp_sack_option().
Reported by: Daniel Eriksson
Submitted by: Mohan Srinivasan
2005-05-13 18:02:02 +00:00
Hajimu UMEMOTO
946e41f142
raise readability bit.
2005-05-13 17:56:53 +00:00
Xin LI
9242b38b0d
Bump __FreeBSD_version for POSIX ttyname_r(3) changes.
...
Forgotten by: me
Reminded by: mezz
2005-05-13 17:31:32 +00:00
Hajimu UMEMOTO
f8997ca2f4
free ypbuf only when yp_match() succeed.
2005-05-13 17:30:03 +00:00
Hajimu UMEMOTO
9ccf2f38c1
NI_WITHSCOPEID cleanup
...
Reviewed by: gad
2005-05-13 16:43:28 +00:00
Hajimu UMEMOTO
4f10131848
NI_WITHSCOPEID cleanup. Neither RFC 2553 nor RFC 3493 defines
...
NI_WITHSCOPEID, and our getaddrinfo(3) does nothing special
for it, now.
2005-05-13 16:31:11 +00:00
Xin LI
8dcb56dc78
Provide more POSIX-complaint ttyname_r(3) interface[1], which is slightly
...
different from what has been offered in libc_r (the one spotted in the
original PR which is found in libthr has already been removed by David's
commit, which is rev. 1.44 of lib/libthr/thread/thr_private.h):
- Use POSIX standard prototype for ttyname_r, which is,
int ttyname_r(int, char *, size_t);
Instead of:
char *ttyname_r(int, char *, size_t);
This is to conform IEEE Std 1003.1, 2004 Edition [1].
- Since we need to use standard errno for return code, include
errno.h in ttyname.c
- Update ttyname(3) implementation according to reflect the API
change.
- Document new ttyname_r(3) behavior
- Since we already make use of a thread local storage for
ttyname(3), remove the BUGS section.
- Remove conflicting ttyname_r related declarations found in libc_r.
Hopefully this change should not have changed the API/ABI, as the ttyname_r
symbol was never introduced before the last unistd.h change which happens a
couple of days before.
[1] http://www.opengroup.org/onlinepubs/009695399/functions/ttyname.html
Requested by: Tom McLaughlin <tmclaugh sdf lonestar org>
Through PR: threads/76938
Patched by: Craig Rodrigues <rodrigc crodrigues org> (with minor changes)
Prompted by: mezz@
2005-05-13 16:27:30 +00:00
Poul-Henning Kamp
e1f74f27c1
Remove duplicate and attribute Weinbergs second law to the right weinberg.
2005-05-13 15:51:56 +00:00
Hartmut Brandt
80f4b4290c
Use the print_flags function to print the OP_ flags of a target.
...
Give the function one more argument to decide whether it should
print the flags like a C-expression or just space-delimited.
2005-05-13 13:47:41 +00:00
Gleb Smirnoff
b3cf6808ce
In div_output() explicitly set m->m_nextpkt to NULL. If divert socket
...
is not userland, but ng_ksocket, then m->m_nextpkt may be non-NULL. In
this case we would panic in sbappend.
2005-05-13 11:44:37 +00:00
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