Back to index

glibc  2.9
send.c File Reference
#include <errno.h>
#include <sys/socket.h>
#include <hurd.h>
#include <hurd/socket.h>
#include <hurd/fd.h>

Go to the source code of this file.


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

Function Documentation

ssize_t __send ( int  fd,
const void *  buf,
size_t  n,
int  flags 

Definition at line 27 of file send.c.

  error_t err;
  size_t wrote;

  err = HURD_DPORT_USE (fd, __socket_send (port, MACH_PORT_NULL,
                                      flags, buf, n,
                                      NULL, MACH_MSG_TYPE_COPY_SEND, 0,
                                      NULL, 0, &wrote));

  return err ? __hurd_sockfail (fd, flags, err) : wrote;

Here is the call graph for this function: