Why no setuid in linux.d?
Lars T. Kyllingstad
public at kyllingen.NOSPAMnet
Fri Nov 19 04:43:10 PST 2010
On Fri, 19 Nov 2010 13:02:42 +0100, 0ffh wrote:
> 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.
Ah, then you can't use core.*. Sorry for the confusion.
-Lars
More information about the Digitalmars-d-learn
mailing list