Lines Matching defs:store

238 	passwd* WriteFlatPasswd(FlatStore& store) const
244 passwd.pw_name = store.AppendString(fName);
245 passwd.pw_passwd = store.AppendString(fPassword);
246 passwd.pw_dir = store.AppendString(fHome);
247 passwd.pw_shell = store.AppendString(fShell);
248 passwd.pw_gecos = store.AppendString(fRealName);
250 return store.AppendData(passwd);
253 spwd* WriteFlatShadowPwd(FlatStore& store) const
257 spwd.sp_namp = store.AppendString(fName);
258 spwd.sp_pwdp = store.AppendString(fShadowPassword);
267 return store.AppendData(spwd);
414 group* WriteFlatGroup(FlatStore& store) const
422 members[count++] = store.AppendString(it->c_str());
427 group.gr_name = store.AppendString(fName);
428 group.gr_passwd = store.AppendString(fPassword);
429 group.gr_mem = (char**)store.AppendData(members,
432 return store.AppendData(group);
514 int32 WriteFlatPasswdDB(FlatStore& store) const
519 size_t offset = store.ReserveSpace(entriesSpace, true);
526 entries[index++] = it->second->WriteFlatPasswd(store);
529 store.WriteData(offset, entries, entriesSpace);
534 int32 WriteFlatShadowDB(FlatStore& store) const
539 size_t offset = store.ReserveSpace(entriesSpace, true);
546 entries[index++] = it->second->WriteFlatShadowPwd(store);
549 store.WriteData(offset, entries, entriesSpace);
661 int32 WriteFlatGroupDB(FlatStore& store) const
666 size_t offset = store.ReserveSpace(entriesSpace, true);
673 entries[index++] = it->second->WriteFlatGroup(store);
676 store.WriteData(offset, entries, entriesSpace);
807 FlatStore store;
808 int32 count = fUserDB->WriteFlatPasswdDB(store);
811 store.Buffer(), store.BufferLength(),
838 FlatStore store;
839 int32 count = fGroupDB->WriteFlatGroupDB(store);
842 store.Buffer(), store.BufferLength(),
874 FlatStore store;
875 int32 count = fUserDB->WriteFlatShadowDB(store);
878 store.Buffer(), store.BufferLength(),