aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/internal/stdio_impl.h5
-rw-r--r--src/stdio/flockfile.c2
-rw-r--r--src/stdio/funlockfile.c2
3 files changed, 5 insertions, 4 deletions
diff --git a/src/internal/stdio_impl.h b/src/internal/stdio_impl.h
index 1127a49..4cb7986 100644
--- a/src/internal/stdio_impl.h
+++ b/src/internal/stdio_impl.h
@@ -80,6 +80,11 @@ FILE *__ofl_add(FILE *f);
FILE **__ofl_lock(void);
void __ofl_unlock(void);
+struct __pthread;
+void __register_locked_file(FILE *, struct __pthread *);
+void __unlist_locked_file(FILE *);
+void __do_orphaned_stdio_locks(void);
+
#define feof(f) ((f)->flags & F_EOF)
#define ferror(f) ((f)->flags & F_ERR)
diff --git a/src/stdio/flockfile.c b/src/stdio/flockfile.c
index 6806cf8..8e22065 100644
--- a/src/stdio/flockfile.c
+++ b/src/stdio/flockfile.c
@@ -1,8 +1,6 @@
#include "stdio_impl.h"
#include "pthread_impl.h"
-void __register_locked_file(FILE *, pthread_t);
-
void flockfile(FILE *f)
{
if (!ftrylockfile(f)) return;
diff --git a/src/stdio/funlockfile.c b/src/stdio/funlockfile.c
index 30a07ef..44d8b0d 100644
--- a/src/stdio/funlockfile.c
+++ b/src/stdio/funlockfile.c
@@ -1,8 +1,6 @@
#include "stdio_impl.h"
#include "pthread_impl.h"
-void __unlist_locked_file(FILE *);
-
void funlockfile(FILE *f)
{
if (f->lockcount == 1) {