From 87fbcc5ea21a6ce314ca41a14fab7b2255fc9b5a Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Sun, 11 Apr 2010 16:44:20 +0000 Subject: New. --- testsuites/libtests/POSIX/flockfile.c | 16 ++++++++++++++++ testsuites/libtests/POSIX/ftrylockfile.c | 16 ++++++++++++++++ testsuites/libtests/POSIX/funlockfile.c | 16 ++++++++++++++++ 3 files changed, 48 insertions(+) create mode 100644 testsuites/libtests/POSIX/flockfile.c create mode 100644 testsuites/libtests/POSIX/ftrylockfile.c create mode 100644 testsuites/libtests/POSIX/funlockfile.c (limited to 'testsuites/libtests') 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 + +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 + +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 + +int main(void) +{ + FILE *file = NULL; + funlockfile(file); + return 0; +} -- cgit v1.2.3