substdio.c
author tomas@localhost
Thu, 01 Nov 2007 14:46:11 +0100
changeset 0 c045670f36e9
permissions -rw-r--r--
Imported queue-fix-1.4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
     1
#include "substdio.h"
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
     2
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
     3
void substdio_fdbuf(s,op,fd,buf,len)
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
     4
register substdio *s;
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
     5
register int (*op)();
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
     6
register int fd;
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
     7
register char *buf;
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
     8
register int len;
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
     9
{
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    10
  s->x = buf;
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    11
  s->fd = fd;
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    12
  s->op = op;
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    13
  s->p = 0;
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    14
  s->n = len;
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    15
}