是什么_r后缀是什么意思?

问题描述:

我知道 _r 后缀用来表示一些线程安全的。例如 strtok的 strtok_r libmysql.so libmysql_r.so 。但是,我找不到任何地方是什么这实际上意味着?例如, _t 的意思是'型'的,什么是 _r 的后缀是什么意思?

I know _r suffix is used to indicate something thread-safe. For example strtok and strtok_r or libmysql.so and libmysql_r.so. But I cannot find anywhere what this actually means ? For example, _t means 'type' and what does _r suffix mean?

请参阅附录 A.4.16线程安全在http://pubs.opengroup.org/onlinepubs/000095399/xrat/xbd_chap04.html:

后缀_r是历史的,这里的R代表折返。

The suffix "_r" is historical, where the 'r' stood for "reentrant".