[Bug 1612] Recent change to rtems/cpukit/libcsupport/src/freenode.c breaks socket use

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Mon Jul 12 12:58:00 UTC 2010


https://www.rtems.org/bugzilla/show_bug.cgi?id=1612

--- Comment #6 from Manuel Köppen <manuel.koeppen at esd.eu> 2010-07-12 07:57:59 CDT ---
Hmm, overwriting the socket handlers ( iop->handlers = h; ) with other handlers
( iop->handlers = rtems_filesystem_root.handlers; ) isn't such a good idea :)

I think you thought of something like

  /* All root filesystems should have a default freenode */
  iop->pathinfo.ops      = rtems_filesystem_root.ops;
  /* plus maybe */
  iop->pathinfo.handlers = rtems_filesystem_root.handlers;

But that doesn't fix the problem. rtems_filesystem_root has the ops of
whichever filessystem is used as base filesystem.
If you want to fix it like that, you probably need a static
rtems_filesystem_operations_table in the libio_socket and have the
iop->pathinfo.ops point to that.

-- 
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