2.4.0: Small observation in /proc/sys/net/unix/
Subsystems (2)
# ls -il /proc/sys/net/unix/ total 24 4446 -rw------- 1 root root 0 Jan 11 11:06 max_dgram_qlen 4446 -rw------- 1 root root 0 Jan 11 11:06 max_dgram_qlen
Identical filenames, nothing bad appears to be happening it just looks weird.
Signature · 5 lines
Darryl Miles - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] Please read the FAQ at http://www.tux.org/lkml/
Quoted 9 lines · Darryl Miles
# ls -il /proc/sys/net/unix/ total 24 4446 -rw------- 1 root root 0 Jan 11 11:06 max_dgram_qlen 4446 -rw------- 1 root root 0 Jan 11 11:06 max_dgram_qlenIdentical filenames, nothing bad appears to be happening it just looks weird.
This has been fixed in Alan's patches.
-- Hans
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
Date: Thu, 11 Jan 2001 11:35:30 +0000
From: Darryl Miles <[email protected]>
Identical filenames, nothing bad appears to be happening it just looks weird.
Known problem, here is the fix:
net/sysctl_net.c renamed from linux/net/sysctl_net.c +0 -7
@@ -26,10 +26,6 @@extern ctl_table core_table[]; -#ifdef CONFIG_UNIX -extern ctl_table unix_table[]; -#endif -#ifdef CONFIG_NET extern ctl_table ether_table[], e802_table[];#endif
@@ -48,9 +44,6 @@ctl_table net_table[] = { {NET_CORE ,"core" ,NULL ,0 ,0555 , core_table}, -#ifdef CONFIG_UNIX - {NET_UNIX ,"unix" ,NULL ,0 ,0555 , unix_table}, -#endif #ifdef CONFIG_NET {NET_802 ,"802" ,NULL ,0 ,0555 , e802_table}, {NET_ETHER, "ethernet", NULL, 0, 0555, ether_table},
net/unix/Makefile renamed from linux/net/unix/Makefile +0 -2
@@ -16,5 +16,3 @@ include $(TOPDIR)/Rules.make -tar: - tar -cvf /dev/f1 .
net/unix/af_unix.c renamed from linux/net/unix/af_unix.c +24 -28
151 lines not on this page · raw message
net/unix/sysctl_net_unix.c renamed from linux/net/unix/sysctl_net_unix.c +7 -14
@@ -1,10 +1,8 @@/* -* NET3: Sysctl interface to net af_unix subsystem. +* NET4: Sysctl interface to net af_unix subsystem. * * Authors: Mike Shaver. * -* Added /proc/sys/net/unix directory entry (empty =) ). -* * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version
@@ -15,8 +13,6 @@#include <linux/sysctl.h> #include <linux/config.h> -#ifdef CONFIG_SYSCTL -extern int sysctl_unix_max_dgram_qlen;ctl_table unix_table[] = {
@@ -26,20 +22,18 @@ {0} }; -static struct ctl_table_header * unix_sysctl_header; -static struct ctl_table unix_root_table[]; -static struct ctl_table unix_net_table[]; - -ctl_table unix_root_table[] = { - {CTL_NET ,"net" ,NULL ,0 ,0555 , unix_net_table}, +static ctl_table unix_net_table[] = { + {NET_UNIX ,"unix" ,NULL ,0 ,0555 , unix_table}, {0 } }; -ctl_table unix_net_table[] = { - {NET_UNIX ,"unix" ,NULL ,0 ,0555 , unix_table}, +static ctl_table unix_root_table[] = { + {CTL_NET ,"net" ,NULL ,0 ,0555 , unix_net_table}, {0 } }; +static struct ctl_table_header * unix_sysctl_header; +void unix_sysctl_register (void ) { unix_sysctl_header =register_sysctl_table (unix_root_table,0 );
@@ -50,4 +44,3 @@unregister_sysctl_table (unix_sysctl_header); } -#endif /* CONFIG_SYSCTL */
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/