author | Jiri Sasek <Jiri.Sasek@Oracle.COM> |
Tue, 22 Dec 2015 04:53:40 -0800 | |
changeset 5222 | 8298df727253 |
parent 4109 | components/samba/samba/Solaris/include/samfs/lib.h@b8f324d4e07c |
permissions | -rw-r--r-- |
4109
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
1 |
/* |
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
2 |
* lib.h - SAM-FS API library functions. |
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
3 |
* |
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
4 |
* Definitions for SAM-FS API library functions. |
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
5 |
* |
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
6 |
*/ |
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
7 |
|
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
8 |
/* |
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
9 |
* SAM-QFS_notice_begin |
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
10 |
* |
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
11 |
* CDDL HEADER START |
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
12 |
* |
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
13 |
* The contents of this file are subject to the terms of the |
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
14 |
* Common Development and Distribution License (the "License"). |
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
15 |
* You may not use this file except in compliance with the License. |
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
16 |
* |
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
17 |
* You can obtain a copy of the license at pkg/OPENSOLARIS.LICENSE |
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
18 |
* or http://www.opensolaris.org/os/licensing. |
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
19 |
* See the License for the specific language governing permissions |
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
20 |
* and limitations under the License. |
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
21 |
* |
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
22 |
* When distributing Covered Code, include this CDDL HEADER in each |
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
23 |
* file and include the License file at pkg/OPENSOLARIS.LICENSE. |
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
24 |
* If applicable, add the following below this CDDL HEADER, with the |
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
25 |
* fields enclosed by brackets "[]" replaced with your own identifying |
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
26 |
* information: Portions Copyright [yyyy] [name of copyright owner] |
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
27 |
* |
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
28 |
* CDDL HEADER END |
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
29 |
*/ |
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
30 |
/* |
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
31 |
* Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. |
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
32 |
* |
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
33 |
* SAM-QFS_notice_end |
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
34 |
*/ |
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
35 |
#ifndef SAMLIB_H |
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
36 |
#define SAMLIB_H |
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
37 |
|
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
38 |
#ifdef sun |
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
39 |
#pragma ident "$Revision: 1.19 $" |
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
40 |
#endif |
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
41 |
|
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
42 |
#ifdef linux |
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
43 |
#include <sam/linux_types.h> /* uint_t */ |
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
44 |
#endif /* linux */ |
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
45 |
|
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
46 |
#ifdef __cplusplus |
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
47 |
extern "C" { |
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
48 |
#endif |
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
49 |
|
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
50 |
int sam_archive(const char *name, const char *opns); |
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
51 |
int sam_unarchive(const char *name, int num_opts, ...); |
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
52 |
int sam_rearch(const char *name, int num_opts, ...); |
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
53 |
int sam_unrearch(const char *name, int num_opts, ...); |
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
54 |
int sam_exarchive(const char *name, int num_opts, ...); |
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
55 |
int sam_damage(const char *name, int num_opts, ...); |
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
56 |
int sam_undamage(const char *name, int num_opts, ...); |
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
57 |
char *sam_attrtoa(int attr, char *string); |
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
58 |
int sam_cancelstage(const char *name); |
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
59 |
char *sam_devstr(uint_t p); |
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
60 |
int sam_release(const char *name, const char *opns); |
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
61 |
int sam_ssum(const char *name, const char *opns); |
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
62 |
int sam_stage(const char *name, const char *opns); |
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
63 |
int sam_setfa(const char *name, const char *opns); |
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
64 |
int sam_segment(const char *name, const char *opns); |
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
65 |
int sam_advise(const int fildes, const char *opns); |
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
66 |
|
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
67 |
#ifdef __cplusplus |
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
68 |
} |
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
69 |
#endif |
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
70 |
|
b8f324d4e07c
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
diff
changeset
|
71 |
#endif /* SAMLIB_H */ |