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

Re: [PATCH 00/22] man2: Add [[deprecated]] attribute

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 30, 2021, 22:23 UTC
Message-ID
<CAPc5daWURksnU02wWZzBsx+6nsw82Lgd1K+rBRnmnqA1SJ0UBQ@mail.gmail.com>
In-Reply-To
<20211030213131.140429-1-alx.manpages@gmail.com>
[jc: moved everybody else to bcc]

Please do not spam the git mailing list with these manual page update patches. We may be interested in the final contents of the manual pages, we appreciate the work done by the linux-man project, but we already have our share of patch traffic on this list that people are swamped with.

2021年10月30日(土) 14:32 Alejandro Colomar <alx.manpages@gmail.com>:
Show 93 quoted lines
>
> Hello Michael,
>
> I added the C2X [[deprecated]] attribute to the prototypes of some
> system calls.  All of the cases where I added that were already
> marked as deprecated or obsolete somewhere in the manual page,
> so this is just about uniformity and visual effect rather than
> a new deprecation notice.
>
> There are cases where the syscalls have been simply removed, and
> so they are obviously not to be used any more.
>
> There are cases where some implementation (not necessarily Linux)
> is dangerous.
>
> In some other cases, the functions have been obsoleted by POSIX,
> but are still there in Linux without any deprecation notices.
> In these cases, if there's no clear replacement, or if the
> replacement is not a straight drop-in, or if the replacement adds
> more complexity, I didn't add the [[deprecated]] attribute.
>
> A list of the system calls that I skipped in this patch set:
>
> - utime(2)
>         Many filesystems have 1 second resolution, so it makes
>         sense to use it in those cases.  git(1) for example uses
>         utime(2) consistently.  Although deprecated by POSIX, it
>         is still part of POSIX; if it ever removes it, we can
>         reconsider.
>
> - setpgrp(2) (the POSIX/SysV version)
>         POSIX deprecated it (not yet removed), but the manual page
>         doesn't mention any replacement.
>
> Cheers,
>
> Alex
>
>
> ---
>
> Alejandro Colomar (22):
>   bdflush.2: SYNOPSIS: Mark as [[deprecated]]
>   create_module.2: SYNOPSIS: Mark as [[deprecated]]
>   get_kernel_syms.2: SYNOPSIS: Mark as [[deprecated]]
>   getunwind.2: SYNOPSIS: Mark as [[deprecated]]
>   iopl.2: SYNOPSIS: Mark as [[deprecated]]
>   query_module.2: SYNOPSIS: Mark as [[deprecated]]
>   remap_file_pages.2: SYNOPSIS: Mark as [[deprecated]]
>   sigprocmask.2: SYNOPSIS: Mark the legacy system call as [[deprecated]]
>   statfs.2: SYNOPSIS: Mark as [[deprecated]]
>   stime.2: SYNOPSIS: Mark as [[deprecated]]
>   ustat.2: SYNOPSIS: Mark as [[deprecated]]
>   pthread_mutex_consistent.3: Mark *_np() old function as [[deprecated]]
>   sysctl.2: SYNOPSIS: Mark as [[deprecated]]
>   vfork.2: SYNOPSIS: Mark as [[deprecated]]
>   tkill.2: SYNOPSIS: Mark tkill() as [[deprecated]]
>   sgetmask.2: SYNOPSIS: Mark as [[deprecated]]
>   getitimer.2: SYNOPSIS: Mark as [[deprecated]]
>   futimesat.2: SYNOPSIS: Mark as [[deprecated]]
>   gettimeofday.2: SYNOPSIS: Mark as [[deprecated]]
>   setpgid.2: SYNOPSIS: Mark BSD versions of getpgrp() and setpgrp() as
>     [[deprecated]]
>   sysfs.2: SYNOPSIS: Mark as [[deprecated]]
>   uselib.2: SYNOPSIS: Mark as [[deprecated]]
>
>  man2/bdflush.2                  |  4 ++--
>  man2/create_module.2            |  2 +-
>  man2/futimesat.2                |  4 ++--
>  man2/get_kernel_syms.2          |  2 +-
>  man2/getitimer.2                |  7 ++++---
>  man2/gettimeofday.2             |  8 ++++----
>  man2/getunwind.2                |  3 ++-
>  man2/iopl.2                     |  2 +-
>  man2/query_module.2             |  5 +++--
>  man2/remap_file_pages.2         |  5 +++--
>  man2/setpgid.2                  |  8 ++++----
>  man2/sgetmask.2                 |  4 ++--
>  man2/sigprocmask.2              | 12 +++++++-----
>  man2/statfs.2                   |  4 ++--
>  man2/stime.2                    |  2 +-
>  man2/sysctl.2                   |  2 +-
>  man2/sysfs.2                    |  6 +++---
>  man2/tkill.2                    |  2 +-
>  man2/uselib.2                   |  2 +-
>  man2/ustat.2                    |  2 +-
>  man2/vfork.2                    |  2 +-
>  man3/pthread_mutex_consistent.3 |  1 +
>  22 files changed, 48 insertions(+), 41 deletions(-)
>
> --
> 2.33.1
>
Previous: Alejandro Colomar
Message 24 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.