[Bug 1612] Recent change to rtems/cpukit/libcsupport/src/freenode.c breaks socket use
bugzilla-daemon at rtems.org
bugzilla-daemon at rtems.org
Sat Jul 10 14:42:21 UTC 2010
https://www.rtems.org/bugzilla/show_bug.cgi?id=1612
--- Comment #3 from Joel Sherrill <joel.sherrill at oarcorp.com> 2010-07-10 09:42:20 CDT ---
This should help IFF all the root filesystems have a default freenode
handler. If not, then we will have to have a filesystem ops table
specifically for sockets which is all default.
The current root filesystems are IMFS, miniIMFS, and devFS. I am heading
out for a short holiday and didn't verify that they have the required
default freenode handler.
Comments and feedback appreciated.
Index: libcsupport/src/libio_sockets.c
===================================================================
RCS file: /usr1/CVS/rtems/cpukit/libcsupport/src/libio_sockets.c,v
retrieving revision 1.14
diff -u -r1.14 libio_sockets.c
--- libcsupport/src/libio_sockets.c 28 Jun 2010 23:12:10 -0000 1.14
+++ libcsupport/src/libio_sockets.c 10 Jul 2010 14:39:33 -0000
@@ -71,5 +71,7 @@
iop->data0 = fd;
iop->data1 = so;
iop->handlers = h;
+ /* All root filesystems should have a default freenode */
+ iop->ops = rtems_filesystem_root->ops;
return fd;
}
--
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the bugs
mailing list