/* Find out how many "Packets" a pipe holds. */ /* Does altering the size of the "packet change the pipe's capacity? */ #include #include main() {int fd[2]; char ch[10]="1234567890"; long n=25; int num=0; pipe(fd); while (1) { //write(fd[1],&ch,1); //write(fd[1],&ch,5); write(fd[1],&n,sizeof(long)); fprintf(stderr,"%d ",++num); // if (num%100==99) printf("\n"); } }