diff options
-rw-r--r-- | cpukit/ChangeLog | 7 | ||||
-rw-r--r-- | cpukit/libcsupport/Makefile.am | 2 | ||||
-rw-r--r-- | cpukit/libcsupport/src/flockfile.c | 22 | ||||
-rw-r--r-- | cpukit/libcsupport/src/ftrylockfile.c | 23 | ||||
-rw-r--r-- | cpukit/libcsupport/src/funlockfile.c | 22 |
5 files changed, 76 insertions, 0 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 4a60abd41c..63f46483f8 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -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, diff --git a/cpukit/libcsupport/Makefile.am b/cpukit/libcsupport/Makefile.am index 181358063d..c802c36de6 100644 --- a/cpukit/libcsupport/Makefile.am +++ b/cpukit/libcsupport/Makefile.am @@ -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 diff --git a/cpukit/libcsupport/src/flockfile.c b/cpukit/libcsupport/src/flockfile.c new file mode 100644 index 0000000000..db83961af1 --- /dev/null +++ b/cpukit/libcsupport/src/flockfile.c @@ -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 diff --git a/cpukit/libcsupport/src/ftrylockfile.c b/cpukit/libcsupport/src/ftrylockfile.c new file mode 100644 index 0000000000..cd21faeb05 --- /dev/null +++ b/cpukit/libcsupport/src/ftrylockfile.c @@ -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 diff --git a/cpukit/libcsupport/src/funlockfile.c b/cpukit/libcsupport/src/funlockfile.c new file mode 100644 index 0000000000..a9f1bf3a92 --- /dev/null +++ b/cpukit/libcsupport/src/funlockfile.c @@ -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 |