public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] sys/stat.h: Enable UTIME_NOW and UTIME_OMIT for RTEMS
@ 2021-05-19 18:43 Joel Sherrill
  2021-05-20  8:27 ` Corinna Vinschen
  0 siblings, 1 reply; 2+ messages in thread
From: Joel Sherrill @ 2021-05-19 18:43 UTC (permalink / raw)
  To: newlib

---
 newlib/libc/include/sys/stat.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/newlib/libc/include/sys/stat.h b/newlib/libc/include/sys/stat.h
index 68f839b..3d31ba5 100644
--- a/newlib/libc/include/sys/stat.h
+++ b/newlib/libc/include/sys/stat.h
@@ -128,7 +128,7 @@ struct	stat
 #define	S_ISLNK(m)	(((m)&_IFMT) == _IFLNK)
 #define	S_ISSOCK(m)	(((m)&_IFMT) == _IFSOCK)
 
-#if defined(__CYGWIN__)
+#if defined(__CYGWIN__) || defined(__rtems__)
 /* Special tv_nsec values for futimens(2) and utimensat(2). */
 #define UTIME_NOW	-2L
 #define UTIME_OMIT	-1L
-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] sys/stat.h: Enable UTIME_NOW and UTIME_OMIT for RTEMS
  2021-05-19 18:43 [PATCH] sys/stat.h: Enable UTIME_NOW and UTIME_OMIT for RTEMS Joel Sherrill
@ 2021-05-20  8:27 ` Corinna Vinschen
  0 siblings, 0 replies; 2+ messages in thread
From: Corinna Vinschen @ 2021-05-20  8:27 UTC (permalink / raw)
  To: newlib

On May 19 13:43, Joel Sherrill wrote:
> ---
>  newlib/libc/include/sys/stat.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/newlib/libc/include/sys/stat.h b/newlib/libc/include/sys/stat.h
> index 68f839b..3d31ba5 100644
> --- a/newlib/libc/include/sys/stat.h
> +++ b/newlib/libc/include/sys/stat.h
> @@ -128,7 +128,7 @@ struct	stat
>  #define	S_ISLNK(m)	(((m)&_IFMT) == _IFLNK)
>  #define	S_ISSOCK(m)	(((m)&_IFMT) == _IFSOCK)
>  
> -#if defined(__CYGWIN__)
> +#if defined(__CYGWIN__) || defined(__rtems__)
>  /* Special tv_nsec values for futimens(2) and utimensat(2). */
>  #define UTIME_NOW	-2L
>  #define UTIME_OMIT	-1L
> -- 
> 1.8.3.1

Pushed.


Thanks,
Corinna


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-05-20  8:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-19 18:43 [PATCH] sys/stat.h: Enable UTIME_NOW and UTIME_OMIT for RTEMS Joel Sherrill
2021-05-20  8:27 ` Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).