Ignore:
Timestamp:
Nov 6, 2011, 11:50:21 AM (8 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.11, master
Children:
e4c0a04b
Parents:
e3865876
Message:

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

PR1945/cpukit

  • libcsupport/include/rtems/libio.h: Mark rtems_off64_t as deprecated. Replace rtems_off64_t with off_t.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libcsupport/include/rtems/libio.h

    re3865876 rb799e4eb  
    5050 */
    5151
    52 /**
    53  * A 64-bit file offset for internal use by RTEMS. Based on the Newlib
    54  * type.
    55  */
    56 typedef _off64_t rtems_off64_t;
     52typedef off_t rtems_off64_t __attribute__((deprecated));
    5753
    5854/**
     
    127123 *  support which is provided by a file system implementation.
    128124 */
    129 typedef rtems_off64_t (*rtems_filesystem_lseek_t)(
     125typedef off_t (*rtems_filesystem_lseek_t)(
    130126  rtems_libio_t *iop,
    131   rtems_off64_t  length,
     127  off_t          length,
    132128  int            whence
    133129);
     
    157153typedef int (*rtems_filesystem_ftruncate_t)(
    158154  rtems_libio_t *iop,
    159   rtems_off64_t  length
     155  off_t          length
    160156);
    161157
     
    418414 *  support which is provided by a file system implementation.
    419415 */
    420 rtems_off64_t rtems_filesystem_default_lseek(
     416off_t rtems_filesystem_default_lseek(
    421417  rtems_libio_t *iop,
    422   rtems_off64_t  length,
     418  off_t          length,
    423419  int            whence
    424420);
     
    448444int rtems_filesystem_default_ftruncate(
    449445  rtems_libio_t *iop,
    450   rtems_off64_t  length
     446  off_t          length
    451447);
    452448
     
    11131109struct rtems_libio_tt {
    11141110  rtems_driver_name_t                    *driver;
    1115   rtems_off64_t                           size;      /* size of file */
    1116   rtems_off64_t                           offset;    /* current offset into file */
     1111  off_t                                   size;      /* size of file */
     1112  off_t                                   offset;    /* current offset into file */
    11171113  uint32_t                                flags;
    11181114  rtems_filesystem_location_info_t        pathinfo;
     
    11301126typedef struct {
    11311127  rtems_libio_t          *iop;
    1132   rtems_off64_t           offset;
     1128  off_t                   offset;
    11331129  char                   *buffer;
    11341130  uint32_t                count;
     
    12091205);
    12101206
    1211 typedef rtems_off64_t (*rtems_libio_lseek_t)(
     1207typedef off_t (*rtems_libio_lseek_t)(
    12121208  int           fd,
    1213   rtems_off64_t offset,
     1209  off_t        offset,
    12141210  int           whence
    12151211);
Note: See TracChangeset for help on using the changeset viewer.