about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2000-12-22 09:00:17 +0000
committerAndreas Jaeger <aj@suse.de>2000-12-22 09:00:17 +0000
commitdd04074742c1a408c47a8c879e9206fcacc9e5ba (patch)
tree5955af49ea0c46bed27a4d62f42ccc066eae9cd8
parent912f97da3d96796a2e2ffe2cd91b4d5a2a2472e1 (diff)
downloadglibc-dd04074742c1a408c47a8c879e9206fcacc9e5ba.tar.gz
glibc-dd04074742c1a408c47a8c879e9206fcacc9e5ba.tar.xz
glibc-dd04074742c1a408c47a8c879e9206fcacc9e5ba.zip
Add __ftrylockfile prototype.
-rw-r--r--include/stdio.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/stdio.h b/include/stdio.h
index 8617fea042..419b58cb51 100644
--- a/include/stdio.h
+++ b/include/stdio.h
@@ -56,6 +56,10 @@ extern void __flockfile (FILE *__stream);
 /* Relinquish the ownership granted for STREAM.  */
 extern void __funlockfile (FILE *__stream);
 
+/* Try to acquire ownership of STREAM but do not block if it is not
+   possible.  */
+extern int __ftrylockfile (FILE *__stream);
+
 # endif
 
 #endif