Go to file
Marcus Shawcroft 458e2ed133 libc/minimal: Fix definition of ssize_t
Each GCC target backend is at liberty to define its own SIZE_TYPE. GCC
uses this for various purposes, not lease it drives the machinery that
spits out format specifier diagnostics when format specifiers are
applied to objects with inappropriate type.  GCC exposes the current
definition of SIZE_TYPE via the preprocessor symbol __SIZE_TYPE__.
The GCC build processes also generates various standard library header
files that directyle expose stanard types in a form consistent with
the current configuration of GCC.  Conventionally standard library
build processes (for glibc and newlib) pick up the header files
generated by the GCC build.

In the minimal libc we have no such build process, we don't pick up
the header files that the GCC build process generated.  Instead we
define our own alternative header files and align them with GCC
manually.

The current definition of ssize_t in minimal libc is out of step with
GCC which means that any use of the %z[du] format modifier will issue
a diagnostic.

We replace the open coded architecture detection in minimal libc and
use GCCs __SIZE_TYPE__ directly.

Change-Id: I63b5e17bee4f4ab83d49e492e58efd3bafe76807
Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>

tests: fs: Fix printf warning when using newlib

Current code uses %ld format specifier to print data of
type ssize_t. This causes type warnings when built with
newlib. The correct format specifier to be used for
ssize_t is %zd.

Change-Id: I02a3c628e3d6e8a36a09cd694220406d8faf1730
Signed-off-by: Ramesh Thomas <ramesh.thomas@intel.com>
2017-02-01 13:57:43 -08:00
.known-issues kernel: doc: Add deprecation notice to legacy.h 2017-01-16 18:13:03 -05:00
arch drivers: Add Atmel SAM family GMAC Ethernet driver 2017-02-01 21:01:19 +00:00
boards boards: Add Atmel SAM E70 Xplained board support 2017-02-01 21:01:16 +00:00
doc doc: fix broken link in getting started guide docs 2017-02-01 20:23:18 +00:00
drivers drivers: Add Atmel SAM family GMAC Ethernet driver 2017-02-01 21:01:19 +00:00
ext ext: Import Atmel SAM3X header files from ASF library 2017-02-01 21:01:14 +00:00
include arm: scb: Move SCB asm defines into cpu_idle.S 2017-01-30 11:02:39 -06:00
kernel kernel/arch: streamline thread user options 2017-01-24 13:34:50 +00:00
lib libc/minimal: Fix definition of ssize_t 2017-02-01 13:57:43 -08:00
misc misc/printk: Add a function to get the current hook function. 2017-01-27 12:35:52 +02:00
samples samples: net: echo_server .conf for Atmel SMART SAM E70 Xplained board 2017-02-01 21:01:20 +00:00
scripts toolchain: define DTC for zephyr SDK 2017-01-30 21:45:05 +00:00
subsys fat: match type info expected by fat library for f_write 2017-01-30 12:01:50 +00:00
tests libc/minimal: Fix definition of ssize_t 2017-02-01 13:57:43 -08:00
.checkpatch.conf checkpatch: ignore CONST_STRUCT warnings 2016-11-11 22:12:22 +00:00
.gitattributes
.gitignore doc: move context back to doc/, fix broken links 2017-01-16 18:05:06 -05:00
.gitreview Add a .gitreview file 2016-02-20 14:25:01 +00:00
.mailmap mailmap: added axy (for Anas Nashif) 2016-12-21 13:49:59 +00:00
defaults.tc testcases: catch more fatal kernel error messages 2016-11-11 13:21:16 +00:00
Kbuild build: Use ZEPHYRINCLUDE when building offsets.o 2017-01-25 12:20:21 +00:00
Kconfig license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
Kconfig.zephyr license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
LICENSE
MAINTAINERS MAINTAINERS: Remove Jon Medhurst from MPS2 maintainership 2017-01-30 11:02:36 -06:00
Makefile build: add _ASMLANGUAGE to all asm files 2017-01-24 13:34:51 +00:00
Makefile.inc build: abstract emulation and replace qemu goal with run 2017-01-10 20:20:47 +00:00
Makefile.test tests: introduce Makefile.test 2017-01-03 17:48:44 +00:00
zephyr-env.sh license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00