11.2Sdholland/* $NetBSD: perfuse.h,v 1.2 2016/01/22 22:25:50 dholland Exp $ */ 21.1Smanu 31.1Smanu/*- 41.1Smanu * Copyright (c) 2010 Emmanuel Dreyfus. All rights reserved. 51.1Smanu * 61.1Smanu * Redistribution and use in source and binary forms, with or without 71.1Smanu * modification, are permitted provided that the following conditions 81.1Smanu * are met: 91.1Smanu * 1. Redistributions of source code must retain the above copyright 101.1Smanu * notice, this list of conditions and the following disclaimer. 111.1Smanu * 2. Redistributions in binary form must reproduce the above copyright 121.1Smanu * notice, this list of conditions and the following disclaimer in the 131.1Smanu * documentation and/or other materials provided with the distribution. 141.1Smanu * 151.1Smanu * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 161.1Smanu * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 171.1Smanu * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 181.1Smanu * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 191.1Smanu * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 201.1Smanu * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 211.1Smanu * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 221.1Smanu * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 231.1Smanu * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 241.1Smanu * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 251.1Smanu * POSSIBILITY OF SUCH DAMAGE. 261.1Smanu */ 271.1Smanu 281.1Smanu#ifndef _REFUSE_PERFUSE_WRAPPER_H 291.1Smanu#define _REFUSE_PERFUSE_WRAPPER_H 301.1Smanu 311.2Sdholland#include <sys/cdefs.h> 321.2Sdholland#include <sys/types.h> 331.2Sdholland 341.1Smanu__BEGIN_DECLS 351.1Smanu 361.1Smanuint perfuse_open(const char *, int, mode_t); 371.1Smanuint perfuse_mount(const char *, const char *, const char *, long, const void *); 381.1Smanu 391.1Smanu__END_DECLS 401.1Smanu 411.1Smanu#ifndef LIBPERFUSE 421.1Smanu#define mount(source, mnt, type, flags, optbuf) \ 431.1Smanu perfuse_mount(source, mnt, type, flags, optbuf) 441.1Smanu#define open(path, flags) \ 451.1Smanu perfuse_open(path, flags, 0) 461.1Smanu#endif /* LIBPERFUSE */ 471.1Smanu 481.1Smanu#endif /* _REFUSE_PERFUSE_WRAPPER_H */ 49