16881f68fSopenharmony_ci/*
26881f68fSopenharmony_ci  FUSE: Filesystem in Userspace
36881f68fSopenharmony_ci  Copyright (C) 2001-2007  Miklos Szeredi <miklos@szeredi.hu>
46881f68fSopenharmony_ci
56881f68fSopenharmony_ci  Helper functions to create (simple) standalone programs. With the
66881f68fSopenharmony_ci  aid of these functions it should be possible to create full FUSE
76881f68fSopenharmony_ci  file system by implementing nothing but the request handlers.
86881f68fSopenharmony_ci
96881f68fSopenharmony_ci  This program can be distributed under the terms of the GNU LGPLv2.
106881f68fSopenharmony_ci  See the file COPYING.LIB.
116881f68fSopenharmony_ci*/
126881f68fSopenharmony_ci
136881f68fSopenharmony_ci/* Description:
146881f68fSopenharmony_ci    This file has compatibility symbols for platforms that do not
156881f68fSopenharmony_ci    support version symboling
166881f68fSopenharmony_ci*/
176881f68fSopenharmony_ci
186881f68fSopenharmony_ci#include "fuse_config.h"
196881f68fSopenharmony_ci#include "fuse_i.h"
206881f68fSopenharmony_ci#include "fuse_misc.h"
216881f68fSopenharmony_ci#include "fuse_opt.h"
226881f68fSopenharmony_ci#include "fuse_lowlevel.h"
236881f68fSopenharmony_ci#include "mount_util.h"
246881f68fSopenharmony_ci
256881f68fSopenharmony_ci#include <stdio.h>
266881f68fSopenharmony_ci#include <stdlib.h>
276881f68fSopenharmony_ci#include <stddef.h>
286881f68fSopenharmony_ci#include <unistd.h>
296881f68fSopenharmony_ci#include <string.h>
306881f68fSopenharmony_ci#include <limits.h>
316881f68fSopenharmony_ci#include <errno.h>
326881f68fSopenharmony_ci#include <sys/param.h>
336881f68fSopenharmony_ci
346881f68fSopenharmony_ci/**
356881f68fSopenharmony_ci * Compatibility ABI symbol for systems that do not support version symboling
366881f68fSopenharmony_ci */
376881f68fSopenharmony_ci#if (!defined(LIBFUSE_BUILT_WITH_VERSIONED_SYMBOLS))
386881f68fSopenharmony_ci/* With current libfuse fuse_parse_cmdline is a macro pointing to the
396881f68fSopenharmony_ci * versioned function. Here in this file we need to provide the ABI symbol
406881f68fSopenharmony_ci * and the redirecting macro is conflicting.
416881f68fSopenharmony_ci */
426881f68fSopenharmony_ci#ifdef fuse_parse_cmdline
436881f68fSopenharmony_ci#undef fuse_parse_cmdline
446881f68fSopenharmony_ci#endif
456881f68fSopenharmony_ciint fuse_parse_cmdline_30(struct fuse_args *args,
466881f68fSopenharmony_ci                           struct fuse_cmdline_opts *opts);
476881f68fSopenharmony_ciint fuse_parse_cmdline(struct fuse_args *args,
486881f68fSopenharmony_ci		       struct fuse_cmdline_opts *opts);
496881f68fSopenharmony_ciint fuse_parse_cmdline(struct fuse_args *args,
506881f68fSopenharmony_ci		       struct fuse_cmdline_opts *opts)
516881f68fSopenharmony_ci{
526881f68fSopenharmony_ci	return fuse_parse_cmdline_30(args, opts);
536881f68fSopenharmony_ci}
546881f68fSopenharmony_ci#endif
556881f68fSopenharmony_ci
566881f68fSopenharmony_ci
57