summaryrefslogtreecommitdiffhomepage
path: root/pkg/sync
diff options
context:
space:
mode:
authorChanwit Kaewkasi <chanwit@gmail.com>2018-05-22 13:46:52 -0700
committerShentubot <shentubot@google.com>2018-05-22 13:48:14 -0700
commit7b2b7a394601ae477538838702a2c5924da83751 (patch)
tree549f22aeae86a858a8bf4ea78d98a3540e305e26 /pkg/sync
parent705605f9011cfbd58f407ca84bc4c2d8cf39d80b (diff)
Change length type, and let fadvise64 return ESPIPE if file is a pipe
Kernel before 2.6.16 return EINVAL, but later return ESPIPE for this case. Also change type of "length" from Uint(uint32) to Int64. Because C header uses type "size_t" (unsigned long) or "off_t" (long) for length. And it makes more sense to check length < 0 with Int64 because Uint cannot be negative. Change-Id: Ifd7fea2dcded7577a30760558d0d31f479f074c4 PiperOrigin-RevId: 197616743
Diffstat (limited to 'pkg/sync')
0 files changed, 0 insertions, 0 deletions