1 /*
2 * Copyright (c) 2024 Meta Platforms
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7 #include <errno.h>
8
9 #include <zephyr/sys/util.h>
10 #include <zephyr/posix/pwd.h>
11
12 #ifdef CONFIG_POSIX_THREAD_SAFE_FUNCTIONS
13
getpwnam_r(const char * nam,struct passwd * pwd,char * buffer,size_t bufsize,struct passwd ** result)14 int getpwnam_r(const char *nam, struct passwd *pwd, char *buffer, size_t bufsize,
15 struct passwd **result)
16 {
17 ARG_UNUSED(nam);
18 ARG_UNUSED(pwd);
19 ARG_UNUSED(buffer);
20 ARG_UNUSED(bufsize);
21 ARG_UNUSED(result);
22
23 return ENOSYS;
24 }
25
getpwuid_r(uid_t uid,struct passwd * pwd,char * buffer,size_t bufsize,struct passwd ** result)26 int getpwuid_r(uid_t uid, struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result)
27 {
28 ARG_UNUSED(uid);
29 ARG_UNUSED(pwd);
30 ARG_UNUSED(buffer);
31 ARG_UNUSED(bufsize);
32 ARG_UNUSED(result);
33
34 return ENOSYS;
35 }
36
37 #endif /* CONFIG_POSIX_THREAD_SAFE_FUNCTIONS */
38