Changeset 8f0b334 in rtems


Ignore:
Timestamp:
Aug 10, 2010, 5:41:32 PM (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
6e7ee0bd
Parents:
ce656dff
Message:

2010-08-09 Bharath Suri <bharath.s.jois@…>

PR 1660/filesystem

  • libfs/src/pipe/fifo.c, libfs/src/pipe/pipe.h: Changed int pipe_release to void pipe_release.
  • libfs/src/imfs/imfs_fifo.c: Corresponding change to IMFS_fifo_close since pipe_release does not return any error.
  • libfs/src/imfs/imfs_initsupp.c: Changes to improve IMFS_determine_bytes_per_block
Location:
cpukit
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    rce656dff r8f0b334  
     12010-08-09      Bharath Suri <bharath.s.jois@gmail.com>
     2
     3        PR 1660/filesystem
     4        * libfs/src/pipe/fifo.c, libfs/src/pipe/pipe.h: Changed
     5        int pipe_release to void pipe_release.
     6        * libfs/src/imfs/imfs_fifo.c: Corresponding change to
     7        IMFS_fifo_close since pipe_release does not return any error.
     8        * libfs/src/imfs/imfs_initsupp.c: Changes to improve
     9        IMFS_determine_bytes_per_block
     10
    1112010-08-10      Joel Sherrill <joel.sherrill@oarcorp.com>
    212
  • cpukit/libfs/src/imfs/imfs_fifo.c

    rce656dff r8f0b334  
    5050)
    5151{
     52  int err = 0;
    5253  IMFS_jnode_t *jnode = iop->pathinfo.node_access;
    5354
    54   int err = pipe_release(&JNODE2PIPE(jnode), iop);
     55  pipe_release(&JNODE2PIPE(jnode), iop);
    5556
    56   if (err == 0) {
    57     iop->flags &= ~LIBIO_FLAGS_OPEN;
    58     IMFS_check_node_remove(jnode);
    59   }
    60 
     57  iop->flags &= ~LIBIO_FLAGS_OPEN;
     58  IMFS_check_node_remove(jnode);
     59 
    6160  IMFS_FIFO_RETURN(err);
    6261}
  • cpukit/libfs/src/imfs/imfs_initsupp.c

    rce656dff r8f0b334  
    4949    if (bit_mask == requested_bytes_per_block) {
    5050      is_valid = true;
     51      break;
    5152    }
     53    if(bit_mask > requested_bytes_per_block)
     54      break;
    5255  }
    5356  *dest_bytes_per_block = ((is_valid)
  • cpukit/libfs/src/pipe/fifo.c

    rce656dff r8f0b334  
    242242 * it will be set to NULL.
    243243 */
    244 int pipe_release(
     244void pipe_release(
    245245  pipe_control_t **pipep,
    246246  rtems_libio_t *iop
     
    287287#if 0
    288288  if (! delfile)
    289     return 0;
     289    return;
    290290  if (iop->pathinfo.ops->unlink_h == NULL)
    291     return 0;
     291    return;
    292292
    293293  /* This is safe for IMFS, but how about other FSes? */
    294294  iop->flags &= ~LIBIO_FLAGS_OPEN;
    295295  if(iop->pathinfo.ops->unlink_h(&iop->pathinfo))
    296     return -errno;
    297 #endif
    298 
    299   return 0;
     296    return;
     297#endif
     298
    300299}
    301300
  • cpukit/libfs/src/pipe/pipe.h

    rce656dff r8f0b334  
    5353 * it will be set to NULL.
    5454 */
    55 extern int pipe_release(
     55extern void pipe_release(
    5656  pipe_control_t **pipep,
    5757  rtems_libio_t *iop
  • cpukit/score/include/rtems/score/object.h

    rce656dff r8f0b334  
    477477  Objects_Information *information,
    478478  Objects_APIs         the_api,
    479   uint32_t             the_class,
     479  uint16_t             the_class,
    480480  uint32_t             maximum,
    481481  uint16_t             size,
     
    755755Objects_Information *_Objects_Get_information(
    756756  Objects_APIs   the_api,
    757   uint32_t       the_class
     757  uint16_t       the_class
    758758);
    759759
  • cpukit/score/src/objectgetinfo.c

    rce656dff r8f0b334  
    2121Objects_Information *_Objects_Get_information(
    2222  Objects_APIs   the_api,
    23   uint32_t       the_class
     23  uint16_t       the_class
    2424)
    2525{
  • cpukit/score/src/objectinitializeinformation.c

    rce656dff r8f0b334  
    5050  Objects_Information *information,
    5151  Objects_APIs         the_api,
    52   uint32_t             the_class,
     52  uint16_t             the_class,
    5353  uint32_t             maximum,
    5454  uint16_t             size,
Note: See TracChangeset for help on using the changeset viewer.