Why no setuid in linux.d?

0ffh frank at youknow.what.todo.interNETz
Fri Nov 19 04:02:42 PST 2010

Lars T. Kyllingstad wrote:
> On Fri, 19 Nov 2010 12:33:02 +0100, 0ffh wrote:
>> Hi,
>> [...]
>> I there a specific reason that setuid (and the related commands setgid,
>> getuid, geteuid, getgid and getegid) is/are missing in the standard
>> version of linux.d?
> All the POSIX headers are in the core.sys.posix package.  In your case, 
> what you need is to import core.sys.posix.unistd.
> -Lars

Thanks Lars, but "import core.sys.posix.unistd;" gives me
"Error: module posix cannot read file 'core/sys/posix.d'".

I'm on D1 btw with no intention at all to switch to D2.

Regards, Frank

More information about the Digitalmars-d-learn mailing list