]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
19 years agoIgnore sigpipe so we can properly detach clients to the pipe.
imp [Mon, 16 May 2005 20:51:46 +0000 (20:51 +0000)]
Ignore sigpipe so we can properly detach clients to the pipe.

Submitted by: Fredrik Lindberg

19 years agoUse NG_QUEUE instead of constant.
glebius [Mon, 16 May 2005 19:52:42 +0000 (19:52 +0000)]
Use NG_QUEUE instead of constant.

19 years agoIntroduce routines to alloc/free sack holes. This cleans up the code
ps [Mon, 16 May 2005 19:26:46 +0000 (19:26 +0000)]
Introduce routines to alloc/free sack holes. This cleans up the code
considerably.

Submitted by:   Noritoshi Demizu.
Reviewed by:    Raja Mukerji, Mohan Srinivasan.

19 years agoUpdate for the 2005/04/24 import.
ru [Mon, 16 May 2005 19:19:32 +0000 (19:19 +0000)]
Update for the 2005/04/24 import.

19 years agoRefactor places where ng_package_data() failed.
glebius [Mon, 16 May 2005 19:12:57 +0000 (19:12 +0000)]
Refactor places where ng_package_data() failed.

Suggested & reviewed by: archie

19 years agoThis commit was generated by cvs2svn to compensate for changes in r146299,
ru [Mon, 16 May 2005 19:11:36 +0000 (19:11 +0000)]
This commit was generated by cvs2svn to compensate for changes in r146299,
which included commits to RCS files with non-trunk default branches.

19 years agoVendor import of bwk's 24-Apr-2005 release.
ru [Mon, 16 May 2005 19:11:36 +0000 (19:11 +0000)]
Vendor import of bwk's 24-Apr-2005 release.

19 years agoUpdate to match the 1.0.3 import.
obrien [Mon, 16 May 2005 18:56:30 +0000 (18:56 +0000)]
Update to match the 1.0.3 import.

19 years ago- Fix build with TRACE_MESSAGES on.
glebius [Mon, 16 May 2005 18:50:26 +0000 (18:50 +0000)]
- Fix build with TRACE_MESSAGES on.
- Reformat code under TRACE_MESSAGES to make it more readable.
- Move linker hackery out of #ifdef.
- Break long lines in linker hackery block.

19 years agoThis commit was generated by cvs2svn to compensate for changes in r146293,
obrien [Mon, 16 May 2005 18:31:55 +0000 (18:31 +0000)]
This commit was generated by cvs2svn to compensate for changes in r146293,
which included commits to RCS files with non-trunk default branches.

19 years agoVirgin import (trimmed) of Bzip2 version 1.0.3.
obrien [Mon, 16 May 2005 18:31:55 +0000 (18:31 +0000)]
Virgin import (trimmed) of Bzip2 version 1.0.3.

19 years agoHardcode username to 8 characters. This makes top(1) output sane when
obrien [Mon, 16 May 2005 18:17:38 +0000 (18:17 +0000)]
Hardcode username to 8 characters.  This makes top(1) output sane when
there are users on the system (even if not running a single process)
with a login > 8 chars.
I'm not all that happy limiting the username width like this, but it
restores sanity to top(1) output.

Discussed with: keramida

19 years agoClose race between node being shutdown and socket being detached. To
glebius [Mon, 16 May 2005 17:25:49 +0000 (17:25 +0000)]
Close race between node being shutdown and socket being detached. To
do this, obtain netgraph locking in detach method via ng_send_fn1().

Reviewed by: julian
MFC after: 2 weeks

19 years agoDont clear all flags in vkbd_clear_state_locked(). Clear only COMPOSE flag.
emax [Mon, 16 May 2005 17:21:10 +0000 (17:21 +0000)]
Dont clear all flags in vkbd_clear_state_locked(). Clear only COMPOSE flag.

MFC after: 3 days

19 years agoEnable lukemftpd for 6.0-RELEASE.
obrien [Mon, 16 May 2005 17:12:23 +0000 (17:12 +0000)]
Enable lukemftpd for 6.0-RELEASE.

19 years agoCatch up with new ng_package_data().
glebius [Mon, 16 May 2005 17:10:08 +0000 (17:10 +0000)]
Catch up with new ng_package_data().

19 years agoCatch up with new ng_package_data(). Use NG_WAITOK on userland
glebius [Mon, 16 May 2005 17:09:35 +0000 (17:09 +0000)]
Catch up with new ng_package_data(). Use NG_WAITOK on userland
path.

