<div dir="ltr"><div>Hello everyone,</div><div>I have identified sources to port headers and methods to RTEMS and Newlib. I have given priority to FreeBSD for the choice of source. But method not present in FreeBSD can be ported from alternative sources like NetBSD and musl.<br></div><div><br></div><div>-> Missing methods of math.h: I have compiled a list of methods and their sources. Some need to be implemented from scratch.<br></div><div>list: <a href="https://docs.google.com/document/d/1xwbbkFkwBpVY7AKrP6zkzuDwOspN3tloVvAF4oHoBDQ/edit?usp=sharing" style="text-decoration:none" id="gmail-docs-internal-guid-eadf4056-7fff-e373-30fe-3c40cb22203c"><span style="font-size:10pt;font-family:Verdana;color:rgb(17,85,204);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:underline;vertical-align:baseline;white-space:pre-wrap">Math.h missing functions</span></a> <br></div><div><br></div><div>-> sys/ipc.h: This header and its function can be ported from FreeBSD.<br></div><div>ipc.h : <a href="https://github.com/freebsd/freebsd/blob/master/sys/sys/ipc.h">https://github.com/freebsd/freebsd/blob/master/sys/sys/ipc.h</a></div><div>ftok.c: <a href="https://github.com/freebsd/freebsd/blob/master/lib/libc/gen/ftok.c">https://github.com/freebsd/freebsd/blob/master/lib/libc/gen/ftok.c</a></div><div><br></div><div>->fmtmsg.h: its implementation is also present in FreeBSD.<br><a href="https://github.com/freebsd/freebsd/blob/master/include/fmtmsg.h">https://github.com/freebsd/freebsd/blob/master/include/fmtmsg.h<br>https://github.com/freebsd/freebsd/blob/master/lib/libc/gen/fmtmsg.c <span id="goog_2004077032"></span><span id="goog_2004077033"></span><br></a></div><div><br></div><div>->spawn.h: Its implementation is in FreeBSD. <br><a href="https://github.com/freebsd/freebsd/blob/master/lib/libc/gen/posix_spawn.c" style="text-decoration:none" id="gmail-docs-internal-guid-b8f49f39-7fff-9dd2-59e4-33542d06baab"><span style="font-size:10pt;font-family:Verdana;color:rgb(17,85,204);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:underline;vertical-align:baseline;white-space:pre-wrap">https://github.com/freebsd/freebsd/blob/master/lib/libc/gen/posix_spawn.c</span></a></div><div><br></div><div>-> pselect() from <sys/select.h> : its implementation is also from FreeBSD <br><a href="https://github.com/freebsd/freebsd/blob/master/lib/libc/sys/pselect.c">https://github.com/freebsd/freebsd/blob/master/lib/libc/sys/pselect.c</a></div><div><br></div><div>-> confstr() from <unistd.h>: Its implementation is from FreeBSD <br><a href="https://github.com/udp/freebsd-libc/blob/master/gen/confstr.c.">https://github.com/udp/freebsd-libc/blob/master/gen/confstr.c.</a><br></div><div><br></div><div>I would like everyone to review it and provide your suggestions.<br></div><div><br></div><div>Thanks</div><div>-Eshan <br></div></div>