Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2002-07-26 00:09:20 +0400
committerJeff Johnston <jjohnstn@redhat.com>2002-07-26 00:09:20 +0400
commitaa0ca6fd290c87adca6af8cb3422fff0bbff7169 (patch)
treef0f0a6e6897cbc216ea25e2bc8c392f1645e0c0b /newlib/libc
parent61921945b6c1d269b64c708070dba4afa85f1556 (diff)
2002-07-25 Jeff Johnston <jjohnstn@redhat.com>
* libc/sys/linux/Makefile.am: Add fclean.c. * libc/sys/linux/Makefile.in: Regenerated. * libc/sys/linux/fclean.c: New file.
Diffstat (limited to 'newlib/libc')
-rw-r--r--newlib/libc/sys/linux/Makefile.am1
-rw-r--r--newlib/libc/sys/linux/Makefile.in9
-rw-r--r--newlib/libc/sys/linux/fclean.c7
3 files changed, 13 insertions, 4 deletions
diff --git a/newlib/libc/sys/linux/Makefile.am b/newlib/libc/sys/linux/Makefile.am
index 944a1ee0e..d79536201 100644
--- a/newlib/libc/sys/linux/Makefile.am
+++ b/newlib/libc/sys/linux/Makefile.am
@@ -21,6 +21,7 @@ LIB_SOURCES = \
clock_settime.c \
confstr.c \
ctermid.c \
+ fclean.c \
flockfile.c \
fpathconf.c \
free.c \
diff --git a/newlib/libc/sys/linux/Makefile.in b/newlib/libc/sys/linux/Makefile.in
index 486c5b903..71d7f6b97 100644
--- a/newlib/libc/sys/linux/Makefile.in
+++ b/newlib/libc/sys/linux/Makefile.in
@@ -118,6 +118,7 @@ LIB_SOURCES = \
clock_settime.c \
confstr.c \
ctermid.c \
+ fclean.c \
flockfile.c \
fpathconf.c \
free.c \
@@ -253,7 +254,7 @@ LIBS = @LIBS@
@USE_LIBTOOL_FALSE@calloc.$(OBJEXT) callocr.$(OBJEXT) cfreer.$(OBJEXT) \
@USE_LIBTOOL_FALSE@cfspeed.$(OBJEXT) clock_getres.$(OBJEXT) \
@USE_LIBTOOL_FALSE@clock_gettime.$(OBJEXT) clock_settime.$(OBJEXT) \
-@USE_LIBTOOL_FALSE@confstr.$(OBJEXT) ctermid.$(OBJEXT) \
+@USE_LIBTOOL_FALSE@confstr.$(OBJEXT) ctermid.$(OBJEXT) fclean.$(OBJEXT) \
@USE_LIBTOOL_FALSE@flockfile.$(OBJEXT) fpathconf.$(OBJEXT) \
@USE_LIBTOOL_FALSE@free.$(OBJEXT) freer.$(OBJEXT) fstab.$(OBJEXT) \
@USE_LIBTOOL_FALSE@fstatvfs.$(OBJEXT) fstatvfs64.$(OBJEXT) \
@@ -298,9 +299,9 @@ LTLIBRARIES = $(noinst_LTLIBRARIES)
@USE_LIBTOOL_TRUE@liblinux_la_OBJECTS = aio.lo brk.lo calloc.lo \
@USE_LIBTOOL_TRUE@callocr.lo cfreer.lo cfspeed.lo clock_getres.lo \
@USE_LIBTOOL_TRUE@clock_gettime.lo clock_settime.lo confstr.lo \
-@USE_LIBTOOL_TRUE@ctermid.lo flockfile.lo fpathconf.lo free.lo freer.lo \
-@USE_LIBTOOL_TRUE@fstab.lo fstatvfs.lo fstatvfs64.lo ftok.lo \
-@USE_LIBTOOL_TRUE@funlockfile.lo getdate.lo getdate_err.lo \
+@USE_LIBTOOL_TRUE@ctermid.lo fclean.lo flockfile.lo fpathconf.lo \
+@USE_LIBTOOL_TRUE@free.lo freer.lo fstab.lo fstatvfs.lo fstatvfs64.lo \
+@USE_LIBTOOL_TRUE@ftok.lo funlockfile.lo getdate.lo getdate_err.lo \
@USE_LIBTOOL_TRUE@gethostname.lo getoptlong.lo getreent.lo \
@USE_LIBTOOL_TRUE@getrlimit64.lo ids.lo inode.lo io.lo io64.lo ipc.lo \
@USE_LIBTOOL_TRUE@linux.lo malign.lo malignr.lo mallinfor.lo mallocr.lo \
diff --git a/newlib/libc/sys/linux/fclean.c b/newlib/libc/sys/linux/fclean.c
new file mode 100644
index 000000000..2fb11fc83
--- /dev/null
+++ b/newlib/libc/sys/linux/fclean.c
@@ -0,0 +1,7 @@
+#include <stdio.h>
+
+int
+fclean (FILE *fp)
+{
+ return fflush (fp);
+}