"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "sendfile.h" between
minidlna-1.2.1.tar.gz and minidlna-1.3.0.tar.gz

About: ReadyMedia (formerly known as MiniDLNA) is a simple media server software, with the aim of being fully compliant with DLNA/UPnP-AV clients.

sendfile.h  (minidlna-1.2.1):sendfile.h  (minidlna-1.3.0)
skipping to change at line 54 skipping to change at line 54
#include <sys/types.h> #include <sys/types.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <sys/uio.h> #include <sys/uio.h>
int sys_sendfile(int sock, int sendfd, off_t *offset, off_t len) int sys_sendfile(int sock, int sendfd, off_t *offset, off_t len)
{ {
int ret; int ret;
size_t nbytes = len; size_t nbytes = len;
ret = sendfile(sendfd, sock, *offset, nbytes, NULL, &len, SF_MNOWAIT); ret = sendfile(sendfd, sock, *offset, nbytes, NULL, &len, 0);
*offset += len; *offset += len;
return ret; return ret;
} }
#else #else
#include <errno.h> #include <errno.h>
int sys_sendfile(int sock, int sendfd, off_t *offset, off_t len) int sys_sendfile(int sock, int sendfd, off_t *offset, off_t len)
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)