stdlib: add missing features to build PolarSSL
authorJuan Castillo <juan.castillo@arm.com>
Mon, 17 Nov 2014 17:27:41 +0000 (17:27 +0000)
committerDan Handley <dan.handley@arm.com>
Wed, 28 Jan 2015 18:26:59 +0000 (18:26 +0000)
commite509d05728ac0a625e67d62197ad8bef73db6d88
treed62563f6d7411dc5092fa105aa20f171024f598b
parent6eadf7627fe1c2adb10b720210293fceea503b23
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
16 files changed:
include/stdlib/inttypes.h [new file with mode: 0644]
include/stdlib/machine/_inttypes.h [new file with mode: 0644]
include/stdlib/stdio.h
include/stdlib/stdlib.h [new file with mode: 0644]
include/stdlib/string.h
include/stdlib/strings.h [new file with mode: 0644]
include/stdlib/sys/_timespec.h [new file with mode: 0644]
include/stdlib/sys/timespec.h [new file with mode: 0644]
include/stdlib/sys/types.h [new file with mode: 0644]
include/stdlib/time.h [new file with mode: 0644]
include/stdlib/xlocale/_strings.h [new file with mode: 0644]
include/stdlib/xlocale/_time.h [new file with mode: 0644]
lib/stdlib/exit.c [new file with mode: 0644]
lib/stdlib/sscanf.c [new file with mode: 0644]
lib/stdlib/std.c
lib/stdlib/strcmp.c