83 #if defined(OPENSSL_NO_POSIX_IO)
87 extern unsigned long time();
90 const unsigned char *buf=_buf;
93 static unsigned char *outbuf=NULL;
94 unsigned char shortbuf[8];
96 const unsigned char *cp;
102 if (outbuf == NULL)
return(-1);
115 for (i=0; i<
len; i+=k)
135 memcpy(shortbuf,buf,len);
155 for (j=0; j<outnum; j+=i)
160 i=write(fd,(
void *)&(outbuf[j]),outnum-j);
162 i=_write(fd,(
void *)&(outbuf[j]),outnum-j);