projects
/
oweals
/
musl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix indention with spaces in powerpc asm
[oweals/musl.git]
/
src
/
stdio
/
fileno.c
diff --git
a/src/stdio/fileno.c
b/src/stdio/fileno.c
index 9ffb26d54d17754bc6b5bac465281a87a338564f..ba7f9391b1ec9baa6023f9a66f569b46a1f85ba2 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;
}