15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21 /*
22 * Copyright 2010 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
24 *
25 * Copyright 2015 Nexenta Systems, Inc. All rights reserved.
26 */
27
28 /*
29 * This file was originally generated using rpcgen.
30 */
31
32 #if !defined(_KERNEL) && !defined(_FAKE_KERNEL)
33 #include <stdlib.h>
34 #endif /* !_KERNEL */
35 #include <smbsrv/wintypes.h>
36 #include <smbsrv/smb_sid.h>
37 #include <smbsrv/smb_xdr.h>
38 #include <smbsrv/smb_token.h>
39
40 static bool_t smb_privset_xdr(XDR *, smb_privset_t *);
41 static bool_t smb_sid_xdr(XDR *, smb_sid_t *);
42
43 static bool_t
44 smb_privset_helper_xdr(XDR *xdrs, char **privs)
45 {
46 uint32_t pos, len;
47 uint32_t cnt;
48 bool_t rc;
49 smb_privset_t *p;
50
51 if (xdrs->x_op == XDR_DECODE) {
52 pos = xdr_getpos(xdrs);
53
54 if (!xdr_bool(xdrs, &rc))
55 return (FALSE);
|
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21 /*
22 * Copyright 2010 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
24 *
25 * Copyright 2015 Nexenta Systems, Inc. All rights reserved.
26 */
27
28 /*
29 * This file was originally generated using rpcgen.
30 */
31
32 #if !defined(_KERNEL) && !defined(_FAKE_KERNEL)
33 #include <stdlib.h>
34 #endif /* !_KERNEL */
35 #include <smb/wintypes.h>
36 #include <smbsrv/smb_sid.h>
37 #include <smbsrv/smb_xdr.h>
38 #include <smbsrv/smb_token.h>
39
40 static bool_t smb_privset_xdr(XDR *, smb_privset_t *);
41 static bool_t smb_sid_xdr(XDR *, smb_sid_t *);
42
43 static bool_t
44 smb_privset_helper_xdr(XDR *xdrs, char **privs)
45 {
46 uint32_t pos, len;
47 uint32_t cnt;
48 bool_t rc;
49 smb_privset_t *p;
50
51 if (xdrs->x_op == XDR_DECODE) {
52 pos = xdr_getpos(xdrs);
53
54 if (!xdr_bool(xdrs, &rc))
55 return (FALSE);
|