Skip to content

Large file support (64-bit offsets) #2025

Open
@inglorion

Description

@inglorion

A number of nix functions take file positions of type off_t (for example, ftruncate and pread). off_t is a 64-bit value on many systems (e.g. FreeBSD, 64-bit Linux), but there are some systems (e.g. 32-bit Linux) where off_t is 32-bit, limiting the maximum file position that may be specified. Such systems may offer alternative interfaces (e.g. ftruncate64, pread64) which take 64-bit file positions. Linux does this, for example.

Nix currently offers the base versions of these functions (one exception being that both lseek and lseek64 are provided). As a result, file positions beyond 32 bits cannot be passed on some systems, even if the system does actually support 64-bit positions. This is a feature request to support 64-bit file positions on systems where those are supported.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions