Module Name:    src
Committed By:   pooka
Date:           Fri Mar  5 10:27:16 UTC 2010

Modified Files:
        src/sbin/modstat: main.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sbin/modstat/main.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sbin/modstat/main.c
diff -u src/sbin/modstat/main.c:1.8 src/sbin/modstat/main.c:1.9
--- src/sbin/modstat/main.c:1.8	Sat Oct  3 02:27:43 2009
+++ src/sbin/modstat/main.c	Fri Mar  5 10:27:16 2010
@@ -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)) {

Reply via email to