Ignore:
Timestamp:
Dec 10, 2008, 7:31:39 PM (15 years ago)
Author:
rosiere
Message:

Almost complete design
with Test and test platform

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/Environment/Sim2OS/src/Sim2OS_service_lseek.cpp

    r81 r88  
    1212      }
    1313   
    14     int    flides   = (int)    arguments[1];
    15     off_t  offset   = (off_t)  arguments[2];
    16     int    whence   = (int)    arguments[3];
     14    int    flides   = static_cast<int  >(reinterpret_cast<int64_t>(arguments[1]));
     15    off_t  offset   = static_cast<off_t>(reinterpret_cast<int64_t>(arguments[2]));
     16    int    whence   = static_cast<int  >(reinterpret_cast<int64_t>(arguments[3]));
    1717    void * result   = (void *) lseek(flides,offset,whence);
    1818    error           = errno;
     
    2424    std::cout << "\toffset    : " << (unsigned int) offset << std::endl;
    2525    std::cout << "\twhence    : " << (unsigned int) whence << std::endl;
    26     std::cout << "\tresult    : " << (unsigned int) result << std::endl;
     26    std::cout << "\tresult    : " << static_cast<int32_t>(reinterpret_cast<int64_t>(result)) << std::endl;
    2727    std::cout << "\terrno     : " << (unsigned int) error  << std::endl;
    2828   
Note: See TracChangeset for help on using the changeset viewer.