Project

General

Profile

Actions

Submit #2726

closed

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

Added by shamaz about 10 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

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 shamaz, 10/06/2014 11:23 AM
procfs_map.c.patch (5.7 KB) procfs_map.c.patch shamaz, 12/27/2014 07:16 AM
Actions #1

Updated by shamaz about 10 years ago

  • Tracker changed from Bug to Submit
Actions #2

Updated by shamaz almost 10 years ago

UPD: sending a new patch suitable for new version of procfs_map.c (with respect to commit fc8827e6)

Actions #3

Updated by profmakx almost 10 years ago

  • Status changed from New to Closed

This has been committed to -master after matt had a look at it. Thanks!

Actions

Also available in: Atom PDF