error_code: how to set and check errno

后端 未结 1 1320
轮回少年
轮回少年 2021-01-13 04:43

I\'m trying to understand what category I should use, when calling a C function that sets errno on Linux.

I\'m not sure all the possible error codes are

相关标签:
1条回答
  • 2021-01-13 05:33

    This is a bug recently fixed in latest GCC 6, 7 and 8 point releases. It'll work as you expect if you're on the latest point release. See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60555.

    0 讨论(0)
提交回复
热议问题