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

void sbuild::group::query_name ( const char *  name )

Query using a name.

Parameters:
namethe group name to search for.

Definition at line 218 of file util.cc.

Referenced by group().

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

  ::group *grp_result;

  while ((error = getgrnam_r(name, 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