syscall_emul.hh (10497:73a59d5e0923) syscall_emul.hh (10629:7c649fc84bb9)
1/*
2 * Copyright (c) 2012-2013 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 1124 unchanged lines hidden (view full) ---

1133 int result = writev(process->sim_fd(fd), hiov, count);
1134
1135 for (size_t i = 0; i < count; ++i)
1136 delete [] (char *)hiov[i].iov_base;
1137
1138 if (result < 0)
1139 return -errno;
1140
1/*
2 * Copyright (c) 2012-2013 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 1124 unchanged lines hidden (view full) ---

1133 int result = writev(process->sim_fd(fd), hiov, count);
1134
1135 for (size_t i = 0; i < count; ++i)
1136 delete [] (char *)hiov[i].iov_base;
1137
1138 if (result < 0)
1139 return -errno;
1140
1141 return 0;
1141 return result;
1142}
1143
1144
1145/// Target mmap() handler.
1146///
1147/// We don't really handle mmap(). If the target is mmaping an
1148/// anonymous region or /dev/zero, we can get away with doing basically
1149/// nothing (since memory is initialized to zero and the simulator

--- 276 unchanged lines hidden ---
1142}
1143
1144
1145/// Target mmap() handler.
1146///
1147/// We don't really handle mmap(). If the target is mmaping an
1148/// anonymous region or /dev/zero, we can get away with doing basically
1149/// nothing (since memory is initialized to zero and the simulator

--- 276 unchanged lines hidden ---