Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src PR/49684: Pierre Pronchery: readlinkat(2) return type is wrong.
details: https://anonhg.NetBSD.org/src/rev/b6cee8e576a1
branches: trunk
changeset: 336258:b6cee8e576a1
user: christos <christos%NetBSD.org@localhost>
date: Sun Feb 22 00:50:30 2015 +0000
description:
PR/49684: Pierre Pronchery: readlinkat(2) return type is wrong.
diffstat:
include/unistd.h | 4 ++--
sys/kern/init_sysent.c | 6 +++---
sys/kern/syscalls.c | 6 +++---
sys/kern/syscalls.master | 4 ++--
sys/rump/include/rump/rump_syscalls.h | 6 +++---
sys/sys/syscall.h | 6 +++---
sys/sys/syscallargs.h | 4 ++--
7 files changed, 18 insertions(+), 18 deletions(-)
diffs (144 lines):
diff -r e5c76cbc2ed7 -r b6cee8e576a1 include/unistd.h
--- a/include/unistd.h Sun Feb 22 00:46:58 2015 +0000
+++ b/include/unistd.h Sun Feb 22 00:50:30 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: unistd.h,v 1.143 2014/09/26 19:28:03 christos Exp $ */
+/* $NetBSD: unistd.h,v 1.144 2015/02/22 00:54:46 christos Exp $ */
/*-
* Copyright (c) 1998, 1999, 2008 The NetBSD Foundation, Inc.
@@ -308,7 +308,7 @@
int renameat(int, const char *, int, const char *);
int faccessat(int, const char *, int, int);
int fchownat(int, const char *, uid_t, gid_t, int);
-int readlinkat(int, const char *, char *, size_t);
+ssize_t readlinkat(int, const char *, char *, size_t);
int symlinkat(const char *, int, const char *);
int unlinkat(int, const char *, int);
#endif
diff -r e5c76cbc2ed7 -r b6cee8e576a1 sys/kern/init_sysent.c
--- a/sys/kern/init_sysent.c Sun Feb 22 00:46:58 2015 +0000
+++ b/sys/kern/init_sysent.c Sun Feb 22 00:50:30 2015 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: init_sysent.c,v 1.288 2015/02/10 17:43:44 christos Exp $ */
+/* $NetBSD: init_sysent.c,v 1.289 2015/02/22 00:53:28 christos Exp $ */
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.271 2015/02/10 15:07:39 martin Exp
+ * created from NetBSD: syscalls.master,v 1.272 2015/02/22 00:50:30 christos Exp
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: init_sysent.c,v 1.288 2015/02/10 17:43:44 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: init_sysent.c,v 1.289 2015/02/22 00:53:28 christos Exp $");
#include "opt_modular.h"
#include "opt_ntp.h"
diff -r e5c76cbc2ed7 -r b6cee8e576a1 sys/kern/syscalls.c
--- a/sys/kern/syscalls.c Sun Feb 22 00:46:58 2015 +0000
+++ b/sys/kern/syscalls.c Sun Feb 22 00:50:30 2015 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: syscalls.c,v 1.279 2015/02/10 17:43:44 christos Exp $ */
+/* $NetBSD: syscalls.c,v 1.280 2015/02/22 00:53:28 christos Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.271 2015/02/10 15:07:39 martin Exp
+ * created from NetBSD: syscalls.master,v 1.272 2015/02/22 00:50:30 christos Exp
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: syscalls.c,v 1.279 2015/02/10 17:43:44 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: syscalls.c,v 1.280 2015/02/22 00:53:28 christos Exp $");
#if defined(_KERNEL_OPT)
#include "opt_modular.h"
diff -r e5c76cbc2ed7 -r b6cee8e576a1 sys/kern/syscalls.master
--- a/sys/kern/syscalls.master Sun Feb 22 00:46:58 2015 +0000
+++ b/sys/kern/syscalls.master Sun Feb 22 00:50:30 2015 +0000
@@ -1,4 +1,4 @@
- $NetBSD: syscalls.master,v 1.271 2015/02/10 15:07:39 martin Exp $
+ $NetBSD: syscalls.master,v 1.272 2015/02/22 00:50:30 christos Exp $
; @(#)syscalls.master 8.2 (Berkeley) 1/13/94
@@ -919,7 +919,7 @@
const struct timespec *tptr, int flag); }
468 STD RUMP { int|sys||openat(int fd, const char *path, \
int oflags, ... mode_t mode); }
-469 STD RUMP { int|sys||readlinkat(int fd, const char *path, \
+469 STD RUMP { ssize_t|sys||readlinkat(int fd, const char *path, \
char *buf, size_t bufsize); }
470 STD RUMP { int|sys||symlinkat(const char *path1, int fd, \
const char *path2); }
diff -r e5c76cbc2ed7 -r b6cee8e576a1 sys/rump/include/rump/rump_syscalls.h
--- a/sys/rump/include/rump/rump_syscalls.h Sun Feb 22 00:46:58 2015 +0000
+++ b/sys/rump/include/rump/rump_syscalls.h Sun Feb 22 00:50:30 2015 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: rump_syscalls.h,v 1.80 2015/02/10 17:43:44 christos Exp $ */
+/* $NetBSD: rump_syscalls.h,v 1.81 2015/02/22 00:53:28 christos Exp $ */
/*
* System call protos in rump namespace.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.271 2015/02/10 15:07:39 martin Exp
+ * created from NetBSD: syscalls.master,v 1.272 2015/02/22 00:50:30 christos Exp
*/
#ifndef _RUMP_RUMP_SYSCALLS_H_
@@ -1028,7 +1028,7 @@
int rump_sys_fstatat(int, const char *, struct stat *, int) __RENAME(RUMP_SYS_RENAME_FSTATAT);
int rump_sys_utimensat(int, const char *, const struct timespec *, int) __RENAME(RUMP_SYS_RENAME_UTIMENSAT);
int rump_sys_openat(int, const char *, int, ...) __RENAME(RUMP_SYS_RENAME_OPENAT);
-int rump_sys_readlinkat(int, const char *, char *, size_t) __RENAME(RUMP_SYS_RENAME_READLINKAT);
+ssize_t rump_sys_readlinkat(int, const char *, char *, size_t) __RENAME(RUMP_SYS_RENAME_READLINKAT);
int rump_sys_symlinkat(const char *, int, const char *) __RENAME(RUMP_SYS_RENAME_SYMLINKAT);
int rump_sys_unlinkat(int, const char *, int) __RENAME(RUMP_SYS_RENAME_UNLINKAT);
int rump_sys_futimens(int, const struct timespec *) __RENAME(RUMP_SYS_RENAME_FUTIMENS);
diff -r e5c76cbc2ed7 -r b6cee8e576a1 sys/sys/syscall.h
--- a/sys/sys/syscall.h Sun Feb 22 00:46:58 2015 +0000
+++ b/sys/sys/syscall.h Sun Feb 22 00:50:30 2015 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: syscall.h,v 1.275 2015/02/10 17:43:44 christos Exp $ */
+/* $NetBSD: syscall.h,v 1.276 2015/02/22 00:53:28 christos Exp $ */
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.271 2015/02/10 15:07:39 martin Exp
+ * created from NetBSD: syscalls.master,v 1.272 2015/02/22 00:50:30 christos Exp
*/
#ifndef _SYS_SYSCALL_H_
@@ -1334,7 +1334,7 @@
/* syscall: "openat" ret: "int" args: "int" "const char *" "int" "..." */
#define SYS_openat 468
-/* syscall: "readlinkat" ret: "int" args: "int" "const char *" "char *" "size_t" */
+/* syscall: "readlinkat" ret: "ssize_t" args: "int" "const char *" "char *" "size_t" */
#define SYS_readlinkat 469
/* syscall: "symlinkat" ret: "int" args: "const char *" "int" "const char *" */
diff -r e5c76cbc2ed7 -r b6cee8e576a1 sys/sys/syscallargs.h
--- a/sys/sys/syscallargs.h Sun Feb 22 00:46:58 2015 +0000
+++ b/sys/sys/syscallargs.h Sun Feb 22 00:50:30 2015 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: syscallargs.h,v 1.258 2015/02/10 17:43:44 christos Exp $ */
+/* $NetBSD: syscallargs.h,v 1.259 2015/02/22 00:53:28 christos Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.271 2015/02/10 15:07:39 martin Exp
+ * created from NetBSD: syscalls.master,v 1.272 2015/02/22 00:50:30 christos Exp
*/
#ifndef _SYS_SYSCALLARGS_H_
Home |
Main Index |
Thread Index |
Old Index