Reviewed-by: Iker Pedrosa <ipedrosa@redhat.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
hushed.c \
idmapping.h \
idmapping.c \
+ io/fgets/fgets.c \
+ io/fgets/fgets.h \
io/syslog.c \
io/syslog.h \
isexpired.c \
--- /dev/null
+// SPDX-FileCopyrightText: 2024, Alejandro Colomar <alx@kernel.org>
+// SPDX-License-Identifier: BSD-3-Clause
+
+
+#include "config.h"
+
+#include "io/fgets/fgets.h"
--- /dev/null
+// SPDX-FileCopyrightText: 2024-2025, Alejandro Colomar <alx@kernel.org>
+// SPDX-License-Identifier: BSD-3-Clause
+
+
+#ifndef SHADOW_INCLUDE_LIB_IO_FGETS_FGETS_H_
+#define SHADOW_INCLUDE_LIB_IO_FGETS_FGETS_H_
+
+
+#include "config.h"
+
+#include <stdio.h>
+
+#include "sizeof.h"
+
+
+// fgets_a - FILE get string array-safe
+#define fgets_a(buf, stream) fgets(buf, countof(buf), stream)
+
+
+#endif // include guard