guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Support open-process and friends on MS-Windows


From: Ludovic Courtès
Subject: Re: Support open-process and friends on MS-Windows
Date: Mon, 11 Jul 2016 10:09:47 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Eli Zaretskii <address@hidden> skribis:

>> From: address@hidden (Ludovic Courtès)
>> Cc: Eli Zaretskii <address@hidden>,  address@hidden,  address@hidden
>> Date: Tue, 05 Jul 2016 10:04:23 +0200
>> 
>> Mark H Weaver <address@hidden> skribis:
>> 
>> > Eli Zaretskii <address@hidden> writes:
>> >
>> >>> From: Mark H Weaver <address@hidden>
>> >>> Cc: address@hidden (Ludovic Courtès),  address@hidden,
>> >>>   address@hidden
>> >>> Date: Sat, 02 Jul 2016 19:02:08 -0400
>> >>> 
>> >>> Eli Zaretskii <address@hidden> writes:
>> >>> > +# define getuid()              (500) /* Local Administrator */
>> >>> > +# define getgid()              (513) /* None */
>> >>> > +# define setuid(u)             (0)
>> >>> > +# define setgid(g)             (0)
>> 
>> What about leaving ‘setuid’ and ‘setgid’ undefined, as was the case
>> until now?
>
> I fail to see how this would be better.  It would mean any program
> that calls these will not work on MS-Windows.  Why should we expect
> developers of those Guile programs to be aware of the issue and solve
> it on the Guile Scheme level?  And what solution will they possibly be
> able to come up with, except not to call these APIs on Windows?

Our strategy so far has been to (1) either solve the portability issue
via Gnulib, or (2) do not provide the feature that is unavailable (the
#ifdef HAVE_ in posix.c et al.)

It means that application writers have to be aware of the portability
problems, even if it’s all Scheme.  That sounds reasonable to me.

WDYT?

Thanks,
Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]