From dd04074742c1a408c47a8c879e9206fcacc9e5ba Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Fri, 22 Dec 2000 09:00:17 +0000 Subject: Add __ftrylockfile prototype. --- include/stdio.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') 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 -- cgit v1.2.3