Lines Matching defs:cbuf
3122 let mut cbuf = Vec::with_capacity(bufsize);
3127 let error = f(pwd.as_mut_ptr(), cbuf.as_mut_ptr(), cbuf.capacity(), &mut res);
3137 reserve_double_buffer_size(&mut cbuf, buflimit)?;
3158 User::from_anything(|pwd, cbuf, cap, res| {
3159 unsafe { libc::getpwuid_r(uid.0, pwd, cbuf, cap, res) }
3181 User::from_anything(|pwd, cbuf, cap, res| {
3182 unsafe { libc::getpwnam_r(name.as_ptr(), pwd, cbuf, cap, res) }
3246 let mut cbuf = Vec::with_capacity(bufsize);
3251 let error = f(grp.as_mut_ptr(), cbuf.as_mut_ptr(), cbuf.capacity(), &mut res);
3261 reserve_double_buffer_size(&mut cbuf, buflimit)?;
3284 Group::from_anything(|grp, cbuf, cap, res| {
3285 unsafe { libc::getgrgid_r(gid.0, grp, cbuf, cap, res) }
3309 Group::from_anything(|grp, cbuf, cap, res| {
3310 unsafe { libc::getgrnam_r(name.as_ptr(), grp, cbuf, cap, res) }