вт, 16 апр. 2019 г. в 16:26, Ed Maste <ema...@freebsd.org>:

> Author: emaste
> Date: Tue Apr 16 13:26:31 2019
> New Revision: 346273
> URL: https://svnweb.freebsd.org/changeset/base/346273
>
> Log:
>   correct readlinkat(2) return type
>
>
Hi, Ed
make sysent?



>   r176215 corrected readlink(2)'s return type and the type of the last
>   argument.  readlink(2) was introduced in r177788 after being developed
>   as part of Google Summer of Code 2007; it appears to have inherited the
>   wrong return type.
>
>   Man pages and header files were already ssize_t; update syscalls.master
>   to match.
>
>   PR:           197915
>   Submitted by: Henning Petersen <henning.peter...@t-online.de>
>   MFC after:    2 weeks
>
> Modified:
>   head/sys/compat/freebsd32/syscalls.master
>   head/sys/kern/syscalls.master
>
> Modified: head/sys/compat/freebsd32/syscalls.master
>
> ==============================================================================
> --- head/sys/compat/freebsd32/syscalls.master   Tue Apr 16 12:40:49 2019
>       (r346272)
> +++ head/sys/compat/freebsd32/syscalls.master   Tue Apr 16 13:26:31 2019
>       (r346273)
> @@ -963,7 +963,7 @@
>                                     uint32_t dev); }
>  499    AUE_OPENAT_RWTC NOPROTO { int openat(int fd, const char *path, \
>                                     int flag, mode_t mode); }
> -500    AUE_READLINKAT  NOPROTO { int readlinkat(int fd, const char *path,
> \
> +500    AUE_READLINKAT  NOPROTO { ssize_t readlinkat(int fd, const char
> *path, \
>                                     char *buf, size_t bufsize); }
>  501    AUE_RENAMEAT    NOPROTO { int renameat(int oldfd, const char *old,
> \
>                                     int newfd, const char *new); }
>
> Modified: head/sys/kern/syscalls.master
>
> ==============================================================================
> --- head/sys/kern/syscalls.master       Tue Apr 16 12:40:49 2019
> (r346272)
> +++ head/sys/kern/syscalls.master       Tue Apr 16 13:26:31 2019
> (r346273)
> @@ -2716,7 +2716,7 @@
>                 );
>         }
>  500    AUE_READLINKAT  STD {
> -               int readlinkat(
> +               ssize_t readlinkat(
>                     int fd,
>                     _In_z_ const char *path,
>                     _Out_writes_bytes_(bufsize) char *buf,
>
>
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to