Implement error.h
[lttng-ust.git] / include / lttng / core.h
index 7977be4dad2c64d53624cbf215158008a8c2807d..9243941cf411ba5ba9aa0b996947c11065b34577 100644 (file)
 #define PAGE_SIZE sysconf(_SC_PAGE_SIZE)
 #define PAGE_MASK (~(PAGE_SIZE-1))
 
-/* ERROR OPS */
-#define MAX_ERRNO      4095
-
-#define IS_ERR_VALUE(x) caa_unlikely((x) >= (unsigned long)-MAX_ERRNO)
-
-static inline void *ERR_PTR(long error)
-{
-       return (void *) error;
-}
-
-static inline long PTR_ERR(const void *ptr)
-{
-       return (long) ptr;
-}
-
-static inline long IS_ERR(const void *ptr)
-{
-       return IS_ERR_VALUE((unsigned long)ptr);
-}
-
-
 /* Min / Max */
 
 #define min_t(type, x, y) ({                    \
This page took 0.023099 seconds and 4 git commands to generate.