From 537cacfa04c9dc56cd608012a73d95ab342d2f81 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Thu, 7 Jul 2011 12:02:10 +0200 Subject: libpayload: Add qsort() It's taken from OpenBSD and thus appropriately licensed (and reasonably tested). Change-Id: I5767600c9865d39e56c220b52e045f3501875b98 Signed-off-by: Patrick Georgi Reviewed-on: http://review.coreboot.org/88 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- payloads/libpayload/include/stdlib.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'payloads/libpayload/include/stdlib.h') diff --git a/payloads/libpayload/include/stdlib.h b/payloads/libpayload/include/stdlib.h index 6fb73ad98c..52162fe74e 100644 --- a/payloads/libpayload/include/stdlib.h +++ b/payloads/libpayload/include/stdlib.h @@ -142,4 +142,6 @@ void exit(int status) __attribute__ ((noreturn)); /** @} */ +void qsort(void *aa, size_t n, size_t es, int (*cmp)(const void *, const void *)); + #endif -- cgit v1.2.3