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