svn commit: trunk/uClibc/libc/stdio
psm at uclibc.org
psm at uclibc.org
Mon Nov 21 07:09:37 UTC 2005
Author: psm
Date: 2005-11-20 23:09:36 -0800 (Sun, 20 Nov 2005)
New Revision: 12446
Log:
Don't build empty objects, remove unused vars, update copyright
Modified:
trunk/uClibc/libc/stdio/Makefile.in
trunk/uClibc/libc/stdio/fgetpos64.c
trunk/uClibc/libc/stdio/fopen64.c
trunk/uClibc/libc/stdio/freopen64.c
trunk/uClibc/libc/stdio/fseeko64.c
trunk/uClibc/libc/stdio/fsetpos64.c
trunk/uClibc/libc/stdio/ftello64.c
Changeset:
Modified: trunk/uClibc/libc/stdio/Makefile.in
===================================================================
--- trunk/uClibc/libc/stdio/Makefile.in 2005-11-20 23:59:45 UTC (rev 12445)
+++ trunk/uClibc/libc/stdio/Makefile.in 2005-11-21 07:09:36 UTC (rev 12446)
@@ -17,8 +17,9 @@
asprintf.c sprintf.c vasprintf.c vdprintf.c vsnprintf.c \
tmpfile.c tmpnam.c tmpnam_r.c popen.c tempnam.c ctermid.c
-# Note: The *64.o objects are empty when compiled without large file support
+ifeq ($(UCLIBC_HAS_LFS),y)
CSRC += fgetpos64.c fopen64.c freopen64.c fseeko64.c fsetpos64.c ftello64.c
+endif
# getc -> alias for fgetc
# putc -> alias for fputc
@@ -110,9 +111,9 @@
STDIO_DEF := $(patsubst %,-DL_%,$(subst .o,,$(filter-out $(STDIO_MOBJ_NO_MULTI),$(notdir $(STDIO_MOBJ)))))
-STDIO_OBJS := $(STDIO_OBJ) $(STDIO_MOBJ) $(STDIO_CUOBJ) $(STDIO_CLOBJ)
+STDIO_OBJS := $(STDIO_OBJ) $(STDIO_MOBJ) $(STDIO_CUOBJ)
-STDIO_NO_MULTI := $(STDIO_CUOBJ) $(STDIO_CLOBJ)
+STDIO_NO_MULTI := $(STDIO_CUOBJ)
# these need special handling or rewrite to support multi-build
# CUOBJ
Modified: trunk/uClibc/libc/stdio/fgetpos64.c
===================================================================
--- trunk/uClibc/libc/stdio/fgetpos64.c 2005-11-20 23:59:45 UTC (rev 12445)
+++ trunk/uClibc/libc/stdio/fgetpos64.c 2005-11-21 07:09:36 UTC (rev 12446)
@@ -1,16 +1,14 @@
/* Copyright (C) 2004 Manuel Novoa III <mjn3 at codepoet.org>
*
- * GNU Library General Public License (LGPL) version 2 or later.
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
*
* Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
*/
#include "_stdio.h"
-#ifdef __UCLIBC_HAS_LFS__
-# define __DO_LARGEFILE
-# define fgetpos fgetpos64
-# define fpos_t fpos64_t
-# define ftell ftello64
-# include "fgetpos.c"
-#endif
+#define __DO_LARGEFILE
+#define fgetpos fgetpos64
+#define fpos_t fpos64_t
+#define ftell ftello64
+#include "fgetpos.c"
Modified: trunk/uClibc/libc/stdio/fopen64.c
===================================================================
--- trunk/uClibc/libc/stdio/fopen64.c 2005-11-20 23:59:45 UTC (rev 12445)
+++ trunk/uClibc/libc/stdio/fopen64.c 2005-11-21 07:09:36 UTC (rev 12446)
@@ -1,15 +1,13 @@
/* Copyright (C) 2004 Manuel Novoa III <mjn3 at codepoet.org>
*
- * GNU Library General Public License (LGPL) version 2 or later.
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
*
* Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
*/
#include "_stdio.h"
-#ifdef __UCLIBC_HAS_LFS__
-# define __DO_LARGEFILE
-# define fopen fopen64
-# define FILEDES_ARG (-2)
-# include "fopen.c"
-#endif
+#define __DO_LARGEFILE
+#define fopen fopen64
+#define FILEDES_ARG (-2)
+#include "fopen.c"
Modified: trunk/uClibc/libc/stdio/freopen64.c
===================================================================
--- trunk/uClibc/libc/stdio/freopen64.c 2005-11-20 23:59:45 UTC (rev 12445)
+++ trunk/uClibc/libc/stdio/freopen64.c 2005-11-21 07:09:36 UTC (rev 12446)
@@ -1,15 +1,13 @@
/* Copyright (C) 2004 Manuel Novoa III <mjn3 at codepoet.org>
*
- * GNU Library General Public License (LGPL) version 2 or later.
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
*
* Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
*/
#include "_stdio.h"
-#ifdef __UCLIBC_HAS_LFS__
-# define __DO_LARGEFILE
-# define freopen freopen64
-# define FILEDES_ARG (-2)
-# include "freopen.c"
-#endif
+#define __DO_LARGEFILE
+#define freopen freopen64
+#define FILEDES_ARG (-2)
+#include "freopen.c"
Modified: trunk/uClibc/libc/stdio/fseeko64.c
===================================================================
--- trunk/uClibc/libc/stdio/fseeko64.c 2005-11-20 23:59:45 UTC (rev 12445)
+++ trunk/uClibc/libc/stdio/fseeko64.c 2005-11-21 07:09:36 UTC (rev 12446)
@@ -1,15 +1,13 @@
/* Copyright (C) 2004 Manuel Novoa III <mjn3 at codepoet.org>
*
- * GNU Library General Public License (LGPL) version 2 or later.
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
*
* Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
*/
#include "_stdio.h"
-#ifdef __UCLIBC_HAS_LFS__
-# define __DO_LARGEFILE
-# define FSEEK __fseeko64
-# define OFFSET_TYPE __off64_t
-# include "fseeko.c"
-#endif
+#define __DO_LARGEFILE
+#define FSEEK __fseeko64
+#define OFFSET_TYPE __off64_t
+#include "fseeko.c"
Modified: trunk/uClibc/libc/stdio/fsetpos64.c
===================================================================
--- trunk/uClibc/libc/stdio/fsetpos64.c 2005-11-20 23:59:45 UTC (rev 12445)
+++ trunk/uClibc/libc/stdio/fsetpos64.c 2005-11-21 07:09:36 UTC (rev 12446)
@@ -1,16 +1,14 @@
/* Copyright (C) 2004 Manuel Novoa III <mjn3 at codepoet.org>
*
- * GNU Library General Public License (LGPL) version 2 or later.
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
*
* Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
*/
#include "_stdio.h"
-#ifdef __UCLIBC_HAS_LFS__
-# define __DO_LARGEFILE
-# define fsetpos fsetpos64
-# define fpos_t fpos64_t
-# define fseek fseeko64
-# include "fsetpos.c"
-#endif
+#define __DO_LARGEFILE
+#define fsetpos fsetpos64
+#define fpos_t fpos64_t
+#define fseek fseeko64
+#include "fsetpos.c"
Modified: trunk/uClibc/libc/stdio/ftello64.c
===================================================================
--- trunk/uClibc/libc/stdio/ftello64.c 2005-11-20 23:59:45 UTC (rev 12445)
+++ trunk/uClibc/libc/stdio/ftello64.c 2005-11-21 07:09:36 UTC (rev 12446)
@@ -1,15 +1,13 @@
/* Copyright (C) 2004 Manuel Novoa III <mjn3 at codepoet.org>
*
- * GNU Library General Public License (LGPL) version 2 or later.
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
*
* Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
*/
#include "_stdio.h"
-#ifdef __UCLIBC_HAS_LFS__
-# define __DO_LARGEFILE
-# define FTELL __ftello64
-# define OFFSET_TYPE __off64_t
-# include "ftello.c"
-#endif
+#define __DO_LARGEFILE
+#define FTELL __ftello64
+#define OFFSET_TYPE __off64_t
+#include "ftello.c"
More information about the uClibc-cvs
mailing list