From f4f3939a6cfc4fa1fb6a1621fdfb0ef174f11e41 Mon Sep 17 00:00:00 2001 From: "ananth@in.ibm.com" Date: Mon, 22 Dec 2003 20:54:51 -0800 Subject: [PATCH] [PATCH] change pgsize In udev-009 and previous releases, for klibc compatibility, the pgsize var in sysfs_read_attribute() (file sysfs_dir.c under libsysfs) is handcoded to 0x4000. Should it not be 4096 bytes (0x1000 in hex) instead of 0x4000 (16k bytes)? --- libsysfs/sysfs_dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsysfs/sysfs_dir.c b/libsysfs/sysfs_dir.c index 7dbee8aba..c159db7af 100644 --- a/libsysfs/sysfs_dir.c +++ b/libsysfs/sysfs_dir.c @@ -274,7 +274,7 @@ int sysfs_read_attribute(struct sysfs_attribute *sysattr) return -1; } #ifdef __KLIBC__ - pgsize = 0x4000; + pgsize = 0x1000; #else pgsize = sysconf(_SC_PAGESIZE); #endif -- 2.30.2