2010-05-01 Ralf Corsépius <ralf.corsepius@rtems.org>

* libcsupport/Makefile.am: Add libcsupport/src/flockfile.c,
	libcsupport/src/ftrylockfile.c, libcsupport/src/funlockfile.c.
	* libcsupport/src/flockfile.c, libcsupport/src/ftrylockfile.c,
	libcsupport/src/funlockfile.c: New (stub functions).
This commit is contained in:
Ralf Corsepius
2010-05-01 04:19:00 +00:00
parent 33d5f3328d
commit c7989fe7c1
5 changed files with 76 additions and 0 deletions

View File

@@ -1,3 +1,10 @@
2010-05-01 Ralf Corsépius <ralf.corsepius@rtems.org>
* libcsupport/Makefile.am: Add libcsupport/src/flockfile.c,
libcsupport/src/ftrylockfile.c, libcsupport/src/funlockfile.c.
* libcsupport/src/flockfile.c, libcsupport/src/ftrylockfile.c,
libcsupport/src/funlockfile.c: New (stub functions).
2010-04-30 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libcsupport/include/rtems/libio_.h, libcsupport/src/envlock.c,

View File

@@ -118,6 +118,8 @@ libcsupport_a_SOURCES += $(LIBC_GLUE_C_FILES) $(PASSWORD_GROUP_C_FILES) \
$(DIRECTORY_SCAN_C_FILES) $(ID_C_FILES) src/envlock.c \
$(TERMIOS_C_FILES) src/getpagesize.c src/getrusage.c
libcsupport_a_SOURCES += src/flockfile.c src/funlockfile.c src/ftrylockfile.c
EXTRA_DIST = src/TODO src/CASES src/README
include $(srcdir)/preinstall.am

View File

@@ -0,0 +1,22 @@
/*
* Copyright (c) 2009 by
* Ralf Corsépius, Ulm, Germany. All rights reserved.
*
* Permission to use, copy, modify, and distribute this software
* is freely granted, provided that this notice is preserved.
*/
#if HAVE_CONFIG_H
#include "config.h"
#endif
#if defined(RTEMS_NEWLIB) && !defined(HAVE_FLOCKFILE) && defined(HAVE_DECL_FLOCKFILE)
#include <stdio.h>
/* This is a non-functional stub */
void flockfile(FILE* file)
{
}
#endif

View File

@@ -0,0 +1,23 @@
/*
* Copyright (c) 2009 by
* Ralf Corsépius, Ulm, Germany. All rights reserved.
*
* Permission to use, copy, modify, and distribute this software
* is freely granted, provided that this notice is preserved.
*/
#if HAVE_CONFIG_H
#include "config.h"
#endif
#if defined(RTEMS_NEWLIB) && !defined(HAVE_FTRYLOCKFILE) && defined(HAVE_DECL_FTRYLOCKFILE)
#include <stdio.h>
/* This is a non-functional stub */
int ftrylockfile(FILE* file)
{
return -1;
}
#endif

View File

@@ -0,0 +1,22 @@
/*
* Copyright (c) 2009 by
* Ralf Corsépius, Ulm, Germany. All rights reserved.
*
* Permission to use, copy, modify, and distribute this software
* is freely granted, provided that this notice is preserved.
*/
#if HAVE_CONFIG_H
#include "config.h"
#endif
#if defined(RTEMS_NEWLIB) && !defined(HAVE_FUNLOCKFILE) && defined(HAVE_DECL_FUNLOCKFILE)
#include <stdio.h>
/* This is a non-functional stub */
void funlockfile(FILE* file)
{
}
#endif