OpenWrt Source Repository
Go to file
Hauke Mehrtens be5fcf9fd7 musl: Add format attribute to some function declarations
GCC and Clang are able to check the format arguments given to a
function and warn the user if there is a error in the format arguments
or if there is a potential uncontrolled format string security problem
in the code. GCC does this automatically for some functions like
printf(), but it is also possible to annotate other functions in a way
that it will check them too. This feature is used by glibc for many
functions. This patch adds the attribute to the some functions of musl
expect for these functions where gcc automatically adds it.

GCC automatically adds checks for these functions: printf, fprintf,
sprintf, scanf, fscanf, sscanf, strftime, vprintf, vfprintf and
vsprintf.

The documentation from gcc is here:
https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html

The documentation from Clang is here:
http://clang.llvm.org/docs/AttributeReference.html#format-gnu-format

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 48467
2016-01-24 00:05:14 +00:00
config build: use sstrip by default for musl 2016-01-18 12:47:36 +00:00
docs build: Prevent more gzip timestamps 2015-07-14 09:57:45 +00:00
include build: add uclient-fetch to the default packages, in case opkg is not selected 2016-01-22 09:41:53 +00:00
package uclient: update to the latest version, now truncates files when overwriting them 2016-01-23 20:02:34 +00:00
scripts build: add @APACHE download facility 2016-01-17 10:47:32 +00:00
target kernel: add a fix for deadlocks on dump_stack 2016-01-23 18:02:59 +00:00
toolchain musl: Add format attribute to some function declarations 2016-01-24 00:05:14 +00:00
tools flock: do not use ccache, fixes build error 2016-01-21 23:22:11 +00:00
.gitattributes
.gitignore build: add integration for managing opkg package feed keys 2015-04-06 19:39:51 +00:00
BSDmakefile
Config.in scripts/config: sync with linux upstream 2015-01-08 14:33:53 +00:00
feeds.conf.default feeds.conf.default: add new targets feed 2015-03-19 11:58:35 +00:00
LICENSE
Makefile Makefile: move the cleaning of staging_dir/target* from dirclean to clean 2015-06-14 17:47:16 +00:00
README
rules.mk rules.mk: make the locked template available even if flock has not been built yet (fall back to unlocked shell command) 2016-01-20 21:31:38 +00:00

This is the buildsystem for the OpenWrt Linux distribution.

Please use "make menuconfig" to configure your appreciated
configuration for the toolchain and firmware.

You need to have installed gcc, binutils, bzip2, flex, python, perl, make,
find, grep, diff, unzip, gawk, getopt, subversion, libz-dev and libc headers.

Run "./scripts/feeds update -a" to get all the latest package definitions
defined in feeds.conf / feeds.conf.default respectively
and "./scripts/feeds install -a" to install symlinks of all of them into
package/feeds/.

Use "make menuconfig" to configure your image.

Simply running "make" will build your firmware.
It will download all sources, build the cross-compile toolchain, 
the kernel and all choosen applications.

You can use "scripts/flashing/flash.sh" for remotely updating your embedded
system via tftp.

The OpenWrt system is documented in docs/. You will need a LaTeX distribution
and the tex4ht package to build the documentation. Type "make -C docs/" to build it.

To build your own firmware you need to have access to a Linux, BSD or MacOSX system
(case-sensitive filesystem required). Cygwin will not be supported because of
the lack of case sensitiveness in the file system.


Sunshine!
	Your OpenWrt Project
	http://openwrt.org