From e509d05728ac0a625e67d62197ad8bef73db6d88 Mon Sep 17 00:00:00 2001 From: Juan Castillo Date: Mon, 17 Nov 2014 17:27:41 +0000 Subject: stdlib: add missing features to build PolarSSL This patch adds the missing features to the C library included in the Trusted Firmware to build PolarSSL: - strcasecmp() function - exit() function - sscanf()* function - time.h header file (and its dependencies) * NOTE: the sscanf() function is not a real implementation. It just returns the number of expected arguments by counting the number of '%' characters present in the formar string. This return value is good enough for PolarSSL because during the certificate parsing only the return value is checked. The certificate validity period is ignored. Change-Id: I43bb3742f26f0bd458272fccc3d72a7f2176ab3d --- lib/stdlib/std.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/stdlib/std.c') diff --git a/lib/stdlib/std.c b/lib/stdlib/std.c index 46087549..5f6ef752 100644 --- a/lib/stdlib/std.c +++ b/lib/stdlib/std.c @@ -32,10 +32,12 @@ /* Include the various implemented functions */ #include "abort.c" #include "assert.c" +#include "exit.c" #include "mem.c" #include "printf.c" #include "putchar.c" #include "puts.c" +#include "sscanf.c" #include "strchr.c" #include "strcmp.c" #include "strlen.c" -- cgit v1.2.3