Re: bug in execl(3)

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

 



Hello Antoine,

On Tue, Mar 22, 2011 at 3:23 AM, Antoine Mathys
<antoine_mathys@xxxxxxxxxxx> wrote:
> The file and path argument names in the prototypes are in the wrong places.
>
> current version:
>
> int execl(const char *path, const char *arg, ...);
> int execlp(const char *file, const char *arg, ...);
> int execle(const char *path, const char *arg,
>            ..., char * const envp[]);
> int execv(const char *path, char *const argv[]);
> int execvp(const char *file, char *const argv[]);
> int execvpe(const char *file, char *const argv[],
>             char *const envp[]);
>
> correct version:
>
> int execl(const char *file, const char *arg, ...);
> int execlp(const char *path, const char *arg, ...);
> int execle(const char *file, const char *arg,
>            ..., char * const envp[]);
> int execv(const char *file, char *const argv[]);
> int execvp(const char *path, char *const argv[]);
> int execvpe(const char *path, char *const argv[],
>             char *const envp[]);
>
> It is a minor bug but it is confusing.

As far as I can see, the existing page is correct. But perhaps somehow
something is not clearly explained. Can you say more about why you
think the page is wrong?

Thanks,

Michael

-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Author of "The Linux Programming Interface"; http://man7.org/tlpi/
--
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