1
Programming / Re: Networking: socket() returns positive `non-socket`
« on: July 08, 2025, 06:03:47 am »
@agena.info
I have some questions.
1. net_openos2() and net_bindos2() are called in the same process ?
2. What is the result of fstat() in net_bindos2() when returing 'Socket operation on non-socket' error ? And what is the value of (stat.st_mode & S_IFMT) ?
I have some questions.
1. net_openos2() and net_bindos2() are called in the same process ?
2. What is the result of fstat() in net_bindos2() when returing 'Socket operation on non-socket' error ? And what is the value of (stat.st_mode & S_IFMT) ?