1/* 2 * Copyright 2020 Haiku, Inc. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * Isaac Turner, turner.isaac@gmail.com 7 * Jacob Secunda, secundaja@gmail.com 8 */ 9#ifndef _GNU_STDLIB_H_ 10#define _GNU_STDLIB_H_ 11 12 13#include_next <stdlib.h> 14 15 16#ifdef _GNU_SOURCE 17 18 19#ifdef __cplusplus 20extern "C" { 21#endif 22 23typedef int (*_compare_function_qsort_r)(const void*, const void*, void*); 24 25extern void qsort_r(void* base, size_t numElements, size_t sizeOfElement, 26 _compare_function_qsort_r, void* cookie); 27 28#ifdef __cplusplus 29} 30#endif 31 32 33#endif /* _GNU_SOURCE */ 34 35 36#endif /* _GNU_STDLIB_H_ */ 37