diff options
author | Daniel Dunbar <daniel@zuster.org> | 2011-12-08 02:39:23 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2011-12-08 02:39:23 +0000 |
commit | 86f9994936336675dcc1454ede5857e8851080b6 (patch) | |
tree | 6ce259563958c5e2bf4551ffe02c1214d5fe9d88 /SDKs/linux/usr/include/string.h | |
parent | acd5c617b219e0f059620c2a3928d2cc821d4534 (diff) | |
download | compiler-rt-86f9994936336675dcc1454ede5857e8851080b6.tar.gz compiler-rt-86f9994936336675dcc1454ede5857e8851080b6.tar.bz2 compiler-rt-86f9994936336675dcc1454ede5857e8851080b6.tar.xz |
SDKs: Sketch an initial stub SDK for Linux, I believe this suffices for building
the main compiler-rt and profile modules, at least on x86.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@146131 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'SDKs/linux/usr/include/string.h')
-rw-r--r-- | SDKs/linux/usr/include/string.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/SDKs/linux/usr/include/string.h b/SDKs/linux/usr/include/string.h new file mode 100644 index 00000000..5e911093 --- /dev/null +++ b/SDKs/linux/usr/include/string.h @@ -0,0 +1,28 @@ +/* ===-- string.h - stub SDK header for compiler-rt -------------------------=== + * + * The LLVM Compiler Infrastructure + * + * This file is dual licensed under the MIT and the University of Illinois Open + * Source Licenses. See LICENSE.TXT for details. + * + * ===-----------------------------------------------------------------------=== + * + * This is a stub SDK header file. This file is not part of the interface of + * this library nor an official version of the appropriate SDK header. It is + * intended only to stub the features of this header required by compiler-rt. + * + * ===-----------------------------------------------------------------------=== + */ + +#ifndef __STRING_H__ +#define __STRING_H__ + +typedef __SIZE_TYPE__ size_t; + +char *strcat(char *, const char *); +char *strcpy(char *, const char *); +char *strdup(const char *); +size_t strlen(const char *); +char *strncpy(char *, const char *, size_t); + +#endif /* __STRING_H__ */ |