ruby-changes:40740
From: normal <ko1@a...>
Date: Tue, 1 Dec 2015 07:53:39 +0900 (JST)
Subject: [ruby-changes:40740] normal:r52819 (trunk): missing/explicit_bzero.c: Fixup r52806
normal 2015-12-01 07:53:21 +0900 (Tue, 01 Dec 2015) New Revision: 52819 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=52819 Log: missing/explicit_bzero.c: Fixup r52806 Maybe kosaki had a better version, but CI failure emails are annoying. Added files: trunk/missing/explicit_bzero.c Modified files: trunk/ChangeLog Index: ChangeLog =================================================================== --- ChangeLog (revision 52818) +++ ChangeLog (revision 52819) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Tue Dec 1 07:50:33 2015 Eric Wong <e@8...> + + * missing/explicit_bzero.c: new file. define explicit_bzero. + Fixup r52806 + Thu Oct 22 12:54:43 2015 KOSAKI Motohiro <kosaki.motohiro@g...> * thread_pthread.c (register_ubf_list): renamed from @@ -88,7 +93,6 @@ Wed Oct 21 08:23:36 2015 KOSAKI Motohir https://github.com/ruby/ruby/blob/trunk/ChangeLog#L93 Sun Oct 18 17:26:53 2015 KOSAKI Motohiro <kosaki.motohiro@g...> - * missing/explicit_bzero.c: new file. define explicit_bzero. * common.mk: add a rule for explicit.o. * configure.in: detect explicit_bzero and memset_s. * include/ruby/missing.h: add explicit_bzero. Index: missing/explicit_bzero.c =================================================================== --- missing/explicit_bzero.c (revision 0) +++ missing/explicit_bzero.c (revision 52819) @@ -0,0 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/missing/explicit_bzero.c#L1 +#include <string.h> + +/* prevent the compiler from optimizing away memset or bzero */ +void +explicit_bzero(void *p, size_t n) +{ + memset(p, 0, n); +} -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/