[英]Is it safe to use ucontext_t on linux arm64?
ucontext_t has been removed from POSIX, but is still there in glibc. ucontext_t 已从 POSIX 中删除,但仍存在于 glibc 中。
Is it safe to use it on a linux-arm64 if I don't care about interoperability?如果我不关心互操作性,在 linux-arm64 上使用它是否安全? Any gotchas?有什么问题吗? (floating point registers or anything else I should be worry of?) (浮点寄存器或其他我应该担心的东西?)
Yes, it should be perfectly safe to use.是的,使用它应该是完全安全的。 Just because ucontext.h
was removed from POSIX.1-2017/SUSv7 does not mean that glibc
no longer supports the functionality.仅仅因为ucontext.h
从 POSIX.1-2017/SUSv7 中删除并不意味着glibc
不再支持该功能。
This particular header was removed in the latest version of the standard since IEEE Std 1003.1-2001/Cor 2-2004, item XBD/TC2/D6/28 was applied in the previous version of the standard, updating the getcontext
, makecontext
, setcontext
, and swapcontext
functions to be obsolescent, and thus the header was also defacto obsolescent.自 IEEE Std 1003.1-2001/Cor 2-2004,项目 XBD/TC2/D6/28 应用于标准的先前版本,更新getcontext
, makecontext
, setcontext
,和swapcontext
函数已过时,因此标题实际上也已过时。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.