[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:
parent
01ff79f589
commit
f4f3939a6c
|
@ -274,7 +274,7 @@ int sysfs_read_attribute(struct sysfs_attribute *sysattr)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
#ifdef __KLIBC__
|
#ifdef __KLIBC__
|
||||||
pgsize = 0x4000;
|
pgsize = 0x1000;
|
||||||
#else
|
#else
|
||||||
pgsize = sysconf(_SC_PAGESIZE);
|
pgsize = sysconf(_SC_PAGESIZE);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue