10990d4fda898ada86e557f872f5cb7d16b138e3cElliott Hughes/*
20990d4fda898ada86e557f872f5cb7d16b138e3cElliott Hughes * Copyright (C) 2014 The Android Open Source Project
30990d4fda898ada86e557f872f5cb7d16b138e3cElliott Hughes * All rights reserved.
40990d4fda898ada86e557f872f5cb7d16b138e3cElliott Hughes *
50990d4fda898ada86e557f872f5cb7d16b138e3cElliott Hughes * Redistribution and use in source and binary forms, with or without
60990d4fda898ada86e557f872f5cb7d16b138e3cElliott Hughes * modification, are permitted provided that the following conditions
70990d4fda898ada86e557f872f5cb7d16b138e3cElliott Hughes * are met:
80990d4fda898ada86e557f872f5cb7d16b138e3cElliott Hughes *  * Redistributions of source code must retain the above copyright
90990d4fda898ada86e557f872f5cb7d16b138e3cElliott Hughes *    notice, this list of conditions and the following disclaimer.
100990d4fda898ada86e557f872f5cb7d16b138e3cElliott Hughes *  * Redistributions in binary form must reproduce the above copyright
110990d4fda898ada86e557f872f5cb7d16b138e3cElliott Hughes *    notice, this list of conditions and the following disclaimer in
120990d4fda898ada86e557f872f5cb7d16b138e3cElliott Hughes *    the documentation and/or other materials provided with the
130990d4fda898ada86e557f872f5cb7d16b138e3cElliott Hughes *    distribution.
140990d4fda898ada86e557f872f5cb7d16b138e3cElliott Hughes *
150990d4fda898ada86e557f872f5cb7d16b138e3cElliott Hughes * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
160990d4fda898ada86e557f872f5cb7d16b138e3cElliott Hughes * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
170990d4fda898ada86e557f872f5cb7d16b138e3cElliott Hughes * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
180990d4fda898ada86e557f872f5cb7d16b138e3cElliott Hughes * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
190990d4fda898ada86e557f872f5cb7d16b138e3cElliott Hughes * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
200990d4fda898ada86e557f872f5cb7d16b138e3cElliott Hughes * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
210990d4fda898ada86e557f872f5cb7d16b138e3cElliott Hughes * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
220990d4fda898ada86e557f872f5cb7d16b138e3cElliott Hughes * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
230990d4fda898ada86e557f872f5cb7d16b138e3cElliott Hughes * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
240990d4fda898ada86e557f872f5cb7d16b138e3cElliott Hughes * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
250990d4fda898ada86e557f872f5cb7d16b138e3cElliott Hughes * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
260990d4fda898ada86e557f872f5cb7d16b138e3cElliott Hughes * SUCH DAMAGE.
270990d4fda898ada86e557f872f5cb7d16b138e3cElliott Hughes */
280990d4fda898ada86e557f872f5cb7d16b138e3cElliott Hughes
290990d4fda898ada86e557f872f5cb7d16b138e3cElliott Hughes#include <signal.h>
300990d4fda898ada86e557f872f5cb7d16b138e3cElliott Hughes
310990d4fda898ada86e557f872f5cb7d16b138e3cElliott Hughesint __libc_current_sigrtmax(void) {
327ba2bed0b2597b59dcd3d99414bcfa1b559b0accElliott Hughes  // If you change this, also change __ndk_legacy___libc_current_sigrtmax
337ba2bed0b2597b59dcd3d99414bcfa1b559b0accElliott Hughes  // in <android/legacy_signal_inlines.h> to match.
340990d4fda898ada86e557f872f5cb7d16b138e3cElliott Hughes  return __SIGRTMAX;
350990d4fda898ada86e557f872f5cb7d16b138e3cElliott Hughes}
36