Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/miscfs/procfs remove comment.
details: https://anonhg.NetBSD.org/src/rev/06b8e1654065
branches: trunk
changeset: 352415:06b8e1654065
user: christos <christos%NetBSD.org@localhost>
date: Thu Mar 30 20:21:00 2017 +0000
description:
remove comment.
diffstat:
sys/miscfs/procfs/procfs_auxv.c | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
diffs (30 lines):
diff -r c71000fba224 -r 06b8e1654065 sys/miscfs/procfs/procfs_auxv.c
--- a/sys/miscfs/procfs/procfs_auxv.c Thu Mar 30 20:17:11 2017 +0000
+++ b/sys/miscfs/procfs/procfs_auxv.c Thu Mar 30 20:21:00 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: procfs_auxv.c,v 1.1 2017/03/30 20:16:29 christos Exp $ */
+/* $NetBSD: procfs_auxv.c,v 1.2 2017/03/30 20:21:00 christos Exp $ */
/*-
* Copyright (c) 2017 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: procfs_auxv.c,v 1.1 2017/03/30 20:16:29 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: procfs_auxv.c,v 1.2 2017/03/30 20:21:00 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -52,11 +52,6 @@
if ((error = proc_getauxv(p, &buffer, &bufsize)) != 0)
return error;
- /*
- * We support reading from an offset, because linux does.
- * The map could have changed between the two reads, and
- * that could result in junk, but typically it does not.
- */
if (uio->uio_offset < bufsize)
error = uiomove((char *)buffer + uio->uio_offset,
bufsize - uio->uio_offset, uio);
Home |
Main Index |
Thread Index |
Old Index