Skip to contentSkip to conversation

sched_setattr.2: Add note about missing glibc wrappers

PATCH In review Alejandro Colomar 2 participants 2 messages Feb 15, 2021 Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sched_setattr.2: Add note about missing glibc wrappers

......

.../glibc$ grep_glibc_prototype sched_setattr
.../glibc$ grep_glibc_prototype sched_getattr
.../glibc$

---
 man2/sched_setattr.2 | 6 ++++++
 1 file changed, 6 insertions(+)
man2/sched_setattr.2 +6 -0
index ecbdbffc4..c79b74a49 100644
@@ -37,6 +37,9 @@ set and get scheduling policy and attributes
 .BI "                  unsigned int " size ", unsigned int " flags );
 .fi
 .\" FIXME . Add feature test macro requirements
+.PP
+.IR Note :
+There are no glibc wrappers for these system calls; see NOTES.
 .SH DESCRIPTION
 .SS sched_setattr()
 The
@@ -388,6 +391,9 @@ These system calls first appeared in Linux 3.14.
 .SH CONFORMING TO
 These system calls are nonstandard Linux extensions.
 .SH NOTES
+Glibc does not provide wrappers for these system calls; call them using
+.BR syscall (2).
+.PP
 .BR sched_setattr ()
 provides a superset of the functionality of
 .BR sched_setscheduler (2),
Signature · 1 line
2.30.0
#1 lore raw

Hi Alex,

Quoted 7 lines · Alejandro Colomar

......

.../glibc$ grep_glibc_prototype sched_setattr
.../glibc$ grep_glibc_prototype sched_getattr
.../glibc$

Thanks! Patch applied.

Cheers,

Michael

Quoted 29 lines
---
 man2/sched_setattr.2 | 6 ++++++
 1 file changed, 6 insertions(+)
man2/sched_setattr.2 +6 -0
index ecbdbffc4..c79b74a49 100644
@@ -37,6 +37,9 @@ set and get scheduling policy and attributes
 .BI "                  unsigned int " size ", unsigned int " flags );
 .fi
 .\" FIXME . Add feature test macro requirements
+.PP
+.IR Note :
+There are no glibc wrappers for these system calls; see NOTES.
 .SH DESCRIPTION
 .SS sched_setattr()
 The
@@ -388,6 +391,9 @@ These system calls first appeared in Linux 3.14.
 .SH CONFORMING TO
 These system calls are nonstandard Linux extensions.
 .SH NOTES
+Glibc does not provide wrappers for these system calls; call them using
+.BR syscall (2).
+.PP
 .BR sched_setattr ()
 provides a superset of the functionality of
 .BR sched_setscheduler (2),
Signature · 3 lines
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/