summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/mach/mig_support.h12
-rw-r--r--include/string.h33
2 files changed, 35 insertions, 10 deletions
diff --git a/include/mach/mig_support.h b/include/mach/mig_support.h
index e19de97..865bdc5 100644
--- a/include/mach/mig_support.h
+++ b/include/mach/mig_support.h
@@ -32,19 +32,11 @@
#ifndef _MACH_MIG_SUPPORT_H_
#define _MACH_MIG_SUPPORT_H_
+#include <string.h>
+
#include <mach/message.h>
#include <mach/mach_types.h>
-#if defined(MACH_KERNEL)
-
-#if defined(bcopy)
-#else /* not defined(bcopy) */
-extern void bcopy(const void *, void *, vm_size_t);
-#define memcpy(_dst,_src,_len) bcopy((_src),(_dst),(_len))
-#endif /* defined(bcopy) */
-
-#endif /* defined(MACH_KERNEL) */
-
extern void mig_init(void *_first);
extern void mig_allocate(vm_address_t *_addr_p, vm_size_t _size);
diff --git a/include/string.h b/include/string.h
new file mode 100644
index 0000000..0db1060
--- /dev/null
+++ b/include/string.h
@@ -0,0 +1,33 @@
+/*
+ * String Handling Functions.
+ * Copyright (C) 2006 Barry deFreese.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2, or (at your option)
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+/*
+ * String handling functions.
+ *
+ */
+
+#ifndef _MACH_SA_SYS_STRING_H_
+#define _MACH_SA_SYS_STRING_H_
+
+#include <sys/types.h>
+
+extern void *memcpy (void *dest, const void *src, size_t n);
+
+extern void *memset (void *s, int c, size_t n);
+
+#endif /* _MACH_SA_SYS_STRING_H_ */