Skip to content

ftruncate is missing from core::libc #4199

Closed
@Dretch

Description

@Dretch

rust does not seem to have the ftruncate function (http://pubs.opengroup.org/onlinepubs/7908799/xsh/ftruncate.html).

Might it be possible to add such a function? Some trickery would be needed on windows, like using _chsize instead (http://msdn.microsoft.com/en-us/library/dk925tyb%28v=vs.80%29.aspx).

Is there any reason this function shouldn't exist? If not then I will try and submit a pull request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions