Back to index

glibc  2.9
getgroups_chk.c File Reference
#include <errno.h>
#include <unistd.h>

Go to the source code of this file.


int __getgroups_chk (int size, __gid_t list[], size_t listlen)

Function Documentation

int __getgroups_chk ( int  size,
__gid_t  list[],
size_t  listlen 

Definition at line 24 of file getgroups_chk.c.

  if (__builtin_expect (size < 0, 0))
      __set_errno (EINVAL);
      return -1;

  if (__builtin_expect (size * sizeof (__gid_t) > listlen, 0))
    __chk_fail ();

  return __getgroups (size, list);

Here is the call graph for this function: