errormap: Add unix_to_werror() function
[ira/wip.git] / libcli / util / error.h
index 5c4dc10916bf4a0435b2687a902976f16e1ed5ba..0972601afb1e417ec3c43f36ac1a51ef3c144c14 100644 (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 */