Force pread64/pwrite64 to return 0 for zero-length buffer 65/32365/1 accepted/tizen/3.0.2014.q4/common/20150224.133827 accepted/tizen/common/20150127.151335 accepted/tizen/mobile/20150205.042645 accepted/tizen/tv/20150206.074811 accepted/tizen/wearable/20150204.014315 submit/tizen_3.0.2014.q4_common/20150224.132718 submit/tizen_common/20150127.143638 submit/tizen_common/20150224.160311 submit/tizen_ivi/20150206.082313 submit/tizen_mobile/20150129.000000 submit/tizen_mobile/20150204.011944 submit/tizen_tv/20150204.012408 submit/tizen_wearable/20150202.034712 submit/tizen_wearable/20150204.011455
authorIlya Palachev <i.palachev@samsung.com>
Wed, 17 Dec 2014 10:55:55 +0000 (13:55 +0300)
committerIlya Palachev <i.palachev@samsung.com>
Wed, 17 Dec 2014 11:53:18 +0000 (14:53 +0300)
commit77f41a5cae59c0faa5384af809649f42e6667144
tree0d218da3fc585949ef288eb0fdbaeede371e7e30
parent1b2063324897e07f2f16e6f9867bde080d2851ae
Force pread64/pwrite64 to return 0 for zero-length buffer

According to official standard POSIX.1-2001. pread64 and pwrite64
should return 0 for zero-length buffers as mentioned at

http://pubs.opengroup.org/onlinepubs/009695399/functions/read.html
http://pubs.opengroup.org/onlinepubs/009695399/functions/write.html

Change-Id: Icd66ea29658329fbd5e6461d1def0c78c81d2671
Signed-off-by: Ilya Palachev <i.palachev@samsung.com>
linux-user/syscall.c