-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathChangeLog
3569 lines (2231 loc) · 120 KB
/
ChangeLog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
Fri Nov 4 01:56:30 2011 NAKAMURA Usaku <[email protected]>
* io.c (make_writeconv): unversal_newline converter is for reading.
so, if the io is text mode and has ECONV_UNIVERSAL_NEWLINE_DECORATOR
flag, use crlf_newline converter for writing.
this change fixes the problem about the luck of CR up Kernel.p and
Kernel.puts to stdout/stderr on Windows.
Fri Nov 4 01:04:48 2011 NARUSE, Yui <[email protected]>
* ext/readline/readline.c (Init_readline): like r18313, libedit's
replace_history_entry may use offset instead of which.
so introduce history_replace_offset_func and initialize it.
* ext/readline/readline.c (hist_set): use history_replace_offset_func.
Fri Nov 4 00:53:35 2011 NARUSE, Yui <[email protected]>
* ext/readline/readline.c (Init_readline): fix wrong condition.
Thu Nov 3 23:53:04 2011 NAKAMURA Usaku <[email protected]>
* encoding.c (rb_locale_charmap): ignore calling nl_langinfo_codeset()
on Windows except cygwin. [experimental]
Thu Nov 3 22:45:09 2011 Tanaka Akira <[email protected]>
* ext/socket/socket.c (rsock_socketpair0): extracted from
rsock_socketpair to set close-on-exec flag for each socketpair()
call.
Thu Nov 3 22:12:41 2011 CHIKANAGA Tomoyuki <[email protected]>
* ext/socket/init.c (rsock_socket): set close-on-exec flag when
SOCK_CLOEXEC is not available.
Thu Nov 03 08:36:00 2011 Martin Bosslet <[email protected]>
* test/openssl/test_engine.rb: call Engine::cleanup on exit.
Patch provided by Yui Naruse, thanks!
[Bug #5547] [ruby-core:40669]
Wed Nov 2 21:36:00 2011 Nobuyoshi Nakada <[email protected]>
* complex.c (nucomp_rationalize): fix function. [ruby-core:40667]
[Bug #5546]
Wed Nov 2 08:16:45 2011 Tanaka Akira <[email protected]>
* lib/webrick/utils.rb: fix fcntl call.
* lib/drb/unix.rb: ditto.
Wed Nov 02 00:43:59 2011 Ayumu AIZAWA <[email protected]>
* test/psych/test_yamldbm.rb: avoid platform dependency.
patch by Naohisa Goto. [ruby-dev:44763] [Bug #5535]
* test/syck/test_yamldbm.rb: ditto.
Wed Nov 2 00:14:15 2011 Shugo Maeda <[email protected]>
* test/ruby/test_marshal.rb: renamed methods duplicated with those
of marshaltestlib.rb.
Tue Nov 1 22:08:27 2011 Nobuyoshi Nakada <[email protected]>
* configure.in: reject llvm-gcc.
Tue Nov 1 21:39:00 2011 NARUSE, Yui <[email protected]>
* io.c (rb_cloexec_pipe): remove workaround of r33587.
The bug of NetBSD is fixed on Mon Oct 31 21:31:29 UTC 2011.
http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=45545
Tue Nov 1 19:49:08 2011 Tanaka Akira <[email protected]>
* io.c (rb_io_reopen): call rb_fd_fix_cloexec instead of
rb_maygvl_fd_fix_cloexec.
Tue Nov 1 19:00:30 2011 Tanaka Akira <[email protected]>
* io.c (rb_io_reopen): call rb_maygvl_fd_fix_cloexec after freopen().
Tue Nov 1 17:17:26 2011 NARUSE, Yui <[email protected]>
* file.c (file_expand_path): reset coderange after expanding path.
Tue Nov 1 14:55:29 2011 NARUSE, Yui <[email protected]>
* io.c (nogvl_io_cntl): rb_cloexec_fcntl_dupfd's 2nd argument is int.
* process.c (move_fds_to_avoid_crash): ditto.
Tue Nov 1 13:14:33 2011 NARUSE, Yui <[email protected]>
* vsnprintf.c (BSD_vfprintf): support 'll' prefix.
* vsnprintf.c (__sfeof): rename to avoid the collision with NetBSD's
one.
* vsnprintf.c (__sferror): ditto.
* vsnprintf.c (__sclearerr): ditto.
* vsnprintf.c (__sfileno): ditto.
Tue Nov 1 12:36:16 2011 Tanaka Akira <[email protected]>
* internal.h (rb_maygvl_fd_fix_cloexec): change the visibility for
ext/socket.
Tue Nov 1 12:00:53 2011 Tanaka Akira <[email protected]>
* io.c (rb_maygvl_fd_fix_cloexec): renamed from fd_set_cloexec.
* internal.h (rb_maygvl_fd_fix_cloexec): declared.
* ext/socket/init.c (cloexec_accept): use rb_maygvl_fd_fix_cloexec.
(rsock_s_accept_nonblock): use rb_update_max_fd.
(rsock_s_accept): use rb_update_max_fd.
Tue Nov 1 08:24:40 2011 Tanaka Akira <[email protected]>
* ext/socket/init.c (cloexec_accept): new function to use accept4 if
available.
(rsock_s_accept_nonblock): use cloexec_accept.
(accept_blocking): ditto.
* ext/socket/extconf.rb: check accept4.
Tue Nov 1 07:31:55 2011 Tanaka Akira <[email protected]>
* ext/socket/ancdata.c (nogvl_recvmsg_func): use MSG_CMSG_CLOEXEC if
available.
* ext/socket/unixsocket.c (recvmsg_blocking): ditto.
Tue Nov 1 05:59:41 2011 Tanaka Akira <[email protected]>
* ext/socket/socket.c (rsock_socketpair): use SOCK_CLOEXEC if
available.
Tue Nov 1 02:56:17 2011 NAKAMURA Usaku <[email protected]>
* ruby.c (load_file_internal): convert the encoding of load path if
needed by platform. calling open() was replaced by rb_cloexec_open()
at r33549, but the function expected UTF-8 pathname on Windows.
(open() expected "locale" pathname.)
reported by taco via IRC.
* ruby.c (load_file): change the type of the 2nd parameter to pass its
encoding to load_file_internal().
* ruby.c (process_options, rb_load_file): follow above change.
NOTE: we should pass encoding information to rb_load_file().
Mon Oct 31 23:49:38 2011 Tanaka Akira <[email protected]>
* ext/socket/socket.c (rsock_socketpair): extracted from
rsock_sock_s_socketpair.
Mon Oct 31 23:31:53 2011 Tanaka Akira <[email protected]>
* ext/socket/init.c (rsock_socket): use SOCK_CLOEXEC if available.
Mon Oct 31 21:47:44 2011 NARUSE, Yui <[email protected]>
* io.c (rb_cloexec_pipe): NetBSD 6.0 will support pipe2(2),
but its return value is -1 or larger than 0.
Mon Oct 31 22:04:54 2011 Tanaka Akira <[email protected]>
* ext/dbm/dbm.c (fdbm_initialize): use O_CLOEXEC if available.
Mon Oct 31 21:47:48 2011 Tanaka Akira <[email protected]>
* include/ruby/intern.h (rb_fd_fix_cloexec): renamed from
rb_fd_set_cloexec.
* io.c: follow the above renaming.
* ext/pty/pty.c: ditto.
* ext/socket/init.c: ditto.
* ext/socket/socket.c: ditto.
* ext/socket/ancdata.c: ditto.
* ext/socket/unixsocket.c: ditto.
Mon Oct 31 21:02:43 2011 Tanaka Akira <[email protected]>
* lib/resolv.rb (Resolv::DNS): retry IO.select for premature wakeup.
Mon Oct 31 20:14:22 2011 Tanaka Akira <[email protected]>
* io.c (fd_set_cloexec): clear CLOEXEC flag for standard file
descriptors.
(rb_cloexec_dup): use rb_cloexec_fcntl_dupfd.
(rb_cloexec_fcntl_dupfd): use F_DUPFD_CLOEXEC if available.
Mon Oct 31 19:14:11 2011 Tanaka Akira <[email protected]>
* test/resolv/test_dns.rb: don't check maximum sleeped time.
ruby doesn't guarantee the maximum time because it is not a
realtime application.
Mon Oct 31 13:10:06 2011 NAKAMURA Usaku <[email protected]>
* win32/win32.c (setfl): extract from fcntl().
* win32/win32.c (dupfd): new function to support F_DUPFD. based on a
patch written by akr.
* win32/win32.c (fcntl): use above functions.
* include/ruby/win32.h (F_DUPFD): define. [experimental]
* include/ruby/win32.h (F_SETFL): change the value to correspond with
other platforms.
Mon Oct 31 12:37:50 2011 Tanaka Akira <[email protected]>
* ext/pty/pty.c (get_device_once): use O_CLOEXEC for posix_openpt if
available.
Mon Oct 31 12:05:24 2011 Tanaka Akira <[email protected]>
* io.c (rb_cloexec_dup2): check oldfd == newfd at first.
pointed by KOSAKI Motohiro. [ruby-dev:44713]
Mon Oct 31 10:50:26 2011 NAKAMURA Usaku <[email protected]>
* io.c (rb_cloexec_fcntl_dupfd): this function needs F_DUPFD.
* io.c (nogvl_io_cntl): use rb_cloexec_fcntl_dupfd() only if the
platform has F_DUPFD.
Mon Oct 31 00:50:00 2011 Luis Lavena <[email protected]>
* configure.in: check -fno-omit-frame-pointer acceptance and usage
under MinGW. [ruby-core:39957] [Bug #5407]
Mon Oct 31 00:16:11 2011 Tanaka Akira <[email protected]>
* include/ruby/intern.h (rb_cloexec_fcntl_dupfd): declared.
* io.c (rb_cloexec_fcntl_dupfd): new function.
(nogvl_io_cntl): use rb_cloexec_fcntl_dupfd.
* process.c (move_fds_to_avoid_crash): use rb_cloexec_fcntl_dupfd.
Sun Oct 30 22:46:46 2011 Tanaka Akira <[email protected]>
* configure.in: check pipe2.
* io.c (rb_cloexec_pipe): use pipe2 if available.
Sun Oct 30 22:32:44 2011 Tanaka Akira <[email protected]>
* ruby.c (fill_standard_fds): use fstat() instead of fcntl(F_GETFD)
for MinGW. reported by Luis Lavena. [ruby-core:40526] [Bug #5516]
Sun Oct 30 21:12:47 2011 Tanaka Akira <[email protected]>
* include/ruby/intern.h (rb_cloexec_pipe): declared.
* io.c (rb_cloexec_pipe): new function.
(rb_pipe): use rb_cloexec_pipe.
* thread_pthread.c (rb_thread_create_timer_thread): use
rb_cloexec_pipe.
Sun Oct 30 20:06:07 2011 Tanaka Akira <[email protected]>
* io.c (rb_cloexec_dup): refine control flow.
(rb_cloexec_dup2): ditto.
Sun Oct 30 18:45:50 2011 Tanaka Akira <[email protected]>
* ruby.c (fill_standard_fds): new function to open closed standard
file descriptors.
(ruby_sysinit): call fill_standard_fds.
Sun Oct 30 10:50:36 2011 Nobuyoshi Nakada <[email protected]>
* tool/rbinstall.rb (install_recursive, bin-comm): split mere
string not path name. [ruby-core:40462] [Bug #5492]
Sun Oct 30 10:47:20 2011 Nobuyoshi Nakada <[email protected]>
* io.c (rb_cloexec_dup, rb_cloexec_dup2): CLOEXEC has been set if
dup3 succeeded.
Sun Oct 30 09:58:48 2011 Tanaka Akira <[email protected]>
* io.c (rb_cloexec_dup): don't allocate standard file descriptors.
Sun Oct 30 08:29:51 2011 Tanaka Akira <[email protected]>
* io.c (rb_cloexec_dup2): don't set CLOEXEC for standard file
descriptors.
Sun Oct 30 07:47:10 2011 Tanaka Akira <[email protected]>
* configure.in: check dup3.
* io.c (rb_cloexec_dup2): use dup3 if available.
Sat Oct 29 22:06:37 2011 Tanaka Akira <[email protected]>
* include/ruby/intern.h (rb_cloexec_dup2): declared.
* io.c (rb_cloexec_dup2): new function.
(io_reopen): use rb_cloexec_dup2.
Sat Oct 20 21:08:18 2011 Tajima Akil <[email protected]>
* win32/Makefile.sub (CONFIG_H): have stdint.h if VC2010.
[Bug #5243]
Sat Oct 29 20:59:08 2011 Tanaka Akira <[email protected]>
* io.c (rb_cloexec_dup): use F_DUPFD_CLOEXEC if available.
Sat Oct 29 20:00:26 2011 Tanaka Akira <[email protected]>
* include/ruby/intern.h (rb_cloexec_dup): declared.
* io.c (rb_cloexec_dup): new function.
(ruby_dup): use rb_cloexec_dup.
* ext/pty/pty.c (pty_getpty): use rb_cloexec_dup.
* ext/openssl/ossl_bio.c (ossl_obj2bio): ditto.
Sat Oct 29 16:11:34 2011 Tanaka Akira <[email protected]>
* ext/sdbm/_sdbm.c (sdbm_prep): use O_CLOEXEC if available.
Sat Oct 29 14:26:56 2011 Tanaka Akira <[email protected]>
* io.c (rb_cloexec_open): use O_CLOEXEC if available.
Sat Oct 29 12:57:15 2011 Tanaka Akira <[email protected]>
* process.c (ruby_setsid): use rb_cloexec_open.
(rb_daemon): ditto.
* ruby.c (load_file_internal): ditto.
* file.c (rb_file_s_truncate): ditto.
(file_load_ok): ditto.
* random.c (fill_random_seed): ditto.
* ext/pty/pty.c (chfunc): ditto.
(get_device_once): ditto.
* ext/io/console/console.c (console_dev): ditto.
Sat Oct 29 10:40:19 2011 Tanaka Akira <[email protected]>
* include/ruby/intern.h (rb_cloexec_open): declared.
* io.c (fd_set_cloexec): extracted from rb_fd_set_cloexec.
(rb_cloexec_open): new function.
(sysopen_func): use rb_cloexec_open.
(rb_sysopen_internal): use rb_update_max_fd instead of
rb_fd_set_cloexec.
Sat Oct 29 09:05:07 2011 Nobuyoshi Nakada <[email protected]>
* thread_pthread.h: no Structured Exception Handling like macros.
[ruby-core:40432] [Bug #5491]
Fri Oct 28 22:05:34 2011 Tanaka Akira <[email protected]>
* ext/sdbm/_sdbm.c: RCS $Id$ removed.
Thu Oct 27 18:58:00 2011 NARUSE, Yui <[email protected]>
* parse.y (parser_nextc): set encoding for the buffer of ripper.
Fri Oct 28 06:06:08 2011 Tanaka Akira <[email protected]>
* ext/sdbm/_sdbm.c (sdbm_prep): set FD_CLOEXEC flags for file
descriptors.
(fd_set_cloexec): new function.
Fri Oct 28 03:01:27 2011 Aaron Patterson <[email protected]>
* vm_insnhelper.c (vm_call_cfunc): adding back useless hack. For some
reason, this fixes CFP errors on OS X 10.7.
Fri Oct 28 00:09:31 2011 Tanaka Akira <[email protected]>
* ext/sdbm/_sdbm.c (sdbm_prep): refactored for less nesting.
Thu Oct 27 18:28:18 2011 Nobuyoshi Nakada <[email protected]>
* configure.in (RUBY_DEFINE_IF): revert r33534 partially to get
rid of AS_ECHO which is not available in autoconf 2.61.
[ruby-dev:44702]
Thu Oct 27 16:10:46 2011 Nobuyoshi Nakada <[email protected]>
* bignum.c (rb_big_divide): raise ZeroDivisionError if divisor is
zero, as well as Fixnum. [ruby-core:40429] [Bug #5490]
Thu Oct 27 14:56:22 2011 Nobuyoshi Nakada <[email protected]>
* configure.in (RUBY_FUNC_ATTRIBUTE): unset temporary variable.
* configure.in (RUBY_STACK_GROW_DIRECTION): substitute CPU name as
shell variable name. based on the patch by The Written Word Inc. at
[ruby-core:40421]. [Bug #5488]
Thu Oct 27 09:57:56 2011 NARUSE, Yui <[email protected]>
* include/ruby/ruby.h (SIZE_MAX): define SIZE_MAX if not defined.
patched by The Written Word Inc. [ruby-core:40422] [Bug #5489]
Thu Oct 27 08:47:38 2011 Martin Bosslet <[email protected]>
* ext/psych/parser.c: remove unused variable.
Thu Oct 27 08:38:41 2011 Martin Bosslet <[email protected]>
* ext/openssl/extconf.rb: add -Wall flag by default when compiler is
GCC.
Wed Oct 26 15:24:25 2011 Nobuyoshi Nakada <[email protected]>
* file.c (rb_file_join): honor input encodings than ASCII-8BIT.
[ruby-core:40338] [Bug #5483]
Tue Oct 25 21:52:31 2011 Tanaka Akira <[email protected]>
* include/ruby/defines.h: use "__sparc" instead of "sparc" and
"__sparc__".
* dln.c: ditto.
[ruby-dev:44694]
Tue Oct 25 06:34:39 2011 Eric Hodel <[email protected]>
* re.c (match_aref): Use <code> around indexing examples to prevent
hyperlinks. [ruby-talk:389396]
Mon Oct 24 23:55:31 2011 Tanaka Akira <[email protected]>
* complex.c: use "__sun" instead of "__sun__" to detect SunOS.
* math.c: ditto.
* hash.c: ditto.
* atomic.h: ditto.
* ext/io/wait/wait.c: ditto.
[ruby-dev:44693]
Mon Oct 24 22:45:37 2011 Tanaka Akira <[email protected]>
* io.c: use "__sun" instead of "sun" to detect SunOS.
* dln.c: ditto.
* cont.c: ditto.
* ext/sdbm/_sdbm.c: ditto.
[ruby-dev:44693]
Mon Oct 24 22:38:08 2011 Tanaka Akira <[email protected]>
* ext/pty/pty.c (get_device_once): delay rb_fd_set_cloexec() until
grantpt() on Solaris. grantpt() doesn't work with CLOEXEC on
Solaris 10.
reported by Naohisa GOTO. [ruby-dev:44688] [Bug #5475]
Mon Oct 24 08:18:14 2011 Tanaka Akira <[email protected]>
* io.c (copy_stream_fallback_body): check nil for EOF of read method.
patch by Eric Wong. [ruby-core:39134] [Bug #5237]
Sun Oct 23 18:21:23 2011 Kazuki Tsujimoto <[email protected]>
* ext/tk/MANUAL_tcltklib.eng: fix typo.
Sun Oct 23 18:03:31 2011 Nobuyoshi Nakada <[email protected]>
* numeric.c (rb_infinity, rb_nan): aggregated member initializers
need braces.
Sun Oct 23 16:43:43 2011 Naohisa Goto <[email protected]>
* ext/io/wait/wait.c: ioctl(2) is declared in unistd.h on Solaris.
Sun Oct 23 16:33:35 2011 Ayumu AIZAWA <[email protected]>
* ext/tk/MANUAL_tcltklib.eng: fix typo. reported by Mimura-san.
[ruby-dev:44683] [Bug #5471]
Sun Oct 23 08:01:29 2011 Tanaka Akira <[email protected]>
* io.c (rb_fd_set_cloexec): set close-on-exec flag only if F_GETFD is
defined. reported by Luis Lavena. [ruby-core:40281] [Bug #5470]
Sat Oct 22 19:48:50 2011 Tanaka Akira <[email protected]>
* test/openssl/test_ssl.rb (test_multibyte_read_write): start server
for each length to avoid race condition.
Sat Oct 22 18:49:24 2011 Tanaka Akira <[email protected]>
* include/ruby/intern.h (rb_fd_set_cloexec): declared.
* io.c (rb_fd_set_cloexec): new function.
(ruby_dup): call rb_fd_set_cloexec to set close-on-exec flag.
(rb_sysopen_internal): ditto.
(rb_pipe): ditto.
(io_reopen): ditto.
(io_cntl): ditto.
* process.c (rb_f_exec): change the default :close_others option to
true.
(rb_f_system): ditto.
(move_fds_to_avoid_crash): call rb_fd_set_cloexec to set
close-on-exec flag.
(ruby_setsid): ditto.
(rb_daemon): ditto.
* thread_pthread.c (rb_thread_create_timer_thread): call
rb_fd_set_cloexec to set close-on-exec flag.
* ruby.c (load_file_internal): ditto.
* file.c (rb_file_s_truncate): ditto.
(file_load_ok): ditto.
* random.c (fill_random_seed): ditto.
* ext/pty/pty.c (chfunc): ditto.
(get_device_once): ditto.
* ext/openssl/ossl_bio.c (ossl_obj2bio): ditto.
* ext/socket/init.c (rsock_socket): ditto.
(rsock_s_accept_nonblock): ditto.
(rsock_s_accept): ditto.
* ext/socket/socket.c (rsock_sock_s_socketpair): ditto.
* ext/socket/ancdata.c (discard_cmsg): ditto.
(make_io_for_unix_rights): ditto.
* ext/socket/unixsocket.c (unix_recv_io): ditto.
* ext/io/console/console.c (console_dev): ditto.
[ruby-core:38140] [Feature #5041]
Sat Oct 22 17:46:27 2011 Tanaka Akira <[email protected]>
* lib/resolv.rb: fix a exception name in previous patch.
Sat Oct 22 17:43:33 2011 Tanaka Akira <[email protected]>
* lib/resolv.rb: make timeout configurable for DNS query.
patch by Eric Wong. [ruby-core:38533] [Feature #5100]
Sat Oct 22 02:07:48 2011 Naohisa Goto <[email protected]>
* numeric.c (rb_infinity, rb_nan): use union to prevent bus error
caused by misalignment. [Bug #5469] [ruby-dev:44657]
* include/ruby/missing.h (INFINITY, NAN): ditto
Fri Oct 21 22:02:17 2011 Nobuyoshi Nakada <[email protected]>
* gc.c (initial_params): pack in a struct.
* gc.c (rb_gc_set_params): set parameters always.
[ruby-dev:44648] [Bug #5467]
Fri Oct 21 12:10:20 2011 Naohisa Goto <[email protected]>
* atomic.h: change Solaris checking macro because atomic_ops can work
not only with Sun Studio but also with Fujitsu C Compiler.
Fri Oct 21 02:11:00 2011 Martin Bosslet <[email protected]>
* ext/openssl/ossl_ns_spki.c: Complete documentation.
* test/openssl/test_ns_spki.rb: Integrate SPKI#to_text.
Thu Oct 20 22:47:28 2011 NAKAMURA Usaku <[email protected]>
* win32/win32.c (socklist_insert, socklist_lookup, socklist_delete):
new functions to wrap of st_insert(), st_lookup() and st_delete() to
socklist.
allocating socklist is deferred until it is really needed.
* win32/win32.c (exit_handler): delete socklist only if it is
initialized.
* win32/win32.c (rb_w32_sysinit, StartSockets): refactoring: move
initialization of select_mutex to StartSockets().
* win32/win32.c (exit_handler): refactoring: delete select_mutex only
if winsock is used.
Thu Oct 20 22:38:53 2011 Martin Bosslet <[email protected]>
* ext/openssl/ossl_pkcs5.c: add note on timing attacks and general
documentation.
Thu Oct 20 21:19:15 2011 Naohisa Goto <[email protected]>
* vm_eval.c (check_funcall): set array elements one-by-one to fix
compile error with Fujitsu C Compiler 5.6 on Solaris 10 on Sparc.
[Bug #5464] [ruby-dev:44632]
Thu Oct 20 13:09:35 2011 Nobuyoshi Nakada <[email protected]>
* include/ruby/defines.h (flush_register_windows): use software
trap on Debian Sparc 32-bit userspace. [Bug #5244]
Thu Oct 20 12:28:22 2011 Martin Bosslet <[email protected]>
* test/openssl/test_pkcs5.rb: add RFC 6070 tests for PBKDF2 with
HMAC-SHA1
Thu Oct 20 11:42:23 2011 Nobuyoshi Nakada <[email protected]>
* util.c (mmprepare): fix for fragmental size.
* util.c (mmswap_, mmrot3_): portability improvement.
Thu Oct 20 05:58:02 2011 Eric Hodel <[email protected]>
* ext/openssl/ossl_ns_spki.c (Init_ossl_ns_spki): Stub documentation
for Netscape SPKI.
Thu Oct 20 05:13:39 2011 Ryan Davis <[email protected]>
* lib/minitest/*: Imported minitest 2.6.2 (r6712)
* test/minitest/*: ditto
Thu Oct 20 06:55:32 2011 Martin Bosslet <[email protected]>
* lib/openssl/buffering.rb: Force multi-byte strings to be treated as
binary data.
* test/openssl/test_ssl.rb: Add test for it.
Thanks to Niklas Baumstark for reporting the issue!
[Ruby 1.9 - Bug #5233] [ruby-core:39120]
Wed Oct 19 17:06:54 2011 Yukihiro Matsumoto <[email protected]>
* version.h (RUBY_VERSION): finally declare start of 2.0 work!
Wed Oct 19 11:48:44 2011 Eric Hodel <[email protected]>
* error.c (Init_Exception): Document $! and $@. Provide
recommendations for creating exceptions for a library.
Wed Oct 19 11:25:46 2011 Eric Hodel <[email protected]>
* error.c (Init_Exception): Add hierarchy of Exception subclasses.
Based on patch by Sylvain Daubert. [Ruby 1.9 - Bug #5438]
Wed Oct 19 11:04:47 2011 Eric Hodel <[email protected]>
* enum.c: Reformat block args to a single standard, { |args| ... }.
Patch by b t. [Ruby 1.9 - Bug #5393]
Wed Oct 19 12:11:26 2011 Martin Bosslet <[email protected]>
* ext/openssl/ossl_ssl.c: Remove set, but unused variables.
ext/openssl/ossl_pkey.c: ditto
* ext/openssl/ossl_pkey_dh.c: Make functions passed to
rb_thread_blocking_region return VALUE instead of void.
ext/openssl/ossl_pkey_dsa.c: ditto
ext/openssl/ossl_pkey_rsa.c: ditto
Tue Oct 18 23:28:53 2011 Nobuyoshi Nakada <[email protected]>
* hash.c (identhash): share with type_numhash.
* st.c (st_hashtype_num): rename from type_numhash.
Tue Oct 18 23:07:30 2011 Nobuyoshi Nakada <[email protected]>
* vm_core.h (ruby_current_thread): probeprofiler has been removed
long ago.
Tue Oct 18 23:05:49 2011 Nobuyoshi Nakada <[email protected]>
* ext/ripper/eventids2.c (ripper_init_eventids2): separate
initializations of IDs and objects.
* ext/ripper/tools/generate.rb (generate_eventids1): ditto.
* parse.y (Init_ripper, InitVM_ripper): fix inversed roles.
Sun Oct 16 19:46:16 2011 Nobuyoshi Nakada <[email protected]>
* ext/bigdecimal/bigdecimal.gemspec (files): fixed typo, and
removed nonexistent file.
* ext/bigdecimal/bigdecimal.gemspec (homepage): added.
* ext/io/console/io-console.gemspec (homepage): ditto.
Fri Oct 14 12:13:57 2011 Nobuyoshi Nakada <[email protected]>
* ext/pty/pty.c (pty_check): should return nil until the child
terminates or stops. [ruby-dev:44600] [Bug #2642]
Fri Oct 14 11:19:37 2011 Nobuyoshi Nakada <[email protected]>
* include/ruby/intern.h (rb_ary_rotate): export.
Fri Oct 14 05:58:05 2011 Nobuyoshi Nakada <[email protected]>
* atomic.h (ATOMIC_INC, ATOMIC_DEC): return old values.
[ruby-dev:44596] [Bug #5439]
* signal.c (ruby_atomic_exchange): no needs to define on the
platforms where atomic.h is available.
Thu Oct 13 19:29:40 2011 Naohisa Goto <[email protected]>
* atomic.h (ATOMIC_*): use atomic_ops(3C) when SunStudio on Solaris.
[ruby-dev:44596] [Bug #5439]
Thu Oct 13 18:13:04 2011 KOSAKI Motohiro <[email protected]>
* atomic.h(ATOMIC_SET): add cast to void to prevent misuse.
[ruby-dev:44596] [Bug #5439]
Thu Oct 13 18:04:27 2011 Nobuyoshi Nakada <[email protected]>
* gc.c (rb_gc_finalize_deferred, rb_objspace_call_finalizer):
should use ATOMIC_EXCHANGE() to check the previous value.
[ruby-dev:44596] [Bug #5439]
Wed Oct 12 23:39:58 2011 Hiroshi Nakamura <[email protected]>
* test/openssl/test_ssl.rb: Move duplicated tests for SSL::Session to
test_ssl_session.rb
Tue Oct 11 08:49:40 2011 Eric Hodel <[email protected]>
* array.c (rb_ary_initialize): Improve explanation of Array.new
parameters. Patch by Alvaro Pereyra Rabanal. [Ruby 1.9 - Bug #5425]
* array.c (rb_ary_s_try_convert): Fix typo (try => tries)
* array.c (rb_ary_rindex): Add spacing for block.
* array.c (rb_ary_uniq_bang): Describe block
* array.c (rb_ary_uniq): ditto
Tue Oct 11 07:55:38 2011 Eric Hodel <[email protected]>
* array.c: Add a description to Array, minor cleanups. Patch by
Andrea Singh. [Ruby 1.9 - Bug #5412]
Tue Oct 11 06:09:52 2011 Eric Hodel <[email protected]>
* lib/pp.rb: Move PP documentation to top of class PP. Patch by
Sylvain Daubert. [Ruby 1.9 - Bug #5430]
Tue Oct 11 06:06:29 2011 Eric Hodel <[email protected]>
* ext/coverage/coverage.c (Init_coverage): Change list format and
describe Coverage.result output. Patch by Sylvain Daubert.
[Ruby 1.9 - Bug #5428]
Tue Oct 11 05:53:23 2011 Eric Hodel <[email protected]>
* object.c (Init_Object): Add reference to BasicObject, brief
explanation of constant lookup. Based on patch by Alvaro Pereyra
Rabanal.
[Ruby 1.9 - Bug #5426]
Sun Oct 9 11:06:52 2011 Kazuki Tsujimoto <[email protected]>
* test/psych/test_yamldbm.rb: don't run test if the system
don't support yaml/dbm.
* test/syck/test_yamldbm.rb: ditto.
Sat Oct 8 08:54:56 2011 Eric Hodel <[email protected]>
* enum.c (group_by): Improve group_by description. Patch by b t.
[#5411]
Sat Oct 8 03:17:51 2011 Eric Hodel <[email protected]>
* lib/shell.rb: Document some methods of Shell. Patch by Carol
Nichols. [Ruby 1.9 - Bug #5417]
Fri Oct 7 17:54:28 2011 Nobuyoshi Nakada <[email protected]>
* lib/test/unit/assertions.rb (assert_send, assert_not_send):
parenthesize non-empty arguments.
Fri Oct 7 06:35:50 2011 Eric Hodel <[email protected]>
* array.c: Use + for arguments described in documentation to allow
rdoc -C2 to work better. Remove <code> from method references to
allow cross-references in HTML documentation.
Thu Oct 6 18:46:23 2011 Kazuhiro NISHIYAMA <[email protected]>
* vm_eval.c (make_no_method_exception): fix typo.
* vm_insnhelper.c, vm_insnhelper.h: ditto.
Thu Oct 6 16:29:30 2011 Nobuyoshi Nakada <[email protected]>
* vm_eval.c (make_no_method_execption): extract from
raise_method_missing().
* vm_eval.c (send_internal): remove inadvertent symbol creation
from public_send. based on a patch by Jeremy Evans <code AT
jeremyevans.net> in [ruby-core:38576]. [Feature #5112]
* vm_insnhelper.c (vm_call_method): remove inadvertent symbol
creation from send and __send__, too.
Thu Oct 6 14:59:11 2011 Eric Hodel <[email protected]>
* lib/time.rb: Clean up Time documentation. Patch by Jake Goulding.
[Ruby 1.9 - Bug #5416]
Thu Oct 6 10:00:54 2011 Eric Hodel <[email protected]>
* enum.c (group_by): Improve documentation based on patch by b t.
Thu Oct 6 09:56:30 2011 Eric Hodel <[email protected]>
* enum.c: Clean up wording in Enumerable documentation. Patch by b t.
[Ruby 1.9 - Bug #5411]
Thu Oct 6 09:17:18 2011 Eric Hodel <[email protected]>
* time.c (Init_Time): Remove editorial comments from Time
documentation, fix link.
Thu Oct 6 09:14:20 2011 Eric Hodel <[email protected]>
* time.c (Init_Time): Improve Time documentation. Patch by Shane
Emmons. [Ruby 1.9 - Bug #5404]
* lib/time.rb: Improve time.rb documentation including Time.strptime.
Patch by Shane Emmons. [Ruby 1.9 - Bug #5402]
Thu Oct 6 08:54:05 2011 Eric Hodel <[email protected]>
* random.c: Improve documentation of Random. Patch by Gregory
Parkhurst. [Ruby 1.9 - Bug #5410]
Thu Oct 6 01:44:51 2011 CHIKANAGA Tomoyuki <[email protected]>
* cont.c (cont_mark): mark original Thread object from saved_thread.
[ruby-dev:44571] [Bug #5386]
Wed Oct 5 16:33:04 2011 NARUSE, Yui <[email protected]>
* vm_insnhelper.c (vm_call_cfunc): remove useless hack.
Wed Oct 5 05:56:39 2011 Eric Hodel <[email protected]>
* hash.c (Init_Hash): Improve Hash documentation. Patch by Alvaro
Pereyra Rabanal. [Ruby 1.9 - Bug #5405]
Wed Oct 5 05:47:59 2011 Eric Hodel <[email protected]>
* random.c (Init_Random): Add a top-level comment for Random. Patch
by Brett Bim. [Ruby 1.9 - Bug #5403]
Wed Oct 5 02:50:27 2011 Aaron Patterson <[email protected]>
* ext/psych/lib/psych/syntax_error.rb: Add file, line, offset, and
message attributes during parse failure.
* ext/psych/parser.c: Update parser to raise exception with correct
values.
* test/psych/test_exception.rb: corresponding tests.
Wed Oct 5 01:52:16 2011 Aaron Patterson <[email protected]>
* ext/psych/parser.c (parse): Use context_mark for indicating error
line and column.
Wed Oct 5 01:22:08 2011 Aaron Patterson <[email protected]>
* ext/psych/lib/psych/scalar_scanner.rb: use normal begin / rescue
since postfix rescue cannot receive the exception class. Thanks
nagachika!
Tue Oct 4 21:10:08 2011 Nobuyoshi Nakada <[email protected]>
* class.c (class_alloc): allocate extra memory after containing
object setup to get rid of rare-but-potential memory leak.
* gc.c (gc_mark_children): skip marking extended members if ptr is
NULL.
Tue Oct 4 16:17:50 2011 NARUSE, Yui <[email protected]>
* lib/time.rb (Time.strptime): use Time.at if d[:seconds] is set.
Reported by Christopher Eberz. [ruby-core:39903] Bug #5399
Tue Oct 4 11:44:10 2011 NARUSE, Yui <[email protected]>
* gc.c (rb_gc_set_params): ruby_verbose can be Qnil, so use RTEST.
Tue Oct 4 08:33:41 2011 Eric Hodel <[email protected]>
* ext/etc/etc.c: Document Etc, Etc.sysconfdir, Etc.systmpdir. Patch
by mathew murphy. [Ruby 1.9 - Bug #5396]
Tue Oct 4 08:21:51 2011 Eric Hodel <[email protected]>
* lib/shellwords.rb: Update toplevel comment with an example. Patch
by Samnang Chhun. [Ruby 1.9 - Bug #5388]
Tue Oct 4 08:15:50 2011 Eric Hodel <[email protected]>
* proc.c (proc_call): Update documentation to match argument handling
of proc/Proc.new/lambda/->()
Tue Oct 4 07:59:16 2011 Eric Hodel <[email protected]>
* proc.c (proc_call): Fix documentation of Proc#call vs Proc#===.
[Ruby 1.9 - Bug #5349]
Tue Oct 4 07:43:18 2011 Eric Hodel <[email protected]>
* array.c (rb_ary_initialize): Make Array.new description match
call-seq. Patch by Henry Maddocks. [Ruby 1.9 - Bug #5344]
Tue Oct 4 07:35:23 2011 Eric Hodel <[email protected]>
* array.c (rb_ary_initialize): Add output for examples. Patch by
Jonathan Mukai. [Ruby 1.9 - Bug #5216]
Tue Oct 4 07:30:50 2011 Eric Hodel <[email protected]>
* array.c (rb_ary_s_create): Add example results for Array::[]. Patch
by Jonathan Mukai. [Ruby 1.9 - Bug #5215]
Tue Oct 4 07:15:17 2011 Eric Hodel <[email protected]>
* lib/rubygems: Update to RubyGems 1.8.11. Move Deprecate into the
Gem namespace.
Tue Oct 4 06:43:47 2011 Aaron Patterson <[email protected]>
* ext/psych/lib/psych.rb: update psych version.
* ext/psych/psych.gemspec: generate new gemspec for new version.
Tue Oct 4 06:29:55 2011 Aaron Patterson <[email protected]>
* ext/psych/lib/psych.rb: calling `yaml` rather than `to_yaml`.
* ext/psych/lib/psych/nodes/node.rb: Rename `to_yaml` to just `yaml`
in order to avoid YAML::ENGINE switching from replacing this method.
* test/psych/helper.rb: fix tests for method name change.
* test/psych/test_document.rb: ditto
* test/psych/visitors/test_emitter.rb: ditto
Tue Oct 4 06:20:19 2011 Aaron Patterson <[email protected]>
* ext/psych/lib/psych/scalar_scanner.rb: Match values against the
floating point spec defined in YAML to avoid erroneous parses.
* test/psych/test_numeric.rb: corresponding test.
Tue Oct 4 05:59:24 2011 Aaron Patterson <[email protected]>
* ext/psych/lib/psych/visitors/to_ruby.rb: ToRuby visitor can be
constructed with a ScalarScanner.
* ext/psych/lib/psych/visitors/yaml_tree.rb: ScalarScanner can be
passed to the YAMLTree visitor.
Tue Oct 4 05:47:23 2011 Aaron Patterson <[email protected]>
* ext/psych/lib/psych/visitors/to_ruby.rb: Define Regexp::NOENCODING
for 1.9.2 backwards compatibility.
* ext/psych/lib/psych/visitors/yaml_tree.rb: Fix Date string
generation for 1.9.2 backwards compatibility.
Mon Oct 3 23:56:39 2011 CHIKANAGA Tomoyuki <[email protected]>
* gc.c (rb_gc_set_params): output GC parameter change messages only