What does the suffix _r mean?

I know that _r suffix is ​​used to indicate something thread safe. For example strtok and strtok_r or libmysql.so and libmysql_r.so . But I can’t find what it really means? For example, _t means "type" and what does the suffix _r mean?

+4
source share
3 answers

See chapter A.4.16 Thread-Safety at http://pubs.opengroup.org/onlinepubs/000095399/xrat/xbd_chap04.html :

The suffix "_r" is historical, where "r" means "repeated."

+9
source

The suffix _r means re-entry.

+5
source

_r means reentrant, although these functions may not be completely reentrant. These functions simply guarantee that no static storage is used.

+3
source

Source: https://habr.com/ru/post/1442529/


All Articles