From owner-freebsd-bugs Wed Jul 8 08:51:50 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA17710 for freebsd-bugs-outgoing; Wed, 8 Jul 1998 08:51:50 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from hades.dcs.napier.ac.uk (hades.dcs.napier.ac.uk [146.176.161.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA17705 for ; Wed, 8 Jul 1998 08:51:48 -0700 (PDT) (envelope-from bsc4093@hades.dcs.napier.ac.uk) Received: from artemis.dcs.napier.ac.uk (artemis [146.176.161.5]) by hades.dcs.napier.ac.uk (8.7.3/8.7.3) with ESMTP id QAA21232 for ; Wed, 8 Jul 1998 16:49:28 +0100 (BST) Received: (from bsc4093@localhost) by artemis.dcs.napier.ac.uk (8.7.3/8.7.3) id QAA18323; Wed, 8 Jul 1998 16:49:26 +0100 (BST) Date: Wed, 8 Jul 1998 16:49:26 +0100 (BST) From: Robin Carey To: freebsd-bugs@FreeBSD.ORG Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org O/S: FreeBSD-2.2.6 Bug 1: Pointed out to me by a friend. 1) "mount_msdos /dev/fd0a /floppy/" 2) "umount /floppy/": not currently mounted 3) "umount /floppy": not currently mounted The only way to unmount the FS is with: umount /dev/fd0a ------ Bug 2: Friend + myself. -----8<------ # include # include # include typedef double REAL; # define DIG DBL_DIG int main (void) { REAL a = (REAL) 0.00015; REAL b = (REAL) 20000.0; REAL d = a * b; unsigned l = (unsigned) d; printf ("a=%.*f b=%.*f\n", DIG, (double)a, DIG, (double)b); printf ("d=%.*f, l=%d\n", DIG, (double)d, l); exit (EXIT_SUCCESS); } -----8<------ The above program printf(3)'s "d" as 3.0000..... However, "d" is actually going to be 2.9999..... as demonstrated by the fact that "l" is 2 (due to inexact digital representation of exact floating point numbers). So the bug, or what I would call a bug, is the fact that printf(3) is displaying incorrect information. Cheers... PS Could someone please ask the maintainer of the MicroEMACS package to configure it to use advisory file locking (flock()) instead of "_xlk" directory method (which prevents the editor being used for sys admin applications). I'm pretty sure it's just a Makefile flag or something equally trivial (but haven't checked) ... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message