int count;
void alrm_action(int);
int main(void)
{
int p[2];
int pipe_size;
char c = 'x';
static struct sigaction act;
act.sa_handler = alrm_action;
sigfillset(&(act.sa_mask));
if(pipe(p)==-1){
perror("pipe call");
exit(1);
}
pipe_size = fpathconf(p[0], _PC_PIPE_BUF);
printf("Maximum size of write to pipe: %d bytes\n", pipe_size);