Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/testsuite/winsup.api/ltp/pipe09.c')
-rw-r--r--winsup/testsuite/winsup.api/ltp/pipe09.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/winsup/testsuite/winsup.api/ltp/pipe09.c b/winsup/testsuite/winsup.api/ltp/pipe09.c
index 2c7d9f4c2..eb21bb601 100644
--- a/winsup/testsuite/winsup.api/ltp/pipe09.c
+++ b/winsup/testsuite/winsup.api/ltp/pipe09.c
@@ -46,7 +46,6 @@
* RESTRICTIONS
* None
*/
-#include <unistd.h>
#include <signal.h>
#include <sys/wait.h>
#include <errno.h>
@@ -55,22 +54,21 @@
#define PIPEWRTCNT 100 /* must be an even number */
-char *TCID = "pipe09";
+const char *TCID = "pipe09";
int TST_TOTAL = 1;
extern int Tst_count;
void setup(void);
-void cleanup(void);
+void cleanup(void) __attribute__((noreturn));
+int
main(int ac, char **av)
{
int lc; /* loop counter */
const char *msg; /* message returned from parse_opts */
- int i, red, wtstatus, ret_val;
- int pipe_ret; /* exit stat of pipe */
+ int i, red, wtstatus;
int pipefd[2]; /* fds for pipe read/write */
- char synbuf[BUFSIZ];
char rebuf[BUFSIZ];
int Acnt = 0, Bcnt = 0; /* count 'A' and 'B' */
int fork_1, fork_2; /* ret values in parent */