patch-2.1.128 linux/net/wanrouter/wanproc.c
Next file: linux/scripts/lxdialog/menubox.c
Previous file: linux/net/socket.c
Back to the patch index
Back to the overall index
- Lines: 49
- Date:
Sun Nov 8 14:36:46 1998
- Orig file:
v2.1.127/linux/net/wanrouter/wanproc.c
- Orig date:
Sat Sep 5 16:46:42 1998
diff -u --recursive --new-file v2.1.127/linux/net/wanrouter/wanproc.c linux/net/wanrouter/wanproc.c
@@ -56,6 +56,8 @@
/****** Function Prototypes *************************************************/
+#ifdef CONFIG_PROC_FS
+
/* Proc filesystem interface */
static int router_proc_perms(struct inode *, int);
static ssize_t router_proc_read(struct file* file, char* buf, size_t count, loff_t *ppos);
@@ -176,7 +178,7 @@
/*
* /proc/net/router
*/
-
+
static struct proc_dir_entry proc_router =
{
0, /* .low_ino */
@@ -528,3 +530,30 @@
* End
*/
+#else
+
+/*
+ * No /proc - output stubs
+ */
+
+__initfunc(int wanrouter_proc_init(void))
+{
+ return 0;
+}
+
+void wanrouter_proc_cleanup(void)
+{
+ return;
+}
+
+int wanrouter_proc_add(wan_device_t *wandev)
+{
+ return 0;
+}
+
+int wanrouter_proc_delete(wan_device_t *wandev)
+{
+ return 0;
+}
+
+#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov