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 #include <features.h> 15 16 17 #ifdef _DEFAULT_SOURCE 18 19 20 #ifdef __cplusplus 21 extern "C" { 22 #endif 23 24 typedef int (*_compare_function_qsort_r)(const void*, const void*, void*); 25 26 extern void qsort_r(void* base, size_t numElements, size_t sizeOfElement, 27 _compare_function_qsort_r, void* cookie); 28 29 #ifdef __cplusplus 30 } 31 #endif 32 33 34 #endif /* _DEFAULT_SOURCE */ 35 36 37 #endif /* _GNU_STDLIB_H_ */ 38