#include #include int main() { int fileDes[2]; if (pipe(fileDes) < 0) { perror("pipe"); return 1; } if (close(fileDes[0]) < 0) { perror("close"); return 2; } char buf = 'a'; write(fileDes[1], &buf, 1); return 0; }