chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
01ff79f
)
[PATCH] change pgsize
author
ananth@in.ibm.com
<ananth@in.ibm.com>
Tue, 23 Dec 2003 04:54:51 +0000
(20:54 -0800)
committer
Greg KH
<gregkh@suse.de>
Wed, 27 Apr 2005 04:13:10 +0000
(21:13 -0700)
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
patch
|
blob
|
history
diff --git
a/libsysfs/sysfs_dir.c
b/libsysfs/sysfs_dir.c
index 7dbee8aba85c2f74f0b1dd66a0d80a1b46ff0802..c159db7af8738de2047d369997438218effc855e 100644
(file)
--- 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 = 0x
4000;
+ pgsize = 0x
1000;
#else
pgsize = sysconf(_SC_PAGESIZE);
#endif