From 0f30d227497418c6d3bef7d52244407e30454504 Mon Sep 17 00:00:00 2001 From: Kacper Date: Mon, 22 Dec 2025 23:27:56 +0100 Subject: Added c11 threads, fixed some locks and add *_unlocked functions --- lib/libc/stdio/fmemopen.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/libc/stdio/fmemopen.c') diff --git a/lib/libc/stdio/fmemopen.c b/lib/libc/stdio/fmemopen.c index e1b2ccff..1e90b5ea 100644 --- a/lib/libc/stdio/fmemopen.c +++ b/lib/libc/stdio/fmemopen.c @@ -21,10 +21,10 @@ FILE *fmemopen(void *restrict buf, size_t max_size, const char *restrict mode) if (stream == NULL) return stream; - __FILE(stream)->fd = -1; - __FILE(stream)->buf = buf; - __FILE(stream)->buf_size = max_size; - __FILE(stream)->type = _IOFBF; + stream->fd = -1; + stream->buf = buf; + stream->buf_size = max_size; + stream->type = _IOFBF; if (mode[0] == 'r') { flags = O_RDONLY; @@ -42,7 +42,7 @@ FILE *fmemopen(void *restrict buf, size_t max_size, const char *restrict mode) flags = (flags & ~(O_RDONLY | O_WRONLY)) | O_RDWR; } - __FILE(stream)->flags = flags; + stream->flags = flags; __libc_fadd(stream); -- cgit v1.2.3