Lines Matching refs:retcode
62 int retcode;
73 retcode = pipe (pip);
75 if (retcode != 0)
77 fprintf (stderr, "Bad pipe %d\n", retcode);
102 while ((retcode = read (pip[0], buf, 1)) == 0)
105 if (retcode != 1)
107 fprintf (stderr, "Bad read 1: %d\n", retcode);
115 while ((retcode = read (pip[0], buf, 1)) == 0)
118 if (retcode != 1)
120 fprintf (stderr, "Bad read 2: %d\n", retcode);
132 retcode = waitpid (pid, &st, __WALL);
134 if (retcode != pid || !WIFEXITED (st))
136 fprintf (stderr, "Bad wait %d:%d %x\n", pid, retcode, st);