"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "linux-user/syscall.c" between
qemu-6.0.0-rc1.tar.xz and qemu-6.0.0-rc2.tar.xz

About: QEMU is a generic machine/processor emulator and virtualizer. Release candidate.

syscall.c  (qemu-6.0.0-rc1.tar.xz):syscall.c  (qemu-6.0.0-rc2.tar.xz)
skipping to change at line 3025 skipping to change at line 3025
{ {
uint32_t *results; uint32_t *results;
int i; int i;
if (get_user_u32(len, optlen)) { if (get_user_u32(len, optlen)) {
return -TARGET_EFAULT; return -TARGET_EFAULT;
} }
if (len < 0) { if (len < 0) {
return -TARGET_EINVAL; return -TARGET_EINVAL;
} }
results = lock_user(VERIFY_WRITE, optval_addr, len, 1); results = lock_user(VERIFY_WRITE, optval_addr, len, 1);
if (!results) { if (!results && len > 0) {
return -TARGET_EFAULT; return -TARGET_EFAULT;
} }
lv = len; lv = len;
ret = get_errno(getsockopt(sockfd, level, optname, results, &lv)); ret = get_errno(getsockopt(sockfd, level, optname, results, &lv));
if (ret < 0) { if (ret < 0) {
unlock_user(results, optval_addr, 0); unlock_user(results, optval_addr, 0);
return ret; return ret;
} }
/* swap host endianess to target endianess. */ /* swap host endianess to target endianess. */
for (i = 0; i < (len / sizeof(uint32_t)); i++) { for (i = 0; i < (len / sizeof(uint32_t)); i++) {
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)