[odc] Daily src changes for 2007-10-02

ODC auto at squish.net
Wed Oct 3 07:00:01 BST 2007


OpenBSD src changes summary for 2007-10-02
==========================================

include/stdbool.h                       lib/libc
share/man                               sys/arch/alpha/dev
sys/arch/hppa/hppa                      sys/arch/hppa64/hppa64
sys/arch/macppc/macppc                  sys/arch/sgi/sgi
sys/arch/sparc/sparc                    sys/arch/sparc64/sparc64
sys/arch/vax/vax                        sys/dev/pci
sys/dev/sun                             usr.bin/grep
usr.bin/pcc                             usr.bin/ssh
usr.sbin/hoststated                     usr.sbin/procmap

== include =========================================================== 01/06 ==

  http://www.openbsd.org/cgi-bin/cvsweb/src/include

stdbool.h

  ~ stdbool.h                             

  > pcc knows _Bool. ok beck@ miod @millert (otto@)

== lib =============================================================== 02/06 ==

  http://www.openbsd.org/cgi-bin/cvsweb/src/lib

libc

  ~ gen/rewinddir.c                       ~ gen/telldir.c

  > fix a libpthread PANIC in seekdir(3) caused by a recursive mutex lock.
  > remove the recursive lock in __seekdir() and ensure all callers properly
  > lock dd_lock prior to calling.  reported and tested by bernd@
  > okay marc@ tedu@ (kurt@)

== share ============================================================= 03/06 ==

  http://www.openbsd.org/cgi-bin/cvsweb/src/share

man

  ~ man4/msk.4                            

  > mention the 88E804x Fast Ethernet chipsets.
  > ok dlg@ (brad@)

  ~ man9/Makefile                         

  > add missing MLINKS section for iic(9);  'please commit this!' jmc@ (cnst@)

  ~ man4/bwi.4                            

  > Add Apple Airport Extreme devices.
  > From brad@, OK jsg@ (mglocker@)

  ~ man4/bwi.4                            

  > sort the hardware list; (jmc@)

== sys =============================================================== 04/06 ==

  http://www.openbsd.org/cgi-bin/cvsweb/src/sys

arch/alpha/dev

  ~ bus_dma.c                             

  > Apply (with slight variants) this elimination of bzero() with M_ZERO:
  > -	    if ((mapstore = malloc(mapsize, M_DEVBUF,
  > -		(flags & BUS_DMA_NOWAIT) ? M_NOWAIT : M_WAITOK)) == NULL)
  > +	    if ((mapstore = malloc(mapsize, M_DEVBUF, (flags & BUS_DMA_NOWAIT)
  > ?
  > +		(M_NOWAIT | M_ZERO) : (M_WAITOK | M_ZERO))) == NULL)
  > return (ENOMEM);
  > -	    bzero(mapstore, mapsize); (krw@)

arch/hppa/hppa

  ~ mainbus.c                             

  > Apply (with slight variants) this elimination of bzero() with M_ZERO:
  > -	    if ((mapstore = malloc(mapsize, M_DEVBUF,
  > -		(flags & BUS_DMA_NOWAIT) ? M_NOWAIT : M_WAITOK)) == NULL)
  > +	    if ((mapstore = malloc(mapsize, M_DEVBUF, (flags & BUS_DMA_NOWAIT)
  > ?
  > +		(M_NOWAIT | M_ZERO) : (M_WAITOK | M_ZERO))) == NULL)
  > return (ENOMEM);
  > -	    bzero(mapstore, mapsize); (krw@)

arch/hppa64/hppa64

  ~ mainbus.c                             

  > Apply (with slight variants) this elimination of bzero() with M_ZERO:
  > -	    if ((mapstore = malloc(mapsize, M_DEVBUF,
  > -		(flags & BUS_DMA_NOWAIT) ? M_NOWAIT : M_WAITOK)) == NULL)
  > +	    if ((mapstore = malloc(mapsize, M_DEVBUF, (flags & BUS_DMA_NOWAIT)
  > ?
  > +		(M_NOWAIT | M_ZERO) : (M_WAITOK | M_ZERO))) == NULL)
  > return (ENOMEM);
  > -	    bzero(mapstore, mapsize); (krw@)

arch/macppc/macppc

  ~ dma.c                                 

  > Apply (with slight variants) this elimination of bzero() with M_ZERO:
  > -	    if ((mapstore = malloc(mapsize, M_DEVBUF,
  > -		(flags & BUS_DMA_NOWAIT) ? M_NOWAIT : M_WAITOK)) == NULL)
  > +	    if ((mapstore = malloc(mapsize, M_DEVBUF, (flags & BUS_DMA_NOWAIT)
  > ?
  > +		(M_NOWAIT | M_ZERO) : (M_WAITOK | M_ZERO))) == NULL)
  > return (ENOMEM);
  > -	    bzero(mapstore, mapsize); (krw@)

arch/sgi/sgi

  ~ bus_dma.c                             

  > Apply (with slight variants) this elimination of bzero() with M_ZERO:
  > -	    if ((mapstore = malloc(mapsize, M_DEVBUF,
  > -		(flags & BUS_DMA_NOWAIT) ? M_NOWAIT : M_WAITOK)) == NULL)
  > +	    if ((mapstore = malloc(mapsize, M_DEVBUF, (flags & BUS_DMA_NOWAIT)
  > ?
  > +		(M_NOWAIT | M_ZERO) : (M_WAITOK | M_ZERO))) == NULL)
  > return (ENOMEM);
  > -	    bzero(mapstore, mapsize); (krw@)

arch/sparc/sparc

  ~ disksubr.c                            

  > Fiddle Sun traditional disklabel recognition to eliminate union and
  > associated field access defines. This reverts most changes to
  > dev/sun/disklabel.h without eliminating new functionality. Fix
  > comments to line up and fit on 80 column line, making both tsi@ and I
  > feel better.
  > Simplify logic in disksubr.c. No semantic change.
  > Tested & ok tsi at . (krw@)

arch/sparc64/sparc64

  ~ machdep.c                             

  > Apply (with slight variants) this elimination of bzero() with M_ZERO:
  > -	    if ((mapstore = malloc(mapsize, M_DEVBUF,
  > -		(flags & BUS_DMA_NOWAIT) ? M_NOWAIT : M_WAITOK)) == NULL)
  > +	    if ((mapstore = malloc(mapsize, M_DEVBUF, (flags & BUS_DMA_NOWAIT)
  > ?
  > +		(M_NOWAIT | M_ZERO) : (M_WAITOK | M_ZERO))) == NULL)
  > return (ENOMEM);
  > -	    bzero(mapstore, mapsize); (krw@)

  ~ disksubr.c                            

  > Fiddle Sun traditional disklabel recognition to eliminate union and
  > associated field access defines. This reverts most changes to
  > dev/sun/disklabel.h without eliminating new functionality. Fix
  > comments to line up and fit on 80 column line, making both tsi@ and I
  > feel better.
  > Simplify logic in disksubr.c. No semantic change.
  > Tested & ok tsi at . (krw@)

arch/vax/vax

  ~ bus_dma.c                             

  > Apply (with slight variants) this elimination of bzero() with M_ZERO:
  > -	    if ((mapstore = malloc(mapsize, M_DEVBUF,
  > -		(flags & BUS_DMA_NOWAIT) ? M_NOWAIT : M_WAITOK)) == NULL)
  > +	    if ((mapstore = malloc(mapsize, M_DEVBUF, (flags & BUS_DMA_NOWAIT)
  > ?
  > +		(M_NOWAIT | M_ZERO) : (M_WAITOK | M_ZERO))) == NULL)
  > return (ENOMEM);
  > -	    bzero(mapstore, mapsize); (krw@)

dev/pci

  ~ pcidevs                               

  > add new Intel E1000 and 10Gb PCIe PCI ids.
  > Most of the ids were from FreeBSD though the quad port blade id came
  > from the Linux E1000 driver.
  > ok dlg@ (brad@)

  ~ pcidevs.h                             ~ pcidevs_data.h

  > regen (brad@)

  ~ if_vr.c                               

  > In vr_attach() only touch the VR_STICKHW register if the adapter
  > is found to have PCI power management capability. It has been
  > found that unconditionally touching this register with the original
  > VIA Rhine chipset, which does not have power management capability,
  > and due to the shorter width of the IO addess space, it is possible
  > for the vr(4) driver to do bad things with hw with IO address space
  > adjacent to a vr(4) adapter.
  > Tested by a few users, brad@ and jmc at .
  > ok dlg@ (brad@)

  ~ if_msk.c                              ~ if_skreg.h

  > add initial support for the Marvell PCIe Yukon FE+ Fast Ethernet chipsets.
  > Inspired by similar changes to the Linux sky2 driver.
  > Tested by dunceor, Schoeberle Daniel, moritz@ and brad@ on existing
  > known working adapters. These chipsets are not actually available
  > in hardware yet.
  > ok dlg@ (brad@)

dev/sun

  ~ disklabel.h                           

  > Fiddle Sun traditional disklabel recognition to eliminate union and
  > associated field access defines. This reverts most changes to
  > dev/sun/disklabel.h without eliminating new functionality. Fix
  > comments to line up and fit on 80 column line, making both tsi@ and I
  > feel better.
  > Simplify logic in disksubr.c. No semantic change.
  > Tested & ok tsi at . (krw@)

== usr.bin =========================================================== 05/06 ==

  http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin

grep

  ~ util.c                                

  > Process patterns containing $ end ^ (but not as last or first char)
  > using regcomp() instead of fastcomp(). ok millert@ (otto@)

pcc

  ~ mip/regs.c                            

  > fix format and type
  > ok otto@ (gilles@)

ssh

  ~ ssh-keygen.c                          

  > handles zero-sized strings that fgets can return
  > properly removes trailing newline
  > removes an unused variable
  > correctly counts line number
  > "looks ok" ray@ markus@ (chl@)

== usr.sbin ========================================================== 06/06 ==

  http://www.openbsd.org/cgi-bin/cvsweb/src/usr.sbin

hoststated

  ~ parse.y                               

  > clean up merged code. (pyr@)

  ~ hoststated.c                          ~ hoststated.h
  ~ parse.y                               

  > stop messing with lgetc to please hoststated's check/expect.
  > instead move some of the logic in yylex and do hoststated specific
  > translations into hoststated.c
  > ok gilles@ (pyr@)

procmap

  ~ procmap.c                             

  > Use kinfo_proc2 instead of kinfo_proc.
  > ok art@ (kettenis@)

===============================================================================


More information about the odc mailing list