Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/miscfs/procfs define PROCFS_MAXNAMLEN and use it.
details: https://anonhg.NetBSD.org/src/rev/289d3b1726dd
branches: trunk
changeset: 769933:289d3b1726dd
user: christos <christos%NetBSD.org@localhost>
date: Tue Sep 27 01:23:59 2011 +0000
description:
define PROCFS_MAXNAMLEN and use it.
diffstat:
sys/miscfs/procfs/procfs.h | 3 ++-
sys/miscfs/procfs/procfs_vfsops.c | 6 +++---
2 files changed, 5 insertions(+), 4 deletions(-)
diffs (44 lines):
diff -r 68501edf706e -r 289d3b1726dd sys/miscfs/procfs/procfs.h
--- a/sys/miscfs/procfs/procfs.h Tue Sep 27 01:23:05 2011 +0000
+++ b/sys/miscfs/procfs/procfs.h Tue Sep 27 01:23:59 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: procfs.h,v 1.66 2011/09/04 17:32:10 jmcneill Exp $ */
+/* $NetBSD: procfs.h,v 1.67 2011/09/27 01:23:59 christos Exp $ */
/*
* Copyright (c) 1993
@@ -130,6 +130,7 @@
#define PROCFS_NOTELEN 64 /* max length of a note (/proc/$pid/note) */
#define PROCFS_CTLLEN 8 /* max length of a ctl msg (/proc/$pid/ctl */
+#define PROCFS_MAXNAMLEN 255
#endif /* _KERNEL */
diff -r 68501edf706e -r 289d3b1726dd sys/miscfs/procfs/procfs_vfsops.c
--- a/sys/miscfs/procfs/procfs_vfsops.c Tue Sep 27 01:23:05 2011 +0000
+++ b/sys/miscfs/procfs/procfs_vfsops.c Tue Sep 27 01:23:59 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: procfs_vfsops.c,v 1.85 2009/11/30 10:59:20 pooka Exp $ */
+/* $NetBSD: procfs_vfsops.c,v 1.86 2011/09/27 01:23:59 christos Exp $ */
/*
* Copyright (c) 1993
@@ -76,7 +76,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: procfs_vfsops.c,v 1.85 2009/11/30 10:59:20 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: procfs_vfsops.c,v 1.86 2011/09/27 01:23:59 christos Exp $");
#if defined(_KERNEL_OPT)
#include "opt_compat_netbsd.h"
@@ -157,7 +157,7 @@
pmnt = (struct procfsmount *) malloc(sizeof(struct procfsmount),
M_UFSMNT, M_WAITOK); /* XXX need new malloc type */
- mp->mnt_stat.f_namemax = MAXNAMLEN;
+ mp->mnt_stat.f_namemax = PROCFS_MAXNAMLEN;
mp->mnt_flag |= MNT_LOCAL;
mp->mnt_data = pmnt;
vfs_getnewfsid(mp);
Home |
Main Index |
Thread Index |
Old Index