diff options
Diffstat (limited to 'gnu/libexec/uucp/tstuu.c')
-rw-r--r-- | gnu/libexec/uucp/tstuu.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gnu/libexec/uucp/tstuu.c b/gnu/libexec/uucp/tstuu.c index d411ae6ac402..3f629754aee4 100644 --- a/gnu/libexec/uucp/tstuu.c +++ b/gnu/libexec/uucp/tstuu.c @@ -26,7 +26,7 @@ #include "uucp.h" #if USE_RCS_ID -const char tstuu_rcsid[] = "$Id: tstuu.c,v 1.81 1994/01/30 20:53:38 ian Rel $"; +const char tstuu_rcsid[] = "$Id: tstuu.c,v 1.2 1994/05/07 18:08:16 ache Exp $"; #endif #include "sysdep.h" @@ -187,7 +187,7 @@ struct sbuf int cend; char ab[BUFCHARS]; }; - + /* Local functions. */ static void umake_file P((const char *zfile, int cextra)); @@ -305,7 +305,7 @@ main (argc, argv) { int om, os; FILE *e; - + sprintf (zptyname, "/dev/pty%c%c", *zpty, "0123456789abcdef"[ipty]); om = open (zptyname, O_RDWR); @@ -755,7 +755,7 @@ umake_file (z, c) FILE *e; e = xfopen (z, "w"); - + for (i = 0; i < 256; i++) { int i2; @@ -1293,7 +1293,7 @@ cpshow (z, ichar) sprintf (z, "%03o", (unsigned int)(ichar & 0xff)); return strlen (z) + 1; } -} +} /* Pick one of two file descriptors which is ready for reading, or return in five seconds. If the argument is ready for reading, @@ -1345,7 +1345,7 @@ uchoose (po1, po2) if ((as[0].revents & POLLIN) == 0) *po1 = -1; - + if ((as[1].revents & POLLIN) == 0) *po2 = -1; @@ -1388,7 +1388,7 @@ cread (o, pqbuf) (*pqbuf)->cstart = 0; (*pqbuf)->cend = 0; } - + cgot = read (o, (*pqbuf)->ab + (*pqbuf)->cend, (sizeof (*pqbuf)->ab) - (*pqbuf)->cend); if (cgot < 0) @@ -1515,7 +1515,7 @@ fsend (o, oslave, pqbuf) uchild (SIGCHLD); } } - + if (cwrote == 0) break; |