diff options
| author | Kacper <kacper@mail.openlinux.dev> | 2025-12-09 23:14:53 +0100 |
|---|---|---|
| committer | Kacper <kacper@mail.openlinux.dev> | 2025-12-09 23:14:53 +0100 |
| commit | 169daa11155988a210fac949297381743f3cb400 (patch) | |
| tree | 602ef5df5ae9ea075ab3d5dac3c8ad60da1ea2cc /lib/libc/stdio/fileno.c | |
| parent | 4e2112e165fdd94dee58378e3ea32892f3710cd7 (diff) | |
feat: clang-tidy fixes
Diffstat (limited to 'lib/libc/stdio/fileno.c')
| -rw-r--r-- | lib/libc/stdio/fileno.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/libc/stdio/fileno.c b/lib/libc/stdio/fileno.c index ad3eda7f..e27b56de 100644 --- a/lib/libc/stdio/fileno.c +++ b/lib/libc/stdio/fileno.c @@ -1,15 +1,15 @@ -#include <atomic.h> // for LIBC_LOCK, LIBC_UNLOCK -#include <errno.h> // for EBADF, errno -#include <libc.h> // for __IMPL -#include <stdio.h> // for FILE, fileno +#include <__stdio.h> // for __FILE +#include <atomic.h> // for LIBC_LOCK, LIBC_UNLOCK +#include <errno.h> // for EBADF, errno +#include <stdio.h> // for FILE, fileno int fileno(FILE *stream) { int fd; - LIBC_LOCK(__IMPL(stream)->lock); - fd = __IMPL(stream)->fd; - LIBC_UNLOCK(__IMPL(stream)->lock); + LIBC_LOCK(__FILE(stream)->lock); + fd = __FILE(stream)->fd; + LIBC_UNLOCK(__FILE(stream)->lock); if (fd < 0) { errno = EBADF; |
