rspec/rules/S1911/rule.adoc
Arseniy Zaostrovnykh 7ca29f686f Force linebreaks
2021-02-02 15:02:10 +01:00

65 lines
1.0 KiB
Plaintext

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