Source-Changes-HG archive

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

[src/trunk]: src/sbin/modstat Use 8k buffer, since 4k is too short for the de...



details:   https://anonhg.NetBSD.org/src/rev/e91b7ac98142
branches:  trunk
changeset: 752735:e91b7ac98142
user:      pooka <pooka%NetBSD.org@localhost>
date:      Fri Mar 05 10:27:16 2010 +0000

description:
Use 8k buffer, since 4k is too short for the default list (might
save one round of modctl()).

diffstat:

 sbin/modstat/main.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r c0bfbf834260 -r e91b7ac98142 sbin/modstat/main.c
--- a/sbin/modstat/main.c       Fri Mar 05 09:00:26 2010 +0000
+++ b/sbin/modstat/main.c       Fri Mar 05 10:27:16 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.8 2009/10/03 02:27:43 elad Exp $    */
+/*     $NetBSD: main.c,v 1.9 2010/03/05 10:27:16 pooka Exp $   */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -28,7 +28,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: main.c,v 1.8 2009/10/03 02:27:43 elad Exp $");
+__RCSID("$NetBSD: main.c,v 1.9 2010/03/05 10:27:16 pooka Exp $");
 #endif /* !lint */
 
 #include <sys/module.h>
@@ -86,7 +86,7 @@
        if (argc != 0)
                usage();
 
-       for (len = 4096;;) {
+       for (len = 8192;;) {
                iov.iov_base = malloc(len);
                iov.iov_len = len;
                if (modctl(MODCTL_STAT, &iov)) {



Home | Main Index | Thread Index | Old Index