GitOS
Operating system exercise
Loading...
Searching...
No Matches
status.h File Reference

Go to the source code of this file.

Macros

#define ALL_OK   0
 Default return.
 
#define EIO   1
 Encountered I/O Error.
 
#define EINVARG   2
 Incorrent argument(s) provided.
 
#define ENOMEM   3
 Out of memory.
 
#define ENOTIMPL   4
 Not implemented.
 
#define EINFORMAT   5
 Invalid format.
 
#define EISTKN   8
 Is taken.
 
#define ISERR(value)   ((int) value < 0)
 
#define ERROR(value)   (void*)(value)
 
#define ERROR_I(value)   (int)(value)
 

Macro Definition Documentation

◆ ALL_OK

#define ALL_OK   0

Default return.

◆ EINFORMAT

#define EINFORMAT   5

Invalid format.

◆ EINVARG

#define EINVARG   2

Incorrent argument(s) provided.

◆ EIO

#define EIO   1

Encountered I/O Error.

◆ EISTKN

#define EISTKN   8

Is taken.

◆ ENOMEM

#define ENOMEM   3

Out of memory.

◆ ENOTIMPL

#define ENOTIMPL   4

Not implemented.

◆ ERROR

#define ERROR (   value)    (void*)(value)

◆ ERROR_I

#define ERROR_I (   value)    (int)(value)

◆ ISERR

#define ISERR (   value)    ((int) value < 0)