syscalls/sendfile: Convert sendfile{08, 09} to the new API
Get series with b4
b4 am YK4j0Pw4ECqjFWTj@pevikVersions newest first · linked by author and title
- v2 Latest posting 2/20 of 2 patches 0 repliesNew
- v2 posting 1/20 of 2 patches 0 repliesSuperseded
- v12 patches 0 repliesSuperseded
Patches in v2 posting 2/2 No applies recorded yet
None of the 2 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [LTP] [PATCH 0/2 v2] syscalls/sendfile: Convert sendfile{08, 09} to the new API
Hi Cyril,
Quoted 6 lines
Hi!
Quoted 4 lines
By accident, I changed
off_tbefore_pos,after_pos;
to:OFF_Tbefore_pos,after_pos;
Quoted 7 lines
Quoted 1 line
@Cyril: should it be reverted?
There is a define in the
Makefilethat definesOFF_Ttooff64_tfor _FILE_OFFSET_BITS=64 but that looks like a workaround for buggy libc.The _FILE_OFFSET_BITS=64 should, when code is compiled on 32bit platform, change the 32bit
off_tto a 64bitoff_t.
Thanks for info. I noticed Makefile myself, but didn't know the background.
Quoted 11 lines
I.e. when you compile following:
int main(void)
{ printf("%zu\n", sizeof(off_t)); return 0; }on a 32bit (or with -m32) it should print 4
on a 32bit with -D_FILE_OFFSET_BITS=64 it should print 8 on a 64bit it should print 8 regardless
Yep (verified myself).
Quoted 2 lines
As far as I can tell we should remove the
OFF_Thandling from theMakefilehere instead.
OK, I'll send a patch which removes off64_t from Makefile and use always off_t.
Kind regards,
Petr