Skip to contentSkip to conversation

renameat2 doesn't have a no-glibc-wrapper note

DISCUSSION Georg Sauthoff 2 participants 2 messages Mar 12, 2017 – Apr 19, 2017 1 message not in the archive Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

Hello,

the renameat2(2) man page [1] currently doesn't mention that you have to use sycall() to access it. Tested it with glibc-2.24-4.fc25.x86_64.

Can you add notes similar to what e.g. kcmp(2) [2] has?

I mean:

Quoted 6 lines

Note: There is no glibc wrapper for this system call; see NOTES. [..]
NOTES

Glibc does not provide a wrapper for this system call; call it using syscall(2).

Best regards
Georg

[1]: http://man7.org/linux/man-pages/man2/renameat2.2.html
[2]: http://man7.org/linux/man-pages/man2/kcmp.2.html

Signature · 6 lines
'The universe has no center and no edges' (Limits of Control,
2009)
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#2 lore raw
In reply to a message not in the archive

Hello Georg.

Quoted 6 lines · Georg Sauthoff

Hello,

the renameat2(2) man page [1] currently doesn't mention that you have to use sycall() to access it. Tested it with glibc-2.24-4.fc25.x86_64.

Can you add notes similar to what e.g. kcmp(2) [2] has?

Thanks for reporting this. I've added some text to the rename(2) page to note the requirement to use syscall(2).

Cheers,

Michael

Quoted 16 lines

I mean:

Quoted 6 lines

Note: There is no glibc wrapper for this system call; see NOTES. [..]
NOTES

Glibc does not provide a wrapper for this system call; call it using syscall(2).

Best regards
Georg

[1]: http://man7.org/linux/man-pages/man2/renameat2.2.html
[2]: http://man7.org/linux/man-pages/man2/kcmp.2.html

Signature · 7 lines
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html