19 years ago- Catch up with new interface to ng_package_data().
glebius [Mon, 16 May 2005 17:08:53 +0000 (17:08 +0000)]
- Catch up with new interface to ng_package_data().
- Handle errors from ng_package_data().

19 years agoCatch up with new ng_send_fn1() interface.
glebius [Mon, 16 May 2005 17:07:39 +0000 (17:07 +0000)]
Catch up with new ng_send_fn1() interface.

19 years ago- Extend interface of ng_getqblk(), so that malloc wait flags are
glebius [Mon, 16 May 2005 17:07:03 +0000 (17:07 +0000)]
- Extend interface of ng_getqblk(), so that malloc wait flags are
  specified by caller.
- Change ng_send_item() interface - use 'flags' argument instead of
  boolean 'queue'.
- Extend ng_send_fn(), ng_package_data() and ng_package_msg()
  interface - add possibility to pass flags. Rename ng_send_fn() to
  ng_send_fn1(). Create macro for ng_send_fn().
- Update all macros, that use ng_package_data() and ng_package_msg().

Reviewed by: julian

19 years agoCorrect type for workitem routines.
wpaul [Mon, 16 May 2005 16:50:52 +0000 (16:50 +0000)]
Correct type for workitem routines.

19 years agoEnable building /sbin/ipf (but not the rescue version) with the ability to
darrenr [Mon, 16 May 2005 16:22:55 +0000 (16:22 +0000)]
Enable building /sbin/ipf (but not the rescue version) with the ability to
parse bpf strings for filter rules in ipf.conf

19 years agoRemove harmless bit of leftover debug code.
wpaul [Mon, 16 May 2005 15:44:41 +0000 (15:44 +0000)]
Remove harmless bit of leftover debug code.

19 years agoCorrect some problems with workitem usage. NdisScheduleWorkItem() does
wpaul [Mon, 16 May 2005 15:29:21 +0000 (15:29 +0000)]
Correct some problems with workitem usage. NdisScheduleWorkItem() does
not use exactly the same workitem sturcture as ExQueueWorkItem() like
I originally thought it did.

19 years agoFixed markup from the previous revision.
ru [Mon, 16 May 2005 15:09:13 +0000 (15:09 +0000)]
Fixed markup from the previous revision.

19 years ago longer used (contents added to sys/ata.h)
sos [Mon, 16 May 2005 13:39:49 +0000 (13:39 +0000)]
 longer used (contents added to sys/ata.h)

19 years agoReflect the new usage.
sos [Mon, 16 May 2005 13:32:23 +0000 (13:32 +0000)]
Reflect the new usage.

19 years agoChange the way ioctls are issue to ATA.
sos [Mon, 16 May 2005 13:07:27 +0000 (13:07 +0000)]
Change the way ioctls are issue to ATA.
The most prominent part is that its now possible to issue ata_requests
directly to say acd0, instead of going through the cumbersome /dev/ata
device.

19 years agoAdd the 2nd word of IA32 feature flags. This includes things such as SSE3.
obrien [Mon, 16 May 2005 09:47:53 +0000 (09:47 +0000)]
Add the 2nd word of IA32 feature flags.  This includes things such as SSE3.

Obtained from: sys/amd64/amd64/identcpu.

19 years agoMake <runefile.h> internal to libc.
ru [Mon, 16 May 2005 09:32:41 +0000 (09:32 +0000)]
Make <runefile.h> internal to libc.

Suggested by: phantom

19 years agoCorrect format is 'options<space><tab>'.
glebius [Mon, 16 May 2005 09:05:46 +0000 (09:05 +0000)]
Correct format is 'options<space><tab>'.

Submitted by: ru

19 years agoMake NETGRAPH_DEBUG a kernel option, so that it can't be turned off
glebius [Mon, 16 May 2005 08:25:55 +0000 (08:25 +0000)]
Make NETGRAPH_DEBUG a kernel option, so that it can't be turned off
without hacking source.

In collaboration with: ru, julian

19 years agoAdd convenience functions to get port and interface.
imp [Mon, 16 May 2005 06:58:43 +0000 (06:58 +0000)]
Add convenience functions to get port and interface.

