DragonFly BSD
DragonFly submit List (threaded) for 2004-03
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

patches to: cron(8), printf(1), man adw(4), man polling(4)


From: Chris Pressey <cpressey@xxxxxxxxxxxxxxx>
Date: Mon, 8 Mar 2004 14:54:17 -0800

OK, four patches attached (and if any of them are going overboard, just
feel free to ignore them of course):


Patch:		printf.c.diff
Type:		backport
Obtained from:	FreeBSD :: src/usr.bin/printf/printf.c :: 1.27
Description:	Allow %e, %E, %f, %g, %G formats to work without
		producing an error code.
Testing:	compiles, runs, passes manual tests


Patch:		adw.4.diff
Type:		documentation
Description:	Replace obsolete keyword "controller" with proper keyword
		"device" on adw(4)'s man page.


Patch:		polling.4.diff
Type:		documentation
Description:	Reword an extremely awkward sentence or two at the very
		beginning of the polling(4) man page.


Patch:		cron.diff.gz
Type:		style(9) cleanup
Description:	Remove the ``register'' and (strange but true) ``auto''
		keywords from the cron(8) sources.  Also clean up
		intersecting style(9) issues (whitespace & don't call
		functions in variable initializers.)
Testing:	compiles, runs, seems to operate correctly


-Chris

Attachment: cron.diff.gz
Description: Binary data

Index: adw.4
===================================================================
RCS file: /home/dcvs/src/share/man/man4/adw.4,v
retrieving revision 1.2
diff -u -r1.2 adw.4
--- adw.4	17 Jun 2003 04:36:58 -0000	1.2
+++ adw.4	8 Mar 2004 12:49:16 -0000
@@ -31,11 +31,11 @@
 .Nm adw
 .Nd Advansys PCI 16bit SCSI Host adapter driver
 .Sh SYNOPSIS
-.Cd controller pci
-.Cd controller adw
+.Cd device pci
+.Cd device adw
 .Pp
 For one or more SCSI busses:
-.Cd controller scbus0 at adw0
+.Cd device scbus0 at adw0
 .Sh DESCRIPTION
 This driver provides access to the 16bit
 .Tn SCSI


Index: polling.4
===================================================================
RCS file: /home/dcvs/src/share/man/man4/polling.4,v
retrieving revision 1.2
diff -u -r1.2 polling.4
--- polling.4	17 Jun 2003 04:36:59 -0000	1.2
+++ polling.4	8 Mar 2004 13:24:23 -0000
@@ -12,11 +12,12 @@
 .Cd "options DEVICE_POLLING"
 .Cd "options HZ=1000"
 .Sh DESCRIPTION
-.Dq "Device polling"
-(polling for brevity) refers to a technique to
-handle devices that does not rely on the latter to generate
-interrupts when they need attention, but rather lets the CPU poll
-devices to service their needs.
+Typically, devices generate interrupts when they need attention
+from the CPU.  Device polling
+.Dq ( "polling" ,
+for brevity,) refers to a technique for handling devices that does not
+rely on interrupts.  Rather, it lets the CPU poll devices periodically
+to service their needs.
 This might seem inefficient and counterintuitive, but when done
 properly,
 .Nm


Index: printf.c
===================================================================
RCS file: /home/dcvs/src/usr.bin/printf/printf.c,v
retrieving revision 1.3
diff -u -r1.3 printf.c
--- printf.c	4 Oct 2003 20:36:50 -0000	1.3
+++ printf.c	8 Mar 2004 14:09:36 -0000
@@ -32,7 +32,7 @@
  *
  * @(#) Copyright (c) 1989, 1993 The Regents of the University of California.  All rights reserved.
  * @(#)printf.c	8.1 (Berkeley) 7/20/93
- * $FreeBSD: src/usr.bin/printf/printf.c,v 1.12.6.6 2002/04/29 16:45:16 jmallett Exp $
+ * $FreeBSD: /usr/local/www/cvsroot/FreeBSD/src/usr.bin/printf/printf.c,v 1.27 2004/03/07 22:22:13 cperciva Exp $
  * $DragonFly: src/usr.bin/printf/printf.c,v 1.3 2003/10/04 20:36:50 hmp Exp $
  */
 
@@ -456,7 +456,7 @@
 		*dp = asciicode();
 		return (0);
 	}
-	rval = 1;
+	rval = 0;
 	errno = 0;
 	*dp = strtod(*gargv, &ep);
 	if (ep == *gargv) {



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]