perfuse.h revision 1.1
11.1Smanu/* $NetBSD: perfuse.h,v 1.1 2010/08/25 07:16:00 manu 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.1Smanu__BEGIN_DECLS 321.1Smanu 331.1Smanuint perfuse_open(const char *, int, mode_t); 341.1Smanuint perfuse_mount(const char *, const char *, const char *, long, const void *); 351.1Smanu 361.1Smanu__END_DECLS 371.1Smanu 381.1Smanu#ifndef LIBPERFUSE 391.1Smanu#define mount(source, mnt, type, flags, optbuf) \ 401.1Smanu perfuse_mount(source, mnt, type, flags, optbuf) 411.1Smanu#define open(path, flags) \ 421.1Smanu perfuse_open(path, flags, 0) 431.1Smanu#endif /* LIBPERFUSE */ 441.1Smanu 451.1Smanu#endif /* _REFUSE_PERFUSE_WRAPPER_H */ 46