- Timestamp:
- Dec 10, 2008, 7:31:39 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/Environment/Sim2OS/src/Sim2OS_service_open.cpp
r81 r88 13 13 14 14 const char *pathname = (const char *) convert_address(arguments[1]); 15 int flags = (int) arguments[2];16 mode_t mode = (mode_t) arguments[3];15 int flags = static_cast<int >(reinterpret_cast<int64_t>(arguments[2])); 16 mode_t mode = static_cast<mode_t>(reinterpret_cast<int64_t>(arguments[3])); 17 17 void * result = (void *) open(pathname,flags,mode); 18 18 error = errno; … … 26 26 std::cout << "\tmode /10 : " << std::dec << (unsigned int) mode << std::endl; 27 27 std::cout << "\tmode /16 : " << std::hex << (unsigned int) mode << std::endl; 28 std::cout << "\tresult : " << st d::dec << (unsigned int) result<< std::endl;28 std::cout << "\tresult : " << static_cast<int32_t>(reinterpret_cast<int64_t>(result)) << std::endl; 29 29 std::cout << "\terrno : " << (unsigned int) error << std::endl; 30 30
Note: See TracChangeset
for help on using the changeset viewer.