rspec/rules/S1911/rule.adoc

65 lines
1.0 KiB
Plaintext
Raw Normal View History

2020-06-30 12:47:33 +02:00
To ensure future code portability, obsolete POSIX functions should be removed. Those functions, with their replacements are listed below:
2021-02-02 15:02:10 +01:00
2020-06-30 12:47:33 +02:00
||Obsolete||Use Instead||
2021-02-02 15:02:10 +01:00
2020-06-30 12:47:33 +02:00
|asctime|strftime|
2021-02-02 15:02:10 +01:00
2020-06-30 12:47:33 +02:00
|asctime_r|strftime|
2021-02-02 15:02:10 +01:00
2020-06-30 12:47:33 +02:00
|bcmp|memcmp|
2021-02-02 15:02:10 +01:00
2020-06-30 12:47:33 +02:00
|bcopy|memmove memcpy|
2021-02-02 15:02:10 +01:00
2020-06-30 12:47:33 +02:00
|bsd_signal|sigaction|
2021-02-02 15:02:10 +01:00
2020-06-30 12:47:33 +02:00
|bzero|memset|
2021-02-02 15:02:10 +01:00
2020-06-30 12:47:33 +02:00
|ctime|strftime|
2021-02-02 15:02:10 +01:00
2020-06-30 12:47:33 +02:00
|ecvt|sprintf|
2021-02-02 15:02:10 +01:00
2020-06-30 12:47:33 +02:00
|fcvt|sprintf|
2021-02-02 15:02:10 +01:00
2020-06-30 12:47:33 +02:00
|ftime|no replacement function|
2021-02-02 15:02:10 +01:00
2020-06-30 12:47:33 +02:00
|gcvt|sprintf|
2021-02-02 15:02:10 +01:00
2020-06-30 12:47:33 +02:00
|getcontext|Rewrite to use POSIX threads.|
2021-02-02 15:02:10 +01:00
2020-06-30 12:47:33 +02:00
|gethostbyaddr|getnameinfo|
2021-02-02 15:02:10 +01:00
2020-06-30 12:47:33 +02:00
|gethostbyname|getaddrinfo|
2021-02-02 15:02:10 +01:00
2020-06-30 12:47:33 +02:00
|getwd|getcwd|
2021-02-02 15:02:10 +01:00
2020-06-30 12:47:33 +02:00
|index|strchr|
2021-02-02 15:02:10 +01:00
2020-06-30 12:47:33 +02:00
|makecontext|Rewrite to use POSIX threads.|
2021-02-02 15:02:10 +01:00
2020-06-30 12:47:33 +02:00
|mktemp|mkstemp|
2021-02-02 15:02:10 +01:00
2020-06-30 12:47:33 +02:00
|pthread_attr_getstackaddr|pthread_attr_getstack|
2021-02-02 15:02:10 +01:00
2020-06-30 12:47:33 +02:00
|pthread_attr_setstackaddr|pthread_attr_setstack|
2021-02-02 15:02:10 +01:00
2020-06-30 12:47:33 +02:00
|rand_r|rand|
2021-02-02 15:02:10 +01:00
2020-06-30 12:47:33 +02:00
|rindex|strrchr|
2021-02-02 15:02:10 +01:00
2020-06-30 12:47:33 +02:00
|scalb|scalbln', 'scalblnf' or 'scalblnl' instead of this function|
2021-02-02 15:02:10 +01:00
2020-06-30 12:47:33 +02:00
|swapcontext|Rewrite to use POSIX threads.|
2021-02-02 15:02:10 +01:00
2020-06-30 12:47:33 +02:00
|ualarm|'timer_create', 'timer_delete', 'timer_getoverrun', 'timer_gettime', or 'timer_settime' instead of this function|
2021-02-02 15:02:10 +01:00
2020-06-30 12:47:33 +02:00
|usleep|'nanosleep' or 'setitimer' function|
2021-02-02 15:02:10 +01:00
2020-06-30 12:47:33 +02:00
|utime|utimensat|
2021-02-02 15:02:10 +01:00
2020-06-30 12:47:33 +02:00
|vfork|fork|
2021-02-02 15:02:10 +01:00
2020-06-30 12:47:33 +02:00
|wcswcs|wcsstr|