PR: 1230
This commit is contained in:
Andy Polyakov
2008-12-30 13:30:57 +00:00
parent 1ff7b6492b
commit f17c45611e
9 changed files with 56 additions and 6 deletions

View File

@@ -147,7 +147,11 @@ int DES_enc_read(int fd, void *buf, int len, DES_key_schedule *sched,
/* first - get the length */
while (net_num < HDRSIZE)
{
#ifndef _WIN32
i=read(fd,(void *)&(net[net_num]),HDRSIZE-net_num);
#else
i=_read(fd,(void *)&(net[net_num]),HDRSIZE-net_num);
#endif
#ifdef EINTR
if ((i == -1) && (errno == EINTR)) continue;
#endif

View File

@@ -153,7 +153,11 @@ int DES_enc_write(int fd, const void *_buf, int len,
{
/* eay 26/08/92 I was not doing writing from where we
* got up to. */
#ifndef _WIN32
i=write(fd,(void *)&(outbuf[j]),outnum-j);
#else
i=_write(fd,(void *)&(outbuf[j]),outnum-j);
#endif
if (i == -1)
{
#ifdef EINTR