|
|
Subscribe / Log in / New account

ioctl() forever?

ioctl() forever?

Posted Jun 9, 2022 0:53 UTC (Thu) by NYKevin (subscriber, #129325)
In reply to: ioctl() forever? by atnot
Parent article: ioctl() forever?

Meh, snprintf isn't the kernel's fault, it's C's fault for being terrible at finagling strings. Stringly-typed interfaces are bad because they are difficult or impossible to validate, not because snprintf is painful.


to post comments

ioctl() forever?

Posted Jun 9, 2022 1:35 UTC (Thu) by atnot (subscriber, #124910) [Link]

This wasn't at all meant to be a dig at snprintf(), feel free to insert your preferred mechanism. I just don't think string formatting is something that should be regularly involved at the very core of OS APIs at all, even if C's string handling wasn't as uniquely terrible as it is. Although that fact doesn't help of course.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds