www.digitalmars.com         C & C++   DMDScript  

D.gnu - chmod and chown in D

reply J3nkl3r <j3nkl3r askme.com> writes:
Hi all
i am trying out gdc and the d lang. Does anyone know how to fix chmod and chown
c has sys/stat.h but i don't understand how i can fix chmod in d

I want to make a chmod program in D

regards
/J3nkl3r
Jun 11 2008
parent reply Lars Ivar Igesund <larsivar igesund.net> writes:
J3nkl3r wrote:

 Hi all
 i am trying out gdc and the d lang. Does anyone know how to fix chmod and
 chown c has sys/stat.h but i don't understand how i can fix chmod in d
 
 I want to make a chmod program in D
 
 regards
 /J3nkl3r

With Tango, you'll find those in tango/stdc/posix/sys/stat.d -- Lars Ivar Igesund blog at http://larsivi.net DSource, #d.tango & #D: larsivi Dancing the Tango
Jun 11 2008
parent =?ISO-8859-1?Q?Anders_F_Bj=F6rklund?= <afb algonet.se> writes:
Lars Ivar Igesund wrote:

 i am trying out gdc and the d lang. Does anyone know how to fix chmod and
 chown c has sys/stat.h but i don't understand how i can fix chmod in d

 I want to make a chmod program in D


 With Tango, you'll find those in
 
 tango/stdc/posix/sys/stat.d

With Phobos, they are in std.c.linux.linux for DMD and in std.c.unix.unix for GDC (including on Linux). --anders
Jun 11 2008