Back to index

glibc  2.9
Functions
socket2.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

ssize_t __recv_chk (int __fd, void *__buf, size_t __n, size_t __buflen, int __flags)
ssize_t __REDIRECT (__recv_alias,(int __fd, void *__buf, size_t __n, int __flags), recv)
ssize_t __REDIRECT (__recv_chk_warn,(int __fd, void *__buf, size_t __n, size_t __buflen, int __flags), __recv_chk) __warnattr("recv called with bigger length than size of destination ""buffer")
__extern_always_inline ssize_t recv (int __fd, void *__buf, size_t __n, int __flags)
ssize_t __recvfrom_chk (int __fd, void *__restrict __buf, size_t __n, size_t __buflen, int __flags, __SOCKADDR_ARG __addr, socklen_t *__restrict __addr_len)
ssize_t __REDIRECT (__recvfrom_alias,(int __fd, void *__restrict __buf, size_t __n, int __flags, __SOCKADDR_ARG __addr, socklen_t *__restrict __addr_len), recvfrom)
ssize_t __REDIRECT (__recvfrom_chk_warn,(int __fd, void *__restrict __buf, size_t __n, size_t __buflen, int __flags, __SOCKADDR_ARG __addr, socklen_t *__restrict __addr_len), __recvfrom_chk) __warnattr("recvfrom called with bigger length than size of ""destination buffer")
__extern_always_inline ssize_t recvfrom (int __fd, void *__restrict __buf, size_t __n, int __flags, __SOCKADDR_ARG __addr, socklen_t *__restrict __addr_len)

Function Documentation

ssize_t __recv_chk ( int  __fd,
void *  __buf,
size_t  __n,
size_t  __buflen,
int  __flags 
)

Definition at line 24 of file recv_chk.c.

{
  if (n > buflen)
    __chk_fail ();

  return __recv (fd, buf, n, flags);
}

Here is the call graph for this function:

Here is the caller graph for this function:

ssize_t __recvfrom_chk ( int  __fd,
void *__restrict  __buf,
size_t  __n,
size_t  __buflen,
int  __flags,
__SOCKADDR_ARG  __addr,
socklen_t *__restrict  __addr_len 
)
ssize_t __REDIRECT ( __recv_alias  ,
(int __fd, void *__buf, size_t __n, int __flags ,
recv   
)
ssize_t __REDIRECT ( __recv_chk_warn  ,
(int __fd, void *__buf, size_t __n, size_t __buflen, int __flags ,
__recv_chk   
)
ssize_t __REDIRECT ( __recvfrom_alias  ,
(int __fd, void *__restrict __buf, size_t __n, int __flags, __SOCKADDR_ARG __addr, socklen_t *__restrict __addr_len)  ,
recvfrom   
)
ssize_t __REDIRECT ( __recvfrom_chk_warn  ,
(int __fd, void *__restrict __buf, size_t __n, size_t __buflen, int __flags, __SOCKADDR_ARG __addr, socklen_t *__restrict __addr_len)  ,
__recvfrom_chk   
)
__extern_always_inline ssize_t recv ( int  __fd,
void *  __buf,
size_t  __n,
int  __flags 
)

Definition at line 35 of file socket2.h.

{
  if (__bos0 (__buf) != (size_t) -1)
    {
      if (!__builtin_constant_p (__n))
       return __recv_chk (__fd, __buf, __n, __bos0 (__buf), __flags);

      if (__n > __bos0 (__buf))
       return __recv_chk_warn (__fd, __buf, __n, __bos0 (__buf), __flags);
    }
  return __recv_alias (__fd, __buf, __n, __flags);
}

Here is the call graph for this function:

Here is the caller graph for this function:

__extern_always_inline ssize_t recvfrom ( int  __fd,
void *__restrict  __buf,
size_t  __n,
int  __flags,
__SOCKADDR_ARG  __addr,
socklen_t *__restrict  __addr_len 
)

Definition at line 65 of file socket2.h.

{
  if (__bos0 (__buf) != (size_t) -1)
    {
      if (!__builtin_constant_p (__n))
       return __recvfrom_chk (__fd, __buf, __n, __bos0 (__buf), __flags,
                            __addr, __addr_len);
      if (__n > __bos0 (__buf))
       return __recvfrom_chk_warn (__fd, __buf, __n, __bos0 (__buf), __flags,
                                __addr, __addr_len);
    }
  return __recvfrom_alias (__fd, __buf, __n, __flags, __addr, __addr_len);
}

Here is the call graph for this function:

Here is the caller graph for this function: