Logo Search packages:      
Sourcecode: sbuild version File versions  Download package

void sbuild::group::query_gid ( gid_t  gid )

Query using a GID.

Parameters:
gidthe GID to search for.

Definition at line 195 of file util.cc.

Referenced by group().

{
  buffer_type::size_type size = 1 << 7;
  buffer.reserve(size);
  int error;

  ::group *grp_result;

  while ((error = getgrgid_r(gid, this,
                       &buffer[0], buffer.capacity(),
                       &grp_result)))
    {
      size <<= 1;
      buffer.reserve(size);
    }

  if (grp_result)
    valid = true;
  else
    errno = error;
}

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index