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/grp.h>
11
12 #ifdef CONFIG_POSIX_THREAD_SAFE_FUNCTIONS
13
getgrnam_r(const char * name,struct group * grp,char * buffer,size_t bufsize,struct group ** result)14 int getgrnam_r(const char *name, struct group *grp, char *buffer, size_t bufsize,
15 struct group **result)
16 {
17 ARG_UNUSED(name);
18 ARG_UNUSED(grp);
19 ARG_UNUSED(buffer);
20 ARG_UNUSED(bufsize);
21 ARG_UNUSED(result);
22
23 return ENOSYS;
24 }
25
getgrgid_r(gid_t gid,struct group * grp,char * buffer,size_t bufsize,struct group ** result)26 int getgrgid_r(gid_t gid, struct group *grp, char *buffer, size_t bufsize, struct group **result)
27 {
28 ARG_UNUSED(gid);
29 ARG_UNUSED(grp);
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