Project

General

Profile

Bug #1140

sys/swap.h should work in large file environment

Added by Albert Lee about 8 years ago.

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

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

Related to illumos gate - Bug #2410: procfs needlessly breaks large file supportResolved2012-03-15

Actions
Blocks illumos gate - Bug #640: number_to_scaled_string is duplicated in several commandsIn Progress2011-01-17

Actions

Also available in: Atom PDF