similar to: Scattered I/O

Displaying 20 results from an estimated 6000 matches similar to: "Scattered I/O"

2007 Oct 09
5
Playing with ReadFileScatter()
Hi all, Looking at the IO.readlines source in io.c, it looks to me like they grab 8k chunks, split on the input record separator, and buffer accordingly. Since it looks like ReadFileScatter() does some of that work automatically (in page file sized chunks), I thought I''d give it a try. Here''s what I''ve got, but it doesn''t work. I have an incorrect parameter
2008 Jun 04
3
Ruby 1.8.7
Hi all, Has anyone else been able to build Ruby 1.8.7 from source on Windows? I get this when I run configure: C:\>win32\configure.bat find: =: No such file or directory Creating Makefile Creating Makefile(6) : fatal error C1085: Cannot write compiler generated file: '''': Invalid argument NMAKE : fatal error U1077: ''cl'' : return code ''0x1''
2007 Nov 13
1
win32-api idea - wide method first based on $KCODE
All, Currently, the Win32::API.new method will search for the function name, then the ''A'' (ANSI) name, and finally the ''W'' (Wide) name. The code looks something like this: fProc = GetProcAddress(hLibrary, TEXT(RSTRING(v_proc)->ptr)); if(!fProc){ VALUE v_ascii = rb_str_new3(v_proc); v_ascii = rb_str_cat(v_ascii, "A", 1); fProc =
2008 Jan 16
2
Problem with win32-open3 and net-ping
Hi all, I''m seeing strange behavior with net-ping on Windows, which uses win32-open3 (Open3.popen3) behind the scenes. Download (or checkout) net-ping and run this: ruby -Ilib test\tc_pingexternal.rb It looks like the test suite is running twice. What''s happening? Thanks, Dan This communication is the property of Qwest and may contain confidential or privileged
2008 Oct 02
1
Problems using a hand built OpenSSL on Windows
Hi everyone, Windows XP Pro OpenSSL 0.9.8i Ruby 1.8.6-p114 Ok, I''m going a bit OT here, but I want to see if anyone knows the answer. I built Ruby with VC++ 8 (cl 14). I managed to build and install OpenSSL. I also managed to build the Ruby OpenSSL extension, after 1 minor tweak to x509.h to eliminate a macro conflict: --- x509.orig Thu Oct 02 11:30:10 2008 +++ x509.h Thu Oct
2006 Oct 13
2
win32-mmap - trying to marshal self
Hi all, I realized the current implmentation has a problem - you can only get the last value set? I realized, after looking at the old C code, that it actually stores values in a hash and marshals the hash, not the values themselves. That seemed clunky to me, though. I thought it would be more interesting if we just marshalled the entire mmap object and passed that back and forth.
2006 Aug 21
0
[ win32utils-Bugs-5479 ] Incorrect SetLastErrordeclarations
Fixed in CVS. > -----Original Message----- > From: win32utils-devel-bounces at rubyforge.org > [mailto:win32utils-devel-bounces at rubyforge.org] On Behalf Of > noreply at rubyforge.org > Sent: Monday, August 21, 2006 5:44 AM > To: noreply at rubyforge.org > Subject: [Win32utils-devel] [ win32utils-Bugs-5479 ] > Incorrect SetLastErrordeclarations > > > Bugs
2006 May 18
0
Need a little help withthe pureRubywin32-eventlog
Note to anyone paying attention - this was solved off list. Apparently I just goofed the patch. Dan > -----Original Message----- > From: win32utils-devel-bounces at rubyforge.org > [mailto:win32utils-devel-bounces at rubyforge.org] On Behalf Of > Daniel Berger > Sent: Wednesday, May 17, 2006 10:24 PM > To: Development and ideas for win32utils projects > Subject: Re:
2007 Sep 25
2
Bug in win32-api with void prototypes?
Hi all, It seems that a void prototype requires an explicit argument in our version of win32/api: C:\>irb irb(main):001:0> require ''win32/api'' => true irb(main):002:0> include Win32 => Object irb(main):003:0> require ''Win32API'' => true # Our version irb(main):004:0> GetLastErrorA = API.new(''GetLastError'',
2006 May 17
0
Need a little help with the pure Rubywin32-eventlog
> -----Original Message----- > From: win32utils-devel-bounces at rubyforge.org > [mailto:win32utils-devel-bounces at rubyforge.org] On Behalf Of > Heesob Park > Sent: Tuesday, May 16, 2006 9:51 PM > To: Development and ideas for win32utils projects > Subject: Re: [Win32utils-devel] Need a little help with the > pure Rubywin32-eventlog > > > Hi, > >
2006 May 31
0
Looking for docs on some functions andconstants
> -----Original Message----- > From: win32utils-devel-bounces at rubyforge.org > [mailto:win32utils-devel-bounces at rubyforge.org] On Behalf Of > John-Mason P. Shackelford > Sent: Wednesday, May 31, 2006 9:12 AM > To: Development and ideas for win32utils projects > Subject: Re: [Win32utils-devel] Looking for docs on some > functions andconstants > > > Daniel,
2008 Nov 10
4
PathFindExtension and wide strings
Hi, What''s happening here? require ''windows/path'' require ''windows/unicode'' include Windows::Path include Windows::Unicode file_a = ''bar.txt'' file_w = multi_to_wide(file_a) p PathFindExtensionA(file_a) # ''.txt'' => OK p PathFindExtensionW(file_w) # ''.'' => WRONG Is Ruby chopping the
2008 Aug 18
0
Playing with NtQueryInformationFile
> -----Original Message----- > From: dlibrik at wolfram.com [mailto:dlibrik at wolfram.com] > Sent: Monday, August 18, 2008 12:26 AM > To: Berger, Daniel > Subject: Re: [Win32utils-devel] Playing with NtQueryInformationFile > > Hello Daniel, > > I apologize for writing to you out of nowhere, but you posted > on the Ruby Win32utils-devel list a while back and I
2008 Jun 25
3
[OT] Byacc error
Hi all, Yeah, I''m going OT here... I''m not entirely sure I understand how Ruby builds parse.y on Windows, but it works. However, when I changed all instances of "Ruby" to "Sapphire", and renamed all the source files, I suddenly started getting this error: byacc ./parse.y ''byacc'' is not recognized as an internal or external command,
2007 May 04
1
Trying to get a good example for win32-mutex
Hi all, I''ve been going through the various IPC modules for Win32Utils and converting them to pure Ruby. I''m almost done with win32-mutex, but I can''t get the example to work. I keep getting this error: C:/Documents and Settings/djberge/workspace/win32-mutex/examples/mutex_test.rb:41: undefined method `+'' for nil:NilClass (NoMethodError) from
2008 Dec 01
2
Code formatting with VS 2008?
Hi everyone, I see that Visual Studio 2008 Pro has the ability to auto-format code. Does anyone know if there''s a way to auto-format pre-ansi C code to ANSI C? I couldn''t find anything, but there''s so many options in VS I wasn''t sure. Regards, Dan This communication is the property of Qwest and may contain confidential or privileged information.
2004 Mar 01
0
RE: win32etc test failure
Excellent! Like I said, I really need to do some code cleanup. I''ll also be adding the config_group and config_user methods :) Dan -----Original Message----- From: Date, Shashank [Non-Employee] [mailto:Shashank.Date@mail.sprint.com] Sent: Monday, March 01, 2004 10:19 AM To: Berger, Daniel Subject: RE: [Win32utils-devel] RE: win32etc test failure That worked ! Now everything is
2008 Jan 23
6
JRuby and callbacks?
Hi all, Any Java/JRuby folks on the list? I''d like to see if we can implement api.c for JRuby using JNA and see how it handles the callbacks. I''m not a Java guy, nor do I know JNA, but I''ll take a stab at it if no one else on the list does. Here are a couple of useful links: http://www.infoq.com/news/2007/09/jna-jruby https://jna.dev.java.net/ Regards, Dan This
2008 Apr 29
1
ZwXX functions
Hi all, I noticed that some of the Zw functions would be very handy to use. While they''re exported by NTDLL, it seems they''re part of the Windows Driver Kit, and those headers don''t ship with Visual C++ by default. Or do they? I don''t have them with Visual C++ 8 anyway. What I''m mainly after is the ZwQueryInformationFile for use with File::Stat, so I
2004 Mar 01
0
RE: win32etc test failure
For delete_user, try this patch: etc.c, line 639: - lpHost = (LPCWSTR)STR2CSTR(rbHost); +lpHost = AllocWideLString(rbHost); Lemme know how it goes. Dan -----Original Message----- From: win32utils-devel-bounces@rubyforge.org [mailto:win32utils-devel-bounces@rubyforge.org] On Behalf Of win32utils-devel@rubyforge.org Sent: Monday, March 01, 2004 10:02 AM To: Date, Shashank [Non-Employee] Cc: