Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-09-06 09:17:22 +0400
committerChristopher Faylor <me@cgf.cx>2001-09-06 09:17:22 +0400
commit57c89867f5d355d62917f0c1db4d0cd02741cc9a (patch)
tree6d0e73f958e833c8d0c884fbe58e9a8055542df7 /winsup/cygwin/errno.cc
parent08b78edf5a6aceeb54ed848cc8479d4ca8bad4ca (diff)
Move appropriate variables to NO_COPY segment, throughout.
Diffstat (limited to 'winsup/cygwin/errno.cc')
-rw-r--r--winsup/cygwin/errno.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/errno.cc b/winsup/cygwin/errno.cc
index f9a3ca15c..540951c56 100644
--- a/winsup/cygwin/errno.cc
+++ b/winsup/cygwin/errno.cc
@@ -21,7 +21,7 @@ details. */
#define X(w, e) {ERROR_##w, #w, e}
-static const struct
+static const NO_COPY struct
{
DWORD w; /* windows version of error */
const char *s; /* text of windows version */
@@ -145,7 +145,7 @@ seterrno (const char *file, int line)
extern char *_user_strerror _PARAMS ((int));
-extern const char __declspec(dllexport) * const _sys_errlist[]=
+extern const NO_COPY char __declspec(dllexport) * const _sys_errlist[]=
{
/* NOERROR 0 */ "No error",
/* EPERM 1 */ "Not super-user",
@@ -287,7 +287,7 @@ extern const char __declspec(dllexport) * const _sys_errlist[]=
/* ECASECLASH 137 */ "Filename exists with different case"
};
-int __declspec(dllexport) _sys_nerr =
+int NO_COPY __declspec(dllexport) _sys_nerr =
sizeof (_sys_errlist) / sizeof (_sys_errlist[0]);
/* FIXME: Why is strerror() a long switch and not just: