* 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.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user