1. 23 7月, 2013 6 次提交
  2. 10 7月, 2013 3 次提交
  3. 05 7月, 2013 4 次提交
  4. 12 6月, 2013 2 次提交
  5. 01 6月, 2013 1 次提交
  6. 18 5月, 2013 1 次提交
  7. 26 4月, 2013 1 次提交
  8. 19 4月, 2013 4 次提交
  9. 12 4月, 2013 1 次提交
  10. 11 3月, 2013 6 次提交
  11. 16 2月, 2013 1 次提交
  12. 02 2月, 2013 1 次提交
  13. 30 1月, 2013 3 次提交
    • L
      linux-user: correct reboot() · c07ecc68
      Laurent Vivier 提交于
      According to man reboot(2), the 4th argument is only used with
      LINUX_REBOOT_CMD_RESTART2. In other cases, trying to convert
      the value can generate EFAULT.
      Signed-off-by: NLaurent Vivier <laurent@vivier.eu>
      Reviewed-by: NPeter Maydell <peter.maydell@linaro.org>
      c07ecc68
    • L
      linux-user: correct setsockopt() · 1b09aeb9
      Laurent Vivier 提交于
      SO_SNDTIMEO and SO_RCVTIMEO take a struct timeval, not an int
      
      To test this, you can use :
      
      QEMU_STRACE= ping localhost 2>&1 |grep TIMEO
      568 setsockopt(3,SOL_SOCKET,SO_SNDTIMEO,{1,0},8) = 0
      568 setsockopt(3,SOL_SOCKET,SO_RCVTIMEO,{1,0},8) = 0
      Signed-off-by: NLaurent Vivier <laurent@vivier.eu>
      Reviewed-by: NPeter Maydell <peter.maydell@linaro.org>
      1b09aeb9
    • L
      linux-user: correct msgrcv() · 79dd77de
      Laurent Vivier 提交于
      All parameters must be swapped before the call of do_msgrcv().
      
      Allow faked (debian fakeroot daemon) to work properly.
      
      WITHOUT this patch:
      
      $ faked-sysv --foreground --debug
      using 1723744788 as msg key
      msg_key=1723744788
      1723744788:431
      FAKEROOT: msg=131072, key=1723744788
      FAKEROOT: r=-1, received message type=-150996052, message=-160219330
      FAKEROOT, get_msg: Bad address
      r=14, EINTR=4
      fakeroot: clearing up message queues and semaphores, signal=-1
      fakeroot: database save FAILED
      
      WITH this patch:
      
      $ faked-sysv --foreground --debug
      using 1569385744 as msg key
      msg_key=1569385744
      1569385744:424
      FAKEROOT: msg=0, key=1569385744
      ^C
      fakeroot: clearing up message queues and semaphores, signal=2
      fakeroot: database save FAILED
      Signed-off-by: NLaurent Vivier <laurent@vivier.eu>
      Reviewed-by: NPeter Maydell <peter.maydell@linaro.org>
      79dd77de
  14. 17 1月, 2013 2 次提交
  15. 04 1月, 2013 1 次提交
  16. 19 12月, 2012 2 次提交
  17. 09 12月, 2012 1 次提交
    • P
      linux-user: Merge pread/pwrite into pread64/pwrite64 · 24c35a50
      Peter Maydell 提交于
      The Linux syscalls underlying pread() and pwrite() take a 64 bit
      offset on all architectures, even if some of them name the syscall
      "pread/pwrite" rather than "pread64/pwrite64" for historical reasons.
      So move the four QEMU target architectures (arm, i386, sparc,
      unicore32) which were defining TARGET_NR_pread/pwrite to define
      TARGET_NR_pread64/pwrite64 instead, and drop the TARGET_NR_pread/pwrite
      implementation code completely.
      
      (Based on examination of the kernel sources for the four architectures
      this patch affects.)
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      24c35a50