Actions
Bug #1140
opensys/swap.h should work in large file environment
Status:
New
Priority:
Low
Assignee:
-
Category:
cmd - userland programs
Start date:
2011-06-23
Due date:
% Done:
0%
Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage
Gerrit CR:
External Bug:
Description
While implementing #640 Jason discovered that sys/swap.h barfs when a consumer has -D_FILE_OFFSET_BITS=64.
This appears to be because the swapres and swapent structures, which are a fixed part of the swapctl(2) syscall interface, use off_t in their definition which becomes 64 bits in a large file (lfcompile(5)) environment. Just replacing them with off32_t for #if !defined(_LP64)
should keep them consistent.
Related issues
No data to display
Actions