zephyr/lib/posix/options/mlockall.c
Chris Friedt cee9166dee posix: options: mlockall: include toolchain header
Include the toolchain header because ARG_UNUSED() is
not defined.

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2025-01-09 15:49:57 +01:00

26 lines
354 B
C

/*
* Copyright (c) 2024, Tenstorrent AI ULC
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <errno.h>
#include <stddef.h>
#include <sys/types.h>
#include <zephyr/posix/sys/mman.h>
#include <zephyr/toolchain.h>
int mlockall(int flags)
{
ARG_UNUSED(flags);
errno = ENOSYS;
return -1;
}
int munlockall(void)
{
errno = ENOSYS;
return -1;
}