1d206b560e72e791b5dfeb339b5f7c18354bf95fdRom Lemarchand/* 2d206b560e72e791b5dfeb339b5f7c18354bf95fdRom Lemarchand * Copyright (C) 2013 The Android Open Source Project 3d206b560e72e791b5dfeb339b5f7c18354bf95fdRom Lemarchand * All rights reserved. 4d206b560e72e791b5dfeb339b5f7c18354bf95fdRom Lemarchand * 5d206b560e72e791b5dfeb339b5f7c18354bf95fdRom Lemarchand * Redistribution and use in source and binary forms, with or without 6d206b560e72e791b5dfeb339b5f7c18354bf95fdRom Lemarchand * modification, are permitted provided that the following conditions 7d206b560e72e791b5dfeb339b5f7c18354bf95fdRom Lemarchand * are met: 8d206b560e72e791b5dfeb339b5f7c18354bf95fdRom Lemarchand * * Redistributions of source code must retain the above copyright 9d206b560e72e791b5dfeb339b5f7c18354bf95fdRom Lemarchand * notice, this list of conditions and the following disclaimer. 10d206b560e72e791b5dfeb339b5f7c18354bf95fdRom Lemarchand * * Redistributions in binary form must reproduce the above copyright 11d206b560e72e791b5dfeb339b5f7c18354bf95fdRom Lemarchand * notice, this list of conditions and the following disclaimer in 12d206b560e72e791b5dfeb339b5f7c18354bf95fdRom Lemarchand * the documentation and/or other materials provided with the 13d206b560e72e791b5dfeb339b5f7c18354bf95fdRom Lemarchand * distribution. 14d206b560e72e791b5dfeb339b5f7c18354bf95fdRom Lemarchand * 15d206b560e72e791b5dfeb339b5f7c18354bf95fdRom Lemarchand * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 16d206b560e72e791b5dfeb339b5f7c18354bf95fdRom Lemarchand * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 17d206b560e72e791b5dfeb339b5f7c18354bf95fdRom Lemarchand * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 18d206b560e72e791b5dfeb339b5f7c18354bf95fdRom Lemarchand * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 19d206b560e72e791b5dfeb339b5f7c18354bf95fdRom Lemarchand * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 20d206b560e72e791b5dfeb339b5f7c18354bf95fdRom Lemarchand * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 21d206b560e72e791b5dfeb339b5f7c18354bf95fdRom Lemarchand * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 22d206b560e72e791b5dfeb339b5f7c18354bf95fdRom Lemarchand * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 23d206b560e72e791b5dfeb339b5f7c18354bf95fdRom Lemarchand * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 24d206b560e72e791b5dfeb339b5f7c18354bf95fdRom Lemarchand * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 25d206b560e72e791b5dfeb339b5f7c18354bf95fdRom Lemarchand * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26d206b560e72e791b5dfeb339b5f7c18354bf95fdRom Lemarchand * SUCH DAMAGE. 27d206b560e72e791b5dfeb339b5f7c18354bf95fdRom Lemarchand */ 28d206b560e72e791b5dfeb339b5f7c18354bf95fdRom Lemarchand 29d206b560e72e791b5dfeb339b5f7c18354bf95fdRom Lemarchand#ifndef _SYS_SWAP_H_ 30d206b560e72e791b5dfeb339b5f7c18354bf95fdRom Lemarchand#define _SYS_SWAP_H_ 31d206b560e72e791b5dfeb339b5f7c18354bf95fdRom Lemarchand 32d206b560e72e791b5dfeb339b5f7c18354bf95fdRom Lemarchand#include <sys/cdefs.h> 33d206b560e72e791b5dfeb339b5f7c18354bf95fdRom Lemarchand 34d206b560e72e791b5dfeb339b5f7c18354bf95fdRom Lemarchand__BEGIN_DECLS 35d206b560e72e791b5dfeb339b5f7c18354bf95fdRom Lemarchand 3606040fd75c1edff9e5ffb2b3d3e2a6e66d57c11dElliott Hughesextern int swapon(const char*, int) __nonnull((1)); 3706040fd75c1edff9e5ffb2b3d3e2a6e66d57c11dElliott Hughesextern int swapoff(const char*) __nonnull((1)); 38d206b560e72e791b5dfeb339b5f7c18354bf95fdRom Lemarchand 39d206b560e72e791b5dfeb339b5f7c18354bf95fdRom Lemarchand__END_DECLS 40d206b560e72e791b5dfeb339b5f7c18354bf95fdRom Lemarchand 41d206b560e72e791b5dfeb339b5f7c18354bf95fdRom Lemarchand#endif /* _SYS_SWAP_H_ */ 42