2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
12 #define FIFO1 "T:fifo1"
13 #define FIFO2 "T:fifo2"
22 f1filedesc
[0] = f1filedesc
[1] = -1;
24 tmpfd
= open(FIFO1
, O_RDWR
| O_CREAT
);
28 f1filedesc
[1] = open(FIFO1
, O_WRONLY
);
29 f1filedesc
[0] = open(FIFO1
, O_RDONLY
);
31 TEST((f1filedesc
[1] >= 0));
32 TEST((f1filedesc
[0] >= 0));
34 f2filedesc
[0] = f2filedesc
[1] = -1;
36 f2filedesc
[1] = open(FIFO2
, O_WRONLY
| O_CREAT
, 0644);
37 f2filedesc
[0] = open(FIFO2
, O_RDONLY
);
39 TEST((f2filedesc
[1] >= 0));
40 TEST((f2filedesc
[0] >= 0));
49 if (f1filedesc
[1] >= 0) close(f1filedesc
[1]);
50 if (f1filedesc
[0] >= 0) close(f1filedesc
[0]);
51 if (f2filedesc
[1] >= 0) close(f2filedesc
[1]);
52 if (f2filedesc
[0] >= 0) close(f2filedesc
[0]);