java.lang.Object
com.github.marschall.nativebytebuffers.Unistd

public final class Unistd extends Object
Provides access to file management using unistd.h.
  • Method Details

    • ftruncate

      public static void ftruncate(int fildes, long length) throws IOException
      Truncate a file to a specified length.
      Parameters:
      fildes - file descriptor referring to the underlying open file
      length - the size to truncate to
      Throws:
      IOException - if ftruncate() fails
      See Also:
    • close

      public static void close(int fildes) throws IOException
      Close a file descriptor.
      Parameters:
      fildes - file descriptor referring to the underlying open file
      Throws:
      IOException - if close() fails
      See Also: