top | item 40864025 (no title) SomeoneFromCA | 1 year ago Well, this is possible for sure, but not for primitive functions, such as strcmp. It just does not happen in practice. discuss order hn newest jcul|1 year ago For functions like strcmp, I think they must be signal safe, to be POSIX compliant.https://man7.org/linux/man-pages/man7/signal-safety.7.htmlIf it's on this list I generally trust it is safe.I guess my point is, that if it's not, even a simple function may appear safe, but could do surprising things.
jcul|1 year ago For functions like strcmp, I think they must be signal safe, to be POSIX compliant.https://man7.org/linux/man-pages/man7/signal-safety.7.htmlIf it's on this list I generally trust it is safe.I guess my point is, that if it's not, even a simple function may appear safe, but could do surprising things.
jcul|1 year ago
https://man7.org/linux/man-pages/man7/signal-safety.7.html
If it's on this list I generally trust it is safe.
I guess my point is, that if it's not, even a simple function may appear safe, but could do surprising things.