Eli Zaretskii <[email protected]> skribis:

>> From: [email protected] (Ludovic Courtès)
>> Cc: Eli Zaretskii <[email protected]>,  [email protected],  [email protected]
>> Date: Tue, 05 Jul 2016 10:04:23 +0200
>> 
>> Mark H Weaver <[email protected]> skribis:
>> 
>> > Eli Zaretskii <[email protected]> writes:
>> >
>> >>> From: Mark H Weaver <[email protected]>
>> >>> Cc: [email protected] (Ludovic Courtès),  [email protected],
>> >>>   [email protected]
>> >>> Date: Sat, 02 Jul 2016 19:02:08 -0400
>> >>> 
>> >>> Eli Zaretskii <[email protected]> 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