svn commit: r346273 - in head/sys: compat/freebsd32 kern
Ed Maste
emaste at FreeBSD.org
Tue Sep 3 14:07:47 UTC 2019
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
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.petersen at 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,
More information about the svn-src-all
mailing list