[Top][All Lists]

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

Re: openat, failing fchdir

From: Bruce Korb
Subject: Re: openat, failing fchdir
Date: Thu, 23 Dec 2010 09:19:18 -0800
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20101125 SUSE/3.0.11 Thunderbird/3.0.11

On 12/23/10 06:52, Eric Blake wrote:
> Unfortunately, it is not possible to pass fds on cygwin; it is not
> possible to implement SCM_RIGHTS on top of what Windows provides.  Then
> again, cygwin's *at functions don't need replacing, so it's a moot
> point.  The whole exercise here is how to cater to systems that don't
> support native *at correctly.

It is slightly more complicated than that:  The *at gnulib modules
need to not drag in gnulib modules that have an extended interface
requirement.  viz. a call to set_program_name().

As has been pointed out in this thread, there are lots of end-case
issues that need resolution for a perfect implementation.
An "adequate" implementation needs to not seg fault during
an attempt to print an informative message.  That can be handled
by either not necessarily calling error() on an error, or by
changing error() to not require that program_name be set.

When I get back from my Christmas weekend, I propose fiddling the
code the least invasive way possible for libposix and let the
Perfect Implementation come later.  I'd rather to rework than
stall around any more.

reply via email to

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