aboutsummaryrefslogtreecommitdiff
path: root/conform
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-02-24 08:24:58 +0000
committerUlrich Drepper <drepper@redhat.com>2000-02-24 08:24:58 +0000
commit002e2dc42b80045459fdfe9864ff11adaeb0b0a9 (patch)
tree3465eba4f73252a3340fabba0e072ddd634816e8 /conform
parent9323b58f76b756cc41b6c39b48d42b697a1bd4ec (diff)
downloadglibc-002e2dc42b80045459fdfe9864ff11adaeb0b0a9.tar
glibc-002e2dc42b80045459fdfe9864ff11adaeb0b0a9.tar.gz
glibc-002e2dc42b80045459fdfe9864ff11adaeb0b0a9.tar.bz2
glibc-002e2dc42b80045459fdfe9864ff11adaeb0b0a9.zip
Update.
2000-02-24 Ulrich Drepper <drepper@redhat.com> * conform/conformtest.pl (@headers): Add string.h and strings.h. * conform/data/string.h-data: New file. * conform/data/strings.h-data: New file. * string/string.h [__USE_XOPEN]: Don't declare functions from <strings.h> here as well.
Diffstat (limited to 'conform')
-rw-r--r--conform/conformtest.pl2
-rw-r--r--conform/data/string.h-data31
-rw-r--r--conform/data/strings.h-data10
3 files changed, 42 insertions, 1 deletions
diff --git a/conform/conformtest.pl b/conform/conformtest.pl
index 518122f645..08b46c1bf1 100644
--- a/conform/conformtest.pl
+++ b/conform/conformtest.pl
@@ -4,7 +4,7 @@ $CC = "gcc";
$CFLAGS = "-I. '-D__attribute__(x)=' -D_XOPEN_SOURCE=500";
# List of the headers we are testing.
-@headers = ("stdlib.h", "stdio.h",
+@headers = ("strings.h", "string.h", "stdlib.h", "stdio.h",
"stddef.h", "stdarg.h", "signal.h", "setjmp.h", "semaphore.h",
"search.h", "sched.h", "regex.h", "pwd.h", "pthread.h",
"poll.h", "nl_types.h", "ndbm.h", "mqueue.h", "monetary.h",
diff --git a/conform/data/string.h-data b/conform/data/string.h-data
new file mode 100644
index 0000000000..fe27c8ab61
--- /dev/null
+++ b/conform/data/string.h-data
@@ -0,0 +1,31 @@
+constant NULL
+
+type size_t
+
+function {void*} memccpy (void*, const void*, int, size_t)
+function {void*} memchr (const void*, int, size_t)
+function int memcmp (const void*, const void*, size_t)
+function {void*} memcpy (void*, const void*, size_t)
+function {void*} memmove (void*, const void*, size_t)
+function {void*} memset (void*, int, size_t)
+function {char*} strcat (char*, const char*)
+function {char*} strchr (const char*, int)
+function int strcmp (const char*, const char*)
+function int strcoll (const char*, const char*)
+function {char*} strcpy (char*, const char*)
+function size_t strcspn (const char*, const char*)
+function {char*} strdup (const char*)
+function {char*} strerror (int)
+function size_t strlen (const char*)
+function {char*} strncat (char*, const char*, size_t)
+function int strncmp (const char*, const char*, size_t)
+function {char*} strncpy (char*, const char*, size_t)
+function {char*} strpbrk (const char*, const char*)
+function {char*} strrchr (const char*, int)
+function size_t strspn (const char*, const char*)
+function {char*} strstr (const char*, const char*)
+function {char*} strtok (char*, const char*)
+function {char*} strtok_r (char*, const char*, char**)
+function size_t strxfrm (char*, const char*, size_t)
+
+allow-header stddef.h
diff --git a/conform/data/strings.h-data b/conform/data/strings.h-data
new file mode 100644
index 0000000000..7d7d67e9ce
--- /dev/null
+++ b/conform/data/strings.h-data
@@ -0,0 +1,10 @@
+function int bcmp (const void*, const void*, size_t)
+function void bcopy (const void*, void*, size_t)
+function void bzero (void*, size_t)
+function int ffs (int)
+function {char*} index (const char*, int)
+function {char*} rindex (const char*, int)
+function int strcasecmp (const char*, const char*)
+function int strncasecmp (const char*, const char*, size_t)
+
+type size_t