[DragonFlyBSD - Submit #2726] Allow reading with small uio->uio_resid or uio->uio_offset > 0 from /proc/X/map
bugtracker-admin at leaf.dragonflybsd.org
bugtracker-admin at leaf.dragonflybsd.org
Sat Dec 27 07:16:38 PST 2014
Issue #2726 has been updated by shamaz.
File procfs_map.c.patch added
UPD: sending a new patch suitable for new version of procfs_map.c (with respect to commit fc8827e6)
----------------------------------------
Submit #2726: Allow reading with small uio->uio_resid or uio->uio_offset > 0 from /proc/X/map
http://bugs.dragonflybsd.org/issues/2726#change-12371
* Author: shamaz
* Status: New
* Priority: Normal
* Assignee:
* Category:
* Target version:
----------------------------------------
Currently map file in procfs cannot be read with programs like cat
sometimes. It happens if the buffer to be read into cannot hold the entire
content of map file. Call to read returns EFBIG on this occasion, which is
somewhat confusing.
A test:
http://pastebin.com/SrZY3Sr4
It will print -1 on error or 0 on success.
Patch attached. It also contains some changes from FreeBSD
---Files--------------------------------
procfs_map.c.patch (5.39 KB)
procfs_map.c.patch (5.7 KB)
--
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account
More information about the Submit
mailing list