summaryrefslogtreecommitdiffstats
path: root/testsuites
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2010-04-11 16:44:20 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2010-04-11 16:44:20 +0000
commit87fbcc5ea21a6ce314ca41a14fab7b2255fc9b5a (patch)
tree3155fe98d1ea7d52a62a4206768c0061f6fdcc01 /testsuites
parent2010-04-11 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-87fbcc5ea21a6ce314ca41a14fab7b2255fc9b5a.tar.bz2
New.
Diffstat (limited to 'testsuites')
-rw-r--r--testsuites/libtests/POSIX/flockfile.c16
-rw-r--r--testsuites/libtests/POSIX/ftrylockfile.c16
-rw-r--r--testsuites/libtests/POSIX/funlockfile.c16
3 files changed, 48 insertions, 0 deletions
diff --git a/testsuites/libtests/POSIX/flockfile.c b/testsuites/libtests/POSIX/flockfile.c
new file mode 100644
index 0000000000..7ab69a49f2
--- /dev/null
+++ b/testsuites/libtests/POSIX/flockfile.c
@@ -0,0 +1,16 @@
+/*
+ * 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.
+ */
+
+#include <stdio.h>
+
+int main(void)
+{
+ FILE *file = NULL;
+ flockfile(file);
+ return 0;
+}
diff --git a/testsuites/libtests/POSIX/ftrylockfile.c b/testsuites/libtests/POSIX/ftrylockfile.c
new file mode 100644
index 0000000000..423e6bfad7
--- /dev/null
+++ b/testsuites/libtests/POSIX/ftrylockfile.c
@@ -0,0 +1,16 @@
+/*
+ * 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.
+ */
+
+#include <stdio.h>
+
+int main(void)
+{
+ FILE *file = NULL;
+ int ret = ftrylockfile(file);
+ return ret;
+}
diff --git a/testsuites/libtests/POSIX/funlockfile.c b/testsuites/libtests/POSIX/funlockfile.c
new file mode 100644
index 0000000000..93017a464c
--- /dev/null
+++ b/testsuites/libtests/POSIX/funlockfile.c
@@ -0,0 +1,16 @@
+/*
+ * 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.
+ */
+
+#include <stdio.h>
+
+int main(void)
+{
+ FILE *file = NULL;
+ funlockfile(file);
+ return 0;
+}