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; +}