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

[PATCH 17/22] getitimer.2: SYNOPSIS: Mark as [[deprecated]]

From
ACAlejandro Colomar <alx.manpages@gmail.com>
Date
Oct 30, 2021, 21:31 UTC
Message-ID
<20211030213131.140429-18-alx.manpages@gmail.com>
In-Reply-To
<20211030213131.140429-1-alx.manpages@gmail.com>

POSIX deprecates them and recommends the almost identical timer_[gs]ettime(2). Those use 'struct timespec' instead of 'struct timeval'.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
---
 man2/getitimer.2 | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/man2/getitimer.2 b/man2/getitimer.2
index 7d74df174..9c9ad1978 100644
--- a/man2/getitimer.2
+++ b/man2/getitimer.2
@@ -17,9 +17,10 @@ getitimer, setitimer \- get or set value of an interval timer
 .nf
 .B #include <sys/time.h>
 .PP
-.BI "int getitimer(int " which ", struct itimerval *" curr_value );
-.BI "int setitimer(int " which ", const struct itimerval *restrict " new_value ,
-.BI "              struct itimerval *restrict " old_value );
+.BI "[[deprecated]] int getitimer(int " which ", struct itimerval *" curr_value );
+.BI "[[deprecated]] int setitimer(int " which ,
+.BI "                            const struct itimerval *restrict " new_value ,
+.BI "                            struct itimerval *restrict " old_value );
 .fi
 .SH DESCRIPTION
 These system calls provide access to interval timers, that is,
-- 
2.33.1
Previous: Alejandro ColomarNext: Alejandro Colomar
Message 19 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.