HH\Lib\OS\fcntl

Facebook Engineer?

This function is available as OS\fcntl() in Facebook's www repository.

Control operations for file descriptors

namespace HH\Lib\OS;

function fcntl(
  FileDescriptor $fd,
  FcntlOp $cmd,
  ?int $arg = NULL,
): mixed;

See man 2 fcntl for details. On error, an ErrnoException will be thrown.

Parameters

  • FileDescriptor $fd
  • FcntlOp $cmd
  • ?int $arg = NULL

Returns

  • mixed