git: Allow reading with small uio->uio_resid or uio->uio_offset > 0 from /proc/X/map

Markus Pfeiffer profmakx at crater.dragonflybsd.org
Sat Dec 27 15:45:14 PST 2014


commit e86ad61a2ea73db6f3071d794ea3a02ea5ba5c12
Author: Markus Pfeiffer <markus.pfeiffer at morphism.de>
Date:   Sat Dec 27 22:55:51 2014 +0000

    Allow reading with small uio->uio_resid or uio->uio_offset > 0 from /proc/X/map
    
    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.
    
    Submitted-By: Vasily Postnicov <shamaz.mazum at gmail.com>

Summary of changes:
 sys/vfs/procfs/procfs_map.c | 114 +++++++++++++++++---------------------------
 1 file changed, 45 insertions(+), 69 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/e86ad61a2ea73db6f3071d794ea3a02ea5ba5c12


-- 
DragonFly BSD source repository



More information about the Commits mailing list