forked from Imagelibrary/rtems
New.
This commit is contained in:
16
testsuites/libtests/POSIX/flockfile.c
Normal file
16
testsuites/libtests/POSIX/flockfile.c
Normal file
@@ -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;
|
||||
}
|
||||
16
testsuites/libtests/POSIX/ftrylockfile.c
Normal file
16
testsuites/libtests/POSIX/ftrylockfile.c
Normal file
@@ -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;
|
||||
}
|
||||
16
testsuites/libtests/POSIX/funlockfile.c
Normal file
16
testsuites/libtests/POSIX/funlockfile.c
Normal file
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user