Lines Matching defs:store

237 	passwd* WriteFlatPasswd(FlatStore& store) const
243 passwd.pw_name = store.AppendString(fName);
244 passwd.pw_passwd = store.AppendString(fPassword);
245 passwd.pw_dir = store.AppendString(fHome);
246 passwd.pw_shell = store.AppendString(fShell);
247 passwd.pw_gecos = store.AppendString(fRealName);
249 return store.AppendData(passwd);
252 spwd* WriteFlatShadowPwd(FlatStore& store) const
256 spwd.sp_namp = store.AppendString(fName);
257 spwd.sp_pwdp = store.AppendString(fShadowPassword);
266 return store.AppendData(spwd);
413 group* WriteFlatGroup(FlatStore& store) const
421 members[count++] = store.AppendString(it->c_str());
426 group.gr_name = store.AppendString(fName);
427 group.gr_passwd = store.AppendString(fPassword);
428 group.gr_mem = (char**)store.AppendData(members,
431 return store.AppendData(group);
513 int32 WriteFlatPasswdDB(FlatStore& store) const
518 size_t offset = store.ReserveSpace(entriesSpace, true);
525 entries[index++] = it->second->WriteFlatPasswd(store);
528 store.WriteData(offset, entries, entriesSpace);
533 int32 WriteFlatShadowDB(FlatStore& store) const
538 size_t offset = store.ReserveSpace(entriesSpace, true);
545 entries[index++] = it->second->WriteFlatShadowPwd(store);
548 store.WriteData(offset, entries, entriesSpace);
662 int32 WriteFlatGroupDB(FlatStore& store) const
667 size_t offset = store.ReserveSpace(entriesSpace, true);
674 entries[index++] = it->second->WriteFlatGroup(store);
677 store.WriteData(offset, entries, entriesSpace);
809 FlatStore store;
810 int32 count = fUserDB->WriteFlatPasswdDB(store);
813 store.Buffer(), store.BufferLength(),
840 FlatStore store;
841 int32 count = fGroupDB->WriteFlatGroupDB(store);
844 store.Buffer(), store.BufferLength(),
876 FlatStore store;
877 int32 count = fUserDB->WriteFlatShadowDB(store);
880 store.Buffer(), store.BufferLength(),