summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/include
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/include')
-rw-r--r--winsup/cygwin/include/strings.h39
1 files changed, 35 insertions, 4 deletions
diff --git a/winsup/cygwin/include/strings.h b/winsup/cygwin/include/strings.h
index e9d2839f2..e61e6a533 100644
--- a/winsup/cygwin/include/strings.h
+++ b/winsup/cygwin/include/strings.h
@@ -1,6 +1,37 @@
-#ifndef _STRINGS_H
-#define _STRINGS_H
+/* strings.h
-#include <string.h>
+ Copyright 2007 Red Hat, Inc.
-#endif /* _STRINGS_H */
+ This file is part of Cygwin.
+
+ This software is a copyrighted work licensed under the terms of the
+ Cygwin license. Please consult the file "CYGWIN_LICENSE" for
+ details. */
+
+#ifndef _STRINGS_H_
+#define _STRINGS_H_
+
+/* newlib's string.h already declares these functions. */
+#ifndef _STRING_H_
+
+#include "_ansi.h"
+
+#define __need_size_t
+#include <stddef.h>
+
+_BEGIN_STD_C
+
+int _EXFUN(bcmp,(const void *, const void *, size_t));
+void _EXFUN(bcopy,(const void *, void *, size_t));
+void _EXFUN(bzero,(void *, size_t));
+int _EXFUN(ffs,(int));
+char *_EXFUN(index,(const char *, int));
+char *_EXFUN(rindex,(const char *, int));
+int _EXFUN(strcasecmp,(const char *, const char *));
+int _EXFUN(strncasecmp,(const char *, const char *, size_t));
+
+_END_STD_C
+
+#endif /* _STRING_H_ */
+
+#endif /* _STRINGS_H_ */