Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想测试 sem_wait 函数以使其返回 -1 并且 errno 是 EINTR 并且我想打印它们。
我怎样才能做到这一点?你能给我举个例子吗?