svn commit: branches/uClibc-nptl/include
Peter S. Mazinger
ps.m at gmx.net
Mon Aug 21 13:58:18 UTC 2006
On Sun, 20 Aug 2006 sjhill at uclibc.org wrote:
> Author: sjhill
> Date: 2006-08-20 21:32:55 -0700 (Sun, 20 Aug 2006)
> New Revision: 15872
>
> Log:
> More NPTL stuff.
>
>
> Modified:
> branches/uClibc-nptl/include/fcntl.h
>
>
> Changeset:
> Modified: branches/uClibc-nptl/include/fcntl.h
> ===================================================================
> --- branches/uClibc-nptl/include/fcntl.h 2006-08-21 04:31:57 UTC (rev 15871)
> +++ branches/uClibc-nptl/include/fcntl.h 2006-08-21 04:32:55 UTC (rev 15872)
> @@ -70,18 +70,10 @@
>
> This function is a cancellation point and therefore not marked with
> __THROW. */
> -#ifndef __USE_FILE_OFFSET64
> extern int fcntl (int __fd, int __cmd, ...);
> -#else
> -# ifdef __REDIRECT
> -extern int __REDIRECT (fcntl, (int __fd, int __cmd, ...), fcntl64);
> -# else
> -# define fcntl fcntl64
> -# endif
> +#ifdef __UCLIBC_HAS_THREADS_NATIVE__
> +extern int __fcntl_nocancel (int fd, int cmd, ...);
> #endif
> -#ifdef __USE_LARGEFILE64
> -extern int fcntl64 (int __fd, int __cmd, ...);
> -#endif
Unless your fcntl replaces/handles fcntl64 as well (havent checked),
please keep it as it was. For any case please remove __fcntl_nocancel
prototype from the visible header and put it into some internal header
(sysdep-nocancel.h maybe?)
Thanks, Peter
--
Peter S. Mazinger <ps dot m at gmx dot net> ID: 0xA5F059F2
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08 BB6E C389 975E A5F0 59F2
More information about the uClibc
mailing list