This commit is contained in:
Ralf Corsepius
2010-04-11 16:44:20 +00:00
parent a99d541b3f
commit 87fbcc5ea2
3 changed files with 48 additions and 0 deletions

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

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

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