feat: lunadbg GDB plugin to ease kernel debugging process.
[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(__current->k_status = errno)
8 #define DO_STATUS_OR_RETURN(errno) ({ errno < 0 ? DO_STATUS(errno) : errno; })
9
10 #endif /* __LUNAIX_SYSCALL_UTILS_H */