]> sourceware.org Git - newlib-cygwin.git/commitdiff
* exec.cc (strccpy): Move function from here...
authorCorinna Vinschen <corinna@vinschen.de>
Wed, 19 Jan 2011 09:41:54 +0000 (09:41 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Wed, 19 Jan 2011 09:41:54 +0000 (09:41 +0000)
* strfuncs.cc (strccpy): ...to here.
* string.h (strccpy): Declare.
* winsup.h (strccpy): Drop declaration.

winsup/cygwin/ChangeLog
winsup/cygwin/exec.cc
winsup/cygwin/strfuncs.cc
winsup/cygwin/string.h
winsup/cygwin/winsup.h

index aa6af307672ad08c5f19c0ffb690a7ce41725c3a..0461fdf855ec5d29aa86c8fc69e14322071fdc1e 100644 (file)
@@ -1,3 +1,10 @@
+2011-01-19  Corinna Vinschen  <corinna@vinschen.de>
+
+       * exec.cc (strccpy): Move function from here...
+       * strfuncs.cc (strccpy): ...to here.
+       * string.h (strccpy): Declare.
+       * winsup.h (strccpy): Drop declaration.
+
 2011-01-19  Corinna Vinschen  <corinna@vinschen.de>
 
        * errno.cc (errmap): Add error codes for invalid binaries.
index d4462b5341b92819a699cdbd4af54e80b7f1044c..327e86a09ae3f19be0eb2f40cca5585b0e85552f 100644 (file)
@@ -68,21 +68,6 @@ sexecve_is_bad ()
   return 0;
 }
 
-/* Copy string, until c or <nul> is encountered.
-   NUL-terminate the destination string (s1).
-   Return pointer to terminating byte in dst string.  */
-
-char * __stdcall
-strccpy (char *s1, const char **s2, char c)
-{
-  while (**s2 && **s2 != c)
-    *s1++ = *((*s2)++);
-  *s1 = 0;
-
-  MALLOC_CHECK;
-  return s1;
-}
-
 extern "C" int
 execvp (const char *path, char * const *argv)
 {
index 097421703d01a1846581e3e0d574e70e9fd34248..8b13b20d85632b7c254465cae94709d30f7558a2 100644 (file)
@@ -1,7 +1,7 @@
 /* strfuncs.cc: misc funcs that don't belong anywhere else
 
    Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
-   2005, 2006, 2007, 2008, 2009, 2010 Red Hat, Inc.
+   2005, 2006, 2007, 2008, 2009, 2010, 2011 Red Hat, Inc.
 
 This file is part of Cygwin.
 
@@ -663,6 +663,20 @@ sys_mbstowcs_alloc (wchar_t **dst_p, int type, const char *src, size_t nms)
   return ret;
 }
 
+/* Copy string, until c or <nul> is encountered.
+   NUL-terminate the destination string (s1).
+   Return pointer to terminating byte in dst string.  */
+char * __stdcall
+strccpy (char *s1, const char **s2, char c)
+{
+  while (**s2 && **s2 != c)
+    *s1++ = *((*s2)++);
+  *s1 = 0;
+
+  MALLOC_CHECK;
+  return s1;
+}
+
 static WCHAR hex_wchars[] = L"0123456789abcdef";
 
 NTSTATUS NTAPI
index b02fadb8f1de38745483e6f26a767e75c0ee6760..3182560320a657c60f6c30771d79d35e6ef3c24a 100644 (file)
@@ -1,6 +1,6 @@
 /* string.h: Extra string defs
 
-   Copyright 2001, 2007, 2008 Red Hat, Inc.
+   Copyright 2001, 2007, 2008, 2011 Red Hat, Inc.
 
 This file is part of Cygwin.
 
@@ -119,6 +119,8 @@ char * __stdcall cygwin_strupr (char *);
 
 #endif /* __INSIDE_CYGWIN__ */
 
+char *__stdcall strccpy (char *s1, const char **s2, char c);
+
 #ifdef __cplusplus
 }
 #endif
index 3ffd3b703c5939abac0458812a75c6633e22a3f1..5d07afdb4a433e4721f4a45ced694bbf19128e1c 100644 (file)
@@ -211,9 +211,6 @@ __ino64_t __stdcall hash_path_name (__ino64_t hash, PCWSTR name) __attribute__ (
 __ino64_t __stdcall hash_path_name (__ino64_t hash, const char *name) __attribute__ ((regparm(2)));
 void __stdcall nofinalslash (const char *src, char *dst) __attribute__ ((regparm(2)));
 
-/* String manipulation */
-extern "C" char *__stdcall strccpy (char *s1, const char **s2, char c);
-
 void *hook_or_detect_cygwin (const char *, const void *, WORD&) __attribute__ ((regparm (3)));
 
 /* Time related */
This page took 0.038971 seconds and 5 git commands to generate.