summaryrefslogtreecommitdiff
path: root/libcli/util/error.h
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2011-01-26 22:17:43 +0100
committerKai Blin <kai@samba.org>2011-09-28 02:02:35 +0200
commitdf88e66250375fec2d0991bf379f4fe6f2550a7c (patch)
treefc9aa689889c43e956c41f505bf47f09449dacce /libcli/util/error.h
parente8ed54d6c98ba4c0e8ac6b4cc7eb1df58e656d14 (diff)
downloadsamba-df88e66250375fec2d0991bf379f4fe6f2550a7c.tar.gz
samba-df88e66250375fec2d0991bf379f4fe6f2550a7c.tar.bz2
samba-df88e66250375fec2d0991bf379f4fe6f2550a7c.zip
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>
Diffstat (limited to 'libcli/util/error.h')
-rw-r--r--libcli/util/error.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libcli/util/error.h b/libcli/util/error.h
index 5c4dc10916..0972601afb 100644
--- a/libcli/util/error.h
+++ b/libcli/util/error.h
@@ -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 */