Why does the system call "read()" block my program?

I am contacting you because I have a problem with my program. For my studies, I am currently programming in C a function to read a file, I am only allowed to use the following functions/system calls: malloc, free, exit, (f)open, (f)close, (f)read, (f)write, getline, ioctl, usleep, sigaction, signal, stat, lstat, fstat The problem is… Read More Why does the system call "read()" block my program?

what is file * in stdio.c souce file in glibc that has & operator

#include "stdio.h" #undef stdin #undef stdout #undef stderr FILE *stdin = (FILE *) &_IO_2_1_stdin_; FILE *stdout = (FILE *) &_IO_2_1_stdout_; FILE *stderr = (FILE *) &_IO_2_1_stderr_; What do these file * lines mean in the stdio.c file in glibc source code, what does the & operator mean in the last three lines. what is IO_2_1_stdin,… Read More what is file * in stdio.c souce file in glibc that has & operator