Files
linux/drivers/char
KAMEZAWA Hiroyuki 4a3956c790 vfs: introduce FMODE_UNSIGNED_OFFSET for allowing negative f_pos
Now, rw_verify_area() checsk f_pos is negative or not.  And if negative,
returns -EINVAL.

But, some special files as /dev/(k)mem and /proc/<pid>/mem etc..  has
negative offsets.  And we can't do any access via read/write to the
file(device).

So introduce FMODE_UNSIGNED_OFFSET to allow negative file offsets.

Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Al Viro <viro@ZenIV.linux.org.uk>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2010-10-25 21:18:21 -04:00
..
2010-10-15 15:53:27 +02:00
2010-08-10 13:47:40 -07:00
2010-09-15 21:01:40 +02:00
2010-08-10 13:47:40 -07:00
2010-10-22 10:20:02 -07:00
2010-10-22 10:20:02 -07:00
2010-10-15 15:53:27 +02:00
2010-10-15 15:53:27 +02:00
2010-08-10 13:47:43 -07:00
2010-08-10 13:47:39 -07:00
2010-05-27 09:12:50 -07:00
2010-10-15 15:53:27 +02:00
2010-08-10 13:47:40 -07:00
2010-08-23 18:17:21 -07:00
2010-08-10 13:47:44 -07:00
2010-10-15 15:53:27 +02:00
2010-10-15 15:53:27 +02:00
2010-10-22 10:20:04 -07:00
2010-08-10 13:47:44 -07:00
2010-10-22 10:20:02 -07:00