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
path: root/newlib
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2010-12-07 20:31:26 +0300
committerJeff Johnston <jjohnstn@redhat.com>2010-12-07 20:31:26 +0300
commit1d1dde068c1187dde485524c5713104c4afadbef (patch)
tree33b251ef68c1aee995c9ec1fd42dd0481b557062 /newlib
parentac5d7dcd1872af1348288a62a21d81d8e083476d (diff)
2010-12-07 Ralf Corsépius <ralf.corsepius@rtems.org>
* libc/include/strings.h: New (split-out from string.h).
Diffstat (limited to 'newlib')
-rw-r--r--newlib/ChangeLog4
-rw-r--r--newlib/libc/include/strings.h36
2 files changed, 40 insertions, 0 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index 878465e80..9ff7219b6 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,7 @@
+2010-12-07 Ralf Corsépius <ralf.corsepius@rtems.org>
+
+ * libc/include/strings.h: New (split-out from string.h).
+
2010-12-03 Craig Howland <howland@LGSInnovations.com>
* libc/include/math.h: Missing from previous checkin.
diff --git a/newlib/libc/include/strings.h b/newlib/libc/include/strings.h
new file mode 100644
index 000000000..1d5bda673
--- /dev/null
+++ b/newlib/libc/include/strings.h
@@ -0,0 +1,36 @@
+/*
+ * strings.h
+ *
+ * Definitions for string operations.
+ */
+
+#ifndef _STRINGS_H_
+#define _STRINGS_H_
+
+#include "_ansi.h"
+#include <sys/reent.h>
+
+#include <sys/types.h> /* for size_t */
+#include <locale.h> /* for locale_t */
+
+_BEGIN_STD_C
+
+#ifndef __STRICT_ANSI__
+/*
+ * Marked LEGACY in Open Group Base Specifications Issue 6/IEEE Std 1003.1-2004
+ * Removed from Open Group Base Specifications Issue 7/IEEE Std 1003.1-2008
+ */
+int _EXFUN(bcmp,(const void *, const void *, size_t));
+void _EXFUN(bcopy,(const void *, void *, size_t));
+void _EXFUN(bzero,(void *, size_t));
+char *_EXFUN(index,(const char *, int));
+char *_EXFUN(rindex,(const char *, int));
+#endif /* ! __STRICT_ANSI__ */
+
+int _EXFUN(ffs,(int));
+int _EXFUN(strcasecmp,(const char *, const char *));
+int _EXFUN(strncasecmp,(const char *, const char *, size_t));
+
+_END_STD_C
+
+#endif /* _STRINGS_H_ */