Async error handling
[akaros.git] / lib / null.c
1 #ifdef __DEPUTY__
2 #pragma nodeputy
3 #endif
4
5 #include <inc/types.h>
6 #include <inc/syscall.h>
7 #include <inc/lib.h>
8
9 void null()
10 {
11         sys_null();
12 }
13
14 error_t null_async(async_desc_t** desc)
15 {
16         if ((current_async_desc = get_async_desc()) == NULL)
17                 return E_BUSY;
18         *desc = current_async_desc;
19         return sys_null_async(get_sys_desc(current_async_desc));
20 }