Commit Graph

10 Commits

Author SHA1 Message Date
Xiang Xiao
6a3c2aded6 Fix wait loop and void cast (#24)
* Simplify EINTR/ECANCEL error handling

1. Add semaphore uninterruptible wait function
2 .Replace semaphore wait loop with a single uninterruptible wait
3. Replace all sem_xxx to nxsem_xxx

* Unify the void cast usage

1. Remove void cast for function because many place ignore the returned value witout cast
2. Replace void cast for variable with UNUSED macro
2020-01-02 10:54:43 -06:00
Gregory Nutt
e0205ff3cc More changes on name configs/ to boards/ in comments, Documentation, Tools, etc. That is all that I see for now. 2019-08-05 07:24:57 -06:00
Gregory Nutt
dc8c814ca3 Squashed commit of the following:
Fixed coding standard error in several files.  Use of while( is incorrect; a space is required between while and (.  Also ran tools/nxstyle and fix thoses complaints as well in most files.

    Changes to comply with coding standard.  Mostly focused on files with missing space after keyword in if(, switch(, and for(.  Offending files also got changes to comply with tools nxstyle.  If there were logs of nxstyle complaints, the file also got a taste of tools/indent.sh.  Still need to fix occurrences of while( with missing space.  There are a lot of them.
2019-02-27 08:41:08 -06:00
Gregory Nutt
947191780f tools: Trivial. define _GNU_SOURCE to be 1, don't just define it. 2018-01-30 11:08:18 -06:00
Gregory Nutt
8956a6001f tools/logparser.c: A few more minor enhancements. Also add #define _GNU_SOURCE to all C files that call asprintf() 2018-01-29 13:13:29 -06:00
Gregory Nutt
c584d27c3c Revert "Build system: Hook tools/initconfig into top-level Makefiles."
This reverts commit 430060e92e.

That commit has some unexpected side-effects
2017-06-02 16:14:27 -06:00
Gregory Nutt
2c903d5c7a Fix spelling in printf output 2017-06-02 16:12:21 -06:00
Gregory Nutt
430060e92e Build system: Hook tools/initconfig into top-level Makefiles. 2017-06-02 13:06:09 -06:00
Gregory Nutt
efbd035b56 Cosmetic changes to comments 2017-06-02 11:24:19 -06:00
Gregory Nutt
624bd0b9e9 tools/: Add initialconfig.c so that perhaps in the future we will be able to use this to generate a new configuration from scratch (rather than having to derive new configurations from existing configurations) 2017-06-02 10:17:30 -06:00