Displaying 4 results from an estimated 4 matches for "rb_io_check_writable".
2004 Nov 16
0
Re: Win32, file descriptors and rb_io_check_writable()
Hi,
>
>Thank you very much Park. There is one curious difference I noticed
>with the write operations. It seems that there is a line ending issue
>between a file descriptor opened with File.open vs File.nopen. You
>can see this easily enough by doing something like this:
>
>fh1 = File.open("test1.txt","w+")
>fh1.print "hello\nworld\n"
2004 Nov 16
0
Re: Win32, file descriptors and rb_io_check_writable()
Hi Park,
> That is due to detault translation mode.
>
> Insert
> _setmode(NUM2INT(args[0]),_O_TEXT);
> after
> RFILE(self)->fptr->mode = rb_io_mode_flags("w+");
> RFILE(self)->fptr->f = rb_fdopen(NUM2INT(args[0]),"w+");
> in case of TEXT MODE.
Ah, thanks.
On a side note, any clue as to why Nobu''s suggestion
2004 Nov 11
3
File.nopen alpha
Hi all,
I''ve committed an alpha version of File.nopen (native open) to
win32-file. This is a wrapper for CreateFile(). A quick synopsis:
* File.nopen(file,access_mode,share_mode,creation_mode,flags)
*
* A ''native'' open method. This uses CreateFile() behind the scenes
instead of
* the _open() function. This allows much greater flexibility when it
comes
* to
2013 May 16
1
support remotely mounting disk images in p2v
Figure I'd share the latest revision to p2v I had regarding $subject.
The patch now applies against HEAD and compiles fine. I was able to update
the package on the client and run virt-p2v, though have yet to do a full
end-to-end verification
Most likely a little more work is needed to tidy up some edge cases and fully
flush things out, but the majority of the work should be in place.
On the