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

Bug#555303: kfreebsd-8: problems with *at syscalls



On Fri, Nov 13, 2009 at 06:09:32PM +0100, Petr Salinger wrote:
>> I tracked down the problem to the AT_* #define that are different
>> between GNU/Linux and GNU/Hurd on one side and GNU/kFreeBSD on the other
>> side.
>>
>> I have committed a patch to glibc-bsd to move those definitions to
>> bits/fcntl.h. The same has to be done on upstream glibc, which impact
>> quite a lot of files. Before actually doing it, I do wonder if we
>> shouldn't instead translate the values in our *at functions, which
>> should also solve the problem of already built binaries using the old
>> value.
>>
>> What do you think?
>
> 1) the AT constants might be put into a different new file,
>    i.e. <bits/atfile.h> or <bits/atfcntl.h>. This way it would suffice
>    just only one new generic file.
>

Good idea, I am going to implement this solution and push it upstream.
It has the advantage that only the main glibc has to be changed, no need
to also do the changes (in sync) with ports.

-- 
Aurelien Jarno	                        GPG: 1024D/F1BCDB73
aurelien@aurel32.net                 http://www.aurel32.net



Reply to: