From 6f1d48621ed3fa1cbbfe115ee7c3f672f525b162 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Wed, 2 Aug 2006 15:11:48 +0000 Subject: * environ.cc (env_win32_to_posix_path_list): Declare. (conv_envvars): Use env_win32_to_posix_path_list rather than cygwin_win32_to_posix_path_list. (posify): Translate back to win32 path if errno is EIDRM. * environ.h: Update copyright. Define ENV_CVT. * path.cc (conv_path_list): If converting for the environment and removed an element set errno to ENV_CVT. (env_win32_to_posix_path_list): New function. --- winsup/cygwin/environ.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'winsup/cygwin/environ.h') diff --git a/winsup/cygwin/environ.h b/winsup/cygwin/environ.h index b953148b4..84c88a3c9 100644 --- a/winsup/cygwin/environ.h +++ b/winsup/cygwin/environ.h @@ -1,6 +1,6 @@ /* environ.h: Declarations for environ manipulation - Copyright 2000, 2001, 2002 Red Hat, Inc. + Copyright 2000, 2001, 2002, 2003, 2005, 2006 Red Hat, Inc. This file is part of Cygwin. @@ -48,3 +48,5 @@ extern "C" char __stdcall **cur_environ (); char ** __stdcall build_env (const char * const *envp, char *&envblock, int &envc, bool need_envblock) __attribute__ ((regparm (3))); + +#define ENV_CVT -1 -- cgit v1.2.3