Re: [PATCH] reboot.2: 1-argument reboot() is also provided by alternative libc.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11/17/2015 11:37 AM, Casper Ti. Vector wrote:
> As far as the patch author knows, at least the following alternative C
> libraries for linux also provide the 1-argument variant:
> 
> * uclibc: all public releases.
> * dietlibc: 0.7.2 and all later releases; reboot() was not provided in
>             0.7.1 and earlier releases.
> * musl: all public releases.
> * klibc: all public releases.
> * bionic: all public releases.
> 
> ... which should already cover most use cases.

Thanks, Casper. Patch applied.

Cheers,

Michael



> ---
>  man2/reboot.2 | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/man2/reboot.2 b/man2/reboot.2
> index 6ad5c67..cd6b6ea 100644
> --- a/man2/reboot.2
> +++ b/man2/reboot.2
> @@ -40,7 +40,8 @@ reboot \- reboot or enable/disable Ctrl-Alt-Del
>  .sp
>  .BI "int reboot(int " magic ", int " magic2 ", int " cmd ", void *" arg );
>  .sp
> -/* Under glibc some of the constants involved have gotten
> +/* Under glibc and most alternative libc's (including uclibc, dietlibc,
> +   musl and a few others), some of the constants involved have gotten
>     symbolic names RB_*, and the library call is a 1-argument
>     wrapper around the 3-argument system call: */
>  .sp
> 


-- 
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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux