Back to index

glibc  2.9
getwd_chk.c File Reference
#include <errno.h>
#include <unistd.h>
#include <sys/param.h>

Go to the source code of this file.


char * __getwd_chk (char *buf, size_t buflen)

Function Documentation

char* __getwd_chk ( char *  buf,
size_t  buflen 

Definition at line 25 of file getwd_chk.c.

  char *res = __getcwd (buf, buflen);
  if (res == NULL && errno == ERANGE)
    __chk_fail ();
  return res;

Here is the call graph for this function: