[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)?
This commit is contained in:
ananth@in.ibm.com 2003-12-22 20:54:51 -08:00 committed by Greg KH
parent 01ff79f589
commit f4f3939a6c

View File

@ -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