fix indention with spaces in powerpc asm
[oweals/musl.git] / src / stdio / fileno.c
index 9ffb26d54d17754bc6b5bac465281a87a338564f..ba7f9391b1ec9baa6023f9a66f569b46a1f85ba2 100644 (file)
@@ -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;
 }