@SoniEx2 I'm not sure what that means. You don't have the fd number until socket returns. Lowest-available assignment is guaranteed though so presumably you reliably get either EBADF or success, but in any nontrivial MT setting this would be a programming error because you would have no idea if the fd were assigned somewhere else instead.
Conversation
Notices
-
Embed this notice
Rich Felker (dalias@hachyderm.io)'s status on Sunday, 17-Nov-2024 13:14:41 JST Rich Felker -
Embed this notice
Genders: ♾️, 🟪⬛🟩; Soni L. (soniex2@chaos.social)'s status on Sunday, 17-Nov-2024 13:14:42 JST Genders: ♾️, 🟪⬛🟩; Soni L. #askfedi does POSIX allow using socket after socket fd has been allocated but before call to socket() returns (e.g. with threads)?
-
Embed this notice