blob: 265c19cc6b3aaa98d208bb30e4c4ae1512b4c2a3 [file] [log] [blame]
Travis Geiselbrecht1d0df692008-09-01 02:26:09 -07001/*
2 * Copyright (c) 2008 Travis Geiselbrecht
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining
5 * a copy of this software and associated documentation files
6 * (the "Software"), to deal in the Software without restriction,
7 * including without limitation the rights to use, copy, modify, merge,
8 * publish, distribute, sublicense, and/or sell copies of the Software,
9 * and to permit persons to whom the Software is furnished to do so,
10 * subject to the following conditions:
11 *
12 * The above copyright notice and this permission notice shall be
13 * included in all copies or substantial portions of the Software.
14 *
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
18 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
19 * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
20 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
21 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 */
23#ifndef __ERR_H
24#define __ERR_H
25
Travis Geiselbrechtf6e22072010-05-06 14:03:08 -070026#include <sys/types.h> // for status_t
27
Travis Geiselbrecht1d0df692008-09-01 02:26:09 -070028#define NO_ERROR 0
29#define ERROR -1
30#define ERR_NOT_FOUND -2
31#define ERR_NOT_READY -3
32#define ERR_NO_MSG -4
33#define ERR_NO_MEMORY -5
34#define ERR_ALREADY_STARTED -6
35#define ERR_NOT_VALID -7
36#define ERR_INVALID_ARGS -8
37#define ERR_NOT_ENOUGH_BUFFER -9
38#define ERR_NOT_SUSPENDED -10
39#define ERR_OBJECT_DESTROYED -11
40#define ERR_NOT_BLOCKED -12
41#define ERR_TIMED_OUT -13
Travis Geiselbrechtf6e22072010-05-06 14:03:08 -070042#define ERR_ALREADY_EXISTS -14
43#define ERR_CHANNEL_CLOSED -15
44#define ERR_OFFLINE -16
45#define ERR_NOT_ALLOWED -17
46#define ERR_BAD_PATH -18
47#define ERR_ALREADY_MOUNTED -19
48#define ERR_IO -20
49#define ERR_NOT_DIR -21
50#define ERR_NOT_FILE -22
51#define ERR_RECURSE_TOO_DEEP -23
52#define ERR_NOT_SUPPORTED -24
53#define ERR_TOO_BIG -25
Travis Geiselbrecht1d0df692008-09-01 02:26:09 -070054
55#endif