rubynet-announce Digest, Vol 6, Issue 4

  • Thread starter rubynet-announce-request
  • Start date
R

rubynet-announce-request

Send rubynet-announce mailing list submissions to
(e-mail address removed)

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.rubynet.org/lists/listinfo/rubynet-announce
or, via email, send a message with subject or body 'help' to
(e-mail address removed)

You can reach the person managing the list at
(e-mail address removed)

When replying, please edit your Subject line so it is more specific
than "Re: Contents of rubynet-announce digest..."


Today's Topics:

1. [ANN] Win32Etc 0.0.1 (Berger, Daniel)


----------------------------------------------------------------------

Message: 1
Date: Fri, 15 Aug 2003 14:30:00 -0600
From: "Berger, Daniel" <[email protected]>
Subject: [ruby-announce] [ANN] Win32Etc 0.0.1
To: "'(e-mail address removed)'"
<[email protected]>
Message-ID:
<[email protected]>
Content-Type: text/plain

Hi all,

I'm happy to announce the release of Win32Etc 0.0.1. This module ports the
methods of the Etc module to the Win32 platform.

Synopsis
=======
require "win32etc"

puts "Login: " + Win32Etc.getlogin

p Win32Etc.getpwnam("some_user")
p Win32Etc.getpwuid(2001)

p Win32Etc.getgrgid(501)
p Win32Etc.getgrnam("some_group")

# Note that the structs returned on Win32 contains different members than
*nix does

Win32Etc.passwd{ |pw|
p pw
}

Win32Etc.group{ |g|
p g
}

This release is considered ALPHA.

Known Issues:

Most of the methods contain memory leaks that I haven't been able to pin
down yet. This is only an issue if you use these calls in a loop, in
which case you'll see about a 1k leak per iteration.

There is a warning during the build phase:

"win32etc.c(386) : warning C4142: benign redefinition of type"

I do not know how to resolve this (or if it even needs resolving).

None of the methods currently accept a server name for lookups. For now
all lookups are done against your local machine. See the Future Plans
section for more details.

Some of the error strings from rb_raise seem slightly messed up. Should
be harmless though.

Any and all help on these issues is greatly appreciated. My eventual goal
is convince Matz to merge these into the current Etc code so that the Etc
module is relatively seemless between *nix and Win32 systems.

Regards,

Dan

------------------------------

_______________________________________________
rubynet-announce mailing list
(e-mail address removed)
http://lists.rubynet.org/lists/listinfo/rubynet-announce

End of rubynet-announce Digest, Vol 6, Issue 4
**********************************************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top