summaryrefslogtreecommitdiff
path: root/epan/filesystem.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-01-24 01:44:29 +0000
committerGuy Harris <guy@alum.mit.edu>2004-01-24 01:44:29 +0000
commit46848f0a9ef2b8ceefdf75d8c75339778cd70e8c (patch)
treed4316f905060985bfa20d83b9b46102334975bb6 /epan/filesystem.h
parent49093048ac524c7eb2124c15a8db11d21c7fbab4 (diff)
downloadwireshark-46848f0a9ef2b8ceefdf75d8c75339778cd70e8c.tar.gz
Add a new "file_open_error_message()" routine in "epan/filesystem.c", to
translate UNIX errno values to a somewhat friendly message format string. Rename "file_open_error_message()" in "file.c" to "cf_open_error_message()", make "cf_open_error_message()" use the new "file_open_error_message()" for UNIX errno values, have "do_capture()" in "capture.c" use "file_open_error_message()" to report errors from "open()", and make "cf_open_error_message()" static as nothing outside "file.c" uses it. Do similar stuff in "tethereal.c". svn path=/trunk/; revision=9821
Diffstat (limited to 'epan/filesystem.h')
-rw-r--r--epan/filesystem.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/epan/filesystem.h b/epan/filesystem.h
index d4a32118f9..1148ba1fd6 100644
--- a/epan/filesystem.h
+++ b/epan/filesystem.h
@@ -1,7 +1,7 @@
/* filesystem.h
* Filesystem utility definitions
*
- * $Id: filesystem.h,v 1.15 2003/11/18 19:20:36 guy Exp $
+ * $Id: filesystem.h,v 1.16 2004/01/24 01:44:29 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -119,7 +119,12 @@ char *get_persconffile_path(const char *filename, gboolean for_writing);
*/
extern char *get_tempfile_path(const char *filename);
-
/* Delete a file */
gboolean deletefile (const char *path);
+
+/*
+ * Return an error message for UNIX-style errno indications.
+ */
+char *file_open_error_message(int err, gboolean for_writing);
+
#endif /* FILESYSTEM_H */