From a9f20457f32877bf13e7a52366aa0996f9d8b2a9 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Wed, 24 Oct 2001 21:56:54 +0000 Subject: * Makefile.in: Only build testsuite directory on first 'make check'. * configure.in: Remove testsuite from SUBDIRS. * configure: Regenerate. --- winsup/cygwin/external.cc | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'winsup/cygwin/external.cc') diff --git a/winsup/cygwin/external.cc b/winsup/cygwin/external.cc index a4b81be92..5780647a2 100644 --- a/winsup/cygwin/external.cc +++ b/winsup/cygwin/external.cc @@ -11,6 +11,7 @@ Cygwin license. Please consult the file "CYGWIN_LICENSE" for details. */ #include "winsup.h" +#include #include "security.h" #include "fhandler.h" #include "sync.h" @@ -20,6 +21,11 @@ details. */ #include "shared_info.h" #include "cygwin_version.h" #include "perprocess.h" +#include "cygerrno.h" +#include "fhandler.h" +#include "path.h" +#include "dtable.h" +#include "cygheap.h" static external_pinfo * fillout_pinfo (pid_t pid, int winpid) @@ -175,6 +181,19 @@ cygwin_internal (cygwin_getinfo_types t, ...) return get_cygdrive_info (user, system, user_flags, system_flags); } + case CW_SET_CYGWIN_REGISTRY_NAME: + { +# define cr ((char *) arg) + if (check_null_empty_str_errno (cr)) + return (DWORD) NULL; + cygheap->cygwin_regname = (char *) crealloc (cygheap->cygwin_regname, + strlen (cr) + 1); + strcpy (cygheap->cygwin_regname, cr); + case CW_GET_CYGWIN_REGISTRY_NAME: + return (DWORD) cygheap->cygwin_regname; +# undef cr + } + default: return (DWORD) -1; } -- cgit v1.2.3