diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2010-05-01 04:19:00 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2010-05-01 04:19:00 +0000 |
commit | c7989fe7c1cedb24403747ed35aa772f29e59fd0 (patch) | |
tree | e5b8a5871adcb5ac60451b584a2c823f773c4e65 /cpukit/libcsupport | |
parent | 2010-04-30 Joel Sherrill <joel.sherrilL@OARcorp.com> (diff) | |
download | rtems-c7989fe7c1cedb24403747ed35aa772f29e59fd0.tar.bz2 |
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).
Diffstat (limited to 'cpukit/libcsupport')
-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 |
4 files changed, 69 insertions, 0 deletions
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 |