Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Pryor <jpryor@novell.com>2005-10-06 19:33:42 +0400
committerJonathan Pryor <jpryor@novell.com>2005-10-06 19:33:42 +0400
commit931e15aa6202f0422ca3f0a0d18644c6d1477372 (patch)
tree3af8ba7f1a57f887567545193c269d51aa98abbb /support
parent77597d172bdda34e2db797b05b94e42ce4938929 (diff)
* Makefile.am (MPH_C_SOURCE): Add string.c.
* string.c: Added; exports strlen(3) wrapper. * map-icalls.h: Prototype for strlen(3) wrapper. svn path=/trunk/mono/; revision=51345
Diffstat (limited to 'support')
-rw-r--r--support/ChangeLog6
-rw-r--r--support/Makefile.am1
-rw-r--r--support/map-icalls.h1
-rw-r--r--support/string.c26
4 files changed, 34 insertions, 0 deletions
diff --git a/support/ChangeLog b/support/ChangeLog
index 6190488476b..11566433f1a 100644
--- a/support/ChangeLog
+++ b/support/ChangeLog
@@ -1,3 +1,9 @@
+2005-10-06 Jonathan Pryor <jonpryor@vt.edu>
+
+ * Makefile.am (MPH_C_SOURCE): Add string.c.
+ * string.c: Added; exports strlen(3) wrapper.
+ * map-icalls.h: Prototype for strlen(3) wrapper.
+
2005-09-29 Miguel de Icaza <miguel@novell.com>
* support-heap.c: Add meat to the Heap routines.
diff --git a/support/Makefile.am b/support/Makefile.am
index c73de3351bc..b33902aa4db 100644
--- a/support/Makefile.am
+++ b/support/Makefile.am
@@ -20,6 +20,7 @@ MPH_C_SOURCE = \
mph.h \
signal.c \
stdio.c \
+ string.c \
stdlib.c \
map-icalls.h
diff --git a/support/map-icalls.h b/support/map-icalls.h
index 1112004d649..82db04a12f5 100644
--- a/support/map-icalls.h
+++ b/support/map-icalls.h
@@ -92,6 +92,7 @@ int Mono_Posix_Stdlib_setvbuf (void* stream, void* buf, int mode, guint64 size);
void* Mono_Posix_Stdlib_stderr (void);
void* Mono_Posix_Stdlib_stdin (void);
void* Mono_Posix_Stdlib_stdout (void);
+guint64 Mono_Posix_Stdlib_strlen (void* p);
int Mono_Posix_Syscall_L_ctermid (void);
int Mono_Posix_Syscall_L_cuserid (void);
int Mono_Posix_Syscall_WEXITSTATUS (int status);
diff --git a/support/string.c b/support/string.c
new file mode 100644
index 00000000000..9dc36dcafe7
--- /dev/null
+++ b/support/string.c
@@ -0,0 +1,26 @@
+/*
+ * <string.h> wrapper functions.
+ *
+ * Authors:
+ * Jonathan Pryor (jonpryor@vt.edu)
+ *
+ * Copyright (C) 2005 Jonathan Pryor
+ */
+
+#include <string.h>
+
+#include "mph.h"
+
+G_BEGIN_DECLS
+
+guint64
+Mono_Posix_Stdlib_strlen (void* p)
+{
+ return strlen ((const char*) p);
+}
+
+G_END_DECLS
+
+/*
+ * vim: noexpandtab
+ */