Back to index

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

Go to the source code of this file.


int __gethostname_chk (char *buf, size_t buflen, size_t nreal)

Function Documentation

int __gethostname_chk ( char *  buf,
size_t  buflen,
size_t  nreal 

Definition at line 23 of file gethostname_chk.c.

  if (buflen > nreal)
    __chk_fail ();

  return __gethostname (buf, buflen);

Here is the call graph for this function: