www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - core.sys.posix.grp missing

reply Chick Corea <chick.zcorea gmail.com> writes:
Using dmd v2.0.47, the following code:

        import core.sys.posix.pwd;
        import core.sys.posix.grp;

yields the following error message:

        Error: module grp is in file 'core/sys/posix/grp.d' which cannot be read

Checking the src/druntime/import directories, I find that a POSIX pwd module
is present:

        src/druntime/import/core/sys/posix/pwd.d
        src/druntime/import/core/sys/posix/pwd.di

But a POSIX grp module is absent.  Neither is there any code related to POSIX
grp functions in any of the modules.  When I found the pwd.d file, I
forgot to check
for a grp.d file, guessing that if one was present then so was the other.

So - am I missing something ?  Or do I need to write one myself ?

CHICKZ
Jun 21 2010
parent "Lars T. Kyllingstad" <public kyllingen.NOSPAMnet> writes:
On Mon, 21 Jun 2010 14:07:19 -0400, Chick Corea wrote:

 Using dmd v2.0.47, the following code:
 
         import core.sys.posix.pwd;
         import core.sys.posix.grp;
 
 yields the following error message:
 
         Error: module grp is in file 'core/sys/posix/grp.d' which cannot
         be read
 
 Checking the src/druntime/import directories, I find that a POSIX pwd
 module is present:
 
         src/druntime/import/core/sys/posix/pwd.d
         src/druntime/import/core/sys/posix/pwd.di
 
 But a POSIX grp module is absent.  Neither is there any code related to
 POSIX grp functions in any of the modules.  When I found the pwd.d file,
 I forgot to check
 for a grp.d file, guessing that if one was present then so was the
 other.
 
 So - am I missing something ?  Or do I need to write one myself ?
 
 CHICKZ

Unfortunately, there are still some POSIX headers missing from druntime. It would be great if you file a bug on this, so it isn't forgotten: http://d.puremagic.com/issues/ If you end up writing it yourself, I'm sure Sean will be happy if you attach it to the bug report. :) -Lars
Jun 21 2010