Skip to content

Commit

Permalink
feat: add and correct existing general, file and value related errnos
Browse files Browse the repository at this point in the history
  • Loading branch information
FedorLap2006 committed Mar 4, 2024
1 parent 2b59bc0 commit bfc39ef
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions include/depthos/errno.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,24 @@

#include <depthos/stdtypes.h>

#define ENOENT -1
#define EINVAL -2
#define ENIMPL -3

extern int errno;
#define EINVAL 1
#define EOVERFLOW 2
#define E2BIG 3
#define ENIMPL 4
#define ENOSYS ENIMPL
#define EFAULT 5
#define EACCES 6
#define EPERM 7
#define ENOENT 8
#define EBADF 9
#define EAGAIN 10
#define ENOTDIR 11
#define ENOIOCTL 12
#define ENOTTY ENOIOCTL
#define EMFILE 13
#define ENOEXEC 14
#define EEXIST 15
#define ENOMEM 16

extern int errno;

0 comments on commit bfc39ef

Please sign in to comment.