Back to index

glibc  2.9
Functions
read_chk.c File Reference
#include <unistd.h>
#include <sys/param.h>

Go to the source code of this file.

Functions

ssize_t __read_chk (int fd, void *buf, size_t nbytes, size_t buflen)

Function Documentation

ssize_t __read_chk ( int  fd,
void *  buf,
size_t  nbytes,
size_t  buflen 
)

Definition at line 28 of file read_chk.c.

{
  if (nbytes > buflen)
    __chk_fail ();

#ifdef HAVE_INLINED_SYSCALLS
  return INLINE_SYSCALL (read, 3, fd, buf, nbytes);
#else
  return __read (fd, buf, nbytes);
#endif
}

Here is the call graph for this function:

Here is the caller graph for this function: