projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
math: rewrite inverse hyperbolic functions to be simpler/smaller
[musl]
/
src
/
stdio
/
fileno.c
diff --git
a/src/stdio/fileno.c
b/src/stdio/fileno.c
index
9ffb26d
..
ba7f939
100644
(file)
--- a/
src/stdio/fileno.c
+++ b/
src/stdio/fileno.c
@@
-2,6
+2,11
@@
int fileno(FILE *f)
{
+ /* f->fd never changes, but the lock must be obtained and released
+ * anyway since this function cannot return while another thread
+ * holds the lock. */
+ FLOCK(f);
+ FUNLOCK(f);
return f->fd;
}