diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/.svn/README.txt | 2 | ||||
-rw-r--r-- | common/.svn/empty-file | 0 | ||||
-rw-r--r-- | common/.svn/entries | 31 | ||||
-rw-r--r-- | common/.svn/format | 1 | ||||
-rw-r--r-- | common/.svn/prop-base/Makefile.svn-base | 1 | ||||
-rw-r--r-- | common/.svn/prop-base/compat.c.svn-base | 1 | ||||
-rw-r--r-- | common/.svn/props/Makefile.svn-work | 1 | ||||
-rw-r--r-- | common/.svn/props/compat.c.svn-work | 1 | ||||
-rw-r--r-- | common/.svn/text-base/Makefile.svn-base | 9 | ||||
-rw-r--r-- | common/.svn/text-base/compat.c.svn-base | 55 | ||||
-rw-r--r-- | common/Makefile | 9 | ||||
-rw-r--r-- | common/compat.c | 55 |
12 files changed, 166 insertions, 0 deletions
diff --git a/common/.svn/README.txt b/common/.svn/README.txt new file mode 100644 index 0000000..271a8ce --- /dev/null +++ b/common/.svn/README.txt @@ -0,0 +1,2 @@ +This is a Subversion working copy administrative directory. +Visit http://subversion.tigris.org/ for more information. diff --git a/common/.svn/empty-file b/common/.svn/empty-file new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/common/.svn/empty-file diff --git a/common/.svn/entries b/common/.svn/entries new file mode 100644 index 0000000..d8490a1 --- /dev/null +++ b/common/.svn/entries @@ -0,0 +1,31 @@ +<?xml version="1.0" encoding="utf-8"?> +<wc-entries + xmlns="svn:"> +<entry + committed-rev="1" + name="" + committed-date="2005-12-08T17:32:07.572093Z" + url="svn+ssh://coleridge/svn/nastd/trunk/common" + last-author="bjc" + kind="dir" + uuid="2641c99b-6c07-0410-920d-927397d2d5d0" + revision="8"/> +<entry + committed-rev="1" + name="compat.c" + text-time="2005-12-24T00:00:56.000000Z" + committed-date="2005-12-08T17:32:07.572093Z" + checksum="229d808e075edbd1186d8df7524b95fe" + last-author="bjc" + kind="file" + prop-time="2005-12-24T00:00:55.000000Z"/> +<entry + committed-rev="1" + name="Makefile" + text-time="2005-12-24T00:00:56.000000Z" + committed-date="2005-12-08T17:32:07.572093Z" + checksum="e95eae061b08a561adf70baea6075d1d" + last-author="bjc" + kind="file" + prop-time="2005-12-24T00:00:56.000000Z"/> +</wc-entries> diff --git a/common/.svn/format b/common/.svn/format new file mode 100644 index 0000000..b8626c4 --- /dev/null +++ b/common/.svn/format @@ -0,0 +1 @@ +4 diff --git a/common/.svn/prop-base/Makefile.svn-base b/common/.svn/prop-base/Makefile.svn-base new file mode 100644 index 0000000..dce2c1d --- /dev/null +++ b/common/.svn/prop-base/Makefile.svn-base @@ -0,0 +1 @@ +END diff --git a/common/.svn/prop-base/compat.c.svn-base b/common/.svn/prop-base/compat.c.svn-base new file mode 100644 index 0000000..dce2c1d --- /dev/null +++ b/common/.svn/prop-base/compat.c.svn-base @@ -0,0 +1 @@ +END diff --git a/common/.svn/props/Makefile.svn-work b/common/.svn/props/Makefile.svn-work new file mode 100644 index 0000000..dce2c1d --- /dev/null +++ b/common/.svn/props/Makefile.svn-work @@ -0,0 +1 @@ +END diff --git a/common/.svn/props/compat.c.svn-work b/common/.svn/props/compat.c.svn-work new file mode 100644 index 0000000..dce2c1d --- /dev/null +++ b/common/.svn/props/compat.c.svn-work @@ -0,0 +1 @@ +END 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 diff --git a/common/Makefile b/common/Makefile new file mode 100644 index 0000000..48ab187 --- /dev/null +++ b/common/Makefile @@ -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/compat.c b/common/compat.c new file mode 100644 index 0000000..98fb1a1 --- /dev/null +++ b/common/compat.c @@ -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 |