Voxia OS v0.0.1
Hobby Project Operating System Targeting x86-64
Loading...
Searching...
No Matches
err_no.h File Reference

Go to the source code of this file.

Macros

#define EPERM   1 /* Operation not permitted */
 
#define ENOENT   2 /* No such file or directory */
 
#define ESRCH   3 /* No such process */
 
#define EINTR   4 /* Interrupted system call */
 
#define EIO   5 /* I/O error */
 
#define ENXIO   6 /* No such device or address */
 
#define E2BIG   7 /* Argument list too long */
 
#define ENOEXEC   8 /* Exec format error */
 
#define EBADF   9 /* Bad file descriptor */
 
#define ECHILD   10 /* No child processes */
 
#define EAGAIN   11 /* Resource temporarily unavailable */
 
#define ENOMEM   12 /* Out of memory */
 
#define EACCES   13 /* Permission denied */
 
#define EFAULT   14 /* Bad memory address */
 
#define EBUSY   16 /* Device or resource busy */
 
#define EEXIST   17 /* File exists */
 
#define ENODEV   19 /* No such device */
 
#define ENOTDIR   20 /* Not a directory */
 
#define EISDIR   21 /* Is a directory */
 
#define EINVAL   22 /* Invalid argument */
 
#define ENFILE   23 /* Too many open files in system */
 
#define EMFILE   24 /* Too many open files */
 
#define ENOTTY   25 /* Inappropriate ioctl for device */
 
#define ENOSPC   28 /* No space left on device */
 
#define ESPIPE   29 /* Illegal seek */
 
#define EROFS   30 /* Read-only filesystem */
 
#define EMLINK   31 /* Too many links */
 
#define EPIPE   32 /* Broken pipe */
 
#define EDOM   33 /* Math argument out of domain */
 
#define ERANGE   34 /* Math result out of range */
 
#define ENOSYS   38 /* Function not implemented */
 

Macro Definition Documentation

◆ E2BIG

#define E2BIG   7 /* Argument list too long */

Definition at line 10 of file err_no.h.

◆ EACCES

#define EACCES   13 /* Permission denied */

Definition at line 16 of file err_no.h.

◆ EAGAIN

#define EAGAIN   11 /* Resource temporarily unavailable */

Definition at line 14 of file err_no.h.

◆ EBADF

#define EBADF   9 /* Bad file descriptor */

Definition at line 12 of file err_no.h.

Referenced by char_ioctl(), syscall_ioctl(), syscall_read(), syscall_write(), and syscall_writev().

◆ EBUSY

#define EBUSY   16 /* Device or resource busy */

Definition at line 18 of file err_no.h.

◆ ECHILD

#define ECHILD   10 /* No child processes */

Definition at line 13 of file err_no.h.

◆ EDOM

#define EDOM   33 /* Math argument out of domain */

Definition at line 32 of file err_no.h.

◆ EEXIST

#define EEXIST   17 /* File exists */

Definition at line 19 of file err_no.h.

◆ EFAULT

#define EFAULT   14 /* Bad memory address */

Definition at line 17 of file err_no.h.

◆ EINTR

#define EINTR   4 /* Interrupted system call */

Definition at line 7 of file err_no.h.

◆ EINVAL

#define EINVAL   22 /* Invalid argument */

Definition at line 23 of file err_no.h.

◆ EIO

#define EIO   5 /* I/O error */

Definition at line 8 of file err_no.h.

◆ EISDIR

#define EISDIR   21 /* Is a directory */

Definition at line 22 of file err_no.h.

◆ EMFILE

#define EMFILE   24 /* Too many open files */

Definition at line 25 of file err_no.h.

◆ EMLINK

#define EMLINK   31 /* Too many links */

Definition at line 30 of file err_no.h.

◆ ENFILE

#define ENFILE   23 /* Too many open files in system */

Definition at line 24 of file err_no.h.

◆ ENODEV

#define ENODEV   19 /* No such device */

Definition at line 20 of file err_no.h.

◆ ENOENT

#define ENOENT   2 /* No such file or directory */

Definition at line 5 of file err_no.h.

Referenced by char_write(), and syscall_mmap().

◆ ENOEXEC

#define ENOEXEC   8 /* Exec format error */

Definition at line 11 of file err_no.h.

◆ ENOMEM

#define ENOMEM   12 /* Out of memory */

Definition at line 15 of file err_no.h.

Referenced by mmap_handle_anonymous().

◆ ENOSPC

#define ENOSPC   28 /* No space left on device */

Definition at line 27 of file err_no.h.

Referenced by char_write(), and syscall_mmap().

◆ ENOSYS

#define ENOSYS   38 /* Function not implemented */

Definition at line 34 of file err_no.h.

Referenced by char_read(), and syscall_dispatch().

◆ ENOTDIR

#define ENOTDIR   20 /* Not a directory */

Definition at line 21 of file err_no.h.

◆ ENOTTY

#define ENOTTY   25 /* Inappropriate ioctl for device */

Definition at line 26 of file err_no.h.

Referenced by char_ioctl(), syscall_ioctl(), syscall_read(), syscall_write(), and syscall_writev().

◆ ENXIO

#define ENXIO   6 /* No such device or address */

Definition at line 9 of file err_no.h.

◆ EPERM

#define EPERM   1 /* Operation not permitted */

Definition at line 4 of file err_no.h.

◆ EPIPE

#define EPIPE   32 /* Broken pipe */

Definition at line 31 of file err_no.h.

◆ ERANGE

#define ERANGE   34 /* Math result out of range */

Definition at line 33 of file err_no.h.

◆ EROFS

#define EROFS   30 /* Read-only filesystem */

Definition at line 29 of file err_no.h.

◆ ESPIPE

#define ESPIPE   29 /* Illegal seek */

Definition at line 28 of file err_no.h.

◆ ESRCH

#define ESRCH   3 /* No such process */

Definition at line 6 of file err_no.h.