rpcsx/rpcs3/Emu/Cell/lv2
Bevan Weiss f4070731a8 NET: Add SO_RCVBUF / SO_SNDBUF defaults to .._bnet_socket
The OS defaults for SO_RCVBUF / SO_SNDBUF may not match what the defaults for the PS3 are.
And the code may be happy with the PS3 defaults, so may not set this explicitly.
So we'll do it when we establish the socket.
It also looks like the Windows recv behaviour is different for the MSG_PEEK option (and possibly in all situations where a smaller buffer is provided). I believe other platforms will return the size of the data received into the socket buffer, even if the supplied user buffer is smaller. Windows returns WSAEMSGSIZE instead. For the length of '1' MSG_PEEK request that is currently seen, we just mask this and return the full size of the buffer. This might need to be the case in all situations, I assume there will be applications that will supply an artificially small buffer and resize it as necessary based on the size of the received packet.
Add some additional translations from native->PS3 error codes

Rewrote handling of MSG_PEEK to just be a copy of what GalCiv suggested
Added WSAESHUTDOWN, and WSASetLastError as done by Cygwin
2020-10-28 20:54:29 +03:00
..
lv2.cpp LV2: cleanup syscall table (#9106) 2020-10-21 10:04:34 +03:00
sys_bdemu.cpp move config structs to own files and clean up some headers 2020-02-17 15:08:17 +03:00
sys_bdemu.h VSH: Stubs 2020-02-08 23:07:03 +03:00
sys_btsetting.cpp VSH: Stubs 2020-02-08 23:07:03 +03:00
sys_btsetting.h VSH: Stubs 2020-02-08 23:07:03 +03:00
sys_cond.cpp Fix truncation warning in sys_cond.cpp 2020-08-17 17:36:27 +01:00
sys_cond.h sys_cond/mutex: Fix race between sys_cond_create and sys_mutex, Fix IPC support in sys_cond/mutex 2020-06-15 17:08:57 +03:00
sys_config.cpp Apply some Clang-Tidy fixes 2020-02-27 00:38:55 +03:00
sys_config.h Fix some warnings (GCC) 2020-05-05 21:55:22 +03:00
sys_console.cpp move config structs to own files and clean up some headers 2020-02-17 15:08:17 +03:00
sys_console.h VSH: Stubs 2020-02-08 23:07:03 +03:00
sys_crypto_engine.cpp VSH: Stubs 2020-02-08 23:07:03 +03:00
sys_crypto_engine.h VSH: Stubs 2020-02-08 23:07:03 +03:00
sys_dbg.cpp Remove unnecessary header includes 2019-06-25 17:11:10 +03:00
sys_dbg.h Split Emu/Memory into more logical headers 2019-06-25 17:11:10 +03:00
sys_event.cpp SPU/PPU reservations: Optimizations for reservation locks and check_state() (non-TSX) 2020-07-09 03:17:35 +01:00
sys_event.h sys_event_queue: Fix IPC support 2020-06-15 17:08:57 +03:00
sys_event_flag.cpp SPU/PPU reservations: Optimizations for reservation locks and check_state() (non-TSX) 2020-07-09 03:17:35 +01:00
sys_event_flag.h kernel_explorer: More Improvements 2020-06-12 09:28:23 +02:00
sys_fs.cpp sys_fs: fix file opening from /app_home 2020-10-12 21:41:57 +03:00
sys_fs.h fs: improve handling root mountpoint 2020-10-02 14:37:58 +03:00
sys_gamepad.cpp move config structs to own files and clean up some headers 2020-02-17 15:08:17 +03:00
sys_gamepad.h Split Emu/Memory into more logical headers 2019-06-25 17:11:10 +03:00
sys_gpio.cpp move config structs to own files and clean up some headers 2020-02-17 15:08:17 +03:00
sys_gpio.h sys_gpio Cleanup 2019-10-08 02:52:33 +03:00
sys_hid.cpp move config structs to own files and clean up some headers 2020-02-17 15:08:17 +03:00
sys_hid.h VSH: Stubs 2020-02-08 23:07:03 +03:00
sys_interrupt.cpp SPU/PPU reservations: Optimizations for reservation locks and check_state() (non-TSX) 2020-07-09 03:17:35 +01:00
sys_interrupt.h sys_interrupt: add vm::temporary_unlock 2019-07-14 18:08:18 +03:00
sys_io.cpp move config structs to own files and clean up some headers 2020-02-17 15:08:17 +03:00
sys_io.h VSH: Stubs 2020-02-08 23:07:03 +03:00
sys_lwcond.cpp lv2: Minor fix of "unspecific ppu" path of _sys_lwcond_signal 2020-08-03 02:57:20 +03:00
sys_lwcond.h lv2: Minor fix of "unspecific ppu" path of _sys_lwcond_signal 2020-08-03 02:57:20 +03:00
sys_lwmutex.cpp SPU/PPU reservations: Optimizations for reservation locks and check_state() (non-TSX) 2020-07-09 03:17:35 +01:00
sys_lwmutex.h kernel_explorer: More Improvements 2020-06-12 09:28:23 +02:00
sys_memory.cpp sys_memory: Improve sys_memory_get_page_attribute for stack 2020-09-26 21:48:12 +03:00
sys_memory.h sys_mmapper: return ENOMEM on memory greater than UINT32_MAX (#8982) 2020-09-26 18:06:06 +01:00
sys_mmapper.cpp sys_mmapper: return ENOMEM on memory greater than UINT32_MAX (#8982) 2020-09-26 18:06:06 +01:00
sys_mmapper.h sys_mmapper: return ENOMEM on memory greater than UINT32_MAX (#8982) 2020-09-26 18:06:06 +01:00
sys_mutex.cpp SPU/PPU reservations: Optimizations for reservation locks and check_state() (non-TSX) 2020-07-09 03:17:35 +01:00
sys_mutex.h sys_cond/mutex: Fix race between sys_cond_create and sys_mutex, Fix IPC support in sys_cond/mutex 2020-06-15 17:08:57 +03:00
sys_net.cpp NET: Add SO_RCVBUF / SO_SNDBUF defaults to .._bnet_socket 2020-10-28 20:54:29 +03:00
sys_net.h Implement sceNpSignaling & signaling improvements (#8836) 2020-09-07 22:50:17 +01:00
sys_overlay.cpp Win32 FS: Rewrite (fix) vfs::host::rename 2020-09-24 18:06:51 +03:00
sys_overlay.h vm/sys_overlay Improvements 2019-07-28 14:23:58 +03:00
sys_ppu_thread.cpp SPU/PPU reservations: Optimizations for reservation locks and check_state() (non-TSX) 2020-07-09 03:17:35 +01:00
sys_ppu_thread.h sys_ppu_thread_create: read function descriptor immediately and save it 2020-04-08 19:23:13 +03:00
sys_process.cpp Implement sys_process_is_spu_lock_line_reservation_address 2020-10-04 19:54:56 +03:00
sys_process.h Implement sys_process_is_spu_lock_line_reservation_address 2020-10-04 19:54:56 +03:00
sys_prx.cpp Win32 FS: Rewrite (fix) vfs::host::rename 2020-09-24 18:06:51 +03:00
sys_prx.h sys_prx: Improve sys_prx_start/stop_module 2020-03-25 16:22:47 +03:00
sys_rsx.cpp rsx: Block-level reservation access 2020-10-25 20:21:04 +03:00
sys_rsx.h kernel explorer: Improvements 2020-06-08 05:46:36 +03:00
sys_rsxaudio.cpp move config structs to own files and clean up some headers 2020-02-17 15:08:17 +03:00
sys_rsxaudio.h VSH: Stubs 2020-02-08 23:07:03 +03:00
sys_rwlock.cpp SPU/PPU reservations: Optimizations for reservation locks and check_state() (non-TSX) 2020-07-09 03:17:35 +01:00
sys_rwlock.h kernel_explorer: More Improvements 2020-06-12 09:28:23 +02:00
sys_semaphore.cpp SPU/PPU reservations: Optimizations for reservation locks and check_state() (non-TSX) 2020-07-09 03:17:35 +01:00
sys_semaphore.h kernel_explorer: More Improvements 2020-06-12 09:28:23 +02:00
sys_sm.cpp move config structs to own files and clean up some headers 2020-02-17 15:08:17 +03:00
sys_sm.h LV2: cleanup syscall table (#9106) 2020-10-21 10:04:34 +03:00
sys_spu.cpp SPU: use normal notify() thread function 2020-10-24 14:16:32 +03:00
sys_spu.h SPU: Make spu_thread::offset private 2020-07-19 17:58:49 +03:00
sys_ss.cpp sys_isolated_spu 2020-04-17 11:41:50 +01:00
sys_ss.h sys_isolated_spu 2020-04-17 11:41:50 +01:00
sys_storage.cpp move config structs to own files and clean up some headers 2020-02-17 15:08:17 +03:00
sys_storage.h VSH: Stubs 2020-02-08 23:07:03 +03:00
sys_sync.h Revert "atomic.cpp: fixup for WaitOnAddress path" 2020-10-21 09:54:22 +03:00
sys_time.cpp Core: Add date/time offset capability for console time 2020-09-23 21:15:45 +02:00
sys_time.h VSH: Stubs 2020-02-08 23:07:03 +03:00
sys_timer.cpp SPU/PPU reservations: Optimizations for reservation locks and check_state() (non-TSX) 2020-07-09 03:17:35 +01:00
sys_timer.h kernel_explorer: More Improvements 2020-06-12 09:28:23 +02:00
sys_trace.cpp move config structs to own files and clean up some headers 2020-02-17 15:08:17 +03:00
sys_trace.h Add missing #includes to header files 2019-06-25 17:11:10 +03:00
sys_tty.cpp move config structs to own files and clean up some headers 2020-02-17 15:08:17 +03:00
sys_tty.h Split Emu/Memory into more logical headers 2019-06-25 17:11:10 +03:00
sys_uart.cpp move config structs to own files and clean up some headers 2020-02-17 15:08:17 +03:00
sys_uart.h VSH: Stubs 2020-02-08 23:07:03 +03:00
sys_usbd.cpp Support for Namco GCon3 gun (#8757) 2020-08-22 15:41:08 +02:00
sys_usbd.h sys_usbd: Add error_code 2020-01-24 19:25:52 +00:00
sys_vm.cpp Partially revert "Fix debug build gcc/clang linker." 2020-10-26 04:12:04 +03:00
sys_vm.h Fix debug build gcc/clang linker. 2019-10-24 14:34:38 +03:00