Changeset e4f2591 in rtems-libbsd


Ignore:
Timestamp:
Jul 18, 2012, 4:42:04 PM (8 years ago)
Author:
Jennifer Averett <jennifer.averett@…>
Branches:
4.11, a8f29d695e152575479ad1a97fa354f661bebd4d, freebsd-9.3, d892051f37c2c4ad7f345f6a817ea3d38e56a431
Children:
8fa929e
Parents:
21cc0aa
Message:

Fixed rtems_bsdnet_makeFdForSocket to work with file system change.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtemsbsd/src/rtems-bsd-syscalls.c

    r21cc0aa re4f2591  
    9595 * Create an RTEMS file descriptor for a socket
    9696 */
    97 
    98 int rtems_bsdnet_makeFdForSocket(
    99   void *so,
    100   const rtems_filesystem_file_handlers_r *h
    101 )
     97static int rtems_bsdnet_makeFdForSocket (void *so)
    10298{
    10399  rtems_libio_t *iop;
     
    112108  iop->data0 = fd;
    113109  iop->data1 = so;
    114   iop->pathinfo.handlers = h;
    115   iop->pathinfo.mt_entry->ops = &rtems_filesystem_operations_default;
     110  iop->pathinfo.handlers = &socket_handlers;
     111  iop->pathinfo.mt_entry = &rtems_filesystem_null_mt_entry;
     112  rtems_filesystem_location_add_to_mt_entry(&iop->pathinfo);
    116113  return fd;
    117114}
     
    215212                error = socreate(domain, &so, type, protocol, td->td_ucred, td);
    216213                if (error == 0) {
    217                         fd = rtems_bsdnet_makeFdForSocket (so, &socket_handlers);
     214                        fd = rtems_bsdnet_makeFdForSocket (so);
    218215                        if (fd < 0)
    219216                        {
     
    462459        head->so_qlen--;
    463460
    464         fd = rtems_bsdnet_makeFdForSocket (so, &socket_handlers);
     461        fd = rtems_bsdnet_makeFdForSocket (so);
    465462        if (fd < 0) {
    466463                TAILQ_INSERT_HEAD(&head->so_comp, so, so_list);
Note: See TracChangeset for help on using the changeset viewer.