summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/sync.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2004-03-05 18:02:41 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2004-03-05 18:02:41 +0000
commitcb2f32039d7cf5cceb7a1e50930bdcd95fa5fef7 (patch)
tree829a2d86fd31db72e91420d0c53b6f8fc173cfdb /cpukit/libcsupport/src/sync.c
parent2004-03-05 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-cb2f32039d7cf5cceb7a1e50930bdcd95fa5fef7.tar.bz2
2004-03-05 Joel Sherrill <joel@OARcorp.com>
* libblock/src/bdbuf.c, libblock/src/ramdisk.c, libcsupport/src/newlibc.c, libcsupport/src/sync.c, libmisc/cpuuse/cpuuse.c, libmisc/monitor/mon-symbols.c, libmisc/shell/cmds.c, libmisc/shell/shell.c, libnetworking/kern/kern_sysctl.c, libnetworking/lib/ftpfs.c, libnetworking/lib/tftpDriver.c, libnetworking/libc/gethostbydns.c, libnetworking/libc/gethostbyht.c, libnetworking/libc/gethostnamadr.c, libnetworking/libc/getnetbyht.c, libnetworking/libc/getnetnamadr.c, libnetworking/libc/inet_addr.c, libnetworking/libc/linkaddr.c, libnetworking/libc/map_v4v6.c, libnetworking/libc/ns_print.c, libnetworking/libc/ns_ttl.c, libnetworking/libc/nsap_addr.c, libnetworking/libc/rcmd.c, libnetworking/libc/res_debug.c, libnetworking/libc/res_mkupdate.c, libnetworking/libc/res_query.c, libnetworking/libc/res_send.c, libnetworking/libc/res_update.c, libnetworking/net/radix.c, libnetworking/rtems/mkrootfs.c, librpc/src/rpc/clnt_perror.c, librpc/src/rpc/svc.c, score/macros/rtems/score/chain.inl, score/src/objectidtoname.c: Too much was accidentally committed -- revert.
Diffstat (limited to '')
-rw-r--r--cpukit/libcsupport/src/sync.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/cpukit/libcsupport/src/sync.c b/cpukit/libcsupport/src/sync.c
index 8d1f52e725..4d317ce0b1 100644
--- a/cpukit/libcsupport/src/sync.c
+++ b/cpukit/libcsupport/src/sync.c
@@ -21,13 +21,6 @@
#include "config.h"
#endif
-/* Since we compile with strict ANSI we need to undef it to get
- * prototypes for extensions
- */
-#undef __STRICT_ANSI__
-int fdatasync(int); /* still not always prototyped */
-
-
#include <unistd.h>
#include <stdio.h>
@@ -42,7 +35,6 @@ int fdatasync(int); /* still not always prototyped */
/* XXX check standards -- Linux version appears to be void */
void _fwalk(struct _reent *, void *);
-
static void sync_wrapper(FILE *f)
{
int fn = fileno(f);
@@ -68,22 +60,6 @@ static void sync_per_thread(Thread_Control *t)
int sync(void)
{
- extern struct _reent libc_global_reent;
-
- /*
- * Walk the one used initially by RTEMS.
- */
- _fwalk(&libc_global_reent, sync_wrapper);
-
- /*
- * XXX Do we walk the one used globally by newlib?
- * XXX Do we need the RTEMS global one?
- */
-
- /*
- * Now walk all the per-thread reentrancy structures.
- */
rtems_iterate_over_all_threads(sync_per_thread);
-
return 0;
}