writev.c revision 4bc0a2ef2b7ba50a7a717e7ddbf31472ad28e358
/*
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef LINT
#endif
#pragma ident "%Z%%M% %I% %E% SMI"
#include "port_before.h"
#include "port_after.h"
#ifndef NEED_WRITEV
int __bindcompat_writev;
#else
#ifdef _CRAY
#define OWN_WRITEV
int
{
return (-1);
/*
* Allow for atomic writes to network.
*/
mesg.msg_namelen = 0;
mesg.msg_accrights = 0;
mesg.msg_accrightslen = 0;
} else {
if (rcode < 0)
break;
}
if (count == 0)
return (rcode);
else
return (count);
}
}
#else /*_CRAY*/
int
int fd;
int vpcount;
{
int count = 0;
while (vpcount-- > 0) {
if (written < 0)
return (-1);
break;
vp++;
}
return (count);
}
#endif /*_CRAY*/
#endif /*NEED_WRITEV*/