Today I released sys-win32etc. The major change is that you can do lookups against a remote server instead of a local machine. Unfortunately, I have no way to test this - help wanted.
About the only *bad* news is that the memory leaks have gotten worse. I have no idea why. Not to panic, though - it doesn't matter unless you plan on calling these functions in a continuous loop (for whatever odd reason). Still, I'd like to nail them down.
Another issue - Ruby's Etc module doesn't support the 'set' side of the house (setgrent, sethostent, etc). But I really have to wonder how often anyone uses these functions anyway. I have *never* seen them used anywhere, and I suspect most admins would rather perform their functionality manually rather than programatically. That being said, they *could* be supported on Win32 as well.
Umm... (Score:3, Informative)
Another issue - Ruby's Etc module doesn't support the 'set' side of the house (setgrent, sethostent, etc). But I really have to wonder how often anyone uses these functions anyway. I have *never* seen them used anywhere, and I suspect most admins would rather perform their functionality manually rather than programatically. That being said, they *could* be supported on Win32 as well.
I have this nagging feeling that you have misunderstood the "'set' side"... it has nothing to do with setting entries.
Reply to This
Re:Umm... (Score:3, Informative)
Okay, now that I've actually looked at the docs for sethostent and setgrent....they're just like setprotoent which I *do* remember now.
My guess was that they're some holdover from 20 years ago when holding a pointer in the middle of a file was an attempt to gain speed/efficiency while reading the file. Given the size of the files being read from (usually around 10-100k), I cannot fathom what use they are nowadays, or for the last 10 year
Re:Umm... (Score:3, Interesting)
Re:Umm... (Score:2)
Anyway, unless someone can demonstrate some critical piece of code (or *any* code for that matter) that actually uses sethostent() or setgrent(), I am officially declaring them *worthless*.