Zephyr API Documentation 4.0.0-rc3
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
pwd.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_PWD_H_
7#define ZEPHYR_INCLUDE_POSIX_PWD_H_
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
14
15struct passwd {
16 /* user's login name */
17 char *pw_name;
18 /* numerical user ID */
20 /* numerical group ID */
22 /* initial working directory */
23 char *pw_dir;
24 /* program to use as shell */
25 char *pw_shell;
26};
27
28int getpwnam_r(const char *nam, struct passwd *pwd, char *buffer, size_t bufsize,
29 struct passwd **result);
30int getpwuid_r(uid_t uid, struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result);
31
32#ifdef __cplusplus
33}
34#endif
35
36#endif /* ZEPHYR_INCLUDE_POSIX_PWD_H_ */
unsigned short gid_t
Definition posix_types.h:61
unsigned short uid_t
Definition posix_types.h:55
int getpwuid_r(uid_t uid, struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result)
int getpwnam_r(const char *nam, struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result)
Definition pwd.h:15
char * pw_name
Definition pwd.h:17
char * pw_shell
Definition pwd.h:25
uid_t pw_uid
Definition pwd.h:19
gid_t pw_gid
Definition pwd.h:21
char * pw_dir
Definition pwd.h:23