[PATCH] fcntl.h: add hack to kill fcntl64 on x86_64
Roman I Khimov
roman at khimov.ru
Sun Apr 25 18:59:15 UTC 2010
В сообщении от Воскресенье 25 апреля 2010 21:34:14 автор Austin Foxley
написал:
> On 04/25/2010 06:35 AM, roman at khimov.ru wrote:
> > In previous uclibc versions we've had fcntl64 (nonexisting on x86_64) as
> > an alias to fcntl. Recent NPTL changes removed that alias, although
> > fcntl64 is still present in headers when using _GNU_SOURCE or
> > _FILE_OFFSET_BITS=64.
> >
> > It confuses applications and leads to linkage failures.
> >
> > The patch proposed tries to deal with it in headers (thus not
> > reintroducing fcntl64 alias), although there might be some better way.
>
> What about other 64bit archs?
At quick glance most of them have no fcntl64, although looks like sh64 does.
> And you're right, we probably want a different solution to this.
Sure, this is mostly to raise the issue and solve it at least internally. It's
been a long time since I've touched uclibc code, so I'm very unsure about how
to fix it properly. Most probably still in headers (re-adding fcntl64 alias
seems ugly to me) though.
--
http://roman.khimov.ru
mailto: roman at khimov.ru
gpg --keyserver hkp://subkeys.pgp.net --recv-keys 0xE5E055C3
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.busybox.net/pipermail/uclibc/attachments/20100425/713b7b78/attachment.pgp>
More information about the uClibc
mailing list