What does * __ errno () = mean?

So, I'm trying to understand the simple system calls the OS and came across this line of code, I do not know what it means *__errno()= msg.error.number;

. Can anyone help me?

+3


source to share


1 answer


This is most likely the multi-threaded version errno

as defined in errno.h.

__errno()

the call will return a pointer to the local thread int

,
and *__errno()= msg.error.number;

will write to that int

.



This usually needs to be completed by a macro, so you don't see the call or dereference.

+4


source







All Articles