git » libfiu » commit b1ec1a5

preload/posix: Add wrappers for strdup()/strndup()

author Alberto Bertogli
2009-08-07 15:47:41 UTC
committer Alberto Bertogli
2009-08-07 15:47:41 UTC
parent 5c424a8375d86d2be4ddaf30215c36a67347f581

preload/posix: Add wrappers for strdup()/strndup()

Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>

preload/posix/modules/libc.str.mod +15 -0

diff --git a/preload/posix/modules/libc.str.mod b/preload/posix/modules/libc.str.mod
new file mode 100644
index 0000000..3873d19
--- /dev/null
+++ b/preload/posix/modules/libc.str.mod
@@ -0,0 +1,15 @@
+
+include: <string.h>
+include: <errno.h>
+
+fiu name base: libc/str/
+
+char *strdup(const char *s);
+	on error: NULL
+	valid errnos: ENOMEM
+
+char *strndup(const char *s, size_t n);
+	on error: NULL
+	valid errnos: ENOMEM
+
+