Back to index

glibc  2.9
Functions
recv.c File Reference
#include <errno.h>
#include <sys/socket.h>
#include <sysdep-cancel.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

ssize_t __libc_recv (int fd, void *buf, size_t n, int flags)

Function Documentation

ssize_t __libc_recv ( int  fd,
void *  buf,
size_t  n,
int  flags 
)

Definition at line 27 of file recv.c.

{
  if (SINGLE_THREAD_P)
    return INLINE_SYSCALL (recvfrom, 6, fd, buf, n, flags, NULL, NULL);

  int oldtype = LIBC_CANCEL_ASYNC ();

  ssize_t result = INLINE_SYSCALL (recvfrom, 6, fd, buf, n, flags, NULL, NULL);

  LIBC_CANCEL_RESET (oldtype);

  return result;
}

Here is the call graph for this function: