git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 19/22] gettimeofday.2: SYNOPSIS: Mark as [[deprecated]]

From
ACAlejandro Colomar <alx.manpages@gmail.com>
Date
Oct 30, 2021, 21:31 UTC
Message-ID
<20211030213131.140429-20-alx.manpages@gmail.com>
In-Reply-To
<20211030213131.140429-1-alx.manpages@gmail.com>
Use clock_gettime(2) instead.
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
---
 man2/gettimeofday.2 | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/man2/gettimeofday.2 b/man2/gettimeofday.2
index 8101e311d..f4b7189d7 100644
--- a/man2/gettimeofday.2
+++ b/man2/gettimeofday.2
@@ -44,10 +44,10 @@ gettimeofday, settimeofday \- get / set time
 .nf
 .B #include <sys/time.h>
 .PP
-.BI "int gettimeofday(struct timeval *restrict " tv ,
-.BI "                 struct timezone *restrict " tz );
-.BI "int settimeofday(const struct timeval *" tv ,
-.BI "                 const struct timezone *" tz );
+.BI "[[deprecated]] int gettimeofday(struct timeval *restrict " tv ,
+.BI "                                struct timezone *restrict " tz );
+.BI "[[deprecated]] int settimeofday(const struct timeval *" tv ,
+.BI "                                const struct timezone *" tz );
 .fi
 .PP
 .RS -4
-- 
2.33.1
Previous: Alejandro ColomarNext: Alejandro Colomar
Message 17 of 24 in “man2: Add [[deprecated]] attribute”
  1. 00/22 man2: Add [[deprecated]] attributeAlejandro Colomar, Oct 30, 2021
  2. 01/22 bdflush.2: SYNOPSIS: Mark as [[deprecated]]Alejandro Colomar, Oct 30, 2021
  3. 02/22 create_module.2: SYNOPSIS: Mark as [[deprecated]]Alejandro Colomar, Oct 30, 2021
  4. 03/22 get_kernel_syms.2: SYNOPSIS: Mark as [[deprecated]]Alejandro Colomar, Oct 30, 2021
  5. 04/22 getunwind.2: SYNOPSIS: Mark as [[deprecated]]Alejandro Colomar, Oct 30, 2021
  6. 06/22 query_module.2: SYNOPSIS: Mark as [[deprecated]]Alejandro Colomar, Oct 30, 2021
  7. 05/22 iopl.2: SYNOPSIS: Mark as [[deprecated]]Alejandro Colomar, Oct 30, 2021
  8. 07/22 remap_file_pages.2: SYNOPSIS: Mark as [[deprecated]]Alejandro Colomar, Oct 30, 2021
  9. 08/22 sigprocmask.2: SYNOPSIS: Mark the legacy system call as [[deprecated]]Alejandro Colomar, Oct 30, 2021
  10. 09/22 statfs.2: SYNOPSIS: Mark as [[deprecated]]Alejandro Colomar, Oct 30, 2021
  11. 10/22 stime.2: SYNOPSIS: Mark as [[deprecated]]Alejandro Colomar, Oct 30, 2021
  12. 11/22 ustat.2: SYNOPSIS: Mark as [[deprecated]]Alejandro Colomar, Oct 30, 2021
  13. 13/22 sysctl.2: SYNOPSIS: Mark as [[deprecated]]Alejandro Colomar, Oct 30, 2021
  14. 12/22 pthread_mutex_consistent.3: Mark *_np() old function as [[deprecated]]Alejandro Colomar, Oct 30, 2021
  15. 14/22 vfork.2: SYNOPSIS: Mark as [[deprecated]]Alejandro Colomar, Oct 30, 2021
  16. 15/22 tkill.2: SYNOPSIS: Mark tkill() as [[deprecated]]Alejandro Colomar, Oct 30, 2021
  17. 19/22 gettimeofday.2: SYNOPSIS: Mark as [[deprecated]]Alejandro Colomar, Oct 30, 2021
  18. 18/22 futimesat.2: SYNOPSIS: Mark as [[deprecated]]Alejandro Colomar, Oct 30, 2021
  19. 17/22 getitimer.2: SYNOPSIS: Mark as [[deprecated]]Alejandro Colomar, Oct 30, 2021
  20. 16/22 sgetmask.2: SYNOPSIS: Mark as [[deprecated]]Alejandro Colomar, Oct 30, 2021
  21. 20/22 setpgid.2: SYNOPSIS: Mark BSD versions of getpgrp() and setpgrp() as [[deprecated]]Alejandro Colomar, Oct 30, 2021
  22. 21/22 sysfs.2: SYNOPSIS: Mark as [[deprecated]]Alejandro Colomar, Oct 30, 2021
  23. 22/22 uselib.2: SYNOPSIS: Mark as [[deprecated]]Alejandro Colomar, Oct 30, 2021
  24. Junio C HamanoOct 30, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.