From 3a0f12b5885fa877c3365ef0ff114346f21ce92c Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sat, 21 Feb 2004 04:46:00 +0000 Subject: * path.cc (conv_path_list): Return error condition. (copy1): New function. (copyenc): New function. (mount_item::fnmunge): Return error condition. Use new functions to copy strings. (mount_item::build_win32): Ditto. (mount_info::conv_to_win32_path): Return error condition. (cygwin_conv_to_posix_path): Return result of path conversion. (cygwin_conv_to_full_posix_path): Ditto. (return_with_errno): New macro. (cygwin_win32_to_posix_path_list): Use new macro to potentially set errno. (cygwin_posix_to_win32_path_list): Ditto. * path.h (mount_item::fnmunge): Add size argument. (mount_item::build_win32): Ditto. --- winsup/cygwin/shared_info.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'winsup/cygwin/shared_info.h') diff --git a/winsup/cygwin/shared_info.h b/winsup/cygwin/shared_info.h index 3a462bee3..4264d5eeb 100644 --- a/winsup/cygwin/shared_info.h +++ b/winsup/cygwin/shared_info.h @@ -32,8 +32,8 @@ class mount_item void init (const char *dev, const char *path, unsigned flags); struct mntent *getmntent (); - void fnmunge (char *, const char *); - void build_win32 (char *, const char *, unsigned *, unsigned); + int fnmunge (char *, const char *, int&); + int build_win32 (char *, const char *, unsigned *, unsigned); }; /* Warning: Decreasing this value will cause cygwin.dll to ignore existing -- cgit v1.2.3