arc: clone: Simplify CLONE_THREAD detection
[uclibc-ng.git] / libc / stdio / _cs_funcs.c
blobbe416a4501750726322f55bfe4f4d9ff8a048e2b
1 /* Copyright (C) 2004-2005 Manuel Novoa III <mjn3@codepoet.org>
3 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
5 * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
6 */
8 #include "_stdio.h"
10 /**********************************************************************/
12 int attribute_hidden __stdio_seek(FILE *stream, register __offmax_t *pos, int whence)
14 __offmax_t res;
16 #ifdef __UCLIBC_HAS_LFS__
17 res = lseek64(stream->__filedes, *pos, whence);
18 #else
19 res = lseek(stream->__filedes, *pos, whence);
20 #endif
22 return (res >= 0) ? ((*pos = res), 0) : ((int) res);
25 /**********************************************************************/