Subversion Repositories HelenOS

Rev

Rev 2445 | Rev 3370 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2445 Rev 2476
Line 35... Line 35...
35
#ifndef KERN_ERRNO_H_
35
#ifndef KERN_ERRNO_H_
36
#define KERN_ERRNO_H_
36
#define KERN_ERRNO_H_
37
 
37
 
38
/* 1-255 are kernel error codes, 256-512 are user error codes */
38
/* 1-255 are kernel error codes, 256-512 are user error codes */
39
 
39
 
40
#define EOK         0   /* No error */
40
#define EOK     0   /* No error */
41
#define ENOENT      -1  /* No such entry */
41
#define ENOENT      -1  /* No such entry */
42
#define ENOMEM      -2  /* Not enough memory */
42
#define ENOMEM      -2  /* Not enough memory */
43
#define ELIMIT      -3  /* Limit exceeded */
43
#define ELIMIT      -3  /* Limit exceeded */
44
#define EREFUSED    -4  /* Connection refused */
44
#define EREFUSED    -4  /* Connection refused */
45
#define EFORWARD    -5  /* Forward error */
45
#define EFORWARD    -5  /* Forward error */
46
#define EPERM       -6  /* Permission denied */
46
#define EPERM       -6  /* Permission denied */
47
#define EHANGUP     -7  /* Answerbox closed connection, call sys_ipc_hangup
47
#define EHANGUP     -7  /* Answerbox closed connection, call
48
                 * to close the connection. Used by answerbox
48
                 * sys_ipc_hangup() to close the connection.
49
                 * to close the connection.  */
49
                 * Used by answerbox to close the connection.
-
 
50
                 */
50
#define EEXISTS     -8  /* Entry already exists */
51
#define EEXISTS     -8  /* Entry already exists */
51
#define EBADMEM     -9  /* Bad memory pointer */
52
#define EBADMEM     -9  /* Bad memory pointer */
52
#define ENOTSUP     -10 /* Not supported */
53
#define ENOTSUP     -10 /* Not supported */
53
#define EADDRNOTAVAIL   -11 /* Address not available. */
54
#define EADDRNOTAVAIL   -11 /* Address not available. */
54
#define ETIMEOUT        -12     /* Timeout expired */
55
#define ETIMEOUT        -12     /* Timeout expired */