
Inline adoc files when they are included exactly once. Also fix language tags because this inlining gives us better information on what language the code is written in.
60 lines
1.4 KiB
Plaintext
60 lines
1.4 KiB
Plaintext
== Why is this an issue?
|
|
|
|
To ensure future code portability, obsolete POSIX functions should be removed. Those functions, with their replacements are listed below:
|
|
|
|
[frame=all]
|
|
[cols="^1,^1"]
|
|
|===
|
|
|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
|
|
|===
|
|
|
|
ifdef::env-github,rspecator-view[]
|
|
|
|
'''
|
|
== Implementation Specification
|
|
(visible only on this page)
|
|
|
|
=== Message
|
|
|
|
Replace this use of the obsolete "xxx" function with a call to "yyy"
|
|
|
|
|
|
'''
|
|
== Comments And Links
|
|
(visible only on this page)
|
|
|
|
=== on 7 May 2020, 18:36:09 Loïc Joly wrote:
|
|
Removed tmpnam and tmpnam_r from the list, because they moved to RSPEC-5824
|
|
|
|
endif::env-github,rspecator-view[]
|