From: "Michael Kerrisk (man-pages)" <mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Rasmus Villemoes <rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH 13/24] rcmd.3: Fix prototypes
Date: Wed, 21 May 2014 20:09:27 +0200 [thread overview]
Message-ID: <537CEBD7.4020801@gmail.com> (raw)
In-Reply-To: <1400684275-20972-14-git-send-email-rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
Thanks, Rasmus. Applied.
Cheers,
Michael
On 05/21/2014 04:57 PM, Rasmus Villemoes wrote:
> Unlike the BSDs, the second argument of rcmd() and rcmd_af() has
> type unsigned short.
>
> The first argument of iruserok_af() has type const void*.
>
> Signed-off-by: Rasmus Villemoes <rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
> ---
> man3/rcmd.3 | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/man3/rcmd.3 b/man3/rcmd.3
> index 09c6457..4086fe4 100644
> --- a/man3/rcmd.3
> +++ b/man3/rcmd.3
> @@ -49,7 +49,7 @@ stream to a remote command
> .nf
> .B #include <netdb.h> \ \ \fP/* Or <unistd.h> on some systems */
> .sp
> -.BI "int rcmd(char **" ahost ", int " inport ", const char *" locuser ", "
> +.BI "int rcmd(char **" ahost ", unsigned short " inport ", const char *" locuser ", "
> .BI " const char *" remuser ", const char *" cmd ", int *" fd2p );
> .sp
> .BI "int rresvport(int *" port );
> @@ -60,13 +60,13 @@ stream to a remote command
> .BI "int ruserok(const char *" rhost ", int " superuser ", "
> .BI " const char *" ruser ", const char *" luser );
> .sp
> -.BI "int rcmd_af(char **" ahost ", int " inport ", const char *" locuser ", "
> +.BI "int rcmd_af(char **" ahost ", unsigned short " inport ", const char *" locuser ", "
> .BI " const char *" remuser ", const char *" cmd ", int *" fd2p ,
> .BI " sa_family_t " af );
> .sp
> .BI "int rresvport_af(int *" port ", sa_family_t " af );
> .sp
> -.BI "int iruserok_af(uint32_t " raddr ", int " superuser ", "
> +.BI "int iruserok_af(const void *" raddr ", int " superuser ", "
> .BI " const char *" ruser ", const char *" luser \
> ", sa_family_t " af );
> .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-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2014-05-21 18:09 UTC|newest]
Thread overview: 52+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-21 14:57 [PATCH 00/24] Yet more prototype fixes Rasmus Villemoes
[not found] ` <1400684275-20972-1-git-send-email-rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
2014-05-21 14:57 ` [PATCH 01/24] inet.3: Fix prototype Rasmus Villemoes
[not found] ` <1400684275-20972-2-git-send-email-rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
2014-05-21 17:44 ` Michael Kerrisk (man-pages)
2014-05-21 14:57 ` [PATCH 02/24] makecontext.3: " Rasmus Villemoes
[not found] ` <1400684275-20972-3-git-send-email-rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
2014-05-21 17:45 ` Michael Kerrisk (man-pages)
2014-05-21 14:57 ` [PATCH 03/24] makedev.3: " Rasmus Villemoes
[not found] ` <1400684275-20972-4-git-send-email-rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
2014-05-21 17:46 ` Michael Kerrisk (man-pages)
2014-05-21 14:57 ` [PATCH 04/24] malloc_trim.3: " Rasmus Villemoes
[not found] ` <1400684275-20972-5-git-send-email-rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
2014-05-21 17:47 ` Michael Kerrisk (man-pages)
2014-05-21 14:57 ` [PATCH 05/24] mq_getattr.3: " Rasmus Villemoes
[not found] ` <1400684275-20972-6-git-send-email-rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
2014-05-21 17:49 ` Michael Kerrisk (man-pages)
2014-05-21 14:57 ` [PATCH 06/24] perror.3: Fix declaration Rasmus Villemoes
[not found] ` <1400684275-20972-7-git-send-email-rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
2014-05-21 17:50 ` Michael Kerrisk (man-pages)
2014-05-21 14:57 ` [PATCH 07/24] pthread_sigqueue.3: Include needed header Rasmus Villemoes
[not found] ` <1400684275-20972-8-git-send-email-rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
2014-05-21 17:56 ` Michael Kerrisk (man-pages)
2014-05-21 14:57 ` [PATCH 08/24] pthread_attr_set*.3: Constify parameters Rasmus Villemoes
[not found] ` <1400684275-20972-9-git-send-email-rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
2014-05-22 6:47 ` Michael Kerrisk (man-pages)
2014-05-21 14:57 ` [PATCH 09/24] pthread_cleanup_push_defer_np.3: Mention feature test macro Rasmus Villemoes
[not found] ` <1400684275-20972-10-git-send-email-rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
2014-05-21 18:06 ` Michael Kerrisk (man-pages)
2014-05-21 14:57 ` [PATCH 10/24] pthread_setname_np.3: Fix prototype Rasmus Villemoes
[not found] ` <1400684275-20972-11-git-send-email-rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
2014-05-21 18:07 ` Michael Kerrisk (man-pages)
2014-05-21 14:57 ` [PATCH 11/24] pthread_setschedparam.3: Fix prototypes Rasmus Villemoes
[not found] ` <1400684275-20972-12-git-send-email-rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
2014-05-21 18:08 ` Michael Kerrisk (man-pages)
2014-05-21 14:57 ` [PATCH 12/24] pthread_setschedprio.3: Fix prototype Rasmus Villemoes
[not found] ` <1400684275-20972-13-git-send-email-rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
2014-05-21 18:08 ` Michael Kerrisk (man-pages)
2014-05-21 14:57 ` [PATCH 13/24] rcmd.3: Fix prototypes Rasmus Villemoes
[not found] ` <1400684275-20972-14-git-send-email-rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
2014-05-21 18:09 ` Michael Kerrisk (man-pages) [this message]
2014-05-21 14:57 ` [PATCH 14/24] re_comp.3: " Rasmus Villemoes
[not found] ` <1400684275-20972-15-git-send-email-rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
2014-05-21 18:10 ` Michael Kerrisk (man-pages)
2014-05-21 14:57 ` [PATCH 15/24] rexec.3: " Rasmus Villemoes
[not found] ` <1400684275-20972-16-git-send-email-rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
2014-05-21 18:10 ` Michael Kerrisk (man-pages)
2014-05-21 14:57 ` [PATCH 16/24] rtime.3: Replace header Rasmus Villemoes
[not found] ` <1400684275-20972-17-git-send-email-rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
2014-05-21 18:14 ` Michael Kerrisk (man-pages)
2014-05-21 14:57 ` [PATCH 17/24] resolver.3: Fix prototypes and extern-declaration Rasmus Villemoes
[not found] ` <1400684275-20972-18-git-send-email-rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
2014-05-21 18:31 ` Michael Kerrisk (man-pages)
2014-05-21 14:57 ` [PATCH 18/24] scandir.3: Fix prototypes Rasmus Villemoes
[not found] ` <1400684275-20972-19-git-send-email-rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
2014-05-21 18:40 ` Michael Kerrisk (man-pages)
2014-05-21 14:57 ` [PATCH 19/24] sigvec.3: Fix prototype Rasmus Villemoes
[not found] ` <1400684275-20972-20-git-send-email-rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
2014-05-21 18:15 ` Michael Kerrisk (man-pages)
2014-05-21 14:57 ` [PATCH 20/24] setnetgrent.3: " Rasmus Villemoes
[not found] ` <1400684275-20972-21-git-send-email-rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
2014-05-21 18:15 ` Michael Kerrisk (man-pages)
2014-05-21 14:57 ` [PATCH 21/24] tsearch.3: " Rasmus Villemoes
[not found] ` <1400684275-20972-22-git-send-email-rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
2014-05-21 18:48 ` Michael Kerrisk (man-pages)
[not found] ` <537CF50D.2080400-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-05-21 20:02 ` Rasmus Villemoes
[not found] ` <87oayqew8p.fsf-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
2014-05-21 20:15 ` Michael Kerrisk (man-pages)
2014-05-21 14:57 ` [PATCH 22/24] getauxval.3: Fix permissions Rasmus Villemoes
[not found] ` <1400684275-20972-23-git-send-email-rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
2014-05-21 18:17 ` Michael Kerrisk (man-pages)
2014-05-21 14:57 ` [PATCH 23/24] key_setsecret.3: Fix prototypes Rasmus Villemoes
[not found] ` <1400684275-20972-24-git-send-email-rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
2014-05-21 18:19 ` Michael Kerrisk (man-pages)
2014-05-21 14:57 ` [PATCH 24/24] xdr.3: tfix Rasmus Villemoes
[not found] ` <1400684275-20972-25-git-send-email-rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
2014-05-21 18:17 ` Michael Kerrisk (man-pages)
2014-05-21 18:13 ` [PATCH 00/24] Yet more prototype fixes Michael Kerrisk (man-pages)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=537CEBD7.4020801@gmail.com \
--to=mtk.manpages-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.