1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-30 19:42:05 +03:00

errormap: Add unix_to_werror() function

While this function technically is closest to the
map_nt_status_from_unix() function, I think it is better to keep the new
function in line with our usual fooerror_to_barerror() naming scheme.

Signed-off-by: Kai Blin <kai@samba.org>
This commit is contained in:
Kai Blin
2011-01-26 22:17:43 +01:00
parent e8ed54d6c9
commit df88e66250
2 changed files with 10 additions and 0 deletions

View File

@ -45,4 +45,9 @@ NTSTATUS map_nt_error_from_unix_common(int unix_error);
NTSTATUS nt_status_squash(NTSTATUS nt_status);
/*****************************************************************************
convert a Unix error to a WERROR
*****************************************************************************/
WERROR unix_to_werror(int unix_error);
#endif /* _SAMBA_ERROR_H */