diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2013-02-07 05:58:12 -0500 |
---|---|---|
committer | Miklos Szeredi <mszeredi@suse.cz> | 2013-02-07 05:58:12 -0500 |
commit | 7e98d53086d18c877cb44e9065219335184024de (patch) | |
tree | 8fc91e4f08d8baf978860314bf4423e73c4afb0f /include/uapi | |
parent | 0415d291022543d83ee799e9ffee08d856bca6e8 (diff) |
Synchronize fuse header with one used in library
The library one has provisions for use in *BSD, add them to the kernel one too.
They don't hurt and ease maintenance.
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Diffstat (limited to 'include/uapi')
-rw-r--r-- | include/uapi/linux/fuse.h | 37 |
1 files changed, 36 insertions, 1 deletions
diff --git a/include/uapi/linux/fuse.h b/include/uapi/linux/fuse.h index 68619e9210b9..baee03e90438 100644 --- a/include/uapi/linux/fuse.h +++ b/include/uapi/linux/fuse.h | |||
@@ -1,9 +1,35 @@ | |||
1 | /* | 1 | /* |
2 | FUSE: Filesystem in Userspace | 2 | This file defines the kernel interface of FUSE |
3 | Copyright (C) 2001-2008 Miklos Szeredi <miklos@szeredi.hu> | 3 | Copyright (C) 2001-2008 Miklos Szeredi <miklos@szeredi.hu> |
4 | 4 | ||
5 | This program can be distributed under the terms of the GNU GPL. | 5 | This program can be distributed under the terms of the GNU GPL. |
6 | See the file COPYING. | 6 | See the file COPYING. |
7 | |||
8 | This -- and only this -- header file may also be distributed under | ||
9 | the terms of the BSD Licence as follows: | ||
10 | |||
11 | Copyright (C) 2001-2007 Miklos Szeredi. All rights reserved. | ||
12 | |||
13 | Redistribution and use in source and binary forms, with or without | ||
14 | modification, are permitted provided that the following conditions | ||
15 | are met: | ||
16 | 1. Redistributions of source code must retain the above copyright | ||
17 | notice, this list of conditions and the following disclaimer. | ||
18 | 2. Redistributions in binary form must reproduce the above copyright | ||
19 | notice, this list of conditions and the following disclaimer in the | ||
20 | documentation and/or other materials provided with the distribution. | ||
21 | |||
22 | THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND | ||
23 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
24 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
25 | ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE | ||
26 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
27 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
28 | OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
29 | HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
30 | LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
31 | OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
32 | SUCH DAMAGE. | ||
7 | */ | 33 | */ |
8 | 34 | ||
9 | /* | 35 | /* |
@@ -69,7 +95,16 @@ | |||
69 | #ifndef _LINUX_FUSE_H | 95 | #ifndef _LINUX_FUSE_H |
70 | #define _LINUX_FUSE_H | 96 | #define _LINUX_FUSE_H |
71 | 97 | ||
98 | #ifdef __linux__ | ||
72 | #include <linux/types.h> | 99 | #include <linux/types.h> |
100 | #else | ||
101 | #include <stdint.h> | ||
102 | #define __u64 uint64_t | ||
103 | #define __s64 int64_t | ||
104 | #define __u32 uint32_t | ||
105 | #define __s32 int32_t | ||
106 | #define __u16 uint16_t | ||
107 | #endif | ||
73 | 108 | ||
74 | /* | 109 | /* |
75 | * Version negotiation: | 110 | * Version negotiation: |