Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/miscfs/fdesc define FDESC_MAXNAMLEN and use it.
details: https://anonhg.NetBSD.org/src/rev/237acd5ddb25
branches: trunk
changeset: 769931:237acd5ddb25
user: christos <christos%NetBSD.org@localhost>
date: Tue Sep 27 01:22:12 2011 +0000
description:
define FDESC_MAXNAMLEN and use it.
diffstat:
sys/miscfs/fdesc/fdesc.h | 4 +++-
sys/miscfs/fdesc/fdesc_vfsops.c | 6 +++---
2 files changed, 6 insertions(+), 4 deletions(-)
diffs (45 lines):
diff -r 95625654f137 -r 237acd5ddb25 sys/miscfs/fdesc/fdesc.h
--- a/sys/miscfs/fdesc/fdesc.h Tue Sep 27 01:16:35 2011 +0000
+++ b/sys/miscfs/fdesc/fdesc.h Tue Sep 27 01:22:12 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fdesc.h,v 1.20 2009/07/31 19:47:47 pooka Exp $ */
+/* $NetBSD: fdesc.h,v 1.21 2011/09/27 01:22:12 christos Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -66,6 +66,8 @@
#define VTOFDESC(vp) ((struct fdescnode *)(vp)->v_data)
+#define FDESC_MAXNAMLEN 255
+
extern dev_t devctty;
extern void fdesc_init(void);
extern void fdesc_done(void);
diff -r 95625654f137 -r 237acd5ddb25 sys/miscfs/fdesc/fdesc_vfsops.c
--- a/sys/miscfs/fdesc/fdesc_vfsops.c Tue Sep 27 01:16:35 2011 +0000
+++ b/sys/miscfs/fdesc/fdesc_vfsops.c Tue Sep 27 01:22:12 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fdesc_vfsops.c,v 1.85 2010/06/24 13:03:12 hannken Exp $ */
+/* $NetBSD: fdesc_vfsops.c,v 1.86 2011/09/27 01:22:12 christos Exp $ */
/*
* Copyright (c) 1992, 1993, 1995
@@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fdesc_vfsops.c,v 1.85 2010/06/24 13:03:12 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fdesc_vfsops.c,v 1.86 2011/09/27 01:22:12 christos Exp $");
#if defined(_KERNEL_OPT)
#include "opt_compat_netbsd.h"
@@ -97,7 +97,7 @@
rvp->v_type = VDIR;
rvp->v_vflag |= VV_ROOT;
- mp->mnt_stat.f_namemax = MAXNAMLEN;
+ mp->mnt_stat.f_namemax = FDESC_MAXNAMLEN;
mp->mnt_flag |= MNT_LOCAL;
mp->mnt_data = rvp;
vfs_getnewfsid(mp);
Home |
Main Index |
Thread Index |
Old Index