19 years agocleanup a danging reference to cleaning up /etc/fstab. Since we don't
imp [Mon, 16 May 2005 05:37:32 +0000 (05:37 +0000)]
cleanup a danging reference to cleaning up /etc/fstab.  Since we don't
support 4->6 upgrades, this is moot.  Most 4.x installations even,
have things compatible with 5 at thsi point, but some don't, so I'll
leave it in the branch...

submitted by: kevlo

19 years agoA second attempt to adjust option-parsing on a shell command, for the
gad [Mon, 16 May 2005 04:32:41 +0000 (04:32 +0000)]
A second attempt to adjust option-parsing on a shell command, for the
benefit of scripts start out as:     #!/bin/sh -- # -*- perl -*-
With this fix in place, we can commit a change to kern/imgact_shell.c
so FreeBSD will process the `#!' line in shell-scripts in a more
standard fashion.

PR: 16393
Mentioned on: freebsd-arch

19 years agoAdd an #ifdef'd non-blocking version of the test.
rwatson [Mon, 16 May 2005 00:54:47 +0000 (00:54 +0000)]
Add an #ifdef'd non-blocking version of the test.

Update copyright.

19 years agoClose the connect socket as well as the listen socket on completion.
rwatson [Mon, 16 May 2005 00:53:38 +0000 (00:53 +0000)]
Close the connect socket as well as the listen socket on completion.

Update copyright.

19 years agoAdd note about required firmware to save others time and frustration with this device
imp [Sun, 15 May 2005 21:08:51 +0000 (21:08 +0000)]
Add note about required firmware to save others time and frustration with this device

19 years agoPrint a warning once when trying to bring up interface before firmware load.
imp [Sun, 15 May 2005 21:02:51 +0000 (21:02 +0000)]
Print a warning once when trying to bring up interface before firmware load.

19 years ago- The ai_addrlen of a struct addrinfo used to be a size_t, per
ume [Sun, 15 May 2005 20:15:15 +0000 (20:15 +0000)]
- The ai_addrlen of a struct addrinfo used to be a size_t, per
  RFC 2553.  In XNS5.2, and subsequently in POSIX-2001 and RFC
  3493, it was changed to a socklen_t.  And, the n_net of a
  struct netent used to be an unsigned long integer.  In XNS5,
  and subsequently in POSIX-2001, it was changed to an uint32_t.
  To accomodate for this while preserving ABI compatibility with
  the old interface, we need to prepend or append 32 bits of
  padding, depending on the (LP64) architecture's endianness.
- Correct 1st argument of getnetbyaddr() to uint32_t on 32
  bit arch.  Stay as is on 64 bit arch for ABI backward
  compatibility for now.

Reviewed by: das, peter
MFC after: 2 weeks

19 years agoUpdate ndiscvt to handle .INF files that specify multiple entries in
wpaul [Sun, 15 May 2005 19:46:14 +0000 (19:46 +0000)]
Update ndiscvt to handle .INF files that specify multiple entries in
their [Manufacturer] sections.

19 years agoUse \033 instead of \e because \e is not a standard.
nyan [Sun, 15 May 2005 09:43:14 +0000 (09:43 +0000)]
Use \033 instead of \e because \e is not a standard.

Noticed by: stefanf
Reviewed by: diff(1)

19 years agoRemove old epson note support.
nyan [Sun, 15 May 2005 09:07:42 +0000 (09:07 +0000)]
Remove old epson note support.

19 years ago- Add color tables for 16 colors mode and 8 colors mode, use a different
nyan [Sun, 15 May 2005 09:07:04 +0000 (09:07 +0000)]
- Add color tables for 16 colors mode and 8 colors mode, use a different
  table on the pc98 console.
- Remove old epson note support.

19 years ago- Mask an underline attribute on the pc98 console. It enables to use the same
nyan [Sun, 15 May 2005 08:59:00 +0000 (08:59 +0000)]
- Mask an underline attribute on the pc98 console.  It enables to use the same
  color on the pc98 and the others.
- Remove old epson note support.

19 years agoA foreground color number on pc98 console is 7 not 15.
nyan [Sun, 15 May 2005 08:04:46 +0000 (08:04 +0000)]
A foreground color number on pc98 console is 7 not 15.

19 years agoUse \e for escape char instead of ^[ directly.
nyan [Sun, 15 May 2005 07:41:38 +0000 (07:41 +0000)]
Use \e for escape char instead of ^[ directly.

19 years agoRemove the ADJUST_CLOCK ioctl on pc98. It's not used at all.
nyan [Sun, 15 May 2005 07:35:49 +0000 (07:35 +0000)]
Remove the ADJUST_CLOCK ioctl on pc98.  It's not used at all.

19 years agoo -n option added.
marcel [Sun, 15 May 2005 07:35:34 +0000 (07:35 +0000)]
o  -n option added.
o  -x option added.

19 years agoo Add option -n. The -n option takes a count and breaks the line
marcel [Sun, 15 May 2005 06:26:59 +0000 (06:26 +0000)]
o  Add option -n. The -n option takes a count and breaks the line
   after that many values have been printed. The line length is not
   considered anymore.
o  Add option -x. The -x option will cause the byte values to be
   printed in hexadecimal instead of decimal.
o  Bump WARNS to 6.
o  Update the manpage accordingly.

19 years agoAdd support for NdisMEthIndicateReceive() and MiniportTransferData().
wpaul [Sun, 15 May 2005 04:27:59 +0000 (04:27 +0000)]
Add support for NdisMEthIndicateReceive() and MiniportTransferData().
The Ralink RT2500 driver uses this API instead of NdisMIndicateReceivePacket().

Drivers use NdisMEthIndicateReceive() when they know they support
802.3 media and expect to hand their packets only protocols that want
to deal with that particular media type. With this API, the driver does
not manage its own NDIS_PACKET/NDIS_BUFFER structures. Instead, it
lets bound protocols have a peek at the data, and then they supply
an NDIS_PACKET/NDIS_BUFFER combo to the miniport driver, into which
it copies the packet data.

Drivers use NdisMIndicateReceivePacket() to allow their packets to
be read by any protocol, not just those bound to 802.3 media devices.

To make this work, we need an internal pool of NDIS_PACKETS for
receives. Currently, we check to see if the driver exports a
MiniportTransferData() method in its characteristics structure,
and only allocate the pool for drivers that have this method.

This should allow the RT2500 driver to work correctly, though I
still have to fix ndiscvt(8) to parse its .inf file properly.

Also, change kern_ndis.c:ndis_halt_nic() to reap timers before
acquiring NDIS_LOCK(), since the reaping process might entail sleeping
briefly (and we can't sleep with a lock held).

19 years agoEnable IPFilter to correctly determine if BPF has been optioned into the
darrenr [Sun, 15 May 2005 03:34:17 +0000 (03:34 +0000)]
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.

19 years agoFixes for various nits found by the Coverity tool.
gnn [Sun, 15 May 2005 02:28:30 +0000 (02:28 +0000)]
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

19 years ago- Document net.inet.carp.suppress_preempt MIB.
glebius [Sun, 15 May 2005 01:58:32 +0000 (01:58 +0000)]
- Document net.inet.carp.suppress_preempt MIB.
- Xref pfsync(4)

19 years ago- When carp interface is destroyed, and it affects global preemption
glebius [Sun, 15 May 2005 01:44:26 +0000 (01:44 +0000)]
- 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

19 years agoReindent and improve style(9) comformance.
marcel [Sun, 15 May 2005 01:07:36 +0000 (01:07 +0000)]
Reindent and improve style(9) comformance.

19 years agoAdd an interface to the lchflags(2) syscall. The new -h option is
dd [Sat, 14 May 2005 23:23:10 +0000 (23:23 +0000)]
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

19 years agoSubmitted by: Jinmei Tatuya, Hajimu Umemoto
gnn [Sat, 14 May 2005 19:43:10 +0000 (19:43 +0000)]
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.

19 years agoRemove symblic link kernel->dev/null creation. We don't need it in 5.x/6.x
pjd [Sat, 14 May 2005 18:54:58 +0000 (18:54 +0000)]
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

19 years agoRevert to old ttyname_r behavior that when _ioctl() returns 0 (SUCCEEDED),
delphij [Sat, 14 May 2005 14:03:21 +0000 (14:03 +0000)]
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

19 years agoFix my copyright.
nyan [Sat, 14 May 2005 10:51:16 +0000 (10:51 +0000)]
Fix my copyright.

19 years agocosmetic change.
nyan [Sat, 14 May 2005 10:26:31 +0000 (10:26 +0000)]
cosmetic change.

19 years ago- Move bus dependent defines to {isa,cbus}_dmareg.h.
nyan [Sat, 14 May 2005 10:14:56 +0000 (10:14 +0000)]
- Move bus dependent defines to {isa,cbus}_dmareg.h.
- Use isa/isareg.h rather than <arch>/isa/isa.h.

Tested on: i386, pc98

19 years agoMove queue element routines upper, so that all related
glebius [Sat, 14 May 2005 10:07:17 +0000 (10:07 +0000)]
Move queue element routines upper, so that all related
declarations are in one place, to improve readability.
No functional changes.

19 years agoUse uma(9) for allocating netgraph items:
glebius [Sat, 14 May 2005 09:25:18 +0000 (09:25 +0000)]
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

19 years ago- Move timerreg.h to <arch>/include and split i8253 specific defines into
nyan [Sat, 14 May 2005 09:10:02 +0000 (09:10 +0000)]
- 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

19 years agoMFi386: revision 1.614.
nyan [Sat, 14 May 2005 08:52:04 +0000 (08:52 +0000)]
MFi386: revision 1.614.

19 years agoAdd a note explaining what local modifications have been made to GNU grep,
tjr [Sat, 14 May 2005 06:33:23 +0000 (06:33 +0000)]
Add a note explaining what local modifications have been made to GNU grep,
and giving advice on importing future releases.

19 years agoFixed -w handling for EGexecute.
tjr [Sat, 14 May 2005 06:13:23 +0000 (06:13 +0000)]
Fixed -w handling for EGexecute.

Obtained from: Fedora (Tim Waugh)

19 years agoAutomatically disable DFA when processing multibyte input. GREP_USE_DFA
tjr [Sat, 14 May 2005 06:12:03 +0000 (06:12 +0000)]
Automatically disable DFA when processing multibyte input. GREP_USE_DFA
environment variable overrides.

Obtained from: Fedora (Tim Waugh)

19 years agoBetter multibyte handling in EGexecute() and Fexecute(). Fixed -Fi for
tjr [Sat, 14 May 2005 06:09:12 +0000 (06:09 +0000)]
Better multibyte handling in EGexecute() and Fexecute(). Fixed -Fi for
multibyte input (RH bug #143079).

Obtained from: Fedora (Jakub Jelinek, Tim Waugh)

19 years agoRemoved redundant (and incorrect) code in prline. Fixes grep -i --color "",
tjr [Sat, 14 May 2005 05:35:04 +0000 (05:35 +0000)]
Removed redundant (and incorrect) code in prline. Fixes grep -i --color "",
among other things.

PR: 79063
Obtained from: Fedora (Tim Waugh)

19 years agoFix background colour problems with --color output (RH bug #138913).
tjr [Sat, 14 May 2005 05:26:48 +0000 (05:26 +0000)]
Fix background colour problems with --color output (RH bug #138913).

Obtained from: Karsten Hopp via Fedora

19 years agoRevert revision 1.164: pmap_qremove() does not require protection by
alc [Sat, 14 May 2005 05:09:11 +0000 (05:09 +0000)]
Revert revision 1.164: pmap_qremove() does not require protection by
VM_LOCK_GIANT.

Discussed with: jeff

19 years agoFixed a bug in the fgrep patch, exposed by the dfa-optional patch
tjr [Sat, 14 May 2005 04:17:07 +0000 (04:17 +0000)]
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)

19 years agoFix dfa multibyte character class matching when -i is used (RH bug #123363).
tjr [Sat, 14 May 2005 03:18:20 +0000 (03:18 +0000)]
Fix dfa multibyte character class matching when -i is used (RH bug #123363).

Obtained from: Fedora (Tim Waugh)

19 years agoRemove mb-caching hack.
tjr [Sat, 14 May 2005 03:02:22 +0000 (03:02 +0000)]
Remove mb-caching hack.

Obtained from: Fedora (Tim Waugh)

19 years agoRemove incorrect configuration setting that limited the Kauai ATA controller
grehan [Sat, 14 May 2005 02:11:45 +0000 (02:11 +0000)]
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.

19 years agoThe header glue.h should provide just a declaration for the variable
stefanf [Fri, 13 May 2005 21:12:34 +0000 (21:12 +0000)]
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

19 years agoNI_WITHSCOPEID cleanup
ume [Fri, 13 May 2005 20:51:09 +0000 (20:51 +0000)]
NI_WITHSCOPEID cleanup

Reviewed by: des

19 years agoFix the "only wrote -1 of 32768 bytes: Input/output error" error message.
ru [Fri, 13 May 2005 20:06:44 +0000 (20:06 +0000)]
Fix the "only wrote -1 of 32768 bytes: Input/output error" error message.

19 years agoFix for a bug where the "nexthole" sack hint is out of sync with the
ps [Fri, 13 May 2005 18:02:02 +0000 (18:02 +0000)]
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

19 years agoraise readability bit.
ume [Fri, 13 May 2005 17:56:53 +0000 (17:56 +0000)]
raise readability bit.

19 years agoBump __FreeBSD_version for POSIX ttyname_r(3) changes.
delphij [Fri, 13 May 2005 17:31:32 +0000 (17:31 +0000)]
Bump __FreeBSD_version for POSIX ttyname_r(3) changes.

Forgotten by: me
Reminded by: mezz

19 years agofree ypbuf only when yp_match() succeed.
ume [Fri, 13 May 2005 17:30:03 +0000 (17:30 +0000)]
free ypbuf only when yp_match() succeed.

19 years agoNI_WITHSCOPEID cleanup
ume [Fri, 13 May 2005 16:43:28 +0000 (16:43 +0000)]
NI_WITHSCOPEID cleanup

Reviewed by: gad

19 years agoNI_WITHSCOPEID cleanup. Neither RFC 2553 nor RFC 3493 defines
ume [Fri, 13 May 2005 16:31:11 +0000 (16:31 +0000)]
NI_WITHSCOPEID cleanup.  Neither RFC 2553 nor RFC 3493 defines
NI_WITHSCOPEID, and our getaddrinfo(3) does nothing special
for it, now.

19 years agoProvide more POSIX-complaint ttyname_r(3) interface[1], which is slightly
delphij [Fri, 13 May 2005 16:27:30 +0000 (16:27 +0000)]
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@

19 years agoRemove duplicate and attribute Weinbergs second law to the right weinberg.
phk [Fri, 13 May 2005 15:51:56 +0000 (15:51 +0000)]
Remove duplicate and attribute Weinbergs second law to the right weinberg.

19 years agoUse the print_flags function to print the OP_ flags of a target.
harti [Fri, 13 May 2005 13:47:41 +0000 (13:47 +0000)]
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.

19 years agoIn div_output() explicitly set m->m_nextpkt to NULL. If divert socket
glebius [Fri, 13 May 2005 11:44:37 +0000 (11:44 +0000)]
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.

19 years agoWhen used as divert socket we need to decouple stack when node is entered
glebius [Fri, 13 May 2005 11:40:08 +0000 (11:40 +0000)]
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().

19 years agoSince there is no way to queue a function call to node, create
glebius [Fri, 13 May 2005 11:35:02 +0000 (11:35 +0000)]
Since there is no way to queue a function call to node, create
ng_queue_fn() - a queue version of ng_send_fn().

19 years agolockmgr(...,LK_DRAIN,...) requires a balancing LK_RELEASE: recent
peadar [Fri, 13 May 2005 11:27:48 +0000 (11:27 +0000)]
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

19 years agoCleanup comments
sos [Fri, 13 May 2005 10:25:19 +0000 (10:25 +0000)]
Cleanup comments

19 years agoMove the Boolean and ReturnStatus stuff from sprite.h to util.h and
harti [Fri, 13 May 2005 08:53:00 +0000 (08:53 +0000)]
Move the Boolean and ReturnStatus stuff from sprite.h to util.h and
get rid of sprite.h.

Obtained from: DragonFlyBSD

19 years agoFix more ATAPI breakage.
sos [Fri, 13 May 2005 07:58:05 +0000 (07:58 +0000)]
Fix more ATAPI breakage.
Apparently some devices are very picky on details :)

19 years agoMake Shell_Init() static - it's only used here.
harti [Fri, 13 May 2005 06:31:45 +0000 (06:31 +0000)]
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.

19 years agoAdd libdata/pkgconfig. It is used under ${LOCALBASE} as much (if not more)
marcus [Fri, 13 May 2005 04:06:04 +0000 (04:06 +0000)]
Add libdata/pkgconfig.  It is used under ${LOCALBASE} as much (if not more)
than under ${X11BASE}.

Discussed with: portmgr
MFC after: 1 day

19 years agoDefault hyperthreading on in -CURRENT. No seatbelts in CURRENT (^_^)
nectar [Fri, 13 May 2005 00:57:04 +0000 (00:57 +0000)]
Default hyperthreading on in -CURRENT.  No seatbelts in CURRENT (^_^)

Requested by: peter, jhb