New global function to return `server->glibtop_errno'.
1999-12-22 Martin Baulig <martin@home-of-linux.org> * lib/errors.c (glibtop_get_errno_l): New global function to return `server->glibtop_errno'. (glibtop_clear_errno_l): New global function to return `server->glibtop_errno' and set it back to 0.
This commit is contained in:
committed by
Martin Baulig
parent
ac0cce9d6f
commit
d0441219cb
10
lib/errors.c
10
lib/errors.c
@@ -52,3 +52,13 @@ glibtop_get_errno_l (glibtop *server)
|
||||
{
|
||||
return server->glibtop_errno;
|
||||
}
|
||||
|
||||
unsigned
|
||||
glibtop_clear_errno_l (glibtop *server)
|
||||
{
|
||||
unsigned old_errno;
|
||||
|
||||
old_errno = server->glibtop_errno;
|
||||
server->glibtop_errno = 0;
|
||||
return old_errno;
|
||||
}
|
||||
|
Reference in New Issue
Block a user