summaryrefslogtreecommitdiff
path: root/source/kit/status.h
blob: be54aade9d9411044a56a8197750940448b05f3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef KIT_STATUS_H
#define KIT_STATUS_H

#include "types.h"

enum {
  KIT_OK                           = 0,
  KIT_ERROR_INTERNAL               = 1,
  KIT_ERROR_BAD_ALLOC              = (1 << 1),
  KIT_ERROR_INVALID_ARGUMENT       = (1 << 2),
  KIT_ERROR_MKDIR_FAILED           = (1 << 3),
  KIT_ERROR_RMDIR_FAILED           = (1 << 4),
  KIT_ERROR_UNLINK_FAILED          = (1 << 5),
  KIT_ERROR_FILE_ALREADY_EXISTS    = (1 << 6),
  KIT_ERROR_FILE_DOES_NOT_EXIST    = (1 << 7),
  KIT_ERROR_PATH_TOO_LONG          = (1 << 8),
  KIT_ERROR_SOCKETS_STARTUP_FAILED = (1 << 9),
  KIT_ERROR_SOCKET_CONTROL_FAILED  = (1 << 10),
  KIT_ERROR_NAME_TOO_LONG          = (1 << 11),
  KIT_ERROR_INVALID_SIZE           = (1 << 12),
  KIT_ERROR_INVALID_NAME           = (1 << 13),
  KIT_ERROR_INVALID_PATH           = (1 << 14),
  KIT_ERROR_OPEN_FAILED            = (1 << 15),
  KIT_ERROR_TRUNCATE_FAILED        = (1 << 16),
  KIT_ERROR_MAP_FAILED             = (1 << 17),
  KIT_ERROR_UNMAP_FAILED           = (1 << 18),
  KIT_ERROR_SYNC_FAILED            = (1 << 19),
  KIT_ERROR_CLOSE_FAILED           = (1 << 20),
  KIT_ERROR_RESOURCE_UNAVAILABLE   = (1 << 21),
  KIT_ERROR_NOT_IMPLEMENTED        = (1 << 30),
};

typedef i32 kit_status_t;

#endif