diff options
Diffstat (limited to 'usr/src/lib/libfakekernel/common/copy.c')
-rw-r--r-- | usr/src/lib/libfakekernel/common/copy.c | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/usr/src/lib/libfakekernel/common/copy.c b/usr/src/lib/libfakekernel/common/copy.c index b1eb215b5c..77bf2e8415 100644 --- a/usr/src/lib/libfakekernel/common/copy.c +++ b/usr/src/lib/libfakekernel/common/copy.c @@ -10,7 +10,7 @@ */ /* - * Copyright 2013 Nexenta Systems, Inc. All rights reserved. + * Copyright 2017 Nexenta Systems, Inc. All rights reserved. */ @@ -20,6 +20,20 @@ #include <sys/errno.h> int +copyin(const void *u, void *k, size_t s) +{ + bcopy(u, k, s); + return (0); +} + +int +copyout(const void *k, void *u, size_t s) +{ + bcopy(k, u, s); + return (0); +} + +int copyinstr(const char *src, char *dst, size_t max_len, size_t *copied) { return (copystr(src, dst, max_len, copied)); @@ -48,3 +62,17 @@ ovbcopy(const void *src, void *dst, size_t len) { (void) memmove(dst, src, len); } + +/* ARGSUSED */ +int +ddi_copyin(const void *buf, void *kernbuf, size_t size, int flags) +{ + return (copyin(buf, kernbuf, size)); +} + +/* ARGSUSED */ +int +ddi_copyout(const void *buf, void *kernbuf, size_t size, int flags) +{ + return (copyout(buf, kernbuf, size)); +} |