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:
Martin Baulig
1999-12-22 13:09:42 +00:00
committed by Martin Baulig
parent ac0cce9d6f
commit d0441219cb
3 changed files with 20 additions and 8 deletions

View File

@@ -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;
}