Darren Reed
05793fcbf0
Enable IPFilter to correctly determine if BPF has been optioned into the
...
kernel it is being compiled against and subsequently enable using BPF for
packet matching in ipf rules.
2005-05-15 03:34:17 +00:00
George V. Neville-Neil
403cbcf59f
Fixes for various nits found by the Coverity tool.
...
In particular 2 missed return values and an inappropriate bcopy from
a possibly NULL pointer.
Reviewed by: jake
Approved by: rwatson
MFC after: 1 week
2005-05-15 02:28:30 +00:00
Gleb Smirnoff
1771f872d5
- Document net.inet.carp.suppress_preempt MIB.
...
- Xref pfsync(4)
2005-05-15 01:58:32 +00:00
Gleb Smirnoff
32247f8629
- When carp interface is destroyed, and it affects global preemption
...
suppresion counter, decrease the latter. [1]
- Add sysctl to monitor preemption suppression.
PR: kern/80972 [1]
Submitted by: Frank Volf [1]
MFC after: 1 week
2005-05-15 01:44:26 +00:00
Marcel Moolenaar
ac97b33fc7
Reindent and improve style(9) comformance.
2005-05-15 01:07:36 +00:00
Dima Dorfman
7e81a15205
Add an interface to the lchflags(2) syscall. The new -h option is
...
analogous to chmod(1)'s -h. It allows setting flags on symbolic links,
which *do* exist in 5.x+ despite a claim to the contrary in the
chflags(1) man page.
Suggested by: Chris Dillon
2005-05-14 23:23:10 +00:00
George V. Neville-Neil
fd57e549e0
Submitted by: Jinmei Tatuya, Hajimu Umemoto
...
Reviewed by: rwatson at freebsd dot org
Approved by: rwatson at freebsd dot org
MFC after: 1 week
Fix the matchlen() function so that it handles the IPv4 (AF_INET)
case correctly. Until now it has been treating IPv4 addresses
as if they were IPv6 which could lead to corruption errors.
2005-05-14 19:43:10 +00:00
Pawel Jakub Dawidek
870739f5e6
Remove symblic link kernel->dev/null creation. We don't need it in 5.x/6.x
...
world (there is no /kernel file anymore).
Reminded by: Isaac Levy presentation
2005-05-14 18:54:58 +00:00
Xin LI
68b749ff2f
Revert to old ttyname_r behavior that when _ioctl() returns 0 (SUCCEEDED),
...
return the buffer immediately. This will permit ssh and/or PAM logins
broken by previous commit.
The (potential) underlying problem is still under investigation.
Point hat to: me
2005-05-14 14:03:21 +00:00
Yoshihiro Takahashi
914ee8ba4b
Fix my copyright.
2005-05-14 10:51:16 +00:00
Yoshihiro Takahashi
dfe1941a9c
cosmetic change.
2005-05-14 10:26:31 +00:00
Yoshihiro Takahashi
b22bf66063
- Move bus dependent defines to {isa,cbus}_dmareg.h.
...
- Use isa/isareg.h rather than <arch>/isa/isa.h.
Tested on: i386, pc98
2005-05-14 10:14:56 +00:00
Gleb Smirnoff
8253c060cf
Move queue element routines upper, so that all related
...
declarations are in one place, to improve readability.
No functional changes.
2005-05-14 10:07:17 +00:00
Gleb Smirnoff
1489164f6b
Use uma(9) for allocating netgraph items:
...
- ng_getqblk() simply runs uma_zalloc().
- ng_free_item() simply frees.
- ngq_mtx is pushed down under NETGRAPH_DEBUG.
- NGQF_FREE is removed.
Increase default maxalloc to 512.
Reviewed by: julian
2005-05-14 09:25:18 +00:00
Yoshihiro Takahashi
24072ca35b
- Move timerreg.h to <arch>/include and split i8253 specific defines into
...
i8253reg.h, and add some defines to control a speaker.
- Move PPI related defines from i386/isa/spkr.c into ppireg.h and use them.
- Move IO_{PPI,TIMER} defines into ppireg.h and timerreg.h respectively.
- Use isa/isareg.h rather than <arch>/isa/isa.h.
Tested on: i386, pc98
2005-05-14 09:10:02 +00:00
Yoshihiro Takahashi
bc3729b63f
MFi386: revision 1.614.
2005-05-14 08:52:04 +00:00
Tim J. Robbins
2d97dca698
Add a note explaining what local modifications have been made to GNU grep,
...
and giving advice on importing future releases.
2005-05-14 06:33:23 +00:00
Tim J. Robbins
9473343264
Fixed -w handling for EGexecute.
...
Obtained from: Fedora (Tim Waugh)
2005-05-14 06:13:23 +00:00
Tim J. Robbins
4475bed3d2
Automatically disable DFA when processing multibyte input. GREP_USE_DFA
...
environment variable overrides.
Obtained from: Fedora (Tim Waugh)
2005-05-14 06:12:03 +00:00
Tim J. Robbins
aed59eaecf
Better multibyte handling in EGexecute() and Fexecute(). Fixed -Fi for
...
multibyte input (RH bug #143079 ).
Obtained from: Fedora (Jakub Jelinek, Tim Waugh)
2005-05-14 06:09:12 +00:00
Tim J. Robbins
712fe40aed
Removed redundant (and incorrect) code in prline. Fixes grep -i --color "",
...
among other things.
PR: 79063
Obtained from: Fedora (Tim Waugh)
2005-05-14 05:35:04 +00:00
Tim J. Robbins
833d4d167b
Fix background colour problems with --color output (RH bug #138913 ).
...
Obtained from: Karsten Hopp via Fedora
2005-05-14 05:26:48 +00:00
Alan Cox
7daa3570e4
Revert revision 1.164: pmap_qremove() does not require protection by
...
VM_LOCK_GIANT.
Discussed with: jeff
2005-05-14 05:09:11 +00:00
Tim J. Robbins
1bd8c187c0
Fixed a bug in the fgrep patch, exposed by the dfa-optional patch
...
(RH bug #138558 ). Removed bogus part of grep-2.5.1-fgrep patch.
Obtained from: Fedora (Jakub Jelinek, Tim Waugh)
2005-05-14 04:17:07 +00:00
Tim J. Robbins
e20df16c79
Fix dfa multibyte character class matching when -i is used (RH bug #123363 ).
...
Obtained from: Fedora (Tim Waugh)
2005-05-14 03:18:20 +00:00
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