Commit ef283e50 authored by Ruslan Kuprieiev's avatar Ruslan Kuprieiev Committed by Pavel Emelyanov

cr-errno: initial commit

Signed-off-by: 's avatarRuslan Kuprieiev <kupruser@gmail.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 2b2d6732
...@@ -69,6 +69,7 @@ endif ...@@ -69,6 +69,7 @@ endif
obj-y += cr-service.o obj-y += cr-service.o
obj-y += sd-daemon.o obj-y += sd-daemon.o
obj-y += plugin.o obj-y += plugin.o
obj-y += cr-errno.o
ifneq ($(MAKECMDGOALS),clean) ifneq ($(MAKECMDGOALS),clean)
incdeps := y incdeps := y
......
static int cr_errno;
int get_cr_errno(void)
{
return cr_errno;
}
void set_cr_errno(int new_err)
{
if (!cr_errno)
cr_errno = new_err;
}
#ifndef __CR_ERRNO_H__
#define __CR_ERRNO_H__
void set_cr_errno(int err);
int get_cr_errno(void);
#endif /* __CR_ERRNO_H__ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment