HH\Lib\OS\ftruncate

Facebook Engineer?

This is available as OS\ftruncate in the www repository.

namespace HH\Lib\OS;

function ftruncate(
  FileDescriptor $fd,
  int $length,
): void;

Parameters

  • FileDescriptor $fd
  • int $length

Returns

  • void