commit | 4041a2d6e01218e882b97c0fc914f19d95f51fa6 | [log] [tgz] |
---|---|---|
author | Radek Krejci <rkrejci@cesnet.cz> | Thu Jul 02 09:16:42 2015 +0200 |
committer | Radek Krejci <rkrejci@cesnet.cz> | Thu Jul 02 09:16:42 2015 +0200 |
tree | dbab6129fbe2945dbd0f73db6b8a147d08b82323 | |
parent | f1a830b8d9b3779a13c11a3811252c97863cc7e4 [diff] |
yanglint BUGFIX Fix possible TOCTOU problem First, open the file and then get the stat information to be sure that we have information about the file we are using.
libyang is YANG data modelling language parser and toolkit written (and providing API) in C.
$ cmake . $ make # make install
There are two build modes:
The Debug
mode is currently used as the default one. to switch to the Release
mode, enter at the command line:
$ cmake -D CMAKE_BUILD_TYPE:String="Release" .
Set CC variable:
$ CC=/usr/bin/clang cmake .
Note that, with CMake, if you want to change the compiler or its options after you already ran CMake, you need to clear its cache first. For your convenience, this action is available as cclean
target of the Makefile:
$ make cclean $ CC=gcc CFLAGS='-fstack-protector-strong -Wa,--noexecstack' cmake .