Ticket #1376: pr1376_r9.diff

File pr1376_r9.diff, 6.7 KB (added by Joel Sherrill, on 03/09/09 at 13:14:41)

Patch for 4.9

  • cpukit/libfs/src/dosfs/fat_file.c

    RCS file: /usr1/CVS/rtems/cpukit/libfs/src/dosfs/fat_file.c,v
    retrieving revision 1.12
    diff -u -r1.12 fat_file.c
     
    4949    fat_file_fd_t                          **ret
    5050);
    5151
    52 static int
     52static off_t
    5353fat_file_lseek(
    5454    rtems_filesystem_mount_table_entry_t  *mt_entry,
    5555    fat_file_fd_t                         *fat_fd,
     
    940940    return -1;
    941941}
    942942
    943 static int
     943static off_t
    944944fat_file_lseek(
    945945    rtems_filesystem_mount_table_entry_t  *mt_entry,
    946946    fat_file_fd_t                         *fat_fd,
  • cpukit/libfs/src/dosfs/msdos.h

    RCS file: /usr1/CVS/rtems/cpukit/libfs/src/dosfs/msdos.h,v
    retrieving revision 1.17
    diff -u -r1.17 msdos.h
     
    258258  size_t         count            /* IN  */
    259259);
    260260
    261 int msdos_file_lseek(
     261off_t msdos_file_lseek(
    262262  rtems_libio_t        *iop,              /* IN  */
    263263  off_t                 offset,           /* IN  */
    264264  int                   whence            /* IN  */
     
    308308  size_t         count             /* IN  */
    309309);
    310310
    311 int msdos_dir_lseek(
     311off_t msdos_dir_lseek(
    312312  rtems_libio_t        *iop,              /* IN  */
    313313  off_t                 offset,           /* IN  */
    314314  int                   whence            /* IN  */
  • cpukit/libfs/src/dosfs/msdos_dir.c

    RCS file: /usr1/CVS/rtems/cpukit/libfs/src/dosfs/msdos_dir.c,v
    retrieving revision 1.12
    diff -u -r1.12 msdos_dir.c
     
    363363 *     RC_OK on success, or -1 if error occured (errno
    364364 *     set apropriately).
    365365 */
    366 int
     366off_t
    367367msdos_dir_lseek(rtems_libio_t *iop, off_t offset, int whence)
    368368{
    369369    switch (whence)
  • cpukit/libfs/src/dosfs/msdos_file.c

    RCS file: /usr1/CVS/rtems/cpukit/libfs/src/dosfs/msdos_file.c,v
    retrieving revision 1.10
    diff -u -r1.10 msdos_file.c
     
    223223 *     new offset on success, or -1 if error occured (errno set
    224224 *     appropriately).
    225225 */
    226 int
     226off_t
    227227msdos_file_lseek(rtems_libio_t *iop, off_t offset, int whence)
    228228{
    229229    int                rc = RC_OK;
  • cpukit/libfs/src/imfs/deviceio.c

    RCS file: /usr1/CVS/rtems/cpukit/libfs/src/imfs/deviceio.c,v
    retrieving revision 1.16
    diff -u -r1.16 deviceio.c
     
    235235 *  This handler eats all lseek() operations.
    236236 */
    237237
    238 int device_lseek(
     238off_t device_lseek(
    239239  rtems_libio_t *iop,
    240240  off_t          offset,
    241241  int            whence
  • cpukit/libfs/src/imfs/imfs.h

    RCS file: /usr1/CVS/rtems/cpukit/libfs/src/imfs/imfs.h,v
    retrieving revision 1.31
    diff -u -r1.31 imfs.h
     
    391391  size_t         count             /* IN  */
    392392);
    393393
    394 int imfs_dir_lseek(
     394off_t imfs_dir_lseek(
    395395  rtems_libio_t        *iop,              /* IN  */
    396396  off_t                 offset,           /* IN  */
    397397  int                   whence            /* IN  */
     
    435435  void          *buffer           /* IN  */
    436436);
    437437
    438 int memfile_lseek(
     438off_t memfile_lseek(
    439439  rtems_libio_t        *iop,        /* IN  */
    440440  off_t                 offset,     /* IN  */
    441441  int                   whence      /* IN  */
     
    474474  void          *buffer             /* IN  */
    475475);
    476476
    477 int device_lseek(
     477off_t device_lseek(
    478478  rtems_libio_t *iop,               /* IN  */
    479479  off_t          offset,            /* IN  */
    480480  int            whence             /* IN  */
  • cpukit/libfs/src/imfs/imfs_directory.c

    RCS file: /usr1/CVS/rtems/cpukit/libfs/src/imfs/imfs_directory.c,v
    retrieving revision 1.21
    diff -u -r1.21 imfs_directory.c
     
    182182 *     SEEK_END - N/A --> This will cause an assert.
    183183 */
    184184
    185 int imfs_dir_lseek(
     185off_t imfs_dir_lseek(
    186186  rtems_libio_t  *iop,
    187187  off_t           offset,
    188188  int             whence
  • cpukit/libfs/src/imfs/memfile.c

    RCS file: /usr1/CVS/rtems/cpukit/libfs/src/imfs/memfile.c,v
    retrieving revision 1.27
    diff -u -r1.27 memfile.c
     
    214214 *  This routine processes the lseek() system call.
    215215 */
    216216
    217 int memfile_lseek(
     217off_t memfile_lseek(
    218218  rtems_libio_t   *iop,
    219219  off_t            offset,
    220220  int              whence
  • cpukit/libfs/src/nfsclient/src/nfs.c

    RCS file: /usr1/CVS/rtems/cpukit/libfs/src/nfsclient/src/nfs.c,v
    retrieving revision 1.7
    diff -u -r1.7 nfs.c
     
    27472747#define nfs_link_ioctl 0
    27482748#endif
    27492749
    2750 static int nfs_file_lseek(
     2750static off_t nfs_file_lseek(
    27512751        rtems_libio_t *iop,
    27522752        off_t          length,
    27532753        int            whence
     
    27802780        return iop->offset;
    27812781}
    27822782
    2783 static int nfs_dir_lseek(
     2783static off_t nfs_dir_lseek(
    27842784        rtems_libio_t *iop,
    27852785        off_t          length,
    27862786        int            whence
  • cpukit/libcsupport/include/rtems/libio.h

    RCS file: /usr1/CVS/rtems/cpukit/libcsupport/include/rtems/libio.h,v
    retrieving revision 1.53
    diff -u -r1.53 libio.h
     
    8383  void          *buffer
    8484);
    8585
    86 typedef int (*rtems_filesystem_lseek_t)(
     86typedef off_t (*rtems_filesystem_lseek_t)(
    8787  rtems_libio_t *iop,
    8888  off_t          length,
    8989  int            whence