Which of the following system calls can EINTR or EAGAIN / EWOULDBLOCK return?
getsockname()
chdir()
bind()
fcntl()
listen()
setsid()
setsockopt()
socket()
stat()
unlink()
access()
accept()
open()
usleep()
dup2()
fork()
waitpid()
wait()
read()
write()
Some of these system calls return EINTR or EAGAIN on error (man API).
There are also some system calls that the APIs do not reference EINTR / EAGAIN and return them.
Please, help.
source
share