Ignore:
Timestamp:
Nov 6, 2011, 12:00:04 PM (8 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.11, master
Children:
515ecec
Parents:
22ad8263
Message:

2011-11-06 Ralf Corsépius <ralf.corsepius@…>

PR1945/cpukit

  • libfs/src/nfsclient/src/nfs.c, libfs/src/rfs/rtems-rfs-rtems-dev.c, libfs/src/rfs/rtems-rfs-rtems-dir.c, libfs/src/rfs/rtems-rfs-rtems-file.c, libnetworking/lib/ftpfs.c, libnetworking/lib/tftpDriver.c: Replace rtems_off64_t with off_t.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libfs/src/rfs/rtems-rfs-rtems-file.c

    r22ad8263 r984c4c49  
    2424
    2525#include <inttypes.h>
     26
     27#if SIZEOF_OFF_T == 8
     28#define PRIdoff_t PRId64
     29#elif SIZEOF_OFF_T == 4
     30#define PRIdoff_t PRId32
     31#else
     32#error "unsupported size of off_t"
     33#endif
    2634
    2735#include <rtems/rfs/rtems-rfs-file.h>
     
    273281 * @param offset
    274282 * @param whence
    275  * @return rtems_off64_t
    276  */
    277 static rtems_off64_t
     283 * @return off_t       
     284 */
     285static off_t       
    278286rtems_rfs_rtems_file_lseek (rtems_libio_t* iop,
    279                             rtems_off64_t  offset,
     287                            off_t          offset,
    280288                            int            whence)
    281289{
     
    285293
    286294  if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_FILE_LSEEK))
    287     printf("rtems-rfs: file-lseek: handle:%p offset:%Ld\n", file, offset);
     295    printf("rtems-rfs: file-lseek: handle:%p offset:%" PRIdoff_t "\n", file, offset);
    288296
    289297  rtems_rfs_rtems_lock (rtems_rfs_file_fs (file));
     
    312320static int
    313321rtems_rfs_rtems_file_ftruncate (rtems_libio_t* iop,
    314                                 rtems_off64_t  length)
     322                                off_t          length)
    315323{
    316324  rtems_rfs_file_handle* file = rtems_rfs_rtems_get_iop_file_handle (iop);
     
    318326
    319327  if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_FILE_FTRUNC))
    320     printf("rtems-rfs: file-ftrunc: handle:%p length:%Ld\n", file, length);
     328    printf("rtems-rfs: file-ftrunc: handle:%p length:%" PRIdoff_t "\n", file, length);
    321329 
    322330  rtems_rfs_rtems_lock (rtems_rfs_file_fs (file));
Note: See TracChangeset for help on using the changeset viewer.