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