1gg-error(3) GGI gg-error(3)
2
3
4
6 gg-error, gii-error, ggi-error : GGI error definitions
7
9 #include <ggi/errors.h>
10
11
13 GGI return code policy is usually (unless otherwise noted):
14
15 == 0 on normal completion
16 > 0 when giving additional hints or returning positiv integer data
17 < 0 for errors
18
19 GGI error codes are of the form GGI_* and are guaranteed to be negative
20 (except GGI_OK of course, which is guaranteed to be zero).
21
22 The following error codes are defined:
23
24 GGI_OK 0 /* All is well */
25
26 GGI_ENOMEM -20 /* Out of memory */
27 GGI_ENOFILE -21 /* File does not exist */
28 GGI_ENODEVICE -22 /* Input/Output device can not be opened */
29 GGI_EARGREQ -23 /* Required argument missing */
30 GGI_EARGINVAL -24 /* Invalid argument(s) */
31 GGI_ENOTALLOC -25 /* Trying to use or deallocate a resource that
32 was not previously allocated */
33 GGI_EFATAL -26 /* Fatal error - the state of the target of
34 the operation is undefined */
35 GGI_EBADFILE -27 /* Error reading (config) file */
36 GGI_ENOSPACE -28 /* Out of space / range */
37 GGI_ENOFUNC -29 /* Function not implemented */
38 GGI_EBUSY -30 /* Object is busy */
39 GGI_ENOTFOUND -31 /* The requested object was not found */
40 GGI_EEXCLUSIVE -32 /* Tried to get non-exclusive access to object
41 which only supports exclusive access */
42 GGI_ENOMATCH -33 /* No matching entry found */
43
44 GGI_EEVUNKNOWN -40 /* Unknown event sent to or received from
45 input source */
46 GGI_EEVNOTARGET -41 /* No apropriate target for for sent event */
47 GGI_EEVOVERFLOW -42 /* Overflow when queuing event */
48
49 GGI_EUNKNOWN -99 /* Unknown error */
50
51 The values -1 to -19 are reserved for extensions. See their error man‐
52 page for the details.
53
54
55
56libgg-1.0.x 2005-07-29 gg-error(3)