Zephyr API Documentation 4.0.0-rc2
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
grp.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2024 Meta Platforms
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6#ifndef ZEPHYR_INCLUDE_POSIX_GRP_H_
7#define ZEPHYR_INCLUDE_POSIX_GRP_H_
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
14
18struct group {
20 char *gr_name;
24 char **gr_mem;
25};
26
27int getgrnam_r(const char *name, struct group *grp, char *buffer, size_t bufsize,
28 struct group **result);
29int getgrgid_r(gid_t gid, struct group *grp, char *buffer, size_t bufsize, struct group **result);
30
31#ifdef __cplusplus
32}
33#endif
34
35#endif /* ZEPHYR_INCLUDE_POSIX_GRP_H_ */
int getgrgid_r(gid_t gid, struct group *grp, char *buffer, size_t bufsize, struct group **result)
int getgrnam_r(const char *name, struct group *grp, char *buffer, size_t bufsize, struct group **result)
unsigned short gid_t
Definition posix_types.h:61
Group structure.
Definition grp.h:18
gid_t gr_gid
pointer to a null-terminated array of character pointers to member names
Definition grp.h:22
char ** gr_mem
Definition grp.h:24
char * gr_name
< the name of the group
Definition grp.h:20