aboutsummaryrefslogtreecommitdiffstats
path: root/missing/explicit_bzero.c
Commit message (Collapse)AuthorAgeFilesLines
* missing.h: remove explicit_bzero_by_memset_snobu2016-01-101-0/+7
| | | | | | | | | * include/ruby/missing.h (explicit_bzero_by_memset_s): remove inline implementation by memset_s, which needs a macro before including headers and can cause problems in extension libraries by the order of the macro and headers. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53493 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* explicit_bzero.c: fix typosnobu2015-12-021-2/+2
| | | | | | * missing/explicit_bzero.c (explicit_bzero): fix typos, probably. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* explicit_bzero.c: fix commentsnobu2015-12-021-7/+8
| | | | | | | * missing/explicit_bzero.c: fix comments. Microsoft Visual Studio does not provide memset_s() in 12.0 at least. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* undef for tha case missing.h defines it as macronaruse2015-12-021-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52843 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* missing/explicit_bzero.c (explicit_bzero): fixup r52839normal2015-12-011-1/+1
| | | | | | ...for compilers with "weak" attribute. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * missing/explicit_bzero.c: add ruby_explicit_bzero_hook_unusedkosaki2015-12-011-28/+52
| | | | | | for preventing optimization. Inspired from OpenBSD. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* explicit_bzero.c: needs windows.hnobu2015-12-011-0/+6
| | | | | | | * missing/explicit_bzero.c, random.c (explicit_bzero): SecureZeroMemory() needs windows.h. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52827 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* missing.h: explicit_bzero by memset_snobu2015-12-011-0/+4
| | | | | | | | | | * include/ruby/missing.h (explicit_bzero_by_memset_s): call memset_s directly if available. * missing/explicit_bzero.c: optimization is not a matter if memset_s is available. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in: FUNC_UNOPTIMIZEDnobu2015-12-011-2/+4
| | | | | | | | * configure.in: check if optimize pragma is supported. * include/ruby/defines.h (FUNC_UNOPTIMIZED): fallback definition. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * missing/explicit_bzero.c: add a few comment.kosaki2015-12-011-0/+9
| | | | | | * missing/explicit_bzero.c: add disabling optimization on gcc. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52822 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix r52806kosaki2015-12-011-3/+29
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* missing/explicit_bzero.c: Fixup r52806normal2015-11-301-0/+8
Maybe kosaki had a better version, but CI failure emails are annoying. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e