properly update the pprev of next node when deleting hlist_node (close #30)
[lunaix-os.git] / lunaix-os / includes / lunaix / syscall_utils.h
1 #ifndef __LUNAIX_SYSCALL_UTILS_H
2 #define __LUNAIX_SYSCALL_UTILS_H
3
4 #include <lunaix/process.h>
5 #include <lunaix/syscall.h>
6
7 #define DO_STATUS(errno) SYSCALL_ESTATUS(syscall_result(errno))
8 #define DO_STATUS_OR_RETURN(errno) ({ errno < 0 ? DO_STATUS(errno) : errno; })
9
10 #endif /* __LUNAIX_SYSCALL_UTILS_H */