-# $OpenBSD: Makefile,v 1.12 2017/12/14 13:50:13 jca Exp $
+# $OpenBSD: Makefile,v 1.13 2017/12/15 16:40:33 jca Exp $
LIB= fuse
MAN= fuse_main.3
SRCS= debug.c dict.c fuse.c fuse_ops.c fuse_opt.c fuse_subr.c tree.c
HDRS= fuse.h fuse_opt.h
+VERSION_SCRIPT= ${.CURDIR}/Symbols.map
+
PC_FILES=fuse.pc
CLEANFILES+=${PC_FILES}
--- /dev/null
+{
+ global:
+ fuse_chan_fd;
+ fuse_daemonize;
+ fuse_destroy;
+ fuse_get_context;
+ fuse_get_session;
+ fuse_invalidate;
+ fuse_is_lib_option;
+ fuse_loop;
+ fuse_loop_mt;
+ fuse_main;
+ fuse_mount;
+ fuse_new;
+ fuse_opt_add_arg;
+ fuse_opt_add_opt;
+ fuse_opt_add_opt_escaped;
+ fuse_opt_free_args;
+ fuse_opt_insert_arg;
+ fuse_opt_match;
+ fuse_opt_parse;
+ fuse_parse_cmdline;
+ fuse_remove_signal_handlers;
+ fuse_set_signal_handlers;
+ fuse_setup;
+ fuse_teardown;
+ fuse_unmount;
+ fuse_version;
+ local:
+ *;
+};
-/* $OpenBSD: fuse.c,v 1.40 2017/12/15 12:08:22 helg Exp $ */
+/* $OpenBSD: fuse.c,v 1.41 2017/12/15 16:40:33 jca Exp $ */
/*
* Copyright (c) 2013 Sylvestre Gallon <ccna.syl@gmail.com>
*
return (0);
}
+DEF(fuse_loop);
struct fuse_chan *
fuse_mount(const char *dir, unused struct fuse_args *args)
free(fc);
return (NULL);
}
+DEF(fuse_mount);
void
fuse_unmount(const char *dir, struct fuse_chan *ch)
if (unmount(dir, MNT_UPDATE) == -1)
DPERROR(__func__);
}
+DEF(fuse_unmount);
int
fuse_is_lib_option(const char *opt)
{
return (&f->se);
}
+DEF(fuse_get_session);
int
fuse_loop_mt(unused struct fuse *fuse)
return (fuse);
}
+DEF(fuse_new);
int
fuse_daemonize(int foreground)
return (daemon(0,0));
}
+DEF(fuse_daemonize);
void
fuse_destroy(struct fuse *f)
free(f->fc);
free(f);
}
+DEF(fuse_destroy);
void
fuse_remove_signal_handlers(unused struct fuse_session *se)
signal(SIGTERM, SIG_DFL);
signal(SIGPIPE, SIG_DFL);
}
+DEF(fuse_remove_signal_handlers);
int
fuse_set_signal_handlers(unused struct fuse_session *se)
return (0);
}
+DEF(fuse_parse_cmdline);
struct fuse_context *
fuse_get_context(void)
{
return (ictx);
}
+DEF(fuse_get_context);
int
fuse_version(void)
free(dir);
return (NULL);
}
+DEF(fuse_setup);
int
fuse_main(int argc, char **argv, const struct fuse_operations *ops, void *data)
-/* $OpenBSD: fuse_opt.c,v 1.24 2017/12/14 13:23:30 jca Exp $ */
+/* $OpenBSD: fuse_opt.c,v 1.25 2017/12/15 16:40:33 jca Exp $ */
/*
* Copyright (c) 2013 Sylvestre Gallon <ccna.syl@gmail.com>
* Copyright (c) 2013 Stefan Sperling <stsp@openbsd.org>
{
return (fuse_opt_insert_arg(args, args->argc, name));
}
+DEF(fuse_opt_add_arg);
static int
parse_opt(const struct fuse_opt *o, const char *opt, void *data,
return (ret);
}
+DEF(fuse_opt_parse);
int
fuse_opt_insert_arg(struct fuse_args *args, int p, const char *name)
}
return (0);
}
+DEF(fuse_opt_insert_arg);
void
fuse_opt_free_args(struct fuse_args *args)
args->argc = 0;
args->allocated = 0;
}
+DEF(fuse_opt_free_args);
int
fuse_opt_match(const struct fuse_opt *opts, const char *opt)
return (0);
}
+DEF(fuse_opt_match);
-/* $OpenBSD: fuse_private.h,v 1.15 2017/11/26 15:17:17 helg Exp $ */
+/* $OpenBSD: fuse_private.h,v 1.16 2017/12/15 16:40:33 jca Exp $ */
/*
* Copyright (c) 2013 Sylvestre Gallon <ccna.syl@gmail.com>
*
#define FUSE_VERSION_PKG_INFO "2.8.0"
#define unused __attribute__ ((unused))
+#define PROTO(x) __dso_hidden typeof(x) x asm("__"#x)
+#define DEF(x) __strong_alias(x, __##x)
+
+PROTO(fuse_daemonize);
+PROTO(fuse_destroy);
+PROTO(fuse_get_context);
+PROTO(fuse_get_session);
+PROTO(fuse_loop);
+PROTO(fuse_mount);
+PROTO(fuse_new);
+PROTO(fuse_opt_add_arg);
+PROTO(fuse_opt_free_args);
+PROTO(fuse_opt_insert_arg);
+PROTO(fuse_opt_match);
+PROTO(fuse_opt_parse);
+PROTO(fuse_parse_cmdline);
+PROTO(fuse_remove_signal_handlers);
+PROTO(fuse_setup);
+PROTO(fuse_unmount);
+
#endif /* _FUSE_SUBR_ */
-major=1
-minor=1
+major=2
+minor=0