Skip to content

man2: Add [[deprecated]] attribute

Alejandro Colomar git linux-man lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest22 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/22bdflush.2: SYNOPSIS: Mark as [[deprecated]]man2/bdflush.2+2 -20 replies
2/22create_module.2: SYNOPSIS: Mark as [[deprecated]]man2/create_module.2+1 -10 replies
3/22get_kernel_syms.2: SYNOPSIS: Mark as [[deprecated]]man2/get_kernel_syms.2+1 -10 replies
4/22getunwind.2: SYNOPSIS: Mark as [[deprecated]]man2/getunwind.2+2 -10 replies
5/22iopl.2: SYNOPSIS: Mark as [[deprecated]]man2/iopl.2+1 -10 replies
6/22query_module.2: SYNOPSIS: Mark as [[deprecated]]man2/query_module.2+3 -20 replies
7/22remap_file_pages.2: SYNOPSIS: Mark as [[deprecated]]man2/remap_file_pages.2+3 -20 replies
8/22sigprocmask.2: SYNOPSIS: Mark the legacy system call as [[deprecated]]man2/sigprocmask.2+7 -50 replies
9/22statfs.2: SYNOPSIS: Mark as [[deprecated]]man2/statfs.2+2 -20 replies
10/22stime.2: SYNOPSIS: Mark as [[deprecated]]man2/stime.2+1 -10 replies
11/22ustat.2: SYNOPSIS: Mark as [[deprecated]]man2/ustat.2+1 -10 replies
12/22pthread_mutex_consistent.3: Mark *_np() old function as [[deprecated]]man3/pthread_mutex_consistent.3+1 -00 replies
13/22sysctl.2: SYNOPSIS: Mark as [[deprecated]]man2/sysctl.2+1 -10 replies
14/22vfork.2: SYNOPSIS: Mark as [[deprecated]]man2/vfork.2+1 -10 replies
15/22tkill.2: SYNOPSIS: Mark tkill() as [[deprecated]]man2/tkill.2+1 -10 replies
16/22sgetmask.2: SYNOPSIS: Mark as [[deprecated]]man2/sgetmask.2+2 -20 replies
17/22getitimer.2: SYNOPSIS: Mark as [[deprecated]]man2/getitimer.2+4 -30 replies
18/22futimesat.2: SYNOPSIS: Mark as [[deprecated]]man2/futimesat.2+2 -20 replies
19/22gettimeofday.2: SYNOPSIS: Mark as [[deprecated]]man2/gettimeofday.2+4 -40 replies
20/22setpgid.2: SYNOPSIS: Mark BSD versions of getpgrp() and setpgrp() as [[deprecated]]man2/setpgid.2+4 -40 replies
21/22sysfs.2: SYNOPSIS: Mark as [[deprecated]]man2/sysfs.2+3 -30 replies
22/22uselib.2: SYNOPSIS: Mark as [[deprecated]]man2/uselib.2+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/22] man2: Add [[deprecated]] attribute

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(-)
Signature · 1 line
2.33.1