linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] man/man2/gettimeofday.2: Declare gettimeofday with [[deprecated]].
@ 2025-06-19  4:22 Collin Funk
  2025-06-19  4:22 ` [PATCH 2/3] man/man3/ftime.3: Declare ftime " Collin Funk
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Collin Funk @ 2025-06-19  4:22 UTC (permalink / raw)
  To: Alejandro Colomar; +Cc: Collin Funk, linux-man

As documented in the STANDARDS section gettimeofday was deprecated in
POSIX.1-2008 and removed in POSIX.1-2024. Mark the function as
[[deprecated]] since most systems still have it for comparability, along
with a more modern alternative (e.g. clock_gettime).

Signed-off-by: Collin Funk <collin.funk1@gmail.com>
---
 man/man2/gettimeofday.2 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/man/man2/gettimeofday.2 b/man/man2/gettimeofday.2
index d954a253f..bdb2b0bd3 100644
--- a/man/man2/gettimeofday.2
+++ b/man/man2/gettimeofday.2
@@ -12,8 +12,8 @@ .SH SYNOPSIS
 .nf
 .B #include <sys/time.h>
 .P
-.BI "int gettimeofday(struct timeval *restrict " tv ,
-.BI "                 struct timezone *_Nullable restrict " tz );
+.BI "[[deprecated]] int gettimeofday(struct timeval *restrict " tv ,
+.BI "                                struct timezone *_Nullable restrict " tz );
 .BI "int settimeofday(const struct timeval *" tv ,
 .BI "                 const struct timezone *_Nullable " tz );
 .fi
-- 
2.49.0


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

end of thread, other threads:[~2025-06-23  3:09 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-19  4:22 [PATCH 1/3] man/man2/gettimeofday.2: Declare gettimeofday with [[deprecated]] Collin Funk
2025-06-19  4:22 ` [PATCH 2/3] man/man3/ftime.3: Declare ftime " Collin Funk
2025-06-23  0:45   ` Alejandro Colomar
2025-06-19  4:22 ` [PATCH 3/3] man/man3/ftime.3: Correct POSIX standards in HISTORY Collin Funk
2025-06-23  0:53   ` Alejandro Colomar
2025-06-23  2:48     ` Collin Funk
2025-06-19 11:12 ` [PATCH 1/3] man/man2/gettimeofday.2: Declare gettimeofday with [[deprecated]] Alejandro Colomar
2025-06-19 17:54   ` Collin Funk
2025-06-19 22:20     ` Alejandro Colomar
2025-06-19 22:55       ` Collin Funk
2025-06-19 22:43 ` [PATCH v2] man/man2/gettimeofday.2: Declare functions " Collin Funk
2025-06-23  0:42   ` Alejandro Colomar
2025-06-23  2:42     ` Collin Funk
2025-06-23  3:09       ` G. Branden Robinson

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 NNTP newsgroup(s).