Home
last modified time | relevance | path

Searched refs:passwd_state (Results 1 – 2 of 2) sorted by relevance

/bionic/libc/bionic/
Dgrp_pwd_file.cpp115 bool ToPasswdState(passwd_state_t* passwd_state) { in ToPasswdState()
130 passwd_state->passwd_.pw_uid = uid; in ToPasswdState()
131 passwd_state->passwd_.pw_gid = gid; in ToPasswdState()
133 CopyFieldToString(passwd_state->name_buffer_, name(), sizeof(passwd_state->name_buffer_)); in ToPasswdState()
134 passwd_state->passwd_.pw_name = passwd_state->name_buffer_; in ToPasswdState()
136 passwd_state->passwd_.pw_passwd = nullptr; in ToPasswdState()
139 passwd_state->passwd_.pw_gecos = nullptr; in ToPasswdState()
142 CopyFieldToString(passwd_state->dir_buffer_, dir(), sizeof(passwd_state->dir_buffer_)); in ToPasswdState()
143 passwd_state->passwd_.pw_dir = passwd_state->dir_buffer_; in ToPasswdState()
145 CopyFieldToString(passwd_state->sh_buffer_, shell(), sizeof(passwd_state->sh_buffer_)); in ToPasswdState()
[all …]
Dgrp_pwd_file.h75 bool FindById(uid_t id, passwd_state_t* passwd_state);
76 bool FindByName(const char* name, passwd_state_t* passwd_state);