HH\Lib\OS\fcntl

Meta Engineer?

This is available as OS\fcntl in the 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