Parent Directory
|
Revision Log
| Links to HEAD: | (view) (annotate) |
| Sticky Revision: |
* eval.c (rb_thread_atfork): When a ruby process forks, its random seed shall be reinitialized to prevent CVE-2003-0900 situation. This bug affects for 1.8 and earlier series, but not for 1.9. fixed [ruby-core:34944]. * io.c (pipe_open): ditto. * random.c (rb_reset_random_seed): ditto. * intern.h (rb_reset_random_seed): ditto.
* io.c (rb_f_syscall): should check argument string taint before invoking system calls.
* io.c, eval.c, process.c: remove all condition of r26371. now, all platform use the same way. [Bug #3278][ruby-core:30167]
* io.c (appendline): should terminate. http://golf.shinh.org/p.rb?DECimal+number+to+BINary#Ruby
* io.c, eval.c, process.c: add linux to r26371's condition. patched by Motohiro KOSAKI [ruby-core:28151]
* io.c (rb_io_modenum_mode): return "r" for O_RDONLY|O_APPEND. [ruby-dev:40379]
* io.c, eval.c, process.c: add __APPLE__ to r26371's condition. patched by Wataru Kimura [ruby-dev:40145]
* eval.c (thread_timer, rb_thread_stop_timer): check the timing of stopping timer. patch from KOSAKI Motohiro <kosaki.motohiro _AT_ jp.fujitsu.com> * eval.c (rb_thread_start_timer): NetBSD5 seems to be hung when calling pthread_create() from pthread_atfork()'s parent handler. * io.c (pipe_open): workaround for NetBSD5. stop timer thread before fork(), and start it if needed. * process.c (rb_f_fork, rb_f_system): ditto. fixed [ruby-dev:40074]
* io.c (io_fwrite): preserve errno. [ruby-core:27425]
* io.c (rb_io_s_read): close the IO if an exception is raised on seeking. [ruby-core:27429]
* io.c (io_fwrite): adjust stdio file position after direct write on BSDish platforms. [ruby-core:26300]
* *.[chy]: removed trailing spaces.
* io.c (rb_io_fptr_finalize): free fptr to avoid memory leaks. fixed: #2009 [ruby-core:25173] [ruby-dev:39410]
* io.c (rb_io_binmode): check if closed regardless platforms. [ruby-core:25363]
* io.c (rb_sysopen): workaround for MSVCRT's bug. [ruby-core:24838]
* io.c (argf_eof): go to the next file if called after ARGF.close or ARGF.skip. [ruby-core:24561]
* io.c (Init_IO): $FILENAME should correspond to the first element of ARGV initially.
* io.c (rb_io_flush): fsync() after buffer is flushed on win32. backported from trunk. [ruby-core:20043]
rdoc update.
* io.c (rb_io_open), math.c (domain_check), object.c (boot_defclass): constified.
* io.c (argf_close): always call #close method. [ruby-core:23853] * io.c (argf_skip): should close only when current_file is available.
* array.c (ary_resize_capa): Remove an unused function. * array.c, bignum.c, dir.c, enumerator.c, gc.c, io.c, numeric.c, object.c, re.c, string.c, struct.c: Mixing two styles is not a good thing. Stick with the K&R style in 1.8.
* array.c (Array#try_convert): New method backported from 1.9. * hash.c (Hash#try_convert): New method backported from 1.9. * io.c (IO#try_convert): New method backported from 1.9. * re.c (Regexp#try_convert): New method backported from 1.9. * string.c (String#try_convert): New method backported from 1.9.
update rdoc.
add not about IO#pos and IO#readpartial.
* io.c (io_getpartial): fflush after read for updating pos in FILE. not portable, I guess. [ruby-core:21561]
rdoc update.
* dln.c: newer BeOS support. a patch from Pete Goodeve <pete.goodeve at computer.org> in [ruby-core:18712].
* file.c (rb_find_file): reset to real class. * io.c (io_reopen): ditto.
* io.c (rb_open_file, rb_io_s_sysopen): fmode should be unsigned int. fixed [ruby-dev:34979]
* io.c (rscheck), marshal.c (w_nbyte, w_bytes, w_unique), (path2class, path2module): constified. * pack.c (pack_unpack), process.c (rb_syswait): suppress warnings.
* suppress warnings on cygwin, mingw and mswin.
* suppress warnings with -Wwrite-string.
* ext/stringio/stringio.c (strio_each): Return an enumerator if no block is given. (strio_each_byte): Return an enumerator if no block is given, and return self if one is given as the rdoc says. * io.c (rb_io_each_byte): Fix rdoc. IO#each_byte returns self, not nil.
* io.c (rb_io_each_char, argf_each_char, Init_IO):
Add {IO#,ARGF.}{each_char,chars}.
* io.c (Init_IO): Define {IO,ARGF}#{getbyte,readbyte}.
* io.c: (rb_io_lines, rb_io_bytes, Init_IO): Define
IO#{lines,bytes} and ARGF.{lines,bytes}.
* eval.c (search_method, remove_method, error_print, rb_alias) (rb_eval, rb_rescue2, search_required, Init_eval, rb_thread_create), gc.c (rb_source_filename, Init_stack), io.c (rb_io_getline), parse.y (rb_id2name, rb_parser_free): suppress warnings.
* rubyio.h (rb_io_t): renamed from OpenFile. * ruby.h (struct RHash), file.c, gc.c, io.c, ext/dl/dl.c, ext/io/wait/wait.c, ext/pty/pty.c, ext/readline/readline.c, ext/socket/socket.c: ditto. * win32/win32.h: removed workaround for OpenFile.
* enum.c (enum_find, enum_reject): Return an enumerator if no block is given. * io.c (rb_io_each_line, rb_io_each_byte, rb_io_s_foreach, argf_each_line, argf_each_byte): Ditto. * string.c (str_gsub): Ditto.
* io.c (rb_open_file): should check NUL in path. <http://www.rubyist.net/~matz/20080125.html#c01>. * io.c (rb_io_s_popen): ditto. * io.c (rb_io_reopen): ditto. * io.c (next_argv): ditto. * io.c (rb_io_s_foreach): ditto. * io.c (rb_io_s_readlines): ditto. * io.c (rb_io_s_read): ditto.
* io.c (rb_io_mode_flags, rb_io_mode_modenum): Ignore encoding options for forward compatibility.
* io.c (fptr_finalize): clear errno first. [ruby-talk:284492]
* io.c (rb_io_tell, rb_io_seek): check errno too. [ruby-dev:32093]
* error.c (rb_notimplement), io.c (pipe_open): removed definite articles and UNIX manual section from messages. [ruby-dev:30690]
* io.c (pipe_open): refined the message of NotImplementedError. [ruby-dev:30685]
* io.c (pipe_open): raise NotImplementedError for command "-" on platforms where fork(2) is not available. [ruby-dev:30681]
* node.h (struct rb_thread.locals): explicit as struct. [ruby-core:10585] * eval.c, node.h (enum rb_thread_status, struct rb_thread, rb_curr_thread, rb_main_thread): prefixed. [ruby-core:10586] * file.c (chompdirsep): made an unprefixed name static. * io.c (io_fread): ditto.
* io.c (rb_f_syscall): Fix buffer overflow with syscall arguments. [ruby-bugs:PR#8541]
set svn:eol-style
* io.c (ruby_dup): start GC on ENOMEM as well.
Revert r11453
* io.c (ruby_dup): start GC on ENOMEM as well.
* io.c (pipe_open): command name should not contain null bytes. [ruby-dev:29421] * process.c (proc_spawn): ditto. * process.c (proc_spawn_n): ditto. * process.c (rb_f_system): ditto.
* ruby.h: use ifdef (or defined) for macro constants that may or may not be defined to shut up gcc's -Wundef warnings. [ruby-core:08447]
* io.c (io_close): always calls "close" method of the receiver. [ruby-core:6911] [ruby-core:8112]
* io.c (pipe_open): avoid closing uninitialized file descriptors. a patch from <tommy at tmtm.org> [ruby-dev:28600]
avoid useless fcntl in rb_io_set_nonblock.
* rubyio.h (rb_io_set_nonblock): declared. * io.c (rb_io_set_nonblock): new function. (io_getpartial): nonblocking read support. (io_read_nonblock): new method: IO#read_nonblock. (io_write_nonblock): new method: IO#write_nonblock. * ext/socket/socket.c (sock_connect_nonblock): new method: Socket#connect_nonblock. (sock_accept_nonblock): new method: Socket#accept_nonblock. (sock_recvfrom_nonblock): new method: Socket#recvfrom_nonblock. [ruby-core:7917]
update readpartial doc.
note EAGAIN on readpartial document.
doc update. [ruby-talk:186294]
* io.c (argf_forward): should not use frame->argv. [ruby-core:07358]
* io.c (READ_DATA_PENDING, READ_DATA_PENDING_COUNT): defined for DragonFly BSD 1.4.0.
Tue Jan 11 15:00:00 2006 Ville Mattila <mulperi@iki.fi> * io.c (READ_PENDING*): Support solaris 64-bit enviroments. Solaris defines a opaque FILE struct when compiling 64 bit binaries. This means that we dont have access to _ptr etc. members anymore. The solution by Steven Lumos is to define FILE64 that has needed members available. I've modified the origanal patch a bit so that it compiles both with gcc and now free sun studio 11 compiler and both amd64 and sparc. NOTE! We have to 64 bit solaris FILE structure time to time otherwise we'll get breakage. [ruby-core:7106] Fri Jan 6 10:16:20 2006 Steven Lumos <steven@lumos.us> * io.c (READ_DATA_PENDING): defined for 64bit Solaris on SPARC. [ruby-core:7057] (READ_DATA_PENDING_COUNT): ditto. (READ_DATA_PENDING_PTR): ditto.
* io.c (rb_f_backquote): fix a GC problem on IA64 with gcc 4.0.3 20051216 (prerelease) -O3.
precedes registering global VALUE variables before initializing it.
* ext/digest/digest.c (rb_digest_base_s_digest): add volatile to protect temporary context object. [ruby-dev:27979] * ext/iconv/iconv.c (Init_iconv): rb_gc_register_address() should be called before actual variable initialization. [ruby-dev:27986]
* configure.in, io.c: use sys/syscall.h if syscall.h is not available. [ruby-core:06247]
* io.c, pack.c, ext/syck/rubyext.c, ext/syck/syck.h, missing/isinf.c: get rid of warnings. fixed: [ruby-core:06247]
* io.c (read_buffered_data): check if reached EOF. fixed: [ruby-dev:27334]
* io.c: fixed rdoc. [ruby-Bugs:2523]
* io.c: PIPE_BUF is not defined on BeOS. use _POSIX_PIPE_BUF instead. [ruby-dev:27185]
* io.c (io_close): call rb_io_close() directly if io is a T_FILE object. [ruby-dev:27156]
* file.c (rb_thread_flock): wrap the flock system call by TRAP_BEG/TRAP_END to enable signals. [ruby-dev:27122] * ext/socket/socket.c (bsock_send): wrap the sendto and send system call by TRAP_BEG/TRAP_END to enable signals when writing to a socket which is full. [ruby-dev:27132] * io.c (rb_io_syswrite): wrap the write system call by TRAP_BEG/TRAP_END to enable signals when writing to a pipe which is full. [ruby-dev:27134]
* io.c (io_fwrite): wrap the write system call by TRAP_BEG/TRAP_END to enable signals when writing to a pipe which is full.
* lib/cgi.rb (CGI::Cookie): should handle multiple values for a cookie name. [ruby-talk:156140] * string.c (rb_str_substr): should propagate taintness even for empty strings. [ruby-dev:27121] * string.c (rb_str_aref): should infect result if range argument is tainted. [ruby-dev:27121]
document a blocking behavior of IO#eof?.
* io.c: check HAVE_SYS_IOCTL_H before including the header. [ruby-dev:26610]
* io.c (S_ISREG): need to define S_ISREG before it is used first.
don't use S_ISDIR.
* io.c (wsplit_p): patch for the environment where fcntl(F_GETFL, O_NONBLOCK) is not supported. in that case, set FMODE_WSPLIT without fcntl check. [ruby-dev:26566]
* io.c (rb_io_ctl): update FMODE_WSPLIT_INITIALIZED and FMODE_WSPLIT by F_SETFL.
* io.c (rb_io_inspect): replace sprintf() with "%s" format all over the place by snprintf() to avoid integer overflow. * sample/svr.rb: service can be stopped by ill-behaved client; use tsvr.rb instead.
* rubyio.h (FMODE_WSPLIT, FMODE_WSPLIT_INITIALIZED): new constant. * io.c (wsplit_p): new function. (io_fflush): split writing data by PIPE_BUF if wsplit_p is true in multi-threaded mode. (io_fwrite): ditto.
* io.c (rb_io_eof, remain_size, read_all, io_read, appendline) (swallow, rb_io_each_byte, rb_io_getc): revert previous change. * io.c (rb_io_eof, io_fread, appendline, swallow, rb_io_each_byte) (rb_io_getc, rb_getc): call clearerr before getc to avoid stdio incompatibility.
* io.c (rb_io_eof, remain_size, read_all, io_read, appendline) (swallow, rb_io_each_byte, rb_io_getc): don't rely EOF flag. [ruby-talk:141527]
* exception error messages updated. [ruby-core:04497]
fix some documents.
fix IO#read docment.
* io.c (io_fread): don't warn nonblocking behavior by default.
* io.c (io_fread): warn nonblocking behavior. (io_readpartial): new method IO#readpartial.
* stable version 1.8.2 released. * lib/fileutils.rb (mkdir, mkdir_p): should ensure directory permission. (backportted from HEAD, 1.47) * lib/fileutils.rb (traverse, remove_dir): untaint trasted objects. (backportted from HEAD, 1.46) * io.c: cancel io_reopen() change on Dec. 24th. * dln.c: use <dlfcn.h> for NetBSD. [ruby-dev:25313] * io.c (rb_f_select): [ruby-dev:25312]
* io.c (io_reopen, rb_io_reopen): prohibit to change access mode for special IO ports. [ruby-dev:25225]
* io.c (io_reopen): restore exact mode. fixed: [ruby-core:04003]
* io.c (io_reopen): readable flag was left unset for read-only IO. fixed: [ruby-core:04003]
* io.c (rb_io_mode_modenum): replace O_ACCMODE with O_RDWR. fixed: [ruby-dev:25273]
* io.c (io_reopen): keep duplex pipe in correct mode for exception safeness. fixed: [ruby-dev:25152]
* io.c (io_fwrite): workaround for MSVCRT's bug. fixed: [ruby-core:03982]
* io.c (rb_io_eof): check if closed before clearerr(). fixed: [ruby-dev:25251]
This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.
| ViewVC Help | |
| Powered by ViewVC 1.1.26 |