libc/newlib/libc/posix
Thomas Preud'homme fa55c610fa Only define static locks in multithreaded mode
Newlib build system defines __SINGLE_THREAD__ to allow concurrency code
to be only compiled when newlib is configured for multithread. One such
example are locks which become useless in single thread mode. Although
most static locks are indeed guarded by !defined(__SINGLE_THREAD__),
some are not.

This commit adds these missing guards to __dd_hash_mutex,
__atexit_recursive_mutex, __at_quick_exit_mutex and __arc4random_mutex.
It also makes sure locking macros in lock.h are noop in single thread
mode.
2017-02-13 17:04:17 -05:00
..
COPYRIGHT 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:03:42 +00:00
Makefile.am Move duplicated documentation rules to Makefile.shared 2015-11-02 18:02:39 -05:00
Makefile.in Regenerate newlib Makefiles 2016-07-04 17:13:55 +01:00
_isatty.c 2008-11-19 Jeff Johnston <jjohnstn@redhat.com> 2008-11-19 20:56:22 +00:00
cclass.h 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:03:42 +00:00
closedir.c * libc/posix/closedir.c: Fix use after free. 2013-11-19 11:48:02 +00:00
cname.h 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:03:42 +00:00
collate.c Throughout, run newlib with -Wall -Werror option and fix bugs and 2012-08-08 11:04:18 +00:00
collate.h 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:03:42 +00:00
collcmp.c 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:03:42 +00:00
creat.c 2003-06-06 Jeff Johnston <jjohnstn@redhat.com> 2003-06-06 19:57:51 +00:00
engine.c * libc/include/sys/features.h (__GNUC_PREREQ): Define. Use 2012-10-16 18:45:24 +00:00
execl.c 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:03:42 +00:00
execle.c 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:03:42 +00:00
execlp.c 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:03:42 +00:00
execv.c 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:03:42 +00:00
execve.c 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:03:42 +00:00
execvp.c 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:03:42 +00:00
fnmatch.3 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:03:42 +00:00
fnmatch.c 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:03:42 +00:00
glob.3 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:03:42 +00:00
glob.c 2013-11-21 Julio Gutierrez <jgutleyva@gmail.com> 2013-11-21 17:04:57 +00:00
isatty.c 2008-01-03 Jeff Johnston <jjohnstn@redhat.com> 2008-01-03 22:33:37 +00:00
namespace.h 2008-11-24 Craig Howland <howland@LGSInnovations.com> 2008-11-24 21:27:33 +00:00
opendir.c * libc/posix/opendir.c (opendir): Fix potential memory leak. 2010-08-25 10:44:47 +00:00
popen.c Throughout, run newlib with -Wall -Werror option and fix bugs and 2012-08-08 11:04:18 +00:00
posix.tex Use source files which have makedoc markup, but aren't processed or included. 2015-06-24 12:24:01 +01:00
posix_spawn.c * libc/posix/posix_spawn.c: Drop using namespace.h. 2013-11-26 13:51:19 +00:00
readdir.c * libc/posix/closedir.c: Fix use after free. 2013-11-19 11:48:02 +00:00
readdir_r.c 2013-11-21 Joel Sherrill <joel.sherrill@oarcorp.com> 2013-11-21 16:44:39 +00:00
regcomp.c 2013-11-20 Chirayu Desai <chirayudesai1@gmail.com> 2013-11-20 16:25:50 +00:00
regerror.c 2013-11-20 Chirayu Desai <chirayudesai1@gmail.com> 2013-11-20 16:25:50 +00:00
regex.3 2013-11-20 Chirayu Desai <chirayudesai1@gmail.com> 2013-11-20 16:25:50 +00:00
regex2.h 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:03:42 +00:00
regexec.c 2013-11-20 Chirayu Desai <chirayudesai1@gmail.com> 2013-11-20 16:25:50 +00:00
regfree.c 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:03:42 +00:00
rewinddir.c * libc/posix/rewinddir.c (rewinddir): Remove incorrect cast to off_t. 2010-07-06 15:23:27 +00:00
rune.h 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:03:42 +00:00
runetype.h 2008-11-19 Ralf Corsepius <ralf.corsepius@rtems.org> 2008-11-19 17:13:13 +00:00
scandir.c * libc/posix/scandir.c (DIRSIZ): Use offsetof instead of magic 2013-04-02 11:38:12 +00:00
seekdir.c 2003-06-06 Jeff Johnston <jjohnstn@redhat.com> 2003-06-06 19:57:51 +00:00
sleep.c 2006-06-05 Shaun Jackman <sjackman@gmail.com> 2006-06-06 15:41:10 +00:00
sysexits.h 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:03:42 +00:00
telldir.c Only define static locks in multithreaded mode 2017-02-13 17:04:17 -05:00
un-namespace.h 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:03:42 +00:00
usleep.c 2006-06-05 Shaun Jackman <sjackman@gmail.com> 2006-06-06 15:41:10 +00:00
utils.h 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:03:42 +00:00
wordexp.c 2013-11-23 Bryan Dunsmore <dunsmoreb@gmail.com> 2013-11-23 22:39:34 +00:00
wordexp2.h * libc/posix/wordfree.c (wordfree): The wrong words are freed 2012-10-09 12:05:51 +00:00
wordfree.c * libc/posix/wordfree.c (wordfree): The wrong words are freed 2012-10-09 12:05:51 +00:00