Print this page
1575 untangle libmlrpc ... (smbsrv)


  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 /*
  22  * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
  23  * Copyright 2015 Nexenta Systems, Inc.  All rights reserved.
  24  */
  25 
  26 #ifndef _SMBSRV_SMB_XDR_H
  27 #define _SMBSRV_SMB_XDR_H
  28 
  29 #ifdef  __cplusplus
  30 extern "C" {
  31 #endif
  32 
  33 #include <rpc/xdr.h>
  34 #include <sys/param.h>
  35 #include <sys/avl.h>
  36 #include <sys/list.h>
  37 #include <smbsrv/wintypes.h>
  38 #include <smbsrv/smb_sid.h>
  39 #include <smbsrv/smbinfo.h>
  40 #include <smbsrv/smb_ioctl.h>
  41 #include <smbsrv/smb_sid.h>
  42 #include <smbsrv/smb_share.h>
  43 #include <smbsrv/smb_dfs.h>
  44 #include <smbsrv/wintypes.h>
  45 
  46 #if defined(_KERNEL) || defined(_FAKE_KERNEL)
  47 #include <sys/sysmacros.h>
  48 #define xdr_int8_t      xdr_char
  49 #define xdr_uint8_t     xdr_u_char
  50 #define xdr_int16_t     xdr_short
  51 #define xdr_uint16_t    xdr_u_short
  52 #else /* _KERNEL */
  53 #include <stddef.h>       /* offsetof */
  54 #endif /* _KERNEL */
  55 
  56 /*
  57  * null-terminated string
  58  * See also: smb_string_xdr()
  59  */
  60 typedef struct smb_string {
  61         char *buf;
  62 } smb_string_t;
  63 
  64 struct smb_buf32;




  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 /*
  22  * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
  23  * Copyright 2015 Nexenta Systems, Inc.  All rights reserved.
  24  */
  25 
  26 #ifndef _SMBSRV_SMB_XDR_H
  27 #define _SMBSRV_SMB_XDR_H
  28 
  29 #ifdef  __cplusplus
  30 extern "C" {
  31 #endif
  32 
  33 #include <rpc/xdr.h>
  34 #include <sys/param.h>
  35 #include <sys/avl.h>
  36 #include <sys/list.h>
  37 #include <smb/wintypes.h>
  38 #include <smbsrv/smb_sid.h>
  39 #include <smbsrv/smbinfo.h>
  40 #include <smbsrv/smb_ioctl.h>
  41 #include <smbsrv/smb_sid.h>
  42 #include <smbsrv/smb_share.h>
  43 #include <smbsrv/smb_dfs.h>

  44 
  45 #if defined(_KERNEL) || defined(_FAKE_KERNEL)
  46 #include <sys/sysmacros.h>
  47 #define xdr_int8_t      xdr_char
  48 #define xdr_uint8_t     xdr_u_char
  49 #define xdr_int16_t     xdr_short
  50 #define xdr_uint16_t    xdr_u_short
  51 #else /* _KERNEL */
  52 #include <stddef.h>       /* offsetof */
  53 #endif /* _KERNEL */
  54 
  55 /*
  56  * null-terminated string
  57  * See also: smb_string_xdr()
  58  */
  59 typedef struct smb_string {
  60         char *buf;
  61 } smb_string_t;
  62 
  63 struct smb_buf32;