Skip to content

Instantly share code, notes, and snippets.

@joshua24322
joshua24322 / PosixErrorCodes.php
Created August 12, 2021 07:44 — forked from nelsonsar/PosixErrorCodes.php
Posix error codes as class of constants. From here: http://fxr.watson.org/fxr/source/sys/errno.h
<?php
class PosixErrorCode
{
const EPERM = 1; /* Operation not permitted */
const ENOENT = 2; /* No such file or directory */
const ESRCH = 3; /* No such process */
const EINTR = 4; /* Interrupted system call */
const EIO = 5; /* Input/output error */
const ENXIO = 6; /* Device not configured */