summaryrefslogtreecommitdiff
path: root/sal/osl/unx/file_error_transl.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sal/osl/unx/file_error_transl.hxx')
-rw-r--r--sal/osl/unx/file_error_transl.hxx29
1 files changed, 11 insertions, 18 deletions
diff --git a/sal/osl/unx/file_error_transl.hxx b/sal/osl/unx/file_error_transl.hxx
index 51be5aacf998..5357db3d28b0 100644
--- a/sal/osl/unx/file_error_transl.hxx
+++ b/sal/osl/unx/file_error_transl.hxx
@@ -23,29 +23,22 @@
#include <osl/file.h>
#include <sal/types.h>
-/*********************************************
- oslTranslateFileError
- Translate errno's to osl file errors
-
- @param bIsError [in] specifies if nErrno
- should be interpreted as error,
- some libc functions signaling an error
- but errno is nevertheless 0 in this
- case the function should at least
- return osl_File_E_Unknown but in no
- case osl_File_E_None!
+#define OSL_FET_ERROR true
- @param nErrno [in] the errno if errno is 0
- and bIsError is true the function
- returns osl_File_E_Unknown
+/** Translate errno's to osl file errors
- @returns the osl error code appropriate to
- the errno
+ @param [in] bIsError specifies if nErrno should be interpreted as error,
+ some libc functions signaling an error but errno is
+ nevertheless 0 in this case the function should at
+ least return osl_File_E_Unknown but in no case
+ osl_File_E_None!
- *********************************************/
+ @param [in] nErrno the errno if errno is 0 and bIsError is true the
+ function returns osl_File_E_Unknown
-#define OSL_FET_ERROR true
+ @returns the osl error code appropriate to the errno
+*/
oslFileError oslTranslateFileError(bool bIsError, int Errno);
#endif