Lines Matching refs:retcode
33 int retcode;
39 retcode = pipe (pip);
41 if (retcode != 0)
43 fprintf (stderr, "Bad pipe %d\n", retcode);
56 if ((retcode = read (pip[0], buf, 1)) != 1)
58 fprintf (stderr, "Bad read 1: %d\n", retcode);
62 retcode = read (pip[0], buf, 2);
63 if (retcode == 1)
65 retcode = read (pip[0], buf+1, 1);
66 if (retcode != 1)
68 fprintf (stderr, "Bad read 1.5: %d\n", retcode);
71 retcode = 2;
73 if (retcode != 2)
75 fprintf (stderr, "Bad read 2: %d\n", retcode);
80 retcode = wait4 (-1, &st, WNOHANG | __WCLONE, NULL);
82 if (retcode != pid || !WIFEXITED (st))
84 fprintf (stderr, "Bad wait %d %x\n", retcode, st);