Print this page
NEX-16818 Add fksmbcl development tool
NEX-17264 SMB client test tp_smbutil_013 fails after NEX-14666
Reviewed by: Evan Layton <evan.layton@nexenta.com>
Reviewed by: Matt Barden <matt.barden@nexenta.com>
and: (fix ref leaks)
SMB-50 User-mode SMB server
 Includes work by these authors:
 Thomas Keiser <thomas.keiser@nexenta.com>
 Albert Lee <trisk@nexenta.com>
        
*** 8,27 ****
   * source.  A copy of the CDDL is also available via the Internet at
   * http://www.illumos.org/license/CDDL.
   */
  
  /*
!  * Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
   */
  
  
  #include <sys/types.h>
  #include <sys/time.h>
  #include <sys/systm.h>
  #include <sys/errno.h>
  
  int
  copyinstr(const char *src, char *dst, size_t max_len, size_t *copied)
  {
          return (copystr(src, dst, max_len, copied));
  }
  
--- 8,41 ----
   * source.  A copy of the CDDL is also available via the Internet at
   * http://www.illumos.org/license/CDDL.
   */
  
  /*
!  * Copyright 2017 Nexenta Systems, Inc.  All rights reserved.
   */
  
  
  #include <sys/types.h>
  #include <sys/time.h>
  #include <sys/systm.h>
  #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));
  }
  
*** 45,50 ****
--- 59,78 ----
  
  void
  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));
  }