35 return allwrite(s->op,s->fd,s->x,p);
45 while (len > (n = s->n - s->p)) {
46 byte_copy(s->x + s->p,n,buf); s->p +=
n; buf +=
n; len -=
n;
69 if (allwrite(s->op,s->fd,buf,n) == -1)
return -1;
86 return allwrite(s->op,s->fd,buf,len);
int substdio_bputs(substdio *s, char *buf)
unsigned int str_len(char *)
void p(char *home, char *fifo, int uid, int gid, int mode)
void byte_copy(char *, unsigned int, char *)
int substdio_putflush(substdio *s, char *buf, int len)
int substdio_bput(substdio *s, char *buf, int len)
int substdio_flush(substdio *s)
int substdio_putsflush(substdio *s, char *buf)
int substdio_put(substdio *s, char *buf, int len)
int substdio_puts(substdio *s, char *buf)