OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [uclinux/] [uC-libc/] [sysdeps/] [send.c] - Rev 1775

Go to most recent revision | Compare with Previous | Blame | View Log

#include <syscall.h>
#include <sys/socket.h>
#include <sys/socketcall.h>
 
static inline
_syscall2(long,socketcall,int,call,unsigned long *,args);
 
/* send, sendto added by bir7@leland.stanford.edu */
 
int
send (int sockfd, const void *buffer, size_t len, unsigned flags)
{
  unsigned long args[4];
  args[0] = sockfd;
  args[1] = (unsigned long) buffer;
  args[2] = len;
  args[3] = flags;
  return (socketcall (SYS_SEND, args));
}
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.