1f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes/* 2f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes * Copyright (C) 2012 The Android Open Source Project 3f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes * 4f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes * Licensed under the Apache License, Version 2.0 (the "License"); 5f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes * you may not use this file except in compliance with the License. 6f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes * You may obtain a copy of the License at 7f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes * 8f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes * http://www.apache.org/licenses/LICENSE-2.0 9f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes * 10f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes * Unless required by applicable law or agreed to in writing, software 11f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes * distributed under the License is distributed on an "AS IS" BASIS, 12f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes * See the License for the specific language governing permissions and 14f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes * limitations under the License. 15f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes */ 16f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes 17f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes#ifndef _BIONIC_NETBSD_COMPAT_H_included 18f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes#define _BIONIC_NETBSD_COMPAT_H_included 19f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes 20b81046202842427a7e894a6bcb357971332997b0Elliott Hughes#define _BSD_SOURCE 21b81046202842427a7e894a6bcb357971332997b0Elliott Hughes#define _GNU_SOURCE 22b81046202842427a7e894a6bcb357971332997b0Elliott Hughes 2366c25c360afb161be02fbdb8da21cd02c9d99447Elliott Hughes// NetBSD uses _DIAGASSERT to null-check arguments and the like, 2466c25c360afb161be02fbdb8da21cd02c9d99447Elliott Hughes// but it's clear from the number of mistakes in their assertions 2566c25c360afb161be02fbdb8da21cd02c9d99447Elliott Hughes// that they don't actually test or ship with this. 2666c25c360afb161be02fbdb8da21cd02c9d99447Elliott Hughes#define _DIAGASSERT(e) /* nothing */ 27cc213f871bf4c5329eb5eb7a80a0ce9d4a880af8Elliott Hughes 286b3f49a5374305ce9690c3c5ca2aadc90f54c521Elliott Hughes// TODO: we don't yet have thread-safe environment variables. 296b3f49a5374305ce9690c3c5ca2aadc90f54c521Elliott Hughes#define __readlockenv() 0 306b3f49a5374305ce9690c3c5ca2aadc90f54c521Elliott Hughes#define __unlockenv() 0 316b3f49a5374305ce9690c3c5ca2aadc90f54c521Elliott Hughes 3266c25c360afb161be02fbdb8da21cd02c9d99447Elliott Hughes#include <sys/cdefs.h> 3371927a82379f7a72559ea96e6678d6215090937fElliott Hughes#include <stddef.h> 3471927a82379f7a72559ea96e6678d6215090937fElliott Hughesint reallocarr(void*, size_t, size_t); 3571927a82379f7a72559ea96e6678d6215090937fElliott Hughes 36f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes#endif 37