3 ms·
I don't believe there's a single person on this planet that likes using ioctls on a int fd. I'd say Vulkan is the best API that follows the Microsoft API desig
by alexvitkov 3y ago
I don't believe there's a single person on this planet that likes using ioctls on a int fd.
I'd say Vulkan is the best API that follows the Microsoft API design - the initialization process is always "fill out this struct and call vkCreateWhatever", and the struct fields are actually documented well, not "HANDLE handle - this is the handle".
- jonhohle 3y agoWhenever I run into a situation where ioctl is necessary it makes me think the authors either hadn’t thought their design through enough, or couldn’t convince enough people that a sys call was justified. What an abhorant interface.
- alexvitkov 3y agoNon-blocking IO? Surely that doesn't have enough value to justify a decent API, just throw in an ioctl, people will figure it out.