version 1.73, 2006/08/01 23:22:47 |
version 1.74, 2006/08/03 03:34:42 |
|
|
/* XXX: remove all logging, only return status codes */ |
/* XXX: remove all logging, only return status codes */ |
/* XXX: copy between two remote sites */ |
/* XXX: copy between two remote sites */ |
|
|
#include "includes.h" |
|
|
|
#include <sys/queue.h> |
|
#include <sys/types.h> |
#include <sys/types.h> |
|
#include <sys/queue.h> |
#include <sys/stat.h> |
#include <sys/stat.h> |
#include <sys/time.h> |
#include <sys/time.h> |
#include <sys/param.h> |
#include <sys/param.h> |
|
#include <sys/uio.h> |
|
|
#include <errno.h> |
#include <errno.h> |
#include <fcntl.h> |
#include <fcntl.h> |
|
|
#include <stdio.h> |
#include <stdio.h> |
#include <string.h> |
#include <string.h> |
#include <unistd.h> |
#include <unistd.h> |
|
#include <stdarg.h> |
|
|
#include "buffer.h" |
|
#include "bufaux.h" |
|
#include "xmalloc.h" |
#include "xmalloc.h" |
|
#include "buffer.h" |
#include "log.h" |
#include "log.h" |
#include "atomicio.h" |
#include "atomicio.h" |
#include "progressmeter.h" |
#include "progressmeter.h" |
|
|
iov[0].iov_len = sizeof(mlen); |
iov[0].iov_len = sizeof(mlen); |
iov[1].iov_base = buffer_ptr(m); |
iov[1].iov_base = buffer_ptr(m); |
iov[1].iov_len = buffer_len(m); |
iov[1].iov_len = buffer_len(m); |
|
|
if (atomiciov(writev, fd, iov, 2) != buffer_len(m) + sizeof(mlen)) |
if (atomiciov(writev, fd, iov, 2) != buffer_len(m) + sizeof(mlen)) |
fatal("Couldn't send packet: %s", strerror(errno)); |
fatal("Couldn't send packet: %s", strerror(errno)); |
|
|