<div dir="auto"><div>Did you generate the patch with git format-patch? It doesn't look like it has a proper commit message. <br><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Sun, May 11, 2025, 1:45 PM mez3n <<a href="mailto:mez3n1151@gmail.com">mez3n1151@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Mazen Adel Elmessady <<a href="mailto:mez3n1151@gmail.com" target="_blank" rel="noreferrer">mez3n1151@gmail.com</a>><br>
<br>
Hi,<br>
<br>
Following up on my previous patch, I am submitting an update to the Newlib headers by adding the prototype for `timespec_get()` in `time.h`. This function is part of POSIX Issue 8 and is needed for RTEMS to improve compliance with POSIX standards.<br>
<br>
This patch prepares for the implementation of `timespec_get()` in a future update.<br>
<br>
Your feedback is appreciated.<br>
<br>
Best regards,  <br>
Mazen  <br>
<<a href="mailto:mez3n1151@gmail.com" target="_blank" rel="noreferrer">mez3n1151@gmail.com</a>><br>
---<br>
 newlib/libc/include/time.h | 3 +++<br>
 1 file changed, 3 insertions(+)<br>
<br>
diff --git a/newlib/libc/include/time.h b/newlib/libc/include/time.h<br>
index ab3491341..33cf40049 100644<br>
--- a/newlib/libc/include/time.h<br>
+++ b/newlib/libc/include/time.h<br>
@@ -57,6 +57,9 @@ clock_t          clock (void);<br>
 double    difftime (time_t _time2, time_t _time1);<br>
 time_t    mktime (struct tm *_timeptr);<br>
 time_t    time (time_t *_timer);<br>
+#if __STDC_VERSION__ >= 201112L<br>
+int        timespec_get(struct timespec *ts, int base);<br>
+#endif<br>
 #ifndef _REENT_ONLY<br>
 char     *asctime (const struct tm *_tblock);<br>
 char     *ctime (const time_t *_time);<br>
-- <br>
2.45.2<br>
<br>
</blockquote></div></div></div>