From owner-freebsd-bugs@FreeBSD.ORG Sun Jun 6 10:10:09 2010 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E3821106566B for ; Sun, 6 Jun 2010 10:10:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (unknown [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id B929E8FC16 for ; Sun, 6 Jun 2010 10:10:09 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o56AA9BI058041 for ; Sun, 6 Jun 2010 10:10:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o56AA9Sh058040; Sun, 6 Jun 2010 10:10:09 GMT (envelope-from gnats) Date: Sun, 6 Jun 2010 10:10:09 GMT Message-Id: <201006061010.o56AA9Sh058040@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Riccardo Torrini Cc: Subject: Re: conf/147244: ld-elf.so.1 not being updated on buildworld/installworld (potential fix) X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Riccardo Torrini List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Jun 2010 10:10:10 -0000 The following reply was made to PR conf/147244; it has been noted by GNATS. From: Riccardo Torrini To: "mailto:bug-followup"@FreeBSD.org, jamie@bishopston.net Cc: Subject: Re: conf/147244: ld-elf.so.1 not being updated on buildworld/installworld (potential fix) Date: Sun, 6 Jun 2010 11:53:03 +0200 Yesterday I rebuilded an 8.0 machine (last installed on feb.28) and got the source (and the solution, I think): # ls -log /libexec/ total 424 -r-xr-xr-x 1 root wheel schg 220020 Feb 28 14:18 ld-elf.so.1 -r-xr-xr-x 1 root wheel - 188096 Feb 28 09:14 ld-elf.so.1.old # ls -log /usr/libexec/ld-elf* lrwxr-xr-x 1 root wheel - 20 Jun 6 10:20 \ /usr/libexec/ld-elf.so.1 -> /libexec/ld-elf.so.1 I also checked the build dir and it was updated: # ls -log /usr/obj/usr/src/libexec/rtld-elf/ld-elf.so.1 -rwxr-xr-x 1 root wheel - 275642 Jun 5 20:01 \ /usr/obj/usr/src/libexec/rtld-elf/ld-elf.so.1 All others files in /*bin, /usr/*bin e /usr/lib* seems right. Here the installworld log (extract): ===> libexec/rtld-elf (install) chflags noschg /usr/libexec/ld-elf.so.1 install -s -o root -g wheel -m 555 -C -b -fschg -S ld-elf.so.1 /libexec install -o root -g wheel -m 444 rtld.1.gz /usr/share/man/man1 /usr/share/man/man1/ld-elf.so.1.1.gz -> /usr/share/man/man1/rtld.1.gz /usr/share/man/man1/ld.so.1.gz -> /usr/share/man/man1/rtld.1.gz /usr/libexec/ld-elf.so.1 -> /libexec/ld-elf.so.1 The problem is "chflags noschg" to a soft-link in /usr/libexec but then install over the protected one in /libexec. Potential fix (remove "/usr" on two lines): # diff -u4 Makefile.orig Makefile --- Makefile.orig 2009-08-03 10:13:06.000000000 +0200 +++ Makefile 2010-06-06 11:47:00.000000000 +0200 @@ -46,10 +46,10 @@ # Since moving rtld-elf to /libexec, we need to create a symlink. # Fixup the existing binary that's there so we can symlink over it. beforeinstall: -.if exists(${DESTDIR}/usr/libexec/${PROG}) - -chflags noschg ${DESTDIR}/usr/libexec/${PROG} +.if exists(${DESTDIR}/libexec/${PROG}) + -chflags noschg ${DESTDIR}/libexec/${PROG} .endif .PATH: ${.CURDIR}/${MACHINE_ARCH} -- Riccardo. ( http://www.GUFI.org/~vic/ ) From owner-freebsd-bugs@FreeBSD.ORG Sun Jun 6 10:20:07 2010 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E300B106564A for ; Sun, 6 Jun 2010 10:20:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (unknown [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id D21F88FC16 for ; Sun, 6 Jun 2010 10:20:07 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o56AK7o8067449 for ; Sun, 6 Jun 2010 10:20:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o56AK7Sf067442; Sun, 6 Jun 2010 10:20:07 GMT (envelope-from gnats) Date: Sun, 6 Jun 2010 10:20:07 GMT Message-Id: <201006061020.o56AK7Sf067442@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Riccardo Torrini Cc: Subject: Re: conf/147244: ld-elf.so.1 not being updated on buildworld/installworld (potential fix) X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Riccardo Torrini List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Jun 2010 10:20:08 -0000 The following reply was made to PR conf/147244; it has been noted by GNATS. From: Riccardo Torrini To: bug-followup@FreeBSD.org, jamie@bishopston.net Cc: Subject: Re: conf/147244: ld-elf.so.1 not being updated on buildworld/installworld (potential fix) Date: Sun, 6 Jun 2010 12:13:51 +0200 On Sun, Jun 06, 2010 at 11:53:03AM +0200, Riccardo Torrini wrote: > # diff -u4 Makefile.orig Makefile Obviously Makefile means /usr/src/libexec/rtld-elf/Makefile You can also check that fix works using: # make beforeinstall chflags noschg /libexec/ld-elf.so.1 # ls -log /libexec/ total 424 -r-xr-xr-x 1 root wheel - 220020 Feb 28 14:18 ld-elf.so.1 -r-xr-xr-x 1 root wheel - 188096 Feb 28 09:14 ld-elf.so.1.old -- Riccardo. ( http://www.GUFI.org/~vic/ ) From owner-freebsd-bugs@FreeBSD.ORG Sun Jun 6 12:10:05 2010 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1A57F1065676 for ; Sun, 6 Jun 2010 12:10:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (unknown [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id CD5CD8FC16 for ; Sun, 6 Jun 2010 12:10:04 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o56CA4Xs068070 for ; Sun, 6 Jun 2010 12:10:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o56CA4GM068069; Sun, 6 Jun 2010 12:10:04 GMT (envelope-from gnats) Resent-Date: Sun, 6 Jun 2010 12:10:04 GMT Resent-Message-Id: <201006061210.o56CA4GM068069@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Sebastian Hyrwall Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E8BDE1065670 for ; Sun, 6 Jun 2010 12:08:00 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id CCCBE8FC0C for ; Sun, 6 Jun 2010 12:08:00 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o56C80si002040 for ; Sun, 6 Jun 2010 12:08:00 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o56C80tR002039; Sun, 6 Jun 2010 12:08:00 GMT (envelope-from nobody) Message-Id: <201006061208.o56C80tR002039@www.freebsd.org> Date: Sun, 6 Jun 2010 12:08:00 GMT From: Sebastian Hyrwall To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: kern/147558: sbdrops kernel panic X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Jun 2010 12:10:05 -0000 >Number: 147558 >Category: kern >Synopsis: sbdrops kernel panic >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Jun 06 12:10:04 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Sebastian Hyrwall >Release: 7.3-RELEASE >Organization: none >Environment: # uname -a FreeBSD .... 7.3-RELEASE FreeBSD 7.3-RELEASE #0: Sun Mar 21 06:15:01 UTC 2010 root@walker.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: "Random" kernelpanics related to "sbdrops" after the system has been on for a few hours. Only process running is Quagga (bgpd,zebra). Network traffic is minimum (<= 100kbit/s avg). NIC is bge. IPV6 is enabled/configured. Attaching stacktrace. VMCORE available at : http://slask.keff.org/vmcore >How-To-Repeat: You wait a few hours (~10h). >Fix: Patch attached with submission follows: # kgdb kernel /var/crash/vmcore.1 GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-marcel-freebsd"... Unread portion of the kernel message buffer: panic: sbdrop cpuid = 0 Uptime: 14h31m24s Physical memory: 1011 MB Dumping 154 MB: 139 123 107 91 75 59 43 27 11 Reading symbols from /boot/kernel/acpi.ko...Reading symbols from /boot/kernel/ac pi.ko.symbols...done. done. Loaded symbols for /boot/kernel/acpi.ko Reading symbols from /boot/kernel/pf.ko...Reading symbols from /boot/kernel/pf.k o.symbols...done. done. Loaded symbols for /boot/kernel/pf.ko #0 doadump () at pcpu.h:196 196 pcpu.h: No such file or directory. in pcpu.h (kgdb) backtrace #0 doadump () at pcpu.h:196 #1 0xc07f8c57 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:418 #2 0xc07f8f29 in panic (fmt=Variable "fmt" is not available. ) at /usr/src/sys/kern/kern_shutdown.c:574 #3 0xc08514db in sbdrop_internal (sb=0xc469b5c4, len=293) at /usr/src/sys/kern/uipc_sockbuf.c:843 #4 0xc08516ce in sbdrop_locked (sb=0xc469b5c4, len=398) at /usr/src/sys/kern/uipc_sockbuf.c:893 #5 0xc0853f90 in soisdisconnected (so=0xc469b4e0) at /usr/src/sys/kern/uipc_socket.c:3097 #6 0xc094e32e in tcp_close (tp=0xc5714740) at /usr/src/sys/netinet/tcp_subr.c:819 #7 0xc094e4ac in tcp_drop (tp=0xc5714740, errno=61) at /usr/src/sys/netinet/tcp_subr.c:699 #8 0xc0953ca2 in tcp_timer_rexmt (xtp=0xc5714740) at /usr/src/sys/netinet/tcp_timer.c:455 #9 0xc080b7aa in softclock (dummy=0x0) at /usr/src/sys/kern/kern_timeout.c:274 #10 0xc07d54ab in ithread_loop (arg=0xc4093240) at /usr/src/sys/kern/kern_intr.c:1181 #11 0xc07d1c49 in fork_exit (callout=0xc07d5300 , arg=0xc4093240, frame=0xc3fb1d38) at /usr/src/sys/kern/kern_fork.c:811 #12 0xc0ae50b0 in fork_trampoline () at /usr/src/sys/i386/i386/exception.s:271 (kgdb) >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-bugs@FreeBSD.ORG Sun Jun 6 12:20:10 2010 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 391761065675 for ; Sun, 6 Jun 2010 12:20:10 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (unknown [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 2799B8FC24 for ; Sun, 6 Jun 2010 12:20:10 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o56CKAcv077287 for ; Sun, 6 Jun 2010 12:20:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o56CKARd077286; Sun, 6 Jun 2010 12:20:10 GMT (envelope-from gnats) Date: Sun, 6 Jun 2010 12:20:10 GMT Message-Id: <201006061220.o56CKARd077286@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Riccardo Torrini Cc: Subject: Re: conf/147244: ld-elf.so.1 not being updated on buildworld/installworld (solved) X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Riccardo Torrini List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Jun 2010 12:20:10 -0000 The following reply was made to PR conf/147244; it has been noted by GNATS. From: Riccardo Torrini To: bug-followup@FreeBSD.org, jamie@bishopston.net Cc: Subject: Re: conf/147244: ld-elf.so.1 not being updated on buildworld/installworld (solved) Date: Sun, 6 Jun 2010 14:16:16 +0200 On Sun, Jun 06, 2010 at 11:53:03AM +0200, Riccardo Torrini wrote: > # ls -log /libexec/ > total 424 > -r-xr-xr-x 1 root wheel schg 220020 Feb 28 14:18 ld-elf.so.1 > -r-xr-xr-x 1 root wheel - 188096 Feb 28 09:14 ld-elf.so.1.old Me again. Sorry for wasting time and bandwidth, notice that "install -S" doesn't change file when is the same, so target remain with old timestamp. Anyway it can confuse :-) # cp /usr/obj/usr/src/libexec/rtld-elf/ld-elf.so.1 /tmp/ && \ strip /tmp/ld-elf.so.1 && \ md5 -r /tmp/ld-elf.so.1 /libexec/ld-elf.so.1 7328a72be1e4991c1461a197492539dc /tmp/ld-elf.so.1 7328a72be1e4991c1461a197492539dc /libexec/ld-elf.so.1 # ls -log /tmp/ld-elf.so.1 /libexec/ld-elf.so.1 -r-xr-xr-x 1 root wheel - 220020 Feb 21 01:11 /libexec/ld-elf.so.1 -rwxr-xr-x 1 root wheel - 220020 Jun 6 14:05 /tmp/ld-elf.so.1 Patch is not needed because chflasg can go through soft-link but (imho) a touch (or a FAQ) can help us to stop opening PR. Sorry again. -- Riccardo. ( http://www.GUFI.org/~vic/ ) From owner-freebsd-bugs@FreeBSD.ORG Sun Jun 6 14:00:16 2010 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BEE5D1065670 for ; Sun, 6 Jun 2010 14:00:16 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (unknown [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 953BC8FC14 for ; Sun, 6 Jun 2010 14:00:16 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o56E0G31063211 for ; Sun, 6 Jun 2010 14:00:16 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o56E0Gnp063208; Sun, 6 Jun 2010 14:00:16 GMT (envelope-from gnats) Date: Sun, 6 Jun 2010 14:00:16 GMT Message-Id: <201006061400.o56E0Gnp063208@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Sebastian Hyrwall Cc: Subject: Re: kern/147558: sbdrops kernel panic X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Sebastian Hyrwall List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Jun 2010 14:00:16 -0000 The following reply was made to PR kern/147558; it has been noted by GNATS. From: Sebastian Hyrwall To: bug-followup@FreeBSD.org, sh@keff.org Cc: Subject: Re: kern/147558: sbdrops kernel panic Date: Sun, 06 Jun 2010 15:27:04 +0200 Hi I seemed to have made alittle mistake by posting the stack-trace under the "fix"-section. This is of course not a fix. Some more information: HP DL360 G3 CPU: Intel(R) Xeon(TM) CPU 2.80GHz (2799.22-MHz 686-class CPU) Logical CPUs per core: 2 FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 6 cpu1 (AP/HT): APIC ID: 7 Sincerely, Sebastian H From owner-freebsd-bugs@FreeBSD.ORG Sun Jun 6 20:30:07 2010 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7829E1065677 for ; Sun, 6 Jun 2010 20:30:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (unknown [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 3F0518FC14 for ; Sun, 6 Jun 2010 20:30:07 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o56KU7js098049 for ; Sun, 6 Jun 2010 20:30:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o56KU7Vv098036; Sun, 6 Jun 2010 20:30:07 GMT (envelope-from gnats) Resent-Date: Sun, 6 Jun 2010 20:30:07 GMT Resent-Message-Id: <201006062030.o56KU7Vv098036@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Hubert Tournier Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 20D1C1065678 for ; Sun, 6 Jun 2010 20:22:10 +0000 (UTC) (envelope-from hubert@tournier.org) Received: from sd-15237.dedibox.fr (sd-15237.dedibox.fr [88.191.73.212]) by mx1.freebsd.org (Postfix) with ESMTP id E21598FC23 for ; Sun, 6 Jun 2010 20:22:09 +0000 (UTC) Received: by sd-15237.dedibox.fr (Postfix, from userid 0) id 8FC313F5BE; Sun, 6 Jun 2010 22:08:27 +0200 (CEST) Message-Id: <20100606200827.8FC313F5BE@sd-15237.dedibox.fr> Date: Sun, 6 Jun 2010 22:08:27 +0200 (CEST) From: Hubert Tournier To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: bin/147572: mptutil doesn't support configs over 2TB X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Hubert Tournier List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Jun 2010 20:30:07 -0000 >Number: 147572 >Category: bin >Synopsis: mptutil doesn't support configs over 2TB >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Sun Jun 06 20:30:06 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Hubert Tournier >Release: FreeBSD 8.0-RELEASE-p3 amd64 >Organization: Chuck's corner >Environment: System: FreeBSD panthere 8.0-RELEASE-p3 FreeBSD 8.0-RELEASE-p3 #0: Sat Jun 5 13:50:13 CEST 2010 root@panthere:/usr/obj/usr/src/sys/NOYAU amd64 # dmesg (extract) mpt0: port 0x1000-0x10ff mem 0xb1910000-0xb1913fff,0xb1900000-0xb190ffff irq 32 at device 0.0 on pci5 mpt0: [ITHREAD] mpt0: MPI Version=1.5.20.0 mpt0: Capabilities: ( RAID-0 RAID-1E RAID-1 ) mpt0: 0 Active Volumes (2 Max) mpt0: 0 Hidden Drive Members (14 Max) ses0 at mpt0 bus 0 target 2 lun 0 ses0: Fixed Enclosure Services SCSI-3 device ses0: 300.000MB/s transfers ses0: Command Queueing enabled ses0: SCSI-3 SES Device da0 at mpt0 bus 0 target 3 lun 0 da0: Fixed Direct Access SCSI-5 device da0: 300.000MB/s transfers da0: Command Queueing enabled da0: 953869MB (1953525168 512 byte sectors: 255H 63S/T 121601C) (+7 other similar drives) # mptutil show adapter mpt0 Adapter: Board Name: SASWT4I Board Assembly: L3-25070-00A Chip Name: C1064E Chip Revision: UNUSED RAID Levels: RAID0, RAID1, RAID1E RAID0 Stripes: 64K RAID1E Stripes: 64K RAID0 Drives/Vol: 2-10 RAID1 Drives/Vol: 2 RAID1E Drives/Vol: 3-10 # mptutil show config mpt0 Configuration: 0 volumes, 8 drives drive da0 (932G) ONLINE SATA drive da1 (932G) ONLINE SATA drive da2 (932G) ONLINE SATA drive da3 (932G) ONLINE SATA drive da4 (932G) ONLINE SATA drive da5 (932G) ONLINE SATA drive da6 (932G) ONLINE SATA drive da7 (932G) ONLINE SATA # mptutil show drives mpt0 Physical Drives: da0 ( 932G) ONLINE SATA bus 0 id 3 da1 ( 932G) ONLINE SATA bus 0 id 4 da2 ( 932G) ONLINE SATA bus 0 id 5 da3 ( 932G) ONLINE SATA bus 0 id 6 da4 ( 932G) ONLINE SATA bus 0 id 7 da5 ( 932G) ONLINE SATA bus 0 id 8 da6 ( 932G) ONLINE SATA bus 0 id 9 da7 ( 932G) ONLINE SATA bus 0 id 10 >Description: The mptutil utility doesn't seems to support configs over 2 TB. I created a RAID0 array with disks da1 to da7 (6.4 TB) and got a 0.4 TB volume. >How-To-Repeat: # mptutil create raid1 da1,da2,da3,da4,da5,da6,da7 >Fix: I now use gstripe as a workaround. The mptutil manual should mention the limitation: # cd /usr/src/usr.sbin/mptutil # diff -ruN mptutil.8 mptutil.8.NEW --- mptutil.8 2009-10-25 02:10:29.000000000 +0100 +++ mptutil.8.NEW 2010-06-06 11:59:53.000000000 +0200 @@ -379,6 +379,8 @@ .Pp Drive configuration commands result in an excessive flood of messages on the console. +.Pp +This program doesn't handle drives pools above 2 terabytes. .Sh HISTORY The .Nm >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-bugs@FreeBSD.ORG Sun Jun 6 21:20:04 2010 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 586A21065677 for ; Sun, 6 Jun 2010 21:20:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (unknown [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 1D3248FC17 for ; Sun, 6 Jun 2010 21:20:04 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o56LK3q5042084 for ; Sun, 6 Jun 2010 21:20:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o56LK3cD042083; Sun, 6 Jun 2010 21:20:03 GMT (envelope-from gnats) Resent-Date: Sun, 6 Jun 2010 21:20:03 GMT Resent-Message-Id: <201006062120.o56LK3cD042083@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Craig Leres Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ED0751065673 for ; Sun, 6 Jun 2010 21:14:09 +0000 (UTC) (envelope-from leres@ee.lbl.gov) Received: from fun.ee.lbl.gov (unknown [IPv6:2001:400:610:102::ca]) by mx1.freebsd.org (Postfix) with ESMTP id A623B8FC1A for ; Sun, 6 Jun 2010 21:14:09 +0000 (UTC) Received: from ice.ee.lbl.gov (ice.ee.lbl.gov [131.243.2.213]) (authenticated bits=0) by fun.ee.lbl.gov (8.14.4/8.14.4) with ESMTP id o56LE8kW084166 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sun, 6 Jun 2010 14:14:08 -0700 (PDT) Message-Id: <4C0C0FA0.4020805@ee.lbl.gov> Date: Sun, 06 Jun 2010 14:14:08 -0700 From: Craig Leres To: freebsd-gnats-submit@FreeBSD.org Cc: Subject: kern/147583: [PATCH] sys/dev/puc/pucdata.c: incorrect clock value for Oxford OX16PCI954 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Jun 2010 21:20:04 -0000 >Number: 147583 >Category: kern >Synopsis: [PATCH] sys/dev/puc/pucdata.c: incorrect clock value for >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Jun 06 21:20:03 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Craig Leres >Release: FreeBSD 7.2-RELEASE amd64 >Organization: Lawrence Berkeley National Laboratory >Environment: FreeBSD hot.ee.lbl.gov 7.2-RELEASE FreeBSD 7.2-RELEASE #9: Mon May 10 15:36:44 PDT 2010 leres@hot.ee.lbl.gov:/usr/src/7.2-RELEASE/sys/amd64/compile/LBLSMPIPV6 amd64 >Description: The SIIG Quartet Serial 850 4 serial port PCI card (JJ-P04011-S6) uses the Oxford Semiconductor OX16PCI954. The kernel IDs it correctly (see attached file dmesg.txt) however the ports do not work. >How-To-Repeat: pciconf -l shows: puc0@pci0:17:0:0: class=0x070006 card=0x2052131f chip=0x95011415 rev=0x00 hdr=0x00 (vendor 0x1415/device 0x9501) >Fix: I found a post with the identical symptoms: http://forums.freebsd.org/showthread.php?t=5133 It's a slightly different version of the card (vendor 0x1415/device 0x950a) but the same chip is used and the supplied fix works. The attached patch corrects the clock for both SIIG 4 port cards. I bet the other SIIG card that uses the OX16PCI954 (vendor 0x1415/device 0x9511) probably needs this change but I don't have one so I can't test this. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkwMD6AACgkQWxlAhAje3JvK2wCfYcQNWY6C3l7bjLwg5d7N4JNE gNwAoJA6gzUegyZfMxxMX2CbUARrRXG4 =gmrw -----END PGP SIGNATURE----- --------------070007060506000901040208 Content-Type: text/plain; name="dmesg.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="dmesg.txt" puc0: port 0x4020-0x403f,0x4000-0x401f mem 0xd0301000-0xd0301fff,0xd0300000-0xd0300fff irq 20 at device 0.0 on pci17 puc0: [FILTER] uart0: <16950 or compatible> on puc0 uart0: [FILTER] uart1: <16950 or compatible> on puc0 uart1: [FILTER] uart2: <16950 or compatible> on puc0 uart2: [FILTER] uart3: <16950 or compatible> on puc0 uart3: [FILTER] --------------070007060506000901040208 Content-Type: text/plain; name="patch.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="patch.txt" --- pucdata.c.virgin 2010-06-06 14:05:46.000000000 -0700 +++ pucdata.c 2010-06-06 14:08:43.000000000 -0700 @@ -633,13 +633,13 @@ { 0x1415, 0x9501, 0xffff, 0, "Oxford Semiconductor OX16PCI954 UARTs", - DEFAULT_RCLK, + DEFAULT_RCLK * 10, PUC_PORT_4S, 0x10, 0, 8, }, { 0x1415, 0x950a, 0xffff, 0, "Oxford Semiconductor OX16PCI954 UARTs", - DEFAULT_RCLK, + DEFAULT_RCLK * 10, PUC_PORT_4S, 0x10, 0, 8, }, --------------070007060506000901040208 Content-Type: application/octet-stream; name="dmesg.txt.sig" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="dmesg.txt.sig" iEYEABECAAYFAkwMD6AACgkQWxlAhAje3JvNTQCfUBcoX9FQR9Yzs2OWFMiet+WSNn0An0xn 0h6d/XN5415BFpnDAwMcxzyU --------------070007060506000901040208 Content-Type: application/octet-stream; name="patch.txt.sig" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="patch.txt.sig" iEYEABECAAYFAkwMD6AACgkQWxlAhAje3JttsQCfWvR6mbg6zxmi7HimH2uR/pdYkisAn0nN 8Q3vQKIAaQD4hiK7I3AzNyds --------------070007060506000901040208-- >Release-Note: >Audit-Trail: >Unformatted: This is a multi-part message in MIME format. --------------070007060506000901040208 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Oxford OX16PCI954 From owner-freebsd-bugs@FreeBSD.ORG Sun Jun 6 22:20:02 2010 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9817F1065677 for ; Sun, 6 Jun 2010 22:20:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (unknown [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 5A82F8FC1E for ; Sun, 6 Jun 2010 22:20:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o56MK2OR094335 for ; Sun, 6 Jun 2010 22:20:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o56MK2Af094334; Sun, 6 Jun 2010 22:20:02 GMT (envelope-from gnats) Resent-Date: Sun, 6 Jun 2010 22:20:02 GMT Resent-Message-Id: <201006062220.o56MK2Af094334@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Diane Bruce Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 30D8D1065674 for ; Sun, 6 Jun 2010 22:11:51 +0000 (UTC) (envelope-from db@db.net) Received: from diana.db.net (diana.db.net [66.113.102.10]) by mx1.freebsd.org (Postfix) with ESMTP id D9DF28FC17 for ; Sun, 6 Jun 2010 22:11:50 +0000 (UTC) Received: from night.db.net (localhost [127.0.0.1]) by diana.db.net (Postfix) with ESMTP id 1A8CF2285A for ; Sun, 6 Jun 2010 15:51:38 -0600 (MDT) Received: by night.db.net (Postfix, from userid 100) id 4145C5C5F; Sun, 6 Jun 2010 17:56:38 -0400 (EDT) Message-Id: <20100606215638.4145C5C5F@night.db.net> Date: Sun, 6 Jun 2010 17:56:38 -0400 (EDT) From: Diane Bruce To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: misc/147599: Import netbsd complex functions into our libm X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Diane Bruce List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Jun 2010 22:20:02 -0000 >Number: 147599 >Category: misc >Synopsis: Import netbsd complex functions into our libm >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Jun 06 22:20:01 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Diane Bruce >Release: FreeBSD 8.0-STABLE amd64 >Organization: disorganized >Environment: System: FreeBSD night.db.net 8.0-STABLE FreeBSD 8.0-STABLE #59: Fri Mar 12 13:39:30 EST 2010 root@night.db.net:/usr/obj/usr/src/sys/NIGHT amd64 >Description: Missing complex functions from our libm >How-To-Repeat: >Fix: diff included. Index: lib/msun/src/e_log.c =================================================================== --- lib/msun/src/e_log.c (revision 208605) +++ lib/msun/src/e_log.c (working copy) @@ -15,7 +15,7 @@ __FBSDID("$FreeBSD$"); /* __ieee754_log(x) - * Return the logrithm of x + * Return the logarithm of x * * Method : * 1. Argument Reduction: find k and f such that Index: lib/msun/complex/cephes_subr.c =================================================================== --- lib/msun/complex/cephes_subr.c (revision 0) +++ lib/msun/complex/cephes_subr.c (revision 0) @@ -0,0 +1,124 @@ +/* $NetBSD: cephes_subr.c,v 1.1 2007/08/20 16:01:33 drochner Exp $ */ + +/*- + * Copyright (c) 2007 The NetBSD Foundation, Inc. + * All rights reserved. + * + * This code is derived from software written by Stephen L. Moshier. + * It is redistributed by the NetBSD Foundation by permission of the author. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +#include "../src/namespace.h" +#include +#include +#include "cephes_subr.h" + +/* calculate cosh and sinh */ + +void +_cchsh(double x, double *c, double *s) +{ + double e, ei; + + if (fabs(x) <= 0.5) { + *c = cosh(x); + *s = sinh(x); + } else { + e = exp(x); + ei = 0.5 / e; + e = 0.5 * e; + *s = e - ei; + *c = e + ei; + } +} + +/* Program to subtract nearest integer multiple of PI */ + +/* extended precision value of PI: */ +static const double DP1 = 3.14159265160560607910E0; +static const double DP2 = 1.98418714791870343106E-9; +static const double DP3 = 1.14423774522196636802E-17; +#define MACHEP 1.1e-16 + +double +_redupi(double x) +{ + double t; + long i; + + t = x / M_PI; + if (t >= 0.0) + t += 0.5; + else + t -= 0.5; + + i = t; /* the multiple */ + t = i; + t = ((x - t * DP1) - t * DP2) - t * DP3; + return t; +} + +/* Taylor series expansion for cosh(2y) - cos(2x) */ + +double +_ctans(double complex z) +{ + double f, x, x2, y, y2, rn, t; + double d; + + x = fabs(2.0 * creal(z)); + y = fabs(2.0 * cimag(z)); + + x = _redupi(x); + + x = x * x; + y = y * y; + x2 = 1.0; + y2 = 1.0; + f = 1.0; + rn = 0.0; + d = 0.0; + do { + rn += 1.0; + f *= rn; + rn += 1.0; + f *= rn; + x2 *= x; + y2 *= y; + t = y2 + x2; + t /= f; + d += t; + + rn += 1.0; + f *= rn; + rn += 1.0; + f *= rn; + x2 *= x; + y2 *= y; + t = y2 - x2; + t /= f; + d += t; + } while (fabs(t/d) > MACHEP); + return d; +} Index: lib/msun/complex/csinf.c =================================================================== --- lib/msun/complex/csinf.c (revision 0) +++ lib/msun/complex/csinf.c (revision 0) @@ -0,0 +1,46 @@ +/* $NetBSD: csinf.c,v 1.1 2007/08/20 16:01:36 drochner Exp $ */ + +/*- + * Copyright (c) 2007 The NetBSD Foundation, Inc. + * All rights reserved. + * + * This code is derived from software written by Stephen L. Moshier. + * It is redistributed by the NetBSD Foundation by permission of the author. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +#include "../src/namespace.h" +#include +#include +#include "cephes_subrf.h" + +float complex +csinf(float complex z) +{ + float complex w; + float ch, sh; + + _cchshf(cimagf(z), &ch, &sh); + w = sinf(crealf(z)) * ch + (cosf(crealf(z)) * sh) * I; + return w; +} Index: lib/msun/complex/casinf.c =================================================================== --- lib/msun/complex/casinf.c (revision 0) +++ lib/msun/complex/casinf.c (revision 0) @@ -0,0 +1,119 @@ +/* $NetBSD: casinf.c,v 1.1 2007/08/20 16:01:31 drochner Exp $ */ + +/*- + * Copyright (c) 2007 The NetBSD Foundation, Inc. + * All rights reserved. + * + * This code is derived from software written by Stephen L. Moshier. + * It is redistributed by the NetBSD Foundation by permission of the author. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +#include +#include + +#ifdef __weak_alias +__weak_alias(casinf, _casinf) +#endif + +float complex +casinf(float complex z) +{ + float complex w; + float complex ca, ct, zz, z2; + float x, y; + + x = crealf(z); + y = cimagf(z); + +#if 0 /* MD: test is incorrect, casin(>1) is defined */ + if (y == 0.0f) { + if (fabsf(x) > 1.0) { + w = M_PI_2 + 0.0f * I; +#if 0 + mtherr ("casin", DOMAIN); +#endif + } else { + w = asinf(x) + 0.0f * I; + } + return w; + } +#endif + +/* Power series expansion */ +/* +b = cabsf(z); +if( b < 0.125 ) +{ +z2.r = (x - y) * (x + y); +z2.i = 2.0 * x * y; + +cn = 1.0; +n = 1.0; +ca.r = x; +ca.i = y; +sum.r = x; +sum.i = y; +do + { + ct.r = z2.r * ca.r - z2.i * ca.i; + ct.i = z2.r * ca.i + z2.i * ca.r; + ca.r = ct.r; + ca.i = ct.i; + + cn *= n; + n += 1.0; + cn /= n; + n += 1.0; + b = cn/n; + + ct.r *= b; + ct.i *= b; + sum.r += ct.r; + sum.i += ct.i; + b = fabsf(ct.r) + fabsf(ct.i); + } +while( b > MACHEP ); +w->r = sum.r; +w->i = sum.i; +return; +} +*/ + + + ca = x + y * I; + ct = ca * I; + /* sqrt( 1 - z*z) */ + /* cmul( &ca, &ca, &zz ) */ + /*x * x - y * y */ + zz = (x - y) * (x + y) + (2.0f * x * y) * I; + + zz = 1.0f - crealf(zz) - cimagf(zz) * I; + z2 = csqrtf(zz); + + zz = ct + z2; + zz = clogf(zz); + /* multiply by 1/i = -i */ + w = zz * (-1.0f * I); + return w; +} Index: lib/msun/complex/ctanhf.c =================================================================== --- lib/msun/complex/ctanhf.c (revision 0) +++ lib/msun/complex/ctanhf.c (revision 0) @@ -0,0 +1,48 @@ +/* $NetBSD: ctanhf.c,v 1.1 2007/08/20 16:01:38 drochner Exp $ */ + +/*- + * Copyright (c) 2007 The NetBSD Foundation, Inc. + * All rights reserved. + * + * This code is derived from software written by Stephen L. Moshier. + * It is redistributed by the NetBSD Foundation by permission of the author. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +#include "../src/namespace.h" +#include +#include + +float complex +ctanhf(float complex z) +{ + float complex w; + float x, y, d; + + x = crealf(z); + y = cimagf(z); + d = coshf(2.0f * x) + cosf(2.0f * y); + w = sinhf(2.0f * x) / d + (sinf(2.0f * y) / d) * I; + + return w; +} Index: lib/msun/complex/clog.3 =================================================================== --- lib/msun/complex/clog.3 (revision 0) +++ lib/msun/complex/clog.3 (revision 0) @@ -0,0 +1,58 @@ +.\" $NetBSD: clog.3,v 1.1 2008/02/20 09:55:38 drochner Exp $ +.\" Copyright (c) 2001-2003 The Open Group, All Rights Reserved +.TH "CLOG" 3P 2003 "IEEE/The Open Group" "POSIX Programmer's Manual" +.\" clog +.SH NAME +clog, clogf \- complex natural logarithm functions +.SH SYNOPSIS +.LP +\fB#include +.br +.sp +double complex clog(double complex\fP \fIz\fP\fB); +.br +float complex clogf(float complex\fP \fIz\fP\fB); +.br +\fP +.SH DESCRIPTION +.LP +These functions compute the complex natural (base \fIe\fP) logarithm +of \fIz\fP, with a branch cut along the negative +real axis. +.SH RETURN VALUE +.LP +These functions return the complex natural logarithm value, +in the range of a strip mathematically unbounded along the +real axis and in the interval [-\fIi\fPpi,\ +\fIi\fPpi] along the +imaginary axis. +.SH ERRORS +.LP +No errors are defined. +.LP +\fIThe following sections are informative.\fP +.SH EXAMPLES +.LP +None. +.SH APPLICATION USAGE +.LP +None. +.SH RATIONALE +.LP +None. +.SH FUTURE DIRECTIONS +.LP +None. +.SH SEE ALSO +.LP +\fIcexp\fP(), the Base Definitions volume of IEEE\ Std\ 1003.1-2001, +\fI\fP +.SH COPYRIGHT +Portions of this text are reprinted and reproduced in electronic form +from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology +-- Portable Operating System Interface (POSIX), The Open Group Base +Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of +Electrical and Electronics Engineers, Inc and The Open Group. In the +event of any discrepancy between this version and the original IEEE and +The Open Group Standard, the original IEEE and The Open Group Standard +is the referee document. The original Standard can be obtained online at +http://www.opengroup.org/unix/online.html . Index: lib/msun/complex/csinh.c =================================================================== --- lib/msun/complex/csinh.c (revision 0) +++ lib/msun/complex/csinh.c (revision 0) @@ -0,0 +1,46 @@ +/* $NetBSD: csinh.c,v 1.1 2007/08/20 16:01:36 drochner Exp $ */ + +/*- + * Copyright (c) 2007 The NetBSD Foundation, Inc. + * All rights reserved. + * + * This code is derived from software written by Stephen L. Moshier. + * It is redistributed by the NetBSD Foundation by permission of the author. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +#include "../src/namespace.h" +#include +#include + +double complex +csinh(double complex z) +{ + double complex w; + double x, y; + + x = creal(z); + y = cimag(z); + w = sinh(x) * cos(y) + (cosh(x) * sin(y)) * I; + return w; +} Index: lib/msun/complex/ccoshf.c =================================================================== --- lib/msun/complex/ccoshf.c (revision 0) +++ lib/msun/complex/ccoshf.c (revision 0) @@ -0,0 +1,46 @@ +/* $NetBSD: ccoshf.c,v 1.1 2007/08/20 16:01:33 drochner Exp $ */ + +/*- + * Copyright (c) 2007 The NetBSD Foundation, Inc. + * All rights reserved. + * + * This code is derived from software written by Stephen L. Moshier. + * It is redistributed by the NetBSD Foundation by permission of the author. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +#include "../src/namespace.h" +#include +#include + +float complex +ccoshf(float complex z) +{ + float complex w; + float x, y; + + x = crealf(z); + y = cimagf(z); + w = coshf(x) * cosf(y) + (sinhf(x) * sinf(y)) * I; + return w; +} Index: lib/msun/complex/casinh.c =================================================================== --- lib/msun/complex/casinh.c (revision 0) +++ lib/msun/complex/casinh.c (revision 0) @@ -0,0 +1,42 @@ +/* $NetBSD: casinh.c,v 1.1 2007/08/20 16:01:31 drochner Exp $ */ + +/*- + * Copyright (c) 2007 The NetBSD Foundation, Inc. + * All rights reserved. + * + * This code is derived from software written by Stephen L. Moshier. + * It is redistributed by the NetBSD Foundation by permission of the author. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +#include "../src/namespace.h" +#include + +double complex +casinh(double complex z) +{ + double complex w; + + w = -1.0 * I * casin(z * I); + return w; +} Index: lib/msun/complex/cexpf.c =================================================================== --- lib/msun/complex/cexpf.c (revision 0) +++ lib/msun/complex/cexpf.c (revision 0) @@ -0,0 +1,46 @@ +/* $NetBSD: cexpf.c,v 1.1 2007/08/20 16:01:34 drochner Exp $ */ + +/*- + * Copyright (c) 2007 The NetBSD Foundation, Inc. + * All rights reserved. + * + * This code is derived from software written by Stephen L. Moshier. + * It is redistributed by the NetBSD Foundation by permission of the author. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +#include +#include + +float complex +cexpf(float complex z) +{ + float complex w; + float r, x, y; + + x = crealf(z); + y = cimagf(z); + r = expf(x); + w = r * cosf(y) + r * sinf(y) * I; + return w; +} Index: lib/msun/complex/ctan.3 =================================================================== --- lib/msun/complex/ctan.3 (revision 0) +++ lib/msun/complex/ctan.3 (revision 0) @@ -0,0 +1,53 @@ +.\" $NetBSD: ctan.3,v 1.1 2008/02/20 09:55:38 drochner Exp $ +.\" Copyright (c) 2001-2003 The Open Group, All Rights Reserved +.TH "CTAN" 3P 2003 "IEEE/The Open Group" "POSIX Programmer's Manual" +.\" ctan +.SH NAME +ctan, ctanf \- complex tangent functions +.SH SYNOPSIS +.LP +\fB#include +.br +.sp +double complex ctan(double complex\fP \fIz\fP\fB); +.br +float complex ctanf(float complex\fP \fIz\fP\fB); +.br +\fP +.SH DESCRIPTION +.LP +These functions compute the complex tangent of \fIz\fP. +.SH RETURN VALUE +.LP +These functions return the complex tangent value. +.SH ERRORS +.LP +No errors are defined. +.LP +\fIThe following sections are informative.\fP +.SH EXAMPLES +.LP +None. +.SH APPLICATION USAGE +.LP +None. +.SH RATIONALE +.LP +None. +.SH FUTURE DIRECTIONS +.LP +None. +.SH SEE ALSO +.LP +\fIcatan\fP(), the Base Definitions volume of IEEE\ Std\ 1003.1-2001, +\fI\fP +.SH COPYRIGHT +Portions of this text are reprinted and reproduced in electronic form +from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology +-- Portable Operating System Interface (POSIX), The Open Group Base +Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of +Electrical and Electronics Engineers, Inc and The Open Group. In the +event of any discrepancy between this version and the original IEEE and +The Open Group Standard, the original IEEE and The Open Group Standard +is the referee document. The original Standard can be obtained online at +http://www.opengroup.org/unix/online.html . Index: lib/msun/complex/creal.3 =================================================================== --- lib/msun/complex/creal.3 (revision 0) +++ lib/msun/complex/creal.3 (revision 0) @@ -0,0 +1,61 @@ +.\" $NetBSD: creal.3,v 1.1 2008/02/20 09:55:38 drochner Exp $ +.\" Copyright (c) 2001-2003 The Open Group, All Rights Reserved +.TH "CREAL" 3P 2003 "IEEE/The Open Group" "POSIX Programmer's Manual" +.\" creal +.SH NAME +creal, crealf \- complex real functions +.SH SYNOPSIS +.LP +\fB#include +.br +.sp +double creal(double complex\fP \fIz\fP\fB); +.br +float crealf(float complex\fP \fIz\fP\fB); +.br +\fP +.SH DESCRIPTION +.LP +These functions compute the real part of \fIz\fP. +.SH RETURN VALUE +.LP +These functions return the real part value. +.SH ERRORS +.LP +No errors are defined. +.LP +\fIThe following sections are informative.\fP +.SH EXAMPLES +.LP +None. +.SH APPLICATION USAGE +.LP +For a variable \fIz\fP of type \fBcomplex\fP: +.sp +.RS +.nf + +\fBz == creal(z) + cimag(z)*I +\fP +.fi +.RE +.SH RATIONALE +.LP +None. +.SH FUTURE DIRECTIONS +.LP +None. +.SH SEE ALSO +.LP +\fIcarg\fP(), \fIcimag\fP(), \fIconj\fP(), \fIcproj\fP(), the +Base Definitions volume of IEEE\ Std\ 1003.1-2001, \fI\fP +.SH COPYRIGHT +Portions of this text are reprinted and reproduced in electronic form +from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology +-- Portable Operating System Interface (POSIX), The Open Group Base +Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of +Electrical and Electronics Engineers, Inc and The Open Group. In the +event of any discrepancy between this version and the original IEEE and +The Open Group Standard, the original IEEE and The Open Group Standard +is the referee document. The original Standard can be obtained online at +http://www.opengroup.org/unix/online.html . Index: lib/msun/complex/cephes_subr.h =================================================================== --- lib/msun/complex/cephes_subr.h (revision 0) +++ lib/msun/complex/cephes_subr.h (revision 0) @@ -0,0 +1,5 @@ +/* $NetBSD: cephes_subr.h,v 1.1 2007/08/20 16:01:33 drochner Exp $ */ + +void _cchsh(double, double *, double *); +double _redupi(double); +double _ctans(double complex); Index: lib/msun/complex/ccos.3 =================================================================== --- lib/msun/complex/ccos.3 (revision 0) +++ lib/msun/complex/ccos.3 (revision 0) @@ -0,0 +1,53 @@ +.\" $NetBSD: ccos.3,v 1.1 2008/02/20 09:55:38 drochner Exp $ +.\" Copyright (c) 2001-2003 The Open Group, All Rights Reserved +.TH "CCOS" 3P 2003 "IEEE/The Open Group" "POSIX Programmer's Manual" +.\" ccos +.SH NAME +ccos, ccosf \- complex cosine functions +.SH SYNOPSIS +.LP +\fB#include +.br +.sp +double complex ccos(double complex\fP \fIz\fP\fB); +.br +float complex ccosf(float complex\fP \fIz\fP\fB); +.br +\fP +.SH DESCRIPTION +.LP +These functions compute the complex cosine of \fIz\fP. +.SH RETURN VALUE +.LP +These functions return the complex cosine value. +.SH ERRORS +.LP +No errors are defined. +.LP +\fIThe following sections are informative.\fP +.SH EXAMPLES +.LP +None. +.SH APPLICATION USAGE +.LP +None. +.SH RATIONALE +.LP +None. +.SH FUTURE DIRECTIONS +.LP +None. +.SH SEE ALSO +.LP +\fIcacos\fP(), the Base Definitions volume of IEEE\ Std\ 1003.1-2001, +\fI\fP +.SH COPYRIGHT +Portions of this text are reprinted and reproduced in electronic form +from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology +-- Portable Operating System Interface (POSIX), The Open Group Base +Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of +Electrical and Electronics Engineers, Inc and The Open Group. In the +event of any discrepancy between this version and the original IEEE and +The Open Group Standard, the original IEEE and The Open Group Standard +is the referee document. The original Standard can be obtained online at +http://www.opengroup.org/unix/online.html . Index: lib/msun/complex/cephes_subrf.c =================================================================== --- lib/msun/complex/cephes_subrf.c (revision 0) +++ lib/msun/complex/cephes_subrf.c (revision 0) @@ -0,0 +1,123 @@ +/* $NetBSD: cephes_subrf.c,v 1.1 2007/08/20 16:01:34 drochner Exp $ */ + +/*- + * Copyright (c) 2007 The NetBSD Foundation, Inc. + * All rights reserved. + * + * This code is derived from software written by Stephen L. Moshier. + * It is redistributed by the NetBSD Foundation by permission of the author. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +#include "../src/namespace.h" +#include +#include +#include "cephes_subrf.h" + +/* calculate cosh and sinh */ + +void +_cchshf(float x, float *c, float *s) +{ + float e, ei; + + if (fabsf(x) <= 0.5f) { + *c = coshf(x); + *s = sinhf(x); + } else { + e = expf(x); + ei = 0.5f / e; + e = 0.5f * e; + *s = e - ei; + *c = e + ei; + } +} + +/* Program to subtract nearest integer multiple of PI */ + +/* extended precision value of PI: */ +static const double DP1 = 3.140625; +static const double DP2 = 9.67502593994140625E-4; +static const double DP3 = 1.509957990978376432E-7; +#define MACHEPF 3.0e-8 + +float +_redupif(float x) +{ + float t; + long i; + + t = x / (float)M_PI; + if (t >= 0.0f) + t += 0.5f; + else + t -= 0.5f; + + i = t; /* the multiple */ + t = i; + t = ((x - t * DP1) - t * DP2) - t * DP3; + return t; +} + +/* Taylor series expansion for cosh(2y) - cos(2x) */ + +float +_ctansf(float complex z) +{ + float f, x, x2, y, y2, rn, t, d; + + x = fabsf(2.0f * crealf(z)); + y = fabsf(2.0f * cimagf(z)); + + x = _redupif(x); + + x = x * x; + y = y * y; + x2 = 1.0f; + y2 = 1.0f; + f = 1.0f; + rn = 0.0f; + d = 0.0f; + do { + rn += 1.0f; + f *= rn; + rn += 1.0f; + f *= rn; + x2 *= x; + y2 *= y; + t = y2 + x2; + t /= f; + d += t; + + rn += 1.0f; + f *= rn; + rn += 1.0f; + f *= rn; + x2 *= x; + y2 *= y; + t = y2 - x2; + t /= f; + d += t; + } while (fabsf(t/d) > MACHEPF); + return d; +} Index: lib/msun/complex/cpow.c =================================================================== --- lib/msun/complex/cpow.c (revision 0) +++ lib/msun/complex/cpow.c (revision 0) @@ -0,0 +1,57 @@ +/* $NetBSD: cpow.c,v 1.1 2007/08/20 16:01:35 drochner Exp $ */ + +/*- + * Copyright (c) 2007 The NetBSD Foundation, Inc. + * All rights reserved. + * + * This code is derived from software written by Stephen L. Moshier. + * It is redistributed by the NetBSD Foundation by permission of the author. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +#include "../src/namespace.h" +#include +#include + +double complex +cpow(double complex a, double complex z) +{ + double complex w; + double x, y, r, theta, absa, arga; + + x = creal(z); + y = cimag(z); + absa = cabs(a); + if (absa == 0.0) { + return (0.0 + 0.0 * I); + } + arga = carg(a); + r = pow(absa, x); + theta = x * arga; + if (y != 0.0) { + r = r * exp(-y * arga); + theta = theta + y * log(absa); + } + w = r * cos(theta) + (r * sin(theta)) * I; + return w; +} Index: lib/msun/complex/csinhf.c =================================================================== --- lib/msun/complex/csinhf.c (revision 0) +++ lib/msun/complex/csinhf.c (revision 0) @@ -0,0 +1,46 @@ +/* $NetBSD: csinhf.c,v 1.1 2007/08/20 16:01:37 drochner Exp $ */ + +/*- + * Copyright (c) 2007 The NetBSD Foundation, Inc. + * All rights reserved. + * + * This code is derived from software written by Stephen L. Moshier. + * It is redistributed by the NetBSD Foundation by permission of the author. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +#include "../src/namespace.h" +#include +#include + +float complex +csinhf(float complex z) +{ + float complex w; + float x, y; + + x = crealf(z); + y = cimagf(z); + w = sinhf(x) * cosf(y) + (coshf(x) * sinf(y)) * I; + return w; +} Index: lib/msun/complex/csin.3 =================================================================== --- lib/msun/complex/csin.3 (revision 0) +++ lib/msun/complex/csin.3 (revision 0) @@ -0,0 +1,53 @@ +.\" $NetBSD: csin.3,v 1.1 2008/02/20 09:55:38 drochner Exp $ +.\" Copyright (c) 2001-2003 The Open Group, All Rights Reserved +.TH "CSIN" 3P 2003 "IEEE/The Open Group" "POSIX Programmer's Manual" +.\" csin +.SH NAME +csin, csinf \- complex sine functions +.SH SYNOPSIS +.LP +\fB#include +.br +.sp +double complex csin(double complex\fP \fIz\fP\fB); +.br +float complex csinf(float complex\fP \fIz\fP\fB); +.br +\fP +.SH DESCRIPTION +.LP +These functions compute the complex sine of \fIz\fP. +.SH RETURN VALUE +.LP +These functions return the complex sine value. +.SH ERRORS +.LP +No errors are defined. +.LP +\fIThe following sections are informative.\fP +.SH EXAMPLES +.LP +None. +.SH APPLICATION USAGE +.LP +None. +.SH RATIONALE +.LP +None. +.SH FUTURE DIRECTIONS +.LP +None. +.SH SEE ALSO +.LP +\fIcasin\fP(), the Base Definitions volume of IEEE\ Std\ 1003.1-2001, +\fI\fP +.SH COPYRIGHT +Portions of this text are reprinted and reproduced in electronic form +from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology +-- Portable Operating System Interface (POSIX), The Open Group Base +Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of +Electrical and Electronics Engineers, Inc and The Open Group. In the +event of any discrepancy between this version and the original IEEE and +The Open Group Standard, the original IEEE and The Open Group Standard +is the referee document. The original Standard can be obtained online at +http://www.opengroup.org/unix/online.html . Index: lib/msun/complex/cephes_subrf.h =================================================================== --- lib/msun/complex/cephes_subrf.h (revision 0) +++ lib/msun/complex/cephes_subrf.h (revision 0) @@ -0,0 +1,5 @@ +/* $NetBSD: cephes_subrf.h,v 1.1 2007/08/20 16:01:34 drochner Exp $ */ + +void _cchshf(float, float *, float *); +float _redupif(float); +float _ctansf(float complex); Index: lib/msun/complex/cpowf.c =================================================================== --- lib/msun/complex/cpowf.c (revision 0) +++ lib/msun/complex/cpowf.c (revision 0) @@ -0,0 +1,57 @@ +/* $NetBSD: cpowf.c,v 1.1 2007/08/20 16:01:36 drochner Exp $ */ + +/*- + * Copyright (c) 2007 The NetBSD Foundation, Inc. + * All rights reserved. + * + * This code is derived from software written by Stephen L. Moshier. + * It is redistributed by the NetBSD Foundation by permission of the author. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +#include "../src/namespace.h" +#include +#include + +float complex +cpowf(float complex a, float complex z) +{ + float complex w; + float x, y, r, theta, absa, arga; + + x = crealf(z); + y = cimagf(z); + absa = cabsf(a); + if (absa == 0.0f) { + return (0.0f + 0.0f * I); + } + arga = cargf(a); + r = powf(absa, x); + theta = x * arga; + if (y != 0.0f) { + r = r * expf(-y * arga); + theta = theta + y * logf(absa); + } + w = r * cosf(theta) + (r * sinf(theta)) * I; + return w; +} Index: lib/msun/complex/csinh.3 =================================================================== --- lib/msun/complex/csinh.3 (revision 0) +++ lib/msun/complex/csinh.3 (revision 0) @@ -0,0 +1,53 @@ +.\" $NetBSD: csinh.3,v 1.1 2008/02/20 09:55:38 drochner Exp $ +.\" Copyright (c) 2001-2003 The Open Group, All Rights Reserved +.TH "CSINH" 3P 2003 "IEEE/The Open Group" "POSIX Programmer's Manual" +.\" csinh +.SH NAME +csinh, csinhf \- complex hyperbolic sine functions +.SH SYNOPSIS +.LP +\fB#include +.br +.sp +double complex csinh(double complex\fP \fIz\fP\fB); +.br +float complex csinhf(float complex\fP \fIz\fP\fB); +.br +\fP +.SH DESCRIPTION +.LP +These functions compute the complex hyperbolic sine of \fIz\fP. +.SH RETURN VALUE +.LP +These functions return the complex hyperbolic sine value. +.SH ERRORS +.LP +No errors are defined. +.LP +\fIThe following sections are informative.\fP +.SH EXAMPLES +.LP +None. +.SH APPLICATION USAGE +.LP +None. +.SH RATIONALE +.LP +None. +.SH FUTURE DIRECTIONS +.LP +None. +.SH SEE ALSO +.LP +\fIcasinh\fP(), the Base Definitions volume of IEEE\ Std\ 1003.1-2001, +\fI\fP +.SH COPYRIGHT +Portions of this text are reprinted and reproduced in electronic form +from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology +-- Portable Operating System Interface (POSIX), The Open Group Base +Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of +Electrical and Electronics Engineers, Inc and The Open Group. In the +event of any discrepancy between this version and the original IEEE and +The Open Group Standard, the original IEEE and The Open Group Standard +is the referee document. The original Standard can be obtained online at +http://www.opengroup.org/unix/online.html . Index: lib/msun/complex/casinh.3 =================================================================== --- lib/msun/complex/casinh.3 (revision 0) +++ lib/msun/complex/casinh.3 (revision 0) @@ -0,0 +1,58 @@ +.\" $NetBSD: casinh.3,v 1.1 2008/02/20 09:55:38 drochner Exp $ +.\" Copyright (c) 2001-2003 The Open Group, All Rights Reserved +.TH "CASINH" 3P 2003 "IEEE/The Open Group" "POSIX Programmer's Manual" +.\" casinh +.SH NAME +casinh, casinhf \- complex arc hyperbolic sine functions +.SH SYNOPSIS +.LP +\fB#include +.br +.sp +double complex casinh(double complex\fP \fIz\fP\fB); +.br +float complex casinhf(float complex\fP \fIz\fP\fB); +.br +\fP +.SH DESCRIPTION +.LP +These functions compute the complex arc hyperbolic sine of \fIz\fP, +with branch cuts outside the interval +[-\fIi\fP,\ +\fIi\fP] along the imaginary axis. +.SH RETURN VALUE +.LP +These functions return the complex arc hyperbolic sine value, +in the range of a strip mathematically unbounded along the +real axis and in the interval [-\fIi\fPpi/2,\ +\fIi\fPpi/2] along +the imaginary axis. +.SH ERRORS +.LP +No errors are defined. +.LP +\fIThe following sections are informative.\fP +.SH EXAMPLES +.LP +None. +.SH APPLICATION USAGE +.LP +None. +.SH RATIONALE +.LP +None. +.SH FUTURE DIRECTIONS +.LP +None. +.SH SEE ALSO +.LP +\fIcsinh\fP(), the Base Definitions volume of IEEE\ Std\ 1003.1-2001, +\fI\fP +.SH COPYRIGHT +Portions of this text are reprinted and reproduced in electronic form +from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology +-- Portable Operating System Interface (POSIX), The Open Group Base +Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of +Electrical and Electronics Engineers, Inc and The Open Group. In the +event of any discrepancy between this version and the original IEEE and +The Open Group Standard, the original IEEE and The Open Group Standard +is the referee document. The original Standard can be obtained online at +http://www.opengroup.org/unix/online.html . Index: lib/msun/complex/catan.c =================================================================== --- lib/msun/complex/catan.c (revision 0) +++ lib/msun/complex/catan.c (revision 0) @@ -0,0 +1,79 @@ +/* $NetBSD: catan.c,v 1.1 2007/08/20 16:01:32 drochner Exp $ */ + +/*- + * Copyright (c) 2007 The NetBSD Foundation, Inc. + * All rights reserved. + * + * This code is derived from software written by Stephen L. Moshier. + * It is redistributed by the NetBSD Foundation by permission of the author. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +#include "../src/namespace.h" +#include +#include +#include "cephes_subr.h" + +#ifdef __weak_alias +__weak_alias(catan, _catan) +#endif + +#define MAXNUM 1.0e308 + +double complex +catan(double complex z) +{ + double complex w; + double a, t, x, x2, y; + + x = creal(z); + y = cimag(z); + + if ((x == 0.0) && (y > 1.0)) + goto ovrf; + + x2 = x * x; + a = 1.0 - x2 - (y * y); + if (a == 0.0) + goto ovrf; + + t = 0.5 * atan2(2.0 * x, a); + w = _redupi(t); + + t = y - 1.0; + a = x2 + (t * t); + if (a == 0.0) + goto ovrf; + + t = y + 1.0; + a = (x2 + (t * t))/a; + w = w + (0.25 * log(a)) * I; + return w; + +ovrf: +#if 0 + mtherr ("catan", OVERFLOW); +#endif + w = MAXNUM + MAXNUM * I; + return w; +} Index: lib/msun/complex/cpow.3 =================================================================== --- lib/msun/complex/cpow.3 (revision 0) +++ lib/msun/complex/cpow.3 (revision 0) @@ -0,0 +1,57 @@ +.\" $NetBSD: cpow.3,v 1.1 2008/02/20 09:55:38 drochner Exp $ +.\" Copyright (c) 2001-2003 The Open Group, All Rights Reserved +.TH "CPOW" 3P 2003 "IEEE/The Open Group" "POSIX Programmer's Manual" +.\" cpow +.SH NAME +cpow, cpowf \- complex power functions +.SH SYNOPSIS +.LP +\fB#include +.br +.sp +double complex cpow(double complex\fP \fIx\fP\fB, double complex\fP +\fIy\fP\fB); +.br +float complex cpowf(float complex\fP \fIx\fP\fB, float complex\fP +\fIy\fP\fB); +.br +\fP +.SH DESCRIPTION +.LP +These functions compute the complex power function \fIx**y\fP, +with a branch cut for the first +parameter along the negative real axis. +.SH RETURN VALUE +.LP +These functions return the complex power function value. +.SH ERRORS +.LP +No errors are defined. +.LP +\fIThe following sections are informative.\fP +.SH EXAMPLES +.LP +None. +.SH APPLICATION USAGE +.LP +None. +.SH RATIONALE +.LP +None. +.SH FUTURE DIRECTIONS +.LP +None. +.SH SEE ALSO +.LP +\fIcabs\fP(), \fIcsqrt\fP(), the Base Definitions volume of +IEEE\ Std\ 1003.1-2001, \fI\fP +.SH COPYRIGHT +Portions of this text are reprinted and reproduced in electronic form +from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology +-- Portable Operating System Interface (POSIX), The Open Group Base +Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of +Electrical and Electronics Engineers, Inc and The Open Group. In the +event of any discrepancy between this version and the original IEEE and +The Open Group Standard, the original IEEE and The Open Group Standard +is the referee document. The original Standard can be obtained online at +http://www.opengroup.org/unix/online.html . Index: lib/msun/complex/cacos.c =================================================================== --- lib/msun/complex/cacos.c (revision 0) +++ lib/msun/complex/cacos.c (revision 0) @@ -0,0 +1,43 @@ +/* $NetBSD: cacos.c,v 1.1 2007/08/20 16:01:30 drochner Exp $ */ + +/*- + * Copyright (c) 2007 The NetBSD Foundation, Inc. + * All rights reserved. + * + * This code is derived from software written by Stephen L. Moshier. + * It is redistributed by the NetBSD Foundation by permission of the author. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +#include +#include + +double complex +cacos(double complex z) +{ + double complex w; + + w = casin(z); + w = (M_PI_2 - creal(w)) - cimag(w) * I; + return w; +} Index: lib/msun/complex/ctanf.c =================================================================== --- lib/msun/complex/ctanf.c (revision 0) +++ lib/msun/complex/ctanf.c (revision 0) @@ -0,0 +1,58 @@ +/* $NetBSD: ctanf.c,v 1.1 2007/08/20 16:01:38 drochner Exp $ */ + +/*- + * Copyright (c) 2007 The NetBSD Foundation, Inc. + * All rights reserved. + * + * This code is derived from software written by Stephen L. Moshier. + * It is redistributed by the NetBSD Foundation by permission of the author. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +#include "../src/namespace.h" +#include +#include +#include "cephes_subrf.h" + +#define MAXNUMF 1.0e38f + +float complex +ctanf(float complex z) +{ + float complex w; + float d; + + d = cosf(2.0f * crealf(z)) + coshf(2.0f * cimagf(z)); + + if (fabsf(d) < 0.25f) + d = _ctansf(z); + + if (d == 0.0f) { + /* mtherr ("ctan", OVERFLOW); */ + w = MAXNUMF + MAXNUMF * I; + return w; + } + + w = sinf(2.0f * crealf(z)) / d + (sinhf(2.0f * cimagf(z)) / d) * I; + return w; +} Index: lib/msun/complex/Makefile =================================================================== --- lib/msun/complex/Makefile (revision 0) +++ lib/msun/complex/Makefile (revision 0) @@ -0,0 +1,24 @@ +# $NetBSD: Makefile.inc,v 1.2 2008/03/08 14:21:41 drochner Exp $ + +.PATH: ${.CURDIR}/complex + +SRCS+= cabs.c cabsf.c carg.c cargf.c +SRCS+= creal.c crealf.c cimag.c cimagf.c conj.c conjf.c +SRCS+= csqrt.c cexp.c clog.c cpow.c +SRCS+= cephes_subr.c csin.c ccos.c ctan.c csinh.c ccosh.c ctanh.c +SRCS+= casin.c cacos.c catan.c casinh.c cacosh.c catanh.c +SRCS+= csqrtf.c cexpf.c clogf.c cpowf.c +SRCS+= cephes_subrf.c csinf.c ccosf.c ctanf.c csinhf.c ccoshf.c ctanhf.c +SRCS+= casinf.c cacosf.c catanf.c casinhf.c cacoshf.c catanhf.c + +MAN+= cabs.3 cacos.3 cacosh.3 carg.3 casin.3 casinh.3 catan.3 catanh.3 +MAN+= ccos.3 ccosh.3 cexp.3 cimag.3 clog.3 conj.3 cpow.3 creal.3 +MAN+= csin.3 csinh.3 csqrt.3 ctan.3 ctanh.3 + +MLINKS+= cabs.3 cabsf.3 cacos.3 cacosf.3 cacosh.3 cacoshf.3 +MLINKS+= carg.3 cargf.3 casin.3 casinf.3 casinh.3 casinhf.3 +MLINKS+= catan.3 catanf.3 catanh.3 catanhf.3 ccos.3 ccosf.3 +MLINKS+= ccosh.3 ccoshf.3 cexp.3 cexpf.3 cimag.3 cimagf.3 +MLINKS+= clog.3 clogf.3 conj.3 conjf.3 cpow.3 cpowf.3 +MLINKS+= creal.3 crealf.3 csin.3 csinf.3 csinh.3 csinhf.3 +MLINKS+= csqrt.3 csqrtf.3 ctan.3 ctanf.3 ctanh.3 ctanhf.3 Index: lib/msun/complex/catanf.c =================================================================== --- lib/msun/complex/catanf.c (revision 0) +++ lib/msun/complex/catanf.c (revision 0) @@ -0,0 +1,79 @@ +/* $NetBSD: catanf.c,v 1.1 2007/08/20 16:01:32 drochner Exp $ */ + +/*- + * Copyright (c) 2007 The NetBSD Foundation, Inc. + * All rights reserved. + * + * This code is derived from software written by Stephen L. Moshier. + * It is redistributed by the NetBSD Foundation by permission of the author. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +#include "../src/namespace.h" +#include +#include +#include "cephes_subrf.h" + +#ifdef __weak_alias +__weak_alias(catanf, _catanf) +#endif + +#define MAXNUMF 1.0e38F + +float complex +catanf(float complex z) +{ + float complex w; + float a, t, x, x2, y; + + x = crealf(z); + y = cimagf(z); + + if ((x == 0.0f) && (y > 1.0f)) + goto ovrf; + + x2 = x * x; + a = 1.0f - x2 - (y * y); + if (a == 0.0f) + goto ovrf; + + t = 0.5f * atan2f(2.0f * x, a); + w = _redupif(t); + + t = y - 1.0f; + a = x2 + (t * t); + if (a == 0.0f) + goto ovrf; + + t = y + 1.0f; + a = (x2 + (t * t))/a; + w = w + (0.25f * logf(a)) * I; + return w; + +ovrf: +#if 0 + mtherr ("catan", OVERFLOW); +#endif + w = MAXNUMF + MAXNUMF * I; + return w; +} Index: lib/msun/complex/ctanh.c =================================================================== --- lib/msun/complex/ctanh.c (revision 0) +++ lib/msun/complex/ctanh.c (revision 0) @@ -0,0 +1,48 @@ +/* $NetBSD: ctanh.c,v 1.1 2007/08/20 16:01:38 drochner Exp $ */ + +/*- + * Copyright (c) 2007 The NetBSD Foundation, Inc. + * All rights reserved. + * + * This code is derived from software written by Stephen L. Moshier. + * It is redistributed by the NetBSD Foundation by permission of the author. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +#include "../src/namespace.h" +#include +#include + +double complex +ctanh(double complex z) +{ + double complex w; + double x, y, d; + + x = creal(z); + y = cimag(z); + d = cosh(2.0 * x) + cos(2.0 * y); + w = sinh(2.0 * x) / d + (sin(2.0 * y) / d) * I; + + return w; +} Index: lib/msun/complex/casin.c =================================================================== --- lib/msun/complex/casin.c (revision 0) +++ lib/msun/complex/casin.c (revision 0) @@ -0,0 +1,119 @@ +/* $NetBSD: casin.c,v 1.1 2007/08/20 16:01:31 drochner Exp $ */ + +/*- + * Copyright (c) 2007 The NetBSD Foundation, Inc. + * All rights reserved. + * + * This code is derived from software written by Stephen L. Moshier. + * It is redistributed by the NetBSD Foundation by permission of the author. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +#include +#include + +#ifdef __weak_alias +__weak_alias(casin, _casin) +#endif + +double complex +casin(double complex z) +{ + double complex w; + double complex ca, ct, zz, z2; + double x, y; + + x = creal(z); + y = cimag(z); + +#if 0 /* MD: test is incorrect, casin(>1) is defined */ + if (y == 0.0) { + if (fabs(x) > 1.0) { + w = M_PI_2 + 0.0 * I; +#if 0 + mtherr ("casin", DOMAIN); +#endif + } else { + w = asin(x) + 0.0 * I; + } + return w; + } +#endif + +/* Power series expansion */ +/* +b = cabs(z); +if( b < 0.125 ) +{ +z2.r = (x - y) * (x + y); +z2.i = 2.0 * x * y; + +cn = 1.0; +n = 1.0; +ca.r = x; +ca.i = y; +sum.r = x; +sum.i = y; +do + { + ct.r = z2.r * ca.r - z2.i * ca.i; + ct.i = z2.r * ca.i + z2.i * ca.r; + ca.r = ct.r; + ca.i = ct.i; + + cn *= n; + n += 1.0; + cn /= n; + n += 1.0; + b = cn/n; + + ct.r *= b; + ct.i *= b; + sum.r += ct.r; + sum.i += ct.i; + b = fabs(ct.r) + fabs(ct.i); + } +while( b > MACHEP ); +w->r = sum.r; +w->i = sum.i; +return; +} +*/ + + + ca = x + y * I; + ct = ca * I; + /* sqrt( 1 - z*z) */ + /* cmul( &ca, &ca, &zz ) */ + /*x * x - y * y */ + zz = (x - y) * (x + y) + (2.0 * x * y) * I; + + zz = 1.0 - creal(zz) - cimag(zz) * I; + z2 = csqrt(zz); + + zz = ct + z2; + zz = clog(zz); + /* multiply by 1/i = -i */ + w = zz * (-1.0 * I); + return w; +} Index: lib/msun/complex/ccosf.c =================================================================== --- lib/msun/complex/ccosf.c (revision 0) +++ lib/msun/complex/ccosf.c (revision 0) @@ -0,0 +1,45 @@ +/* $NetBSD: ccosf.c,v 1.1 2007/08/20 16:01:33 drochner Exp $ */ + +/*- + * Copyright (c) 2007 The NetBSD Foundation, Inc. + * All rights reserved. + * + * This code is derived from software written by Stephen L. Moshier. + * It is redistributed by the NetBSD Foundation by permission of the author. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +#include +#include +#include "cephes_subrf.h" + +float complex +ccosf(float complex z) +{ + float complex w; + float ch, sh; + + _cchshf(cimagf(z), &ch, &sh); + w = cosf(crealf(z)) * ch - (sinf(crealf(z)) * sh) * I; + return w; +} Index: lib/msun/complex/catanh.c =================================================================== --- lib/msun/complex/catanh.c (revision 0) +++ lib/msun/complex/catanh.c (revision 0) @@ -0,0 +1,42 @@ +/* $NetBSD: catanh.c,v 1.1 2007/08/20 16:01:32 drochner Exp $ */ + +/*- + * Copyright (c) 2007 The NetBSD Foundation, Inc. + * All rights reserved. + * + * This code is derived from software written by Stephen L. Moshier. + * It is redistributed by the NetBSD Foundation by permission of the author. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +#include "../src/namespace.h" +#include + +double complex +catanh(double complex z) +{ + double complex w; + + w = -1.0 * I * catan(z * I); + return w; +} Index: lib/msun/complex/cacosf.c =================================================================== --- lib/msun/complex/cacosf.c (revision 0) +++ lib/msun/complex/cacosf.c (revision 0) @@ -0,0 +1,43 @@ +/* $NetBSD: cacosf.c,v 1.1 2007/08/20 16:01:30 drochner Exp $ */ + +/*- + * Copyright (c) 2007 The NetBSD Foundation, Inc. + * All rights reserved. + * + * This code is derived from software written by Stephen L. Moshier. + * It is redistributed by the NetBSD Foundation by permission of the author. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +#include +#include + +float complex +cacosf(float complex z) +{ + float complex w; + + w = casinf(z); + w = ((float)M_PI_2 - crealf(w)) - cimagf(w) * I; + return w; +} Index: lib/msun/complex/cexp.c =================================================================== --- lib/msun/complex/cexp.c (revision 0) +++ lib/msun/complex/cexp.c (revision 0) @@ -0,0 +1,46 @@ +/* $NetBSD: cexp.c,v 1.1 2007/08/20 16:01:34 drochner Exp $ */ + +/*- + * Copyright (c) 2007 The NetBSD Foundation, Inc. + * All rights reserved. + * + * This code is derived from software written by Stephen L. Moshier. + * It is redistributed by the NetBSD Foundation by permission of the author. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +#include +#include + +double complex +cexp(double complex z) +{ + double complex w; + double r, x, y; + + x = creal(z); + y = cimag(z); + r = exp(x); + w = r * cos(y) + r * sin(y) * I; + return w; +} Index: lib/msun/complex/ccosh.c =================================================================== --- lib/msun/complex/ccosh.c (revision 0) +++ lib/msun/complex/ccosh.c (revision 0) @@ -0,0 +1,46 @@ +/* $NetBSD: ccosh.c,v 1.1 2007/08/20 16:01:33 drochner Exp $ */ + +/*- + * Copyright (c) 2007 The NetBSD Foundation, Inc. + * All rights reserved. + * + * This code is derived from software written by Stephen L. Moshier. + * It is redistributed by the NetBSD Foundation by permission of the author. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +#include "../src/namespace.h" +#include +#include + +double complex +ccosh(double complex z) +{ + double complex w; + double x, y; + + x = creal(z); + y = cimag(z); + w = cosh(x) * cos(y) + (sinh(x) * sin(y)) * I; + return w; +} Index: lib/msun/complex/cacosh.c =================================================================== --- lib/msun/complex/cacosh.c (revision 0) +++ lib/msun/complex/cacosh.c (revision 0) @@ -0,0 +1,41 @@ +/* $NetBSD: cacosh.c,v 1.1 2007/08/20 16:01:30 drochner Exp $ */ + +/*- + * Copyright (c) 2007 The NetBSD Foundation, Inc. + * All rights reserved. + * + * This code is derived from software written by Stephen L. Moshier. + * It is redistributed by the NetBSD Foundation by permission of the author. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +#include + +double complex +cacosh(double complex z) +{ + double complex w; + + w = I * cacos(z); + return w; +} Index: lib/msun/complex/catanhf.c =================================================================== --- lib/msun/complex/catanhf.c (revision 0) +++ lib/msun/complex/catanhf.c (revision 0) @@ -0,0 +1,42 @@ +/* $NetBSD: catanhf.c,v 1.1 2007/08/20 16:01:32 drochner Exp $ */ + +/*- + * Copyright (c) 2007 The NetBSD Foundation, Inc. + * All rights reserved. + * + * This code is derived from software written by Stephen L. Moshier. + * It is redistributed by the NetBSD Foundation by permission of the author. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +#include "../src/namespace.h" +#include + +float complex +catanhf(float complex z) +{ + float complex w; + + w = -1.0f * I * catanf(z * I); + return w; +} Index: lib/msun/complex/cacoshf.c =================================================================== --- lib/msun/complex/cacoshf.c (revision 0) +++ lib/msun/complex/cacoshf.c (revision 0) @@ -0,0 +1,41 @@ +/* $NetBSD: cacoshf.c,v 1.1 2007/08/20 16:01:31 drochner Exp $ */ + +/*- + * Copyright (c) 2007 The NetBSD Foundation, Inc. + * All rights reserved. + * + * This code is derived from software written by Stephen L. Moshier. + * It is redistributed by the NetBSD Foundation by permission of the author. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +#include + +float complex +cacoshf(float complex z) +{ + float complex w; + + w = I * cacosf(z); + return w; +} Index: lib/msun/complex/catan.3 =================================================================== --- lib/msun/complex/catan.3 (revision 0) +++ lib/msun/complex/catan.3 (revision 0) @@ -0,0 +1,58 @@ +.\" $NetBSD: catan.3,v 1.1 2008/02/20 09:55:38 drochner Exp $ +.\" Copyright (c) 2001-2003 The Open Group, All Rights Reserved +.TH "CATAN" 3P 2003 "IEEE/The Open Group" "POSIX Programmer's Manual" +.\" catan +.SH NAME +catan, catanf \- complex arc tangent functions +.SH SYNOPSIS +.LP +\fB#include +.br +.sp +double complex catan(double complex\fP \fIz\fP\fB); +.br +float complex catanf(float complex\fP \fIz\fP\fB); +.br +\fP +.SH DESCRIPTION +.LP +These functions compute the complex arc tangent of \fIz\fP, +with branch cuts outside the interval +[-\fIi\fP,\ +\fIi\fP] along the imaginary axis. +.SH RETURN VALUE +.LP +These functions return the complex arc tangent value, in the +range of a strip mathematically unbounded along the imaginary +axis and in the interval [-pi/2,\ +pi/2] along the +real axis. +.SH ERRORS +.LP +No errors are defined. +.LP +\fIThe following sections are informative.\fP +.SH EXAMPLES +.LP +None. +.SH APPLICATION USAGE +.LP +None. +.SH RATIONALE +.LP +None. +.SH FUTURE DIRECTIONS +.LP +None. +.SH SEE ALSO +.LP +\fIctan\fP(), the Base Definitions volume of IEEE\ Std\ 1003.1-2001, +\fI\fP +.SH COPYRIGHT +Portions of this text are reprinted and reproduced in electronic form +from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology +-- Portable Operating System Interface (POSIX), The Open Group Base +Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of +Electrical and Electronics Engineers, Inc and The Open Group. In the +event of any discrepancy between this version and the original IEEE and +The Open Group Standard, the original IEEE and The Open Group Standard +is the referee document. The original Standard can be obtained online at +http://www.opengroup.org/unix/online.html . Index: lib/msun/complex/cacos.3 =================================================================== --- lib/msun/complex/cacos.3 (revision 0) +++ lib/msun/complex/cacos.3 (revision 0) @@ -0,0 +1,57 @@ +.\" $NetBSD: cacos.3,v 1.1 2008/02/20 09:55:38 drochner Exp $ +.\" Copyright (c) 2001-2003 The Open Group, All Rights Reserved +.TH "CACOS" 3P 2003 "IEEE/The Open Group" "POSIX Programmer's Manual" +.\" cacos +.SH NAME +cacos, cacosf \- complex arc cosine functions +.SH SYNOPSIS +.LP +\fB#include +.br +.sp +double complex cacos(double complex\fP \fIz\fP\fB); +.br +float complex cacosf(float complex\fP \fIz\fP\fB); +.br +\fP +.SH DESCRIPTION +.LP +These functions compute the complex arc cosine of \fIz\fP, with +branch cuts outside the interval [-1,\ +1] along the +real axis. +.SH RETURN VALUE +.LP +These functions return the complex arc cosine value, in the +range of a strip mathematically unbounded along the imaginary +axis and in the interval [0,\ pi] along the real axis. +.SH ERRORS +.LP +No errors are defined. +.LP +\fIThe following sections are informative.\fP +.SH EXAMPLES +.LP +None. +.SH APPLICATION USAGE +.LP +None. +.SH RATIONALE +.LP +None. +.SH FUTURE DIRECTIONS +.LP +None. +.SH SEE ALSO +.LP +\fIccos\fP(), the Base Definitions volume of IEEE\ Std\ 1003.1-2001, +\fI\fP +.SH COPYRIGHT +Portions of this text are reprinted and reproduced in electronic form +from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology +-- Portable Operating System Interface (POSIX), The Open Group Base +Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of +Electrical and Electronics Engineers, Inc and The Open Group. In the +event of any discrepancy between this version and the original IEEE and +The Open Group Standard, the original IEEE and The Open Group Standard +is the referee document. The original Standard can be obtained online at +http://www.opengroup.org/unix/online.html . >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-bugs@FreeBSD.ORG Mon Jun 7 00:10:02 2010 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C3B371065670 for ; Mon, 7 Jun 2010 00:10:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (unknown [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 9FD558FC23 for ; Mon, 7 Jun 2010 00:10:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o570A2VJ087289 for ; Mon, 7 Jun 2010 00:10:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o570A27K087288; Mon, 7 Jun 2010 00:10:02 GMT (envelope-from gnats) Resent-Date: Mon, 7 Jun 2010 00:10:02 GMT Resent-Message-Id: <201006070010.o570A27K087288@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, James Bailie Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E20EF1065672 for ; Mon, 7 Jun 2010 00:04:40 +0000 (UTC) (envelope-from jimmy@mammothcheese.ca) Received: from smtp105.rog.mail.re2.yahoo.com (smtp105.rog.mail.re2.yahoo.com [206.190.36.83]) by mx1.freebsd.org (Postfix) with SMTP id 8B3CC8FC15 for ; Mon, 7 Jun 2010 00:04:40 +0000 (UTC) Received: (qmail 56775 invoked from network); 7 Jun 2010 00:04:39 -0000 Received: from _HOSTNAME_ (jimmy@99.255.2.249 with login) by smtp105.rog.mail.re2.yahoo.com with SMTP; 06 Jun 2010 17:04:38 -0700 PDT Received: by _HOSTNAME_ (sSMTP sendmail emulation); Sun, 06 Jun 2010 20:04:38 -0400 Message-Id: <730490.56672.qm@smtp105.rog.mail.re2.yahoo.com> Date: Sun, 06 Jun 2010 20:04:38 -0400 From: "James Bailie" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: kern/147604: kqueue timer events are not deleted when associated descriptor is closed X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: James Bailie List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jun 2010 00:10:02 -0000 >Number: 147604 >Category: kern >Synopsis: kqueue timer events are not deleted when associated descriptor is closed >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jun 07 00:10:02 UTC 2010 >Closed-Date: >Last-Modified: >Originator: James Bailie >Release: FreeBSD 8.1-PRERELEASE amd64 >Organization: >Environment: System: FreeBSD localhost 8.1-PRERELEASE FreeBSD 8.1-PRERELEASE #20: Sat May 29 13:36:02 EDT 2010 root@localhost:/usr/obj/usr/src/sys/LOCAL amd64 >Description: Timer events set with kevent() do not get deleted when the associated descriptor is closed. If this behavior is intentional, then the manual page should be modified to reflect this. >How-To-Repeat: --- test.c begins here --- #include #include #include #include #include #include int main( int argc, char **argv ) { struct kevent inqueue[ 1 ], outqueue[ 1 ]; int kq, inq; if (( kq = kqueue()) < 0 ) { fprintf( stderr, "kqueue(): %s", strerror( errno )); exit( 1 ); } inqueue[ 0 ].ident = 0; inqueue[ 0 ].filter = EVFILT_TIMER; inqueue[ 0 ].fflags = 0; inqueue[ 0 ].data = 1000; inqueue[ 0 ].flags = EV_ADD | EV_ENABLE; inqueue[ 0 ].udata = NULL; for( inq = 1; ; inq = 0 ) { if ( kevent( kq, inqueue, inq, outqueue, 1, NULL ) > 0 && outqueue[ 0 ].filter == EVFILT_TIMER ) { write( 1, "TIMEOUT\n", 8 ); if ( inq ) close( 0 ); } } } --- test.c ends here --- >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-bugs@FreeBSD.ORG Mon Jun 7 02:40:04 2010 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6A0971065676 for ; Mon, 7 Jun 2010 02:40:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (unknown [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 490A88FC14 for ; Mon, 7 Jun 2010 02:40:04 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o572e47T021249 for ; Mon, 7 Jun 2010 02:40:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o572e43e021248; Mon, 7 Jun 2010 02:40:04 GMT (envelope-from gnats) Resent-Date: Mon, 7 Jun 2010 02:40:04 GMT Resent-Message-Id: <201006070240.o572e43e021248@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Kaoru Kusachi Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AAE7B106566B for ; Mon, 7 Jun 2010 02:39:19 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 9A37E8FC13 for ; Mon, 7 Jun 2010 02:39:19 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o572dHBS020185 for ; Mon, 7 Jun 2010 02:39:17 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o572dHhb020184; Mon, 7 Jun 2010 02:39:17 GMT (envelope-from nobody) Message-Id: <201006070239.o572dHhb020184@www.freebsd.org> Date: Mon, 7 Jun 2010 02:39:17 GMT From: Kaoru Kusachi To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: bin/147629: /usrt/bin/rup problem 365 days period X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jun 2010 02:40:04 -0000 >Number: 147629 >Category: bin >Synopsis: /usrt/bin/rup problem 365 days period >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jun 07 02:40:03 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Kaoru Kusachi >Release: 8.0-RELEASE >Organization: LSI Japan Co.,LTD. >Environment: FreeBSD tc500l 8.0-RELEASE-p3 FreeBSD 8.0-RELEASE-p3 #1: Fri May 28 08:30:19 JST 2010 root@tc500l:/usr/src/sys/i386/compile/GENERIC i386 >Description: For the wrong view of the flag / usr / bin / rup disappear every day 365 days run on the remote machine's display. >How-To-Repeat: tika@tc500l$ rup mars mars 11:31am up 21:26, load average: 0.03 0.03 0.03 on remote machine tika@mars$ uptime 11:32am up 365 day(s), 21:27, 1 user, load average: 0.04, 0.03, 0.03 >Fix: *** /usr/.zfs/snapshot/20100607/src/usr.bin/rup/rup.c Thu Oct 29 12:06:01 2009 --- rup.c Mon Jun 7 11:15:06 2010 *************** *** 141,152 **** } #define updays (host_stat->curtime.tv_sec / 86400) ! if (host_uptime.tm_yday != 0) sprintf(days_buf, "%3d day%s, ", updays, (updays > 1) ? "s" : ""); ! else days_buf[0] = '¥0'; ! if (host_uptime.tm_hour != 0) sprintf(hours_buf, "%2d:%02d, ", host_uptime.tm_hour, host_uptime.tm_min); --- 141,152 ---- } #define updays (host_stat->curtime.tv_sec / 86400) ! if (updays != 0) { sprintf(days_buf, "%3d day%s, ", updays, (updays > 1) ? "s" : ""); ! } else { days_buf[0] = '¥0'; ! } if (host_uptime.tm_hour != 0) sprintf(hours_buf, "%2d:%02d, ", host_uptime.tm_hour, host_uptime.tm_min); >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-bugs@FreeBSD.ORG Mon Jun 7 07:30:05 2010 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6EDA3106566C for ; Mon, 7 Jun 2010 07:30:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (unknown [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 2FB128FC14 for ; Mon, 7 Jun 2010 07:30:05 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o577U5ts099813 for ; Mon, 7 Jun 2010 07:30:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o577U51x099812; Mon, 7 Jun 2010 07:30:05 GMT (envelope-from gnats) Resent-Date: Mon, 7 Jun 2010 07:30:05 GMT Resent-Message-Id: <201006070730.o577U51x099812@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, MURAMATSU Atsushi Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D04B0106567C for ; Mon, 7 Jun 2010 07:25:06 +0000 (UTC) (envelope-from amura@tomato.sakura.ne.jp) Received: from tomato.sakura.ne.jp (tomato.sakura.ne.jp [210.188.226.72]) by mx1.freebsd.org (Postfix) with ESMTP id 80F238FC1D for ; Mon, 7 Jun 2010 07:25:06 +0000 (UTC) Received: from looxu.amura.dyndns.org (118x236x200x29.ap118.gyao.ne.jp [118.236.200.29]) (authenticated bits=0) by tomato.sakura.ne.jp (8.14.2/8.14.2/[SAKURA-WEB]/20080708) with ESMTP id o577P42e078637 for ; Mon, 7 Jun 2010 16:25:05 +0900 (JST) (envelope-from amura@tomato.sakura.ne.jp) Received: by looxu.amura.dyndns.org (Postfix, from userid 1001) id 8932A46; Mon, 7 Jun 2010 16:25:03 +0900 (JST) Message-Id: <20100607072503.8932A46@looxu.amura.dyndns.org> Date: Mon, 7 Jun 2010 16:25:03 +0900 (JST) From: MURAMATSU Atsushi To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: kern/147638: [PATCH] [ath] Atheros R9280 has probrem at 8.1-PRERELEASE X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: MURAMATSU Atsushi List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jun 2010 07:30:05 -0000 >Number: 147638 >Category: kern >Synopsis: [PATCH] [ath] Atheros R9280 has probrem at 8.1-PRERELEASE >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jun 07 07:30:04 UTC 2010 >Closed-Date: >Last-Modified: >Originator: MURAMATSU Atsushi >Release: FreeBSD 8.1-PRERELEASE i386 >Organization: >Environment: System: FreeBSD looxu.amura.dyndns.org 8.1-PRERELEASE FreeBSD 8.1-PRERELEASE #1 r208809M: Sun Jun 6 00:38:12 JST 2010 root@looxu.amura.dyndns.org:/usr/obj/usr/src/sys/LOOXU i386 >Description: I have notebook which has Atheros 9280 for Wi-fi. It worked correctly with 8-stable before 2nd March, but It doesn't work well with 8-stable at 6th June. >How-To-Repeat: >Fix: I found this probrem is caused by changing sys/dev/ath/ath_hal/ar5416reg.h at r204580. In this change, AR_SERV_MERLIN_20 macro is changed to return false with Merlin 2.1 chip. I seemed my notebook has Merlin 2.1 chip from kernel messages, so I got problem. I wrote patch for this bug, and attach it this send-pr. I think PR146517 is a same probrem, this patch can fix it. --- ath.patch begins here --- Index: ath_hal/ar5416/ar9280_attach.c =================================================================== --- ath_hal/ar5416/ar9280_attach.c (revision 208809) +++ ath_hal/ar5416/ar9280_attach.c (working copy) @@ -346,7 +346,7 @@ regWrites = ath_hal_ini_write(ah, &AH5212(ah)->ah_ini_common, 1, regWrites); - if (AR_SREV_MERLIN_20(ah) && IS_5GHZ_FAST_CLOCK_EN(ah, chan)) { + if (AR_SREV_MERLIN_2x(ah) && IS_5GHZ_FAST_CLOCK_EN(ah, chan)) { /* 5GHz channels w/ Fast Clock use different modal values */ regWrites = ath_hal_ini_write(ah, &AH9280(ah)->ah_ini_xmodes, modesIndex, regWrites); Index: ath_hal/ar5416/ar5416reg.h =================================================================== --- ath_hal/ar5416/ar5416reg.h (revision 208809) +++ ath_hal/ar5416/ar5416reg.h (working copy) @@ -601,8 +601,11 @@ #define AR_SREV_MERLIN_20(_ah) \ (AR_SREV_MERLIN(_ah) && \ AH_PRIVATE((_ah))->ah_macRev == AR_XSREV_REVISION_MERLIN_20) +#define AR_SREV_MERLIN_2x(_ah) \ + (AR_SREV_MERLIN(_ah) && \ + AH_PRIVATE((_ah))->ah_macRev >= AR_XSREV_REVISION_MERLIN_20) #define AR_SREV_MERLIN_20_OR_LATER(_ah) \ - (AR_SREV_MERLIN_20(_ah) || \ + (AR_SREV_MERLIN_2x(_ah) || \ AH_PRIVATE((_ah))->ah_macVersion > AR_XSREV_VERSION_MERLIN) #define AR_SREV_KITE(_ah) \ Index: ath_hal/ar5416/ar5416_reset.c =================================================================== --- ath_hal/ar5416/ar5416_reset.c (revision 208809) +++ ath_hal/ar5416/ar5416_reset.c (working copy) @@ -627,7 +627,7 @@ /* treat channel B as channel G , no B mode suport in owl */ rfMode = IEEE80211_IS_CHAN_CCK(chan) ? AR_PHY_MODE_DYNAMIC : AR_PHY_MODE_OFDM; - if (AR_SREV_MERLIN_20(ah) && IS_5GHZ_FAST_CLOCK_EN(ah, chan)) { + if (AR_SREV_MERLIN_2x(ah) && IS_5GHZ_FAST_CLOCK_EN(ah, chan)) { /* phy mode bits for 5GHz channels require Fast Clock */ rfMode |= AR_PHY_MODE_DYNAMIC | AR_PHY_MODE_DYN_CCK_DISABLE; @@ -1114,7 +1114,7 @@ { uint32_t pll; - if (AR_SREV_MERLIN_20(ah) && + if (AR_SREV_MERLIN_2x(ah) && chan != AH_NULL && IEEE80211_IS_CHAN_5GHZ(chan)) { /* * PLL WAR for Merlin 2.0/2.1 --- ath.patch ends here --- --- dmesg begins here --- Copyright (c) 1992-2010 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 8.1-PRERELEASE #1 r208809M: Sun Jun 6 00:38:12 JST 2010 root@looxu.amura.dyndns.org:/usr/obj/usr/src/sys/LOOXU i386 Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Atom(TM) CPU Z530 @ 1.60GHz (1596.01-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x106c2 Family = 6 Model = 1c Stepping = 2 Features=0xbfe9fbff Features2=0x40c3bd AMD Features=0x100000 AMD Features2=0x1 TSC: P-state invariant real memory = 1073741824 (1024 MB) avail memory = 1025736704 (978 MB) -- snip -- ath0: mem 0xfd500000-0xfd50ffff irq 17 at device 0.0 on pci8 ath0: [ITHREAD] ath0: AR9280 mac 128.2 RF5133 phy 13.0 -- snip -- --- dmesg ends here --- >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-bugs@FreeBSD.ORG Mon Jun 7 09:11:57 2010 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2A6C0106567A; Mon, 7 Jun 2010 09:11:57 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from freefall.freebsd.org (unknown [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 0242C8FC1B; Mon, 7 Jun 2010 09:11:57 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o579Buqs002844; Mon, 7 Jun 2010 09:11:56 GMT (envelope-from delphij@freefall.freebsd.org) Received: (from delphij@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o579BuK2002840; Mon, 7 Jun 2010 09:11:56 GMT (envelope-from delphij) Date: Mon, 7 Jun 2010 09:11:56 GMT Message-Id: <201006070911.o579BuK2002840@freefall.freebsd.org> To: delphij@FreeBSD.org, freebsd-bugs@FreeBSD.org, delphij@FreeBSD.org From: delphij@FreeBSD.org Cc: Subject: Re: bin/147275: [patch] gzip(1): gzip -c does not save original time stamp X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jun 2010 09:11:57 -0000 Synopsis: [patch] gzip(1): gzip -c does not save original time stamp Responsible-Changed-From-To: freebsd-bugs->delphij Responsible-Changed-By: delphij Responsible-Changed-When: Mon Jun 7 09:11:42 UTC 2010 Responsible-Changed-Why: Take. http://www.freebsd.org/cgi/query-pr.cgi?pr=147275 From owner-freebsd-bugs@FreeBSD.ORG Mon Jun 7 11:09:08 2010 Return-Path: Delivered-To: freebsd-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 032FC106572B for ; Mon, 7 Jun 2010 11:09:08 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (unknown [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C5CB78FC2E for ; Mon, 7 Jun 2010 11:09:07 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o57B97P2010491 for ; Mon, 7 Jun 2010 11:09:07 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o57B96cc010489 for freebsd-bugs@FreeBSD.org; Mon, 7 Jun 2010 11:09:06 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 7 Jun 2010 11:09:06 GMT Message-Id: <201006071109.o57B96cc010489@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: FreeBSD bugs list Cc: Subject: Current problem reports containing patches X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jun 2010 11:09:08 -0000 (Note: an HTML version of this report is available at http://people.freebsd.org/~linimon/studies/prs/prs_for_tag_patch.html .) S Tracker Resp. Description -------------------------------------------------------------------------------- o ports/147646 x11 [PATCH][Mesa] graphics/libGL: fix linking with newer g o ports/147643 miwi [PATCH] multimedia/mkvtoolnix: fix compilation with gc o ports/147642 [patch] misc/xdelta3: update to 3.0.y o ports/147640 miwi [PATCH] multimedia/mkvtoolnix: use += for setting CPPF f ports/147639 [PATCH] audio/libtunepimp: make compilable with gcc44 o kern/147638 [PATCH] [ath] Atheros R9280 has probrem at 8.1-PRERELE o ports/147637 [PATCH] www/ap22-mod_mod_scgi: Convert to AP_FAST_BUIL f ports/147634 [PATCH] www/ap22-mod_memcache: Conver to AP_FAST_BUILD o ports/147633 leeym [PATCH] www/ap22-mod_log_firstbyte: Convert to AP_FAST f ports/147632 [PATCH] www/ap22-mod_limitipconn: Convert to AP_FAST_B o ports/147631 ale [PATCH] www/ap22-mod_gzip: Convert to AP_FAST_BUILD / o ports/147626 clsung [PATCH] www/p5-WWW-Search: update to 2.508 o ports/147625 clsung [PATCH] textproc/p5-XML-Compile: update to 1.15 o ports/147624 clsung [PATCH] textproc/p5-Lingua-EN-Tagger: update to 0.16 o ports/147623 clsung [PATCH] sysutils/p5-mogilefs-server: update to 2.36 o ports/147622 clsung [PATCH] sysutils/p5-MogileFS-Utils: update to 2.16 o ports/147621 clsung [PATCH] sysutils/p5-MogileFS-Client: update to 1.11 o ports/147620 clsung [PATCH] security/p5-Module-Signature: update to 0.64 o ports/147619 clsung [PATCH] net/p5-XML-Compile-SOAP: update to 2.14 o ports/147618 clsung [PATCH] net/p5-Net-Twitter: update to 3.13003 o ports/147617 clsung [PATCH] net/p5-Net-GitHub: update to 0.22 o ports/147616 clsung [PATCH] misc/p5-Software-License: update to 0.101410 o ports/147615 clsung [PATCH] graphics/p5-Image-Compare: update to 0.8 o ports/147614 clsung [PATCH] dns/p5-Net-Domain-ExpireDate: update to 0.98 o ports/147613 clsung [PATCH] devel/p5-threads: update to 1.77 o ports/147612 clsung [PATCH] devel/p5-Module-Install: update to 0.99 o ports/147611 clsung [PATCH] devel/p5-Log-Dispatch-Config: update to 1.03 o ports/147610 clsung [PATCH] devel/p5-Data-ObjectDriver: update to 0.07 o ports/147609 clsung [PATCH] devel/p5-Algorithm-Networksort: update to 1.09 o ports/147608 clsung [PATCH] devel/p5-Algorithm-Cluster: update to 1.49 o ports/147607 clsung [PATCH] databases/p5-BerkeleyDB: update to 0.42 o ports/147606 clsung [PATCH] converters/p5-JSON-XS: update to 2.29 o kern/147599 [patch] Import netbsd complex functions into our libm o kern/147583 [PATCH] sys/dev/puc/pucdata.c: incorrect clock value f o ports/147568 x11 [patch] powerpc64 support for x11-servers/xorg-server o ports/147559 [PATCH] upgrade games/freeciv to recent version o ports/147557 clsung [PATCH] security/snort: fix snortsam patch for 2.8.5.3 o ports/147555 miwi [PATCH] irc/p5-POE-Component-IRC: update to 6.32 f ports/147548 lioux [PATCH] graphics/libjpeg-turbo: Fix build - depend upo o ports/147547 ruby [PATCH]: Mk/bsd.ruby.mk: support --no-rdoc for -DNOPOR o ports/147544 clsung [PATCH] www/rubygem-thin: update to 1.2.5 f ports/147543 pgollucci [PATCH] www/rubygem-sinatra: update to 0.9.5 o ports/147542 niels [PATCH] www/rubygem-robots: update to 0.9.0 o ports/147535 clsung [PATCH] net/rubygem-twitter4r: update to 0.3.2 o ports/147534 dhn [PATCH] net/rubygem-rubytter: update to 1.3.0 o ports/147531 clsung [PATCH] devel/rubygem-zentest: update to 4.3.2 o ports/147528 clsung [PATCH] devel/rubygem-tzinfo: update to 0.3.21 o ports/147525 kuriyama [PATCH] devel/rubygem-msgpack: update to 0.4.2 o ports/147523 clsung [PATCH] devel/rubygem-json: update to 1.2.0 f ports/147520 pgollucci [PATCH] devel/rubygem-git: update to 1.2.5 f ports/147519 pgollucci [PATCH] devel/rubygem-facets: update to 2.8.0 o ports/147518 clsung [PATCH] devel/rubygem-extlib: update to 0.9.15 o ports/147510 skv [PATCH] security/p5-POE-Component-SSLify: update to 0. f ports/147509 [PATCH] devel/p5-POE-Test-Loops: update to 1.035 f ports/147500 [patch] Make deskutils/xpad usable o ports/147494 skreuzer [PATCH] Fix RFC2553 option for devel/distcc f ports/147492 [PATCH] textproc/scim-bridge segfaults. f ports/147487 [PATCH] strange behaviour of math/arpack linking with o ports/147476 portmgr [PATCH] Mk/bsd.port.mk: fix 'make deinstall' for @comm o misc/147471 mips [includes] [patch] whitespace discrepancy in sys/mips/ o misc/147470 [patch] typo and mistake in UPDATING file o kern/147466 multimedia [snd_hda] [patch] Thinkpad t510, codecs not recognized f ports/147464 [PATCH] devel/icu4: update to 4.4 o misc/147463 [tools] [patch] Patch for tools/regression/lib/libc/st f ports/147453 pgollucci [PATCH] mail/elm: Fix fetch, not make jobs safe o conf/147444 rc [rc.d] [patch] /etc/rc.d/zfs stop not called on reboot o ports/147439 mnag [PATCH] www/lighttpd: add docs and mod_h264_streaming o ports/147432 jadawin [PATCH] security/py-posix1e: update to 0.5.0 f ports/147427 [patch] sysutils/fusefs-wdfs allow build with neon29 f ports/147414 pgollucci [PATCH] www/p5-WWW-OpenSearch: update to 0.16 f ports/147413 pgollucci [PATCH] www/p5-HTML-Selector-XPath: update to 0.04 f ports/147411 pgollucci [PATCH] www/p5-Catalyst-Plugin-Unicode-Encoding: updat f ports/147410 pgollucci [PATCH] www/p5-Catalyst-Plugin-Session-Store-Delegate: f ports/147409 pgollucci [PATCH] www/p5-Catalyst-Plugin-Scheduler: Fix build an f ports/147408 pgollucci [PATCH] www/p5-Catalyst-Plugin-Params-Nested: update t f ports/147406 pgollucci [PATCH] www/p5-Catalyst-Authentication-Store-DBIx-Clas f ports/147404 pgollucci [PATCH] www/p5-CGI-Application-Plugin-AutoRunmode: upd f ports/147402 pgollucci [PATCH] textproc/p5-Perl-Critic-Bangs: update to 1.06 f ports/147400 pgollucci [PATCH] textproc/p5-EBook-Tools: update to 0.4.8 f ports/147399 pgollucci [PATCH] sysutils/p5-ZConf-Cron: update to 1.1.0 f ports/147398 pgollucci [PATCH] net-mgmt/p5-Nagios-Plugin: update to 0.34 f ports/147397 pgollucci [PATCH] net/p5-Net-LDAP-Makepath: Add missing depends f ports/147396 pgollucci [PATCH] net/p5-Net-LDAP-AutoServer: Add missing depend f ports/147391 pgollucci [PATCH] net/p5-Net-Google-Calendar: update to 0.99 f ports/147386 pgollucci [PATCH] devel/p5-threads-shared: update to 1.33 f ports/147385 pgollucci [PATCH] devel/p5-pip: update to 1.18 f ports/147381 pgollucci [PATCH] devel/p5-Tie-DB_FileLock: update to 0.11 f ports/147380 pgollucci [PATCH] devel/p5-Thread-Cancel: update to 1.11 f ports/147379 pgollucci [PATCH] devel/p5-Test-Strict: update to 0.14 f ports/147378 pgollucci [PATCH] devel/p5-Sub-WrapPackages: update to 2.0 f ports/147377 pgollucci [PATCH] devel/p5-Rose-Object: update to 0.858 f ports/147376 pgollucci [PATCH] devel/p5-Rose-DateTime: update to 0.534 f ports/147374 pgollucci [PATCH] devel/p5-POE-XS-Loop-Poll: update to 1.000 f ports/147373 pgollucci [PATCH] devel/p5-Object-InsideOut: update to 3.67 f ports/147371 pgollucci [PATCH] devel/p5-ExtUtils-XSpp: update to 0.11 f ports/147367 pgollucci [PATCH] devel/p5-Config-IniFiles: update to 2.58 f ports/147365 pgollucci [PATCH] devel/p5-Class-Unload: update to 0.06 f ports/147364 pgollucci [PATCH] devel/p5-CPAN-SQLite: update to 0.199 f ports/147363 pgollucci [PATCH] databases/p5-DBIx-Class-QueryLog: update to 1. f ports/147361 pgollucci [PATCH] devel/p5-Class-Adapter: update to 1.07 f ports/147360 pgollucci [PATCH] comms/p5-SMS-Send-TW-emome: update to 0.04 f ports/147359 pgollucci [PATCH] databases/p5-Rose-DB: update to 0.761 f ports/147358 pgollucci [PATCH] databases/p5-ORLite: update to 1.43 o ports/147356 ruby [PATCH] devel/rubygem-newgem: update to 1.5.3 o kern/147352 net [netinet] [patch] replace printf() with log() for "Lim o ports/147346 [PATCH] sync in last of print/hplip personal patches. o kern/147337 [agp] [patch] agp_nvidia device_printf missing newline o ports/147335 philip [patch] [update] games/wesnoth from 1.6.5_4 to 1.8.2 o ports/147318 x11 [Patch]graphics/libdrm:Fix the PLIST when define WITHO o ports/147316 mnag [patch] misc/pecl-timezonedb is too old o ports/147313 lwhsu [patch] www/py-django - depend on py-psycopg2 as pytho o ports/147296 portmgr [PATCH] Mk/bsd.licenses.mk: Fix leftovers with custom f ports/147293 [PATCH] net/nss_ldapd: update to 0.7.6 o kern/147292 fs [nfs] [patch] readahead missing in nfs client options o ports/147287 [PATCH] sysutils/openipmi: support sensors for Sun Fir f ports/147278 [patch] lang/mlton: make it build again o ports/147277 oliver [PATCH] Add option for amidi plugin for multimedia/aud p bin/147275 delphij [patch] gzip(1): gzip -c does not save original o kern/147237 [psm] [patch] There is no IBM/Lenovo TrackPoint suppor f ports/147232 pav [patch] port irc/inspircd is out of date o ports/147221 [patch] japanese/lynx: Update to the latest stable rel o ports/147220 [patch] japanese/lynx-current: Update to the latest cu o ports/147209 [PATCH] www/tinymce: update to 3.3.6 o ports/147206 fluffy [patch] [maintainer] update kdesvn-kde4 1.5.2 -> 1.5.3 o ports/147205 fluffy [patch] update plamsa-applet-cwp 0.9.17 -> 1.0.3 f ports/147199 [patch] port net-mgmt/pnp fix php5.3 issues a usb/147196 usb [usbdevs] [patch] Please add a USB-HDD to usb_quirk.c o usb/147190 usb [usbdevs] [patch] Add USR5422 to upgt wlan driver o docs/147180 doc [patch] Fix manpage of acpi(4): No need to disable the o ports/147163 ale [PATCH] graphics/php4-gd: [Security fix for gd remote f ports/147160 [patch] Update comms/dfu-programmer to 0.5.2 o ports/147153 jpaetzel [patch] x11/x3270 update to current version f ports/147151 pgollucci [PATCH] sysutils/rsyslog: update to 5.5.5 o ports/147148 clsung [PATCH] devel/rubygem-rubigen: update to 1.5.3 f ports/147147 apache [PATCH] www/mod_log_dbd: cleanups f ports/147145 apache [PATCH] www/mod_clamav: clean sup o ports/147137 ruby MK/bsd.ruby.mk: [patch]: support devel/rubygem-rake un o kern/147127 [pccard] [patch] Fix panic in pccard.c o conf/147126 [firewire] [patch] missing firewire part in defaults/l f ports/147123 [patch] devel/m17n-lib: doesn't build without devel/ge o i386/147120 i386 [loader] [patch] consistently use 'x86' keyword in loa o docs/147119 doc [geom] [patch] fix a typo in gsched(8) manual o ports/147114 portmgr Mk/bsd.port.mk: [patch]: remove last vestige of APACHE o ports/147111 ruby [PATCH] lang/ruby19: support security/openssl f ports/147103 [patch] editors/emacs-nox11: skip OPTIONS and use WITH o ports/147099 araujo [PATCH] www/mod_security: update to 2.5.12 o ports/147051 python [patch] update devel/py-ctypes to 1.02 and adjust supp o ports/147044 clsung [PATCH] net/rubygem-yadis: Use RG macro o ports/147009 portmgr Mk/bsd.apache.mk: [patch] default to www/apache22 p ports/146988 marcus [PATCH] ports-mgmt/portlint: APACHE updates o ports/146977 jadawin [patch] www/surfraw: update to 2.2.7 o ports/146961 wxs [patch] devel/git: strip(1) binaries by default for no o ports/146950 brooks [PATCH] sysutils/ganglia-webfrontend: devel/apr* shoul f ports/146945 ume [PATCH] security/cyrus-sasl: pkg-plist is broken o ports/146944 python [patch] mark archivers/py-tarfile deprecated o bin/146916 ed [patch] sh(1) uses dumb terminal in single-user mode a usb/146907 usb [rue] [patch] OQO model01 network does not work on Fre o ports/146905 clsung [PATCH] devel/googlemock: update to 1.5.0 o ports/146903 clsung [PATCH] devel/googletest: update to 1.5.0 o kern/146889 [libc] [patch] Not having NET_RT_IFLIST #defined cause f ports/146885 gnome [patch] fix make package for x11-toolkits/gtk20 when W o ports/146876 mnag [PATCH] databases/sqlite3: recover missing dependency o ports/146872 wen [maintainer-update] [patch] games/eduke32 : update to o usb/146871 usb [usbdevs] [usb8] [patch] provide descriprive string fo f ports/146867 wen [patch] www/cherokee - Add an optional dependency on u o ports/146863 ruby [patch] lang/ruby19: remove extra `-g' from CFLAGS and o ports/146862 jadawin [PATCH] archivers/p5-IO-Compress-Zlib: fix pkg-plist o bin/146859 [patch] pkg_create(1): libpkg/msg.c removal and relate o ports/146858 ruby [patch] ports-mgmt/portupgrade-devel: respect LOCALBAS o bin/146857 [patch] pkg_create(8): fix missing error call in uname o bin/146855 [patch] sysinstall(8): address possible QA issues with o ports/146844 clsung [patch] devel/p5-reaper update to version 1.0 o ports/146842 mm [patch] multimedia/libquicktime contains typos o bin/146835 [patch] ifmcstat(8) fails to build without KVM and wit o conf/146828 [patch] conf/newvers.sh: respect LOCALBASE and MAKEOBJ o ports/146826 krion [patch] lang/gawk: prevent makeinfo banner from appear o ports/146823 python [patch] lang/python26: knob to build _ctypes module ag o bin/146821 [patch] info(1): respect LOCALBASE for INFODIR o ports/146816 portmgr [patch] Mk/bsd.port.mk: loosen SU_CMD & su(1) cohesion o conf/146793 [kbdmap] [patch] Danish kbdmap for MacBook o ports/146773 stas [patch] lang/sbcl: /etc/sbclrc -> PREFIX/etc/sbclrc f ports/146766 [patch] update sysutils/bacula-server to 5.0.2 o kern/146759 net [cxgb] [patch] cxgb panic calling cxgb_set_lro() witho o kern/146758 multimedia [sound] [patch] fix volume control in spicds o ports/146754 miwi [patch] new port: add devel/atf framework to ports o ports/146752 vbox [patch] emulators/virtualbox-ose: VirtualBox assertion f ports/146736 lwhsu [PATCH] net/tintin++: update to 2.00.1 o ports/146720 obrien [PATCH] net/rdesktop: add LIBAO and LIBSAMPLERATE opti o ports/146713 [patch] net-mgmt/argus-monitor update o ports/146711 brooks [PATCH] devel/llvm: should run-depend on Perl f ports/146706 skv [PATCH] mail/libdomainkeys: [SUMMARIZE CHANGES] o bin/146687 [tools] [patch] Fix QA issues with tools/regression/ai o ports/146685 acm [PATCH] games/naev: update to 0.4.2 o ports/146684 acm [PATCH] games/naev-data: update to 0.4.2 o ports/146657 girgen [Patch]databases/postgresql84-server:add option of sup o kern/146628 net [tcp] [patch] TCP does not clear DF when MTU is below o ports/146623 stas [PATCH]lang/sbcl: update to 1.0.38 o ports/146613 krion [PATCH]devel/nasm: update to 2.08.01 o ports/146605 wxs [patch] devel/git make python dep optional, make /etc/ o kern/146592 [libpcap] [patch] libpcap 1.0.0 doesn't have error mes o kern/146588 [kernel] [patch] sys/kern/kern_uuid.c has a le16dec be o ports/146582 gnome [PATCH]textproc/libxml2: add option to build without t f ports/146581 [PATCH] net-mgmt/zabbix-server: support for ipmi via s o ports/146573 sahil [PATCH] audio/icecast2: I fail in the second make pack f ports/146571 [patch] mail/spamd -- let obspamlogd manage its own pf o ports/146560 edwin [PATCH] www/mod_encoding: drop support for apache_vers f ports/146556 dinoex [patch] ftp/vsftpd rc script doesn't support vsftpd_fl o ports/146551 fjoe [patch] x11-toolkits/wxgtk28: move gstreamer and mspac o bin/146541 [patch] add check option to md5(1) o ports/146523 novel [PATCH] x11-wm/obconf: fix on amd64 o ports/146507 nivit [patch] devel/py-Jinja2: enable speedups o ports/146496 portmgr [bsd.port.mk] [PATCH] Removing ${PORTSDIR} from depend f ports/146495 miwi [PATCH] x11-drivers/input-wacom: update for xorg-serve p usb/146483 thompsa [usbdevs] [patch] Another USB FTDI device o conf/146439 [patch] remove share/man/man1aout o ports/146435 wes [PATCH] mail/mimedefang - Update to 2.68 and a few add o kern/146429 pjd [geli][panic][patch] kernel panic if geli autodetach i o ports/146422 gnome [patch] x11-toolkits/gtk20: experimental DIRECTFB targ o ports/146421 gnome [patch] graphics/cairo: add DIRECTFB knob f ports/146419 [patch] devel/directfb: FREETYPE2 enabled unconditiona o kern/146410 pjd [zfs] [patch] bad file copy performance from UFS to ZF o ports/146380 [patch] comms/xastir: Xastir grabs mouse pointer and w o kern/146375 fs [nfs] [patch] Typos in macro variables names in sys/fs p usb/146367 thompsa [usb8] [patch] Revision 205728: broken bluetooth mouse o ports/146366 sergei [patch] mail/offlineimap: update to 6.2.0.10 git-3c4de o ports/146365 makc [patch] converts LDCONFIG_DIRS to USE_LDCONFIG o ports/146359 philip [patch] games/wesnoth-devel: update to 1.8.1 and drop o ports/146351 portmgr [patch] [bsd.port.mk] Retire INSTALLS_SHLIB o ports/146347 portmgr [patch] [bsd.port.mk] fix USE_DOS2UNIX info output o ports/146335 nobutaka [patch] www/w3m: various PREFIX/LOCALBASE fixes o ports/146332 philip [patch] [update] games/wesnoth from 1.6.5 to 1.8.1 o bin/146331 [PATCH] Grow ps(1) with "gid" and "group" keywords o ports/146320 clsung [patch] net/p5-Net-Patricia needs p5-Socket6 o ports/146318 niels [PATCH] security/vuxml: emacs-23.1_6,1 is still vulner o ports/146276 ale [PATCH] databases/mysql55-server: fix vendor include/m o ports/146262 x11 [patch] x11/xinit: use PREFIX in the man page o ports/146257 itetcu [patch][repocopy] sysutils/bsdstats: improper use of L o bin/146254 [PATCH] mdmfs(8): Add -k option to specify a skeldir o kern/146250 net [netinet] [patch] Races on interface alias removal o ports/146247 hrs [patch] japanese/font-mplus: fix plist and non-LOCALBA o ports/146225 nivit [PATCH] Update databases/py-sqlalchemy to 0.6.0 o ports/146213 lwhsu [PATCH] net/tn5250j: patch for Jython 2.5.1 update f ports/146212 lwhsu [PATCH] databases/isql-viewer: patch for Jython 2.5.1 f ports/146207 [patch] multimedia/mediainfo: reduce noise and depende o ports/146197 gnome [patch] security/nss: respect LOCALBASE for system sql o docs/146195 doc [patch] wrap ata.4 lines on terminal boundary o kern/146190 vanhu [ipsec][patch] NAT traversal does not work in transpor o ports/146184 x11 [patch] graphics/libGL: install target fails on 2nd ru f ports/146183 [patch] mail/mutt-devel: add OPTIONS support o ports/146176 mlaier [patch] sysutils/pfstat: add rc.d script for pfstatd(8 p kern/146167 jhb [ptrace] [patch] ptrace PT_DETACH undocumented behavio o ports/146155 clsung [patch] port security/snort update to 2.8.6 o ports/146147 ale [patch] mail/roundcube: add installer and scripts o ports/146146 [patch] net-mgmt/p5-Cflow: add OPTIONS support o ports/146145 stas [patch] net-mgmt/flow-tools: add OPTIONS support o ports/146132 stas [PATCH] converters/ruby-iconv: add a do-clean target o ports/146131 glewis [PATCH] java/jdk15-16 make files/license.sh more verbo o misc/146119 [tools] [patch] (attempt to) cleanup tools/tools/umast o misc/146088 [tools] [patch] netrate/tcpconnect incorrectly uses er o misc/146086 [tools] [patch] 64-bit aware printf() fixes at tools/t o ports/146083 mnag [PATCH] databases/sqlite3: fix 'make package' when NO_ o ports/146076 clsung [patch] port security/snort distinfo, update snortsam f ports/146073 [patch] net/throttled replace ${SYSCTL} with /sbin/sys o ports/146067 portmgr [patch] [bsd.port.mk] remove compatibility describe ta o conf/146064 [patch] allow users to specify location for backups in o conf/146053 rc [patch] [request] shutdown of jails breaks inter-jail o docs/146047 doc [kld] [patch] the kldstat(2) manual needs to be more p p bin/146046 brueffer [kld] [patch] kldstat(8) contains an obsolete cast o amd64/145991 amd64 [patch] Add a requires line to /sys/amd64/conf/NOTES o misc/145962 [nanobsd] [patch] improved cfg save script o misc/145961 [patch] [nanobsd] improved flash update script o kern/145960 [mfi] [patch] make MFI_STAT_INVALID_STATUS error more o ports/145955 portmgr [bsd.port.mk] [patch] make fetch-required-list in a po o kern/145946 [patch] feature request: VDSO and shared pages o kern/145940 des [crypto] [patch] OpenSSH_5.4p1 - do not prepend Author f ports/145939 pav [PATCH] update science/gramps to 3.2.0 o bin/145934 [patch] add count option to netstat(1) o ports/145924 [PATCH] net/rtg: add startup script, and optimise data o ports/145916 oliver [PATCH] x11-fm/thunar: fix umask handling o ports/145908 timur [PATCH] net/samba33: update to 3.3.12 o ports/145890 jmelo [PATCH] sysutils/stress: update to 1.0.4 f ports/145836 [PATCH] x11-fonts/wqy-fonts: only build depend on perl o ports/145810 skv [patch] port devel/bugzilla post-patch correction f ports/145806 lev [PATCH] Update java/openjdk6 to b19 (latest one) f ports/145770 multimedia [patch] multimedia/gstreamer-plugins-v4l2 says Device o kern/145737 bz [netinet] [patch] Wrong UDP checksum not ignored as ex p kern/145736 bz [netinet] [patch] Access to freed mbuf in ip_forward w o kern/145733 ipfw [ipfw] [patch] ipfw flaws with ipv6 fragments o ports/145723 mm [patch] ftp/proftpd utils can't locate scoreboard file o docs/145719 doc [patch] 7.3 relnotes erroneously describes new getpage o i386/145718 i386 [est] [patch] fix freq calculation from MSR for CPUs w o ports/145704 miwi [patch] Update-request: audio/xmms2-scrobbler o bin/145694 [patch] enable config(8) execution outside of the kern o docs/145662 doc [patch] Porter's Handbook missing semicolon in desktop o conf/145648 [patch] remove all references to SLIP from /etc/* o ports/145598 portmgr [patch] Templates/BSD.local.dist o kern/145590 [kernel] [[patch] SIG_ATOMIC_{MIN,MAX} does not match o bin/145553 brucec [patch] sysinstall(8): fix default route o kern/145510 [PATCH] [twa] Removing USB keyboard after filesystems o kern/145462 net [netgraph] [patch] panic kernel when ng_ipfw send ip p o usb/145455 usb [usb8] [patch] USB debug support cannot be disabled o misc/145447 [release] [patch] noticed a useless cat(1) in install. o conf/145440 rc [rc.d] [patch] add multiple fib support (setfib) in /e o kern/145434 [kernel] [patch] Kernel messages about processes don't s kern/145424 fs [zfs] [patch] move source closer to v15 o conf/145399 rc [patch] rc.d scripts are unable to start/stop programs o misc/145395 [nanobsd] [patch] Extremely slow nanobsd disk image cr o docs/145362 doc [patch] articles/version-guide: russian translation ne o docs/145361 doc [patch] articles/solid-state: russian translation need o docs/145360 doc [patch] articles/releng: russian translation needs to o docs/145359 doc [patch] articles/relaydelay: russian translation needs o docs/145358 doc [patch] articles/problem-reports: russian translation o docs/145357 doc [patch] articles/pr-guidelines: russian translation ne o docs/145356 doc [patch] articles/ipsec-must: russian translation needs o docs/145355 doc [patch] articles/fbsd-from-scratch: russian translatio o docs/145354 doc [patch] articles/checkpoint: russian translation needs o docs/145353 doc [patch] articles/5-roadmap: russian translation needs o conf/145344 rc [patch] Fix kitchen sink approach for rc.d scripts ins o ports/145301 gnome [patch] sysutils/hal: /usr/local/etc/rc.d/hald startup o ports/145294 skreuzer [PATCH] www/rt: update to 3.8.7 o ports/145293 timur net/samba3 includes the wrong talloc.h [patch] p usb/145265 thompsa [patch] Freecom USB-IDE bridge p docs/145251 brueffer [patch] iscsi_initiator.4 man page formatting and synt o kern/145232 [boot] [patch] Fix compiler warning with libficl by ex o docs/145227 doc [patch] freebsd-update(8): Update to more recent relea o ports/145176 skv [patch] unbreak net-mgmt/ng_ipacct for RELENG_8 and la p bin/145101 portmgr [patch] pkg_version(1) - remove hardcoded INDEX filena s bin/145100 portmgr [patch] pkg_add(1) - remove hardcoded versioning data f ports/145094 [patch][repocopy] audio/linux-nerodigitalaudio: update o bin/145063 acpi [patch] powerd(8): Add -m and -M (minimum and maximum o ports/145060 ale [PATCH] graphics/php4-gd: [SUMMARIZE CHANGES] o docs/145051 doc [patch] missing closing parenthesis in 7.3 relnotes ar o ports/145038 nobutaka [patch] x11/mlterm: mark MAKE_JOBS_UNSAFE o conf/145009 rc [patch] rc.subr(8): rc.conf should allow mac label con a bin/145000 portmgr [patch] pkg_create(1) needs realpath(3) on -p argument o bin/144974 brucec [patch] ping6(1): malloc()s not free()'d p bin/144921 portmgr [patch] pkg_add(1): Replace vsystem'ed call to mkdir(1 p bin/144920 portmgr [patch] pkg_add(1): Remove useless chmod after mkdtemp p bin/144919 portmgr [patch] pkg_add(1): Remove partially downloaded file o a bin/144918 portmgr [patch] pkg_add(1): Remove reference to /usr/X11R6/bin p usb/144915 thompsa [usb8] [patch] Prolific USB-IDE Bridge for Seagate ST3 o ports/144894 ahze [PATCH] finance/gnucash: Chase finance/aqbanking shlib o ports/144888 ale [PATCH] databases/mysql51-server: specify USE_LDCONFIG o docs/144881 doc [patch][handbook] Reference to incorrect manual page p docs/144880 brueffer [patch] ipmon(8): Missing BUGS section header f ports/144878 [patch] www/tomcat55 uid is hardcoded to 80 o kern/144874 net [if_bridge] [patch] if_bridge frees mbuf after pfil ho o ports/144868 obrien [PATCH] textproc/urlview: attempts to build X11 even i f ports/144857 [patch] audio/abraca: update to 0.4.3 a ports/144855 cy [patch] sysutils/syslog-ng3 Makefile lacks sql-enable o ports/144852 makc [patch] sysutils/ntfsprogs - improvements to mkntfs o kern/144824 [boot] [patch] boot problem on USB (root partition mou o ports/144821 miwi [patch] audio/xmms2 : update to version 0.7 DrNo. o ports/144791 ale [patch] databases/mysql40-server fix build with gcc42 o ports/144769 ruby [PATCH] ports-mgmt/portupgrade should have a configura o kern/144732 geom [geom] [patch] geom_cache erroneously decodes its on-d o bin/144730 brucec [patch] ping6(8) lacks call to freeaddrinfo() o bin/144723 [patch] port over coverity SA NULL deref warning fix f o bin/144722 [patch] port over character escape fix for hexdump(1) o kern/144695 [vfs] [patch] race condition in mounting a root-fs on o ports/144660 alepulver [patch] graphics/grx update to 2.4.8 o bin/144652 [PATCH] pwd_mkdb(8) copies comments to /etc/passwd f ports/144617 [PATCH] net-mgmt/docsis: Fix build on systems where GC p docs/144614 brueffer [patch] [mfi] add IBM ServeRAID M5015 SAS/SATA to list o ports/144605 ruby [PATCH] Get ports-mgmt/portupgrade to build under Ruby o ports/144603 des [PATCH] sysutils/munin-node: fix postfix logfile o ports/144602 des [PATCH] sysutils/munin-node: Use jot(1) instead of seq p kern/144584 [linprocfs][patch] bogus values in linprocfs o ports/144562 nobutaka [PATCH] multimedia/xine: fix MASTER_SITES o kern/144561 net [ixgbe] [patch] ixgbe driver errors o conf/144548 [boot] [patch] Enable automatic detection of amd64/i38 o docs/144534 doc [patch] fdescfs(5) and devfs(5) both provide /dev/fd/{ o bin/144531 [PATCH] cp(1) show percentage complete o kern/144505 net [bwn] [patch] Error in macro CALC_COEFF2. o ports/144482 portmgr [bsd.port.mk] [patch] actual-package-depends rejects o o kern/144458 fs [nfs] [patch] nfsd fails as a kld o bin/144446 [patch] db(3) fails with large block sizes o misc/144442 [build] [patch] remove unnecessary group and passwd en o usb/144423 usb [usb8] [patch] if_run panic with USB-N13 o bin/144411 [patch] mtree(8) doesn't reject non-regular files for o docs/144408 doc [patch] update makefs(8) (remove device option) o amd64/144405 amd64 [build] [patch] include /usr/obj/lib32 in cleanworld t o bin/144388 [patch] different behavior of make(1) between command a ports/144337 dougb [PATCH] net-p2p/libtorrent-rasterbar-14: Build python o ports/144335 python [PATCH] www/py-webhelpers does not use PYTHONPREFIX_SI o kern/144307 [libc] [patch] ENOENT set unnecessarily under certain o bin/144306 [libm] [patch] Nasty bug in jn(3) a bin/144300 brucec [patch] mdconfig(8): mdconfig -{d,l}n doesn't work o ports/144287 x11 [PATCH] graphics/libGL and friends: Fix build with new o bin/144285 [patch] ps(1): ps -axo user,%cpu,%mem - most processes o conf/144243 [patch] Add NIS related files to OptionalObsoleteFiles o ports/144224 mono [PATCH] lang/mono Fix build with new GCC o conf/144213 rc [rc.d] [patch] Disappearing zvols on reboot o kern/144194 emulation [linux] [patch] linuxulator: 2 exec bug fixes o bin/144192 [patch] support for thresholds in du(1) o ports/144110 mnag [PATCH] www/lighttpd: support IPv6 addresses in mod_ex f ports/144068 [PATCH] Update ports/mail/dbmail to version 2.2.15 o ports/144044 gecko [PATCH] www/firefox: Makefile.webplugins target order p kern/144019 uqs [gdtoa] [patch] gcc complains about implicit declarati o ports/143981 des [patch] shells/zsh: ZSH_MEM, ZSH_SECURE_FREE, DEBUG o kern/143868 net [ath] [patch] allow Atheros watchdog timeout to be tun o misc/143831 [bsd.own.mk] [patch] Fix missing atm -> bsnmp dependen o bin/143830 [patch] atmconfig(8): Fix conditional inclusion for sb o misc/143785 [build] [patch] add passive mode to pkg_add cdrtools i o bin/143732 [patch] mtree(8) does a full hierarchy walk when reque o kern/143703 [route] [patch] ECMP Phase 1 fixes for FreeBSD 7.2 o bin/143699 [patch] extend brandelf's OS knowledge o kern/143653 ipfw [ipfw] [patch] ipfw nat redirect_port "buf is too smal o conf/143637 rc [patch] ntpdate(8) support for ntp-servers supplied by o kern/143622 net [pfil] [patch] unlock pfil lock while calling firewall o kern/143621 ipfw [ipfw] [dummynet] [patch] dummynet and vnet use result o ports/143584 brooks [PATCH] security/ca_root_nss: Incorrect file name / ve o bin/143572 [zfs] zpool(1): [patch] The verbose output from iostat o bin/143570 [patch] stock ftpd(8) does not handle "filesize" limit o bin/143558 [patch] Add verbose option to pkill(1) o bin/143533 [patch] Changes to support Sun jumpstart via bootparam o bin/143504 pf [patch] outgoing states are not killed by authpf(8) o usb/143448 usb [usbdevs] [usb8] [patch] QUIRK: JMicron JM20336 USB/SA f ports/143412 [patch] net-mgmt/cricket doesn't work on amd64 o ports/143384 ale [PATCH] databases/mysql50-server: switch to using USER o bin/143375 [patch] awk(1) trashes memory with regexp and ^ anchor o bin/143373 [patch] awk(1) tolower/toupper functions don't support o kern/143370 [new driver] [patch] New splash_txt module - support f o bin/143369 [patch] awk(1) doesn't handle RS as a regexp but as a o bin/143368 [patch] awk(1): number of open files is limited to sma o bin/143367 [patch] awk(1) treats -Ft as -F o bin/143365 [patch] incorrect regexp matching in awk(1) o bin/143363 [patch] incorrect handling of \ at the end of line in o kern/143345 fs [ext2fs] [patch] extfs minor header cleanups to better o ports/143344 [PATCH] sysutils/dtc: unbreak port o ports/143336 araujo [PATCH] security/krb4: unbreak port, fix plist o ports/143334 wes [PATCH] devel/poco-ssl: unbreak port o docs/143330 doc [patch] strtonum(3) does undocumented clobbering of er o kern/143298 secteam [random] [patch] random_yarrow_block() doesn't actuall o bin/143271 [patch] whatis(1) should print error message to stderr o gnu/143254 [patch] groff(1) build in base system does not honor P o ports/143194 lioux [PATCH] net-p2p/i2p: use $SUB_FILES to update pkg-mess f usb/143186 usb [usbdevs] [usb8] [patch] add USB device IDs for Google o bin/143142 cperciva [PATCH] Fix non-POSIX compliant multiline conditional a usb/143139 usb [umass] [usb8] [patch] Quirk for Century EX35SW4_SB4 J o ports/143095 clsung [PATCH] Change default socket of ClamAV for security/c o docs/143094 doc [patch] handbook/filesystems: russian translation is m o bin/143090 [PATCH] Let indent(1) handle widecharacter literals co o conf/143085 rc [patch] ftp-proxy(8) rc(8) with multiple instances o conf/143084 rc [jail] [patch]: fix rc.d/jail creating stray softlinks o kern/143073 [patch][panic] unp_gc panic (race with uipc_detach) o bin/143058 [patch] mdconfig(8): make mdconfig -o reserve default o usb/143045 usb [umass] [usb8] [patch] mounting Fujitsu 2600Z camera d o docs/143041 doc [patch] doc/en__US.ISO8859-1 refers to slip, slirp, sl o kern/143033 [headers] [patch] _SWAP not listed in comment in sys/q s ports/143024 [PATCH] sysutils/puppet: add possobility to rc script o kern/142999 [puc] [patch] add support for the I-O DATA RSA-PCI2/R o usb/142991 usb [uftdi] [usb67] [patch] Patch to add Crystalfontz 533 o conf/142973 rc [jail] [patch] Strange counter init value in jail rc s conf/142972 jail [jail] [patch] Support JAILv2 and vnet in rc.d/jail o bin/142960 [patch] sysinstall(8) comparison of cdrom.inf CD_VERSI f usb/142957 usb [umass] [usb8] [patch] patch for USB disk SYNCHRONIZE o kern/142937 bz [ipsec] [patch] IPSec doesn't work with link-local add p kern/142927 thompsa [vlan] [patch] handle parent interface link layer addr o kern/142924 fs [ext2fs] [patch] Small cleanup for the inode struct in o bin/142913 [patch] netstat(1) -w should produce error message if o bin/142912 [patch] nfsstat(1) -w should produce error message if o bin/142911 [patch] vmstat(8) -w should produce error message if f o ports/142837 emulation [patch] emulators/linux_base-* packages fails to insta o ports/142824 [patch] security/openssh-portable: add VersionAddendum o conf/142817 pf [patch] etc/rc.d/pf: silence pfctl o bin/142814 [patch] add beginning and end offset options to md5(1) o ports/142812 nivit [PATCH] math/mprime: Use SUB_FILES to update files o ports/142769 sergei [PATCH] mail/offlineimap: use $SUB_FILES to dynamicall o ports/142743 stas [PATCH] devel/cross-binutils: installed by *-rtems-gcc o ports/142739 rnoland [PATCH] x11-wm/libcompizconfig Patch not needed on rec o ports/142736 gecko [PATCH]www/firefox3*: unbreak with recent versions of o ports/142734 gshapiro [PATCH] mail/listmanager: Support NOPORTSDOCS & DATA, o ports/142709 [PATCH] lang/gnat-doc-html: use $SUB_FILES to dynamica f ports/142704 java [PATCH] java/jai-imageio: use $SUB_FILES to dynamicall a bin/142570 portmgr [PATCH] clean up quiet mode (-q | --quiet) output of p a bin/142529 dougb [build] [patch] make delete-old removes BIND files whe o bin/142526 [patch] Cleanups and updates to newfs_msdos(8) o conf/142434 rc [patch] Add cpuset(1) support to rc.subr(8) o ports/142423 des [PATCH] sysutils/munin-node: Correct default postfix p o docs/142418 doc [PATCH] newfs_msdos(8) doc fix f ports/142413 glewis [PATCH] java/jdk16 Fix build f ports/142412 glewis [PATCH] java/jdk15 Fix build o kern/142401 fs [ntfs] [patch] Minor updates to NTFS from NetBSD o bin/142384 [patch] sync fsck_msdosfs(8) with OpenBSD p docs/142367 roam [patch] wlan(4) does not document requirement for kern o ports/142322 timur [patch] net/samba33: smbstatus got error: messaging_td o bin/142258 [patch] rtld(1): add ability to log or print rtld erro p kern/142197 rpaulo [ndis] [patch] ndis is missing media status reporting o ports/142165 ale [PATCH] lang/php5: add optional patch for gd2 o ports/142151 wosch [patch] ports-mgmt/portcheckout to use variables inste o ports/142115 nivit [patch] Extract textproc/py-genshi during installation f kern/142085 gavin [puc] [patch] Few lines to pucdata.c to support for Te o kern/142082 emulation [patch] [panic] linuxulator: getppid: use after free o kern/142018 net [iwi] [patch] Possibly wrong interpretation of beacon- p kern/141939 edwin [libc] [patch] strptime(3) confuses July with June wit o kern/141934 scsi [cam] [patch] add support for SEAGATE DAT Scopion 130 o conf/141909 rc rc.subr(8): [patch] add rc.conf.d support to /usr/loca o bin/141890 [patch] slapd(8): The slapd server starts/restarts way a ports/141795 dinoex graphics/jasper: ensure that configure script has exec o kern/141777 net [rum] [patch] Support usbdevs / rum(4) for Buffalo WLI o docs/141765 doc [handbook] [patch] Added note about architectures when p bin/141753 jh [libc] [patch] double-free in reallocf(3) o kern/141682 [libc] [patch] Faster version of strncpy(3) o conf/141678 rc [patch] A minor enhancement to how /etc/rc.d/jail dete o kern/141655 [sio] [patch] Serial Console failure on Dell servers o ports/141641 portmgr [bsd.port.mk] [patch] make 'config-recursive' finish i o ports/141640 krion [patch] mail/exim: fix pcre linking a docs/141636 doc [handbook] [patch] Updated info about Firefox in Handb o ports/141521 lth [PATCH] net/p5-POE-Component-Server-Twirc: update to 0 o ports/141520 lth [PATCH] devel/p5-Test-POE-Client-TCP: update to 1.06 o ports/141472 des [PATCH] shells/zsh: add linsysfs to (u)mount -t comple a usb/141467 usb [uftdi] [patch] RATOC REX-USB60F (usb serial converter f ports/141440 stefan [patch] add amd64 support for lang/gprolog o kern/141439 emulation [linux] [patch] linux_exit_group kills group leader p docs/141353 jhb [NOTES] [patch] i386 NOTES says building acpi into ker o conf/141317 jail [patch] uncorrect jail stop in /etc/rc.d/jail o ports/141281 anders [patch] security/pwman o docs/141245 blackend [handbook][patch] Chapter 31.3 Wireless Networking: Up p bin/141175 kientzle [patch] New cpio(1) in FreeBSD 8 regressed and left ou p docs/141125 matteo [patch] Typo of "NUL" in getline.3 man page o kern/141091 fs [patch] [nullfs] fix panics with DIAGNOSTIC enabled o kern/141090 [kernel] [patch] patch for COMPAT for /sys/sys/sysprot p ports/141033 gnome [PATCH] allow to build devel/libsoup without gnome o ports/140983 portmgr [patch] refactor bsd.port.mk and introduce bsd.rrd.mk o ports/140939 secteam [patch] security/vuxml: fix and extend files/newentry. o usb/140928 usb [u3g] [usb8] [patch] ZTE CDMA2000 1X EV-DO (MG478/AC87 o docs/140814 doc [handbook][patch] Chapter 15 - Jails: add section on c f ports/140791 lioux [PATCH] textproc/libtre: Fix build on systems where GC f ports/140790 lioux [PATCH] mail/crm114: Fix build on systems where GCC st o kern/140752 [ata] [patch] HDD power-off procedure is not clean o kern/140728 net [em] [patch] Fast irq registration in em driver o docs/140703 doc [patch] add xorg-minimal as alternative for X11 Distri o kern/140690 [libc] [patch] swab(3) with negative len should do not o kern/140661 fs [zfs] [patch] /boot/loader fails to work on a GPT/ZFS- o conf/140650 [build] [patch] WITHOUT_MODULES cannot be used from ke o kern/140647 net [em] [patch] e1000 driver does not correctly handle mu o kern/140619 net [ifnet] [patch] refine obsolete if_var.h comments desc o kern/140614 usb [uplcom] [patch] adding support for Radio Shack Gigwar o kern/140597 net [netinet] [patch] implement Lost Retransmission Detect o kern/140591 multimedia [PATCH][sound] No sound output on lineout/headphone ja o kern/140567 net [ath] [patch] ath is not worked on my notebook PC o docs/140495 doc [patch] /etc/rc.conf.d is not documented in rc.conf(5) p bin/140493 jh [patch] truss(1) log file descriptor shared with trace o usb/140477 usb [umass] [usb8] [patch] allow boot-time attachment of d o docs/140458 doc [patch] Grammar fix for to{upper,lower}(3) o docs/140457 doc [patch] Grammar fix for isspace(3) p docs/140456 roam [patch] Grammar fix for isprint(3) o docs/140444 doc [patch] New Traditional Chinese translation of custom- o conf/140440 rc [patch] allow local command files in rc.{suspend,resum p bin/140384 uqs [patch] chio(8) fix some harmless uninitialized argume o docs/140369 doc [patch] src/contrib/pf/man/pf.4 o kern/140349 [libpcap] [patch] libpcap's parser doesn't recognize n o bin/140304 [patch] add MAILFROM ability to cron(8) o conf/140261 rc [patch] Improve flexibility of mdconfig2 startup scrip o usb/140259 usb [libusb] [patch] [usb8] libusb-1.0 portability/compati o power/140241 ppc [kernel] [patch] Linker set problems on PowerPC EABI s ports/140216 gnome [patch] devel/nspr does not check POLLHUP in PR_Connec o ports/140188 itetcu [PATCH] some ports need adjustment to properly expand o kern/140185 [patch] expand_number(3) does not detect overflow in n o misc/140173 [nanobsd] [patch] Small nanobsd pkg install change o bin/140151 [patch] hexdump(1): Fix potential setlocale(3) in hexd o bin/140143 [patch] dlopen(3) doesn't promote RTLD_GLOBAL for link o kern/140068 fs [smbfs] [patch] smbfs does not allow semicolon in file o conf/139997 kbdmap(1): [patch] Swissgerman keyboard support for Ma p bin/139994 uqs [patch] fsirand(8): increase to WARNS=2 s usb/139990 usb [panic] [patch] [usb67] Kernel frequently panics after o ports/139934 sobomax [PATCH] devel/py26-interface: update to 0.97 o ports/139872 sergei [PATCH] ports-mgmt/porttools: improve port's directory p kern/139847 jh [geom_mbr] [patch] load/unload causes system to hang o bin/139802 uqs [patch] fsck_msdosfs(8): sync with NetBSD sources, inc o ports/139794 stas [PATCH] net/ruby-ldap: update to 0.9.9 o i386/139743 i386 [ichsmb] [patch] ichsmb driver doesn't detects SMB bus o docs/139705 remko [patch] tunefs(8) man page bugs section ambiguous on a o docs/139682 doc [PATCH] dialog(1) man page does not mention radiolist o ports/139630 itetcu [PATCH] deskutils/treeline: update to 1.3.0 p bin/139606 portmgr [patch] pkg_add(1) coredumps silently on atlantis syml o kern/139604 [patch] [ichwd] watchdog sometimes does not enable o bin/139601 [patch] make(1): variable substitution for $@ in depen o kern/139597 fs [patch] [tmpfs] tmpfs initializes va_gen but doesn't u f ports/139587 edwin [PATCH] games/xrally: fix broken mtree with custom PRE f kern/139576 ed [syscons] [patch] blink screen too noisy o ports/139457 jmelo [PATCH] devel/prepstools: update to 2.2.0 o ports/139450 jmelo [PATCH] mail/uebimiau: update to 2.7.11 o kern/139425 [kernel] [patch] Wrong behavior of KTR_VERBOSE o bin/139389 [patch] Change top(1) to display thread IDs o bin/139346 net [patch] arp(8) add option to remove static entries lis o bin/139345 [patch] handle SIGINFO in sleep(1), etc. p bin/139319 uqs [patch] flex(1): fix prototypes, esp. when YY_NO_INPUT p kern/139312 delphij [tmpfs] [patch] tmpfs mmap synchronization bug o kern/139271 [pci] [patch] sysutils/hpacucli does not work on the a o kern/139268 net [if_bridge] [patch] allow if_bridge to forward just VL o docs/139153 doc [patch] the hier(7) man page needs to be updated o kern/139144 [keyboard] [patch] CapsLock LED should not depend on k o kern/139080 [libc] [patch] closelog() can close negative file desc o kern/139019 [libc] [patch] Add xdr_sizeof() to libc. a bin/139015 portmgr [patch] pkg_info(1): fix exit code for pkg_info -g o ports/139011 x11 [patch] Add options to support GLX TLS in x11-servers o ports/138929 [PATCH] security/heimdal update to 1.2.1 o bin/138926 cperciva [patch] freebsd-update(8) allows unattended upgrade o usb/138915 usb [patch] [usb8] [usb67] add support for SheevaPlug seri a usb/138879 usb [uftdi] [patch] Patch to add support for CTI USB-Mini o bin/138855 [patch] if the hostname is empty, opiepasswd(1) create o i386/138737 i386 [endian] [patch] Patch for bswap64(9) operation on IA o conf/138692 [request] [patch] 450.status-security should exit with o ports/138629 ahze [Patch]graphics/py-opengl:change the dependence to PYN o kern/138620 net [lagg] [patch] lagg port bpf-writes blocked o kern/138421 fs [ufs] [patch] remove UFS label limitations p kern/138390 brueffer [gif] [patch] NULL pointer dereference in gif_input() p kern/138388 brueffer [ppbus] [patch] NULL pointer dereference in pcfclock_o p kern/138387 brueffer [ppbus] [patch] NULL pointer dereference in lptopen() p kern/138384 brueffer [ips] [patch] NULL pointer dereference in ipsd_dump() o kern/138381 np [cxgb] [patch] NULL pointer dereference in t3_set_tcb_ o kern/138341 [nanobsd] [patch] 8.0-BETA3: nanobsd build broken due o conf/138208 rc [rc.d] [patch] Making rc.firewall (workstation) IPv6 a o usb/138172 usb [u3g] [patch] [usb67] Additional dev id for u3g (Optio o bin/138150 [build] [patch] fix for src/etc/Makefile mtree o usb/138138 usb [u3g] [patch] [usb67] Novatel U760 for u3g (Verizon an p bin/138131 [patch] pstat(8): pstat -t coredumps when reading from o bin/137864 [patch] sysinstall(8): add possibility to shutdown/pow o bin/137841 net [patch] wpa_supplicant(8) cannot verify SHA256 signed o kern/137819 [libc] [patch] fpurge(3) violates stdio invariant o kern/137775 net [netgraph] [patch] Add XMIT_FAILOVER to ng_one2many o ports/137731 x11 [patch] x11-drivers/xf86-input-vmmouse p docs/137723 remko [patch] share/man/man5/make.conf.5 : document WWWSUPFI o ports/137691 avilla [PATCH] New port for semantik (kdissert II) o kern/137678 [libstand] [patch] libstand's bootp/dhcp code always u o conf/137671 [patch][request] enhance beastie.4th: possibility to d o gnu/137665 [patch] dialog(1) goes into tight loop on encountering o ports/137664 mnag [PATCH] www/lighttpd adds mod_geoip (shar) o usb/137616 usb [usb67][usb8][usbdevs] [patch]: usbdevs update: Please s ports/137587 kde [PATCH] audio/arts: Add more OPTIONS and proper CONFIG o bin/137484 net [patch] Integer overflow in wpa_supplicant(8) base64 e o conf/137470 rc [PATCH] /etc/rc.d/mdconfig2 : prioritize cli parameter o kern/137436 [puc] [patch] Fix puc driver to support newer Timedia o bin/137379 [patch] ppp(8) new command iface name to rename tun in o bin/137365 [patch] let last(1) read from stdin via "-f -" o kern/137307 [libc] [patch] Enhance strptime(3) to support %U and % f usb/137190 usb [usb8][patch] inhibit spurious button releases for som o usb/137189 usb [usb8][patch] create and use sysctl nodes for HID repo p usb/137188 usb [usb8][patch] correctly handle USB report descriptors f bin/137180 usb [build] [patch] building world for 8.0-BETA2 fails on o bin/137156 [patch] fix dump(8) cryptic output on reporting progre o kern/137145 [mbuf] [patch] Reference count computing isn't correct o bin/136994 net [patch] ifconfig(8) print carp mac address o ports/136917 python [patch] lang/python26: gettext detection o kern/136865 fs [nfs] [patch] NFS exports atomic and on-the-fly atomic o bin/136857 [patch] du(1): permit per directory only sum (no herit f ports/136764 skreuzer [PATCH] net-mgmt/nagios-plugins: Dont truncate proc a p usb/136761 usb [usbdevs][usb67][patch] Teach usbdevs / u3g(4) about H o docs/136712 doc [handbook] [patch] draft new section on gmirror per pa o gnu/136705 [patch] gdb(1): remove a semicolon from i386-tdep.c . o kern/136695 ipfw [ipfw] [patch] fwd reached after skipto in dynamic rul o kern/136669 [libc] [patch] setmode(3) should always set errno on e o bin/136661 net [patch] ndp(8) ignores -f option o bin/136354 [patch] powerd(8): Support for maxspeed in adaptive mo o conf/136336 [termcap] [patch] missing entry for "center of keypad" o ports/136291 openoffice [patch] editors/openoffice.org-3: gpatch failure o kern/136159 [kthread] [patch] tsleep with PDROP in kthread_suspend p bin/135918 [boot0] [patch] Make BootEasy compatible with NT Drive o bin/135718 [patch] enhance qsort(3) to properly handle 32-bit ali o bin/135700 [patch] Add an ability to run inetd(8) with P_PROTECTE f ports/135674 yzlin [PATCH] some PHP-related knobs should be placed before o ports/135670 ale [PATCH] databases/mysql50-server: in mysql-client mysq o ports/135649 portmgr Mk/bsd.port.mk: [patch], fix documentation relating to p kern/135628 remko [umass] [patch] add a device quirk for Myson Heden 881 o kern/135608 [patch] sysctl(8) should be able to handle byte values o usb/135575 usb [usbdevs] [patch] [usb67] Add HTC Wizard phone vid/pid o bin/135565 randi [patch] a patch for sysinstall(8) to look at UFS parti o ports/135500 obrien net/rdesktop sound does not work [PATCH] o kern/135485 [modules] [patch] During a shutdown, kernel modules sh o docs/135475 doc [patch] jot(1) manpage and behaviour differ o ports/135471 secteam [patch] ports-mgmt/portaudit-db packaudit.conf sourced p threa/135462 threads [PATCH] _thread_cleanupspecific() doesn't handle delet o bin/135349 acpi [patch] teach acpidump(8) to disassemble arbitrary mem o usb/135348 usb [umass] [patch] USB Drive Hangs with ZFS (JMicron USB2 o ports/135337 emulation [PATCH] emulators/linux_base-f10: incorrect bash usage p misc/135301 remko [tinybsd] [patch] Patch for fix architecture support f p docs/135165 brueffer [patch] make(1) fixes: punctuation, typos, tweaks o bin/135159 portmgr [patch] pkg_delete(1) segfaults on empty @pkgdep lines o kern/135070 acpi [acpi] [patch] BIOS resource allocation and FreeBSD AC o bin/134975 ipfw [patch] ipfw(8) can't work with set in rule file. o misc/134920 [includes] [patch] Large upgrades from source cause co o bin/134919 [patch] add information to truss(1) when tracing linux o conf/134918 rc [patch] rc.subr fails to detect perl daemons o kern/134878 [puc] [patch] Add support for Oxford OXPCIe954 and OXP o conf/134660 rc [patch] rc-script for initializing ng_netflow+ng_ipfw o ports/134643 x11 [patch] x11-servers/xorg-server - Unbreak Xorg 7.4 ser o usb/134631 usb [usbdevs] [patch] WiSPY DBx support requires usb tweak o gnu/134604 [gcclibs] [patch] Memory leak in gcclibs/libgomp o i386/134586 jhb [i386] [patch] Incorrect machine check exception handl s kern/134517 yongari [rl] [patch] Realtek 8111C Driver Backport for FreeBSD o arm/134368 arm [patch] nslu2_led driver for the LEDs on the NSLU2 o arm/134338 arm [patch] Lock GPIO accesses on ixp425 o kern/134249 [libiconv] [patch] ignore case for character set names o i386/134242 i386 [boot0] [patch] improvement i386 boot0 error diagnose o kern/134225 [libexec] [patch] Reduce disk write load from save-ent o usb/134117 usb [Patch] Add support for 'Option GlobeTrotter HSDPA Mod p arm/134092 cognet [patch] NSLU.hints contains wrong hints for on board n p docs/134053 danger [patch] arp(8) manpage should mention ndp(8) in See Al o kern/134010 [libgssapi][patch] Buffer overflow and use-after-free o conf/134006 rc [patch] Unload console screensaver kernel modules if s o ports/133946 x11 x11-servers/xorg-server [patch] X crashes in xinerama o conf/133890 rc [patch] sshd(8): add multiple profiles to the rc.d scr o bin/133860 [patch] lorder(1) misses symbols defined in read only o bin/133834 [patch] chat(8): terminate()/fatal() infinity mutual r o ports/133815 portmgr [PATCH] bsd.port.mk: implements fakeroot for the ports o kern/133786 net [netinet] [patch] ip_input might cause kernel panic o kern/133776 [libc] [patch] snprintf(3) and vsnprintf(3) do not pro o kern/133775 [patch] gdb(1) debugscripts: fix proc address print in o conf/133715 [terminfo] [patch] no terminfo for rxvt-unicode termin o usb/133712 usb [ural] [patch] RE: Fixed an issue with ural(4) that wa o ports/133457 eclipse [PATCH] java/eclipse-webtools: update to 3.0.3 o kern/133235 net [netinet] [patch] Process SIOCDLIFADDR command incorre o bin/133227 edwin [patch] whois(1): add support for SLD whois server loo o kern/133174 fs [msdosfs] [patch] msdosfs must support utf-encoded int o ports/133146 ahze [patch] x11-fonts/dejavu: install fontconfig configura o docs/133118 doc [patch] Error in getopt (1) manual EXAMPLES section o bin/132993 [patch] bsnmpd(1) - bad IfPoll timer interval o conf/132851 net [patch] rc.conf(5): allow to setfib(1) for service run o bin/132845 geom [geom] [patch] ggated(8) does not close files opened a o docs/132839 doc [patch] Fix example script in ldap-auth article p docs/132834 trhodes [patch] Punctuation inconsistency in chgrp.1 and cut.1 o kern/132832 net [netinet] [patch] tcp_output() might generate invalid p usb/132799 usb [usb][patch]GENESYS USB2IDE requires NO_SYNCHRONIZE_CA o bin/132798 net [patch] ggatec(8): ggated/ggatec connection slowdown p o usb/132785 usb [usb] [patch] Gemtech remote powersocket is classed as o kern/132705 net [libwrap] [patch] libwrap - infinite loop if hosts.all o bin/132692 [patch] getent(1): no support for netgroup o kern/132622 philip [glxsb] [patch] glxsb(4) performs badly with ipsec o ports/132579 cy [patch] sysutils/screen: fix build with externel compi p docs/132546 trhodes [patch] sync vm_map_lock(9) with recent locking change o kern/132497 rwatson [boot] [patch] Stale pre-5.x mbuf references in new Bo o conf/132483 rc rc.subr(8) [patch] setfib(1) support for rc.subr o conf/132476 rc [rc.d] [patch] add support setfib(1) in rc.d/routing p docs/132392 trhodes [PATCH] remove leftovers of libkse from pthread.3 o bin/132367 [patch] less(1)/more(1) fchmod(2) `/dev/null' to 0600 o docs/132311 doc [p