This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH,HURD]: Define DEV_BSIZE
- From: Samuel Thibault <samuel dot thibault at gnu dot org>
- To: libc-alpha at sourceware dot org, roland at gnu dot org, bug-hurd at gnu dot org
- Date: Tue, 6 Sep 2011 00:06:34 +0200
- Subject: [PATCH,HURD]: Define DEV_BSIZE
The unit of st_blocks is already fixed to 512 by the existing S_BLKSIZE
macro.
2011-09-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
* sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): Define macro.
diff --git a/sysdeps/mach/hurd/sys/param.h b/sysdeps/mach/hurd/sys/param.h
index 699ba35..29cb1e3 100644
--- a/sysdeps/mach/hurd/sys/param.h
+++ b/sysdeps/mach/hurd/sys/param.h
@@ -119,6 +119,10 @@
#define MAX(a,b) (((a)>(b))?(a):(b))
+/* Unit of `st_blocks'. */
+#define DEV_BSIZE 512
+
+
/* Scale factor for scaled integers used to count %cpu time and load avgs.
The number of CPU `tick's that map to a unique `%age' can be expressed