xref: /aosp_15_r20/external/libfuse/lib/compat.c (revision 9e5649576b786774a32d7b0252c9cd8c6538fa49)
1*9e564957SAndroid Build Coastguard Worker /*
2*9e564957SAndroid Build Coastguard Worker   FUSE: Filesystem in Userspace
3*9e564957SAndroid Build Coastguard Worker   Copyright (C) 2001-2007  Miklos Szeredi <[email protected]>
4*9e564957SAndroid Build Coastguard Worker 
5*9e564957SAndroid Build Coastguard Worker   Helper functions to create (simple) standalone programs. With the
6*9e564957SAndroid Build Coastguard Worker   aid of these functions it should be possible to create full FUSE
7*9e564957SAndroid Build Coastguard Worker   file system by implementing nothing but the request handlers.
8*9e564957SAndroid Build Coastguard Worker 
9*9e564957SAndroid Build Coastguard Worker   This program can be distributed under the terms of the GNU LGPLv2.
10*9e564957SAndroid Build Coastguard Worker   See the file COPYING.LIB.
11*9e564957SAndroid Build Coastguard Worker */
12*9e564957SAndroid Build Coastguard Worker 
13*9e564957SAndroid Build Coastguard Worker /* Description:
14*9e564957SAndroid Build Coastguard Worker     This file has compatibility symbols for platforms that do not
15*9e564957SAndroid Build Coastguard Worker     support version symboling
16*9e564957SAndroid Build Coastguard Worker */
17*9e564957SAndroid Build Coastguard Worker 
18*9e564957SAndroid Build Coastguard Worker #include "fuse_config.h"
19*9e564957SAndroid Build Coastguard Worker #include "fuse_i.h"
20*9e564957SAndroid Build Coastguard Worker #include "fuse_misc.h"
21*9e564957SAndroid Build Coastguard Worker #include "fuse_opt.h"
22*9e564957SAndroid Build Coastguard Worker #include "fuse_lowlevel.h"
23*9e564957SAndroid Build Coastguard Worker #include "mount_util.h"
24*9e564957SAndroid Build Coastguard Worker 
25*9e564957SAndroid Build Coastguard Worker #include <stdio.h>
26*9e564957SAndroid Build Coastguard Worker #include <stdlib.h>
27*9e564957SAndroid Build Coastguard Worker #include <stddef.h>
28*9e564957SAndroid Build Coastguard Worker #include <unistd.h>
29*9e564957SAndroid Build Coastguard Worker #include <string.h>
30*9e564957SAndroid Build Coastguard Worker #include <limits.h>
31*9e564957SAndroid Build Coastguard Worker #include <errno.h>
32*9e564957SAndroid Build Coastguard Worker #include <sys/param.h>
33*9e564957SAndroid Build Coastguard Worker 
34*9e564957SAndroid Build Coastguard Worker /**
35*9e564957SAndroid Build Coastguard Worker  * Compatibility ABI symbol for systems that do not support version symboling
36*9e564957SAndroid Build Coastguard Worker  */
37*9e564957SAndroid Build Coastguard Worker #if (!defined(LIBFUSE_BUILT_WITH_VERSIONED_SYMBOLS))
38*9e564957SAndroid Build Coastguard Worker /* With current libfuse fuse_parse_cmdline is a macro pointing to the
39*9e564957SAndroid Build Coastguard Worker  * versioned function. Here in this file we need to provide the ABI symbol
40*9e564957SAndroid Build Coastguard Worker  * and the redirecting macro is conflicting.
41*9e564957SAndroid Build Coastguard Worker  */
42*9e564957SAndroid Build Coastguard Worker #ifdef fuse_parse_cmdline
43*9e564957SAndroid Build Coastguard Worker #undef fuse_parse_cmdline
44*9e564957SAndroid Build Coastguard Worker #endif
45*9e564957SAndroid Build Coastguard Worker int fuse_parse_cmdline_30(struct fuse_args *args,
46*9e564957SAndroid Build Coastguard Worker                            struct fuse_cmdline_opts *opts);
47*9e564957SAndroid Build Coastguard Worker int fuse_parse_cmdline(struct fuse_args *args,
48*9e564957SAndroid Build Coastguard Worker 		       struct fuse_cmdline_opts *opts);
fuse_parse_cmdline(struct fuse_args * args,struct fuse_cmdline_opts * opts)49*9e564957SAndroid Build Coastguard Worker int fuse_parse_cmdline(struct fuse_args *args,
50*9e564957SAndroid Build Coastguard Worker 		       struct fuse_cmdline_opts *opts)
51*9e564957SAndroid Build Coastguard Worker {
52*9e564957SAndroid Build Coastguard Worker 	return fuse_parse_cmdline_30(args, opts);
53*9e564957SAndroid Build Coastguard Worker }
54*9e564957SAndroid Build Coastguard Worker #endif
55*9e564957SAndroid Build Coastguard Worker 
56*9e564957SAndroid Build Coastguard Worker 
57