summaryrefslogtreecommitdiffstats
path: root/common/.svn/text-base
diff options
context:
space:
mode:
Diffstat (limited to 'common/.svn/text-base')
-rw-r--r--common/.svn/text-base/Makefile.svn-base9
-rw-r--r--common/.svn/text-base/compat.c.svn-base55
2 files changed, 64 insertions, 0 deletions
diff --git a/common/.svn/text-base/Makefile.svn-base b/common/.svn/text-base/Makefile.svn-base
new file mode 100644
index 0000000..48ab187
--- /dev/null
+++ b/common/.svn/text-base/Makefile.svn-base
@@ -0,0 +1,9 @@
+# $Id: Makefile,v 1.2 2000/03/07 22:55:43 shmit Exp $
+
+LIBOBJS= compat.o
+libcompat.a: ${LIBOBJS}
+ ar r $@ ${LIBOBJS}
+ ranlib $@
+
+MKDIR= ../Makefiles
+include ${MKDIR}/build
diff --git a/common/.svn/text-base/compat.c.svn-base b/common/.svn/text-base/compat.c.svn-base
new file mode 100644
index 0000000..98fb1a1
--- /dev/null
+++ b/common/.svn/text-base/compat.c.svn-base
@@ -0,0 +1,55 @@
+#include "compat.h"
+
+#include <stdarg.h>
+#include <stdio.h>
+#include <sys/types.h>
+
+RCSID("$Id: compat.c,v 1.1 2000/03/07 22:39:27 shmit Exp $");
+
+#if NEED_SETPROCTITLE
+void
+setproctitle(const char *fmt, ...)
+{
+}
+#endif
+
+#if NEED_SNPRINTF
+int
+snprintf(char *str, size_t size, const char *fmt, ...)
+{
+ va_list ap;
+ int rc;
+
+ va_start(ap, fmt);
+ rc = vsprintf(str, fmt, ap);
+ va_end(ap);
+
+ return rc;
+}
+#endif
+
+#if NEED_MEMCPY
+void *
+memcpy(void *dst, const void *src, size_t len)
+{
+ size_t i;
+
+ for (i = 0; i < len; i++)
+ (char *)dst+i = (char *)src+i;
+
+ return dst;
+}
+#endif
+
+#if NEED_MEMSET
+void *
+memset(void *dst, char c, size_t len)
+{
+ size_t i;
+
+ for (i = 0; i < len; i++)
+ (char *)dst+i = (char *)src+i;
+
+ return dst;
+}
+#endif