New global function.
1999-12-22 Martin Baulig <martin@home-of-linux.org> * lib/errors.c (glibtop_get_errno_l): New global function. * lib/lib.pl: For functions with a `retval' return type, set `server->glibtop_errno' to the error code on error or to zero on success.
This commit is contained in:
committed by
Martin Baulig
parent
d66768ac55
commit
d86a386ad8
@@ -44,3 +44,9 @@ glibtop_get_error_string_l (glibtop *server, unsigned error_number)
|
||||
|
||||
return glibtop_strdup_r (server, _(glibtop_error_strings [error_number]));
|
||||
}
|
||||
|
||||
unsigned
|
||||
glibtop_get_errno_l (glibtop *server)
|
||||
{
|
||||
return server->glibtop_errno;
|
||||
}
|
||||
|
Reference in New Issue
Block a user