Commit Graph

53 Commits

Author SHA1 Message Date
Gleb Mazovetskiy
41e31d3921
Add CTR_ prefix to ALIGN,PACKED,DEPRECATED macros (#532)
Co-authored-by: fincs <fincs@devkitpro.org>
2023-10-11 21:57:13 +02:00
Patrik Rak
6bca5af849
Make the FIONBIO ioctl actually work. (#441)
The fcntl needs the original `sockfd`, not the remapped one.
2020-04-15 09:09:17 +01:00
WinterMute
e842cfd011 print string when it's not null 2019-06-05 15:30:06 +01:00
Kartik
188d175579 Fix select() 2019-05-16 18:14:54 +02:00
TuxSH
0ed1f2beb2 IPC_Desc_CurProcessHandle => IPC_Desc_CurProcessId 2019-03-28 00:44:32 +01:00
Lioncash
c941b0d2d2 services: Add missing void keyword in parameter lists to signify no arguments 2018-01-01 16:41:45 +01:00
Dave Murphy
400e85d674 __alloc_handle changes for dkA r46
space for device specific storage in FILE struct is now allocated in __alloc_handle
2017-01-16 15:39:06 +00:00
Dave Murphy
50cafaa700 devkitARM r46 changes 2017-01-16 15:39:06 +00:00
Dave Murphy
396d341a8f re-enable strict-aliasing 2017-01-16 15:39:06 +00:00
Dave Murphy
66d1f7c957 re-enable strict-aliasing 2016-12-28 18:24:58 +00:00
Dave Murphy
3501efd7e5 whitespace fixes 2016-12-04 17:21:44 +00:00
yellows8
b7b78414da Implemented SOCU_AddGlobalSocket. 2016-03-30 13:52:15 -04:00
Lectem
2b9dc3c82a added SOCU_GetNetworkOpt 2016-01-25 01:14:09 -05:00
Michael Theall
07faf3d40c fix spacing 2016-01-21 19:22:43 -06:00
Michael Theall
5af3dd73de Add SOCU_GetIPInfo 2016-01-21 19:21:43 -06:00
Michael Theall
de0a39089c replace 6, 17 with IPPROTO_TCP, IPPROTO_UDP respectively 2016-01-21 17:12:58 -06:00
Stephen Shkardoon
248c02cf8e Change protocol in socket() to 0 if appropriate - Fix #250
When the user is specifying TCP or UDP and it is the only option,
change the protocol parameter to 0, which is the only value the
underlying 3DS system will accept as valid. This compatibility layer
ensures that code will work transparently whether on a host system
or the 3DS.
2016-01-20 23:56:48 -05:00
Lectem
6beee4f9fe added gethostname 2016-01-19 14:20:34 -05:00
Lectem
abbef70e61 fix getaddrinfo 2016-01-17 22:50:40 -05:00
Lectem
45ff5c4ee6 added inet_pton and inet_ntop 2016-01-17 12:58:21 -05:00
Lectem
464d6c6363 SOC:u added close/shutdown sockets 2016-01-16 21:14:09 -05:00
Lectem
e9a476cfe2 Added gai_strerror 2016-01-14 18:31:45 -05:00
Lectem
6eb23d3fbd added SOC:u getaddrinfo 2016-01-14 18:30:55 -05:00
Lectem
517b1c9503 added SOC:u getnameinfo 2016-01-14 18:24:50 -05:00
Lectem
e05f841a58 fix thread static buffers usage (save+restore) 2016-01-10 13:41:28 -05:00
Steven Smith
375fbce98a Service cleanup. 2015-11-11 08:57:54 -08:00
Lectem
deb7518153 Use IPC helpers for soc 2015-10-03 06:59:17 -04:00
megazig
9e597a7af9 update definition of gethostbyaddr 2015-08-18 17:15:21 -05:00
megazig
8e7606692d move h_errno definition to soc_common
add h_addr member to hostent structure
implement gethostbyaddr
2015-08-18 16:55:50 -05:00
smea
ea88f92464 fixed SOC device madness 2015-07-12 15:19:36 -07:00
smea
9fac0a0ea1 socMemhandle should be closed even if shutdown command fails 2015-07-07 19:52:18 -07:00
yellows8
8e620c269d Fixed socket() error handling when cmdbuf[2] is actually an error-code, not a handle. In socket(), write SYNC_ERROR to errno when an error occurs due to cmdbuf[1]. 2015-07-02 18:53:16 -04:00
Dave Murphy
71a59a1da3 Merge branch 'master' into devop_socket
Conflicts:
	libctru/source/services/soc/soc_ioctl.c
2015-02-12 15:52:15 +00:00
mtheall
2cf2b7f1e9 Fix soc_read/soc_write. 2015-02-11 22:15:12 +00:00
Dave Murphy
e4b636ed41 correct alloc_handle prototype 2015-02-11 22:15:12 +00:00
mtheall
e75fd8b648 Refactor soc to use errno. 2015-02-11 22:15:11 +00:00
mtheall
67f991e452 Fix poll() to only update revents. 2015-02-11 22:15:09 +00:00
mtheall
4fa477c039 First attempt at hooking sockets into a devoptab. 2015-02-11 22:15:09 +00:00
Lioncash
20431deb4e Guard against potential null pointer dereferences 2015-02-01 07:47:18 -05:00
mtheall
d08168b7d5 Fix soc_read/soc_write. 2015-01-27 17:06:30 -06:00
Dave Murphy
b015bd312c correct alloc_handle prototype 2015-01-26 02:04:19 +00:00
mtheall
1cd7cfdab5 Refactor soc to use errno. 2015-01-24 14:14:06 -06:00
mtheall
f87d35042c Fix poll() to only update revents. 2015-01-24 11:48:50 -06:00
mtheall
8d9fefdc9b First attempt at hooking sockets into a devoptab. 2015-01-23 14:23:59 -06:00
mtheall
d93524b393 Fix inet_aton. 2014-12-14 14:56:20 -06:00
Dave Murphy
c76ea75ae2 stop building everything when any header changes 2014-12-13 16:36:54 +00:00
mtheall
20d4e95dfd Make soc_fcntl.c more sane. 2014-12-11 08:33:26 -06:00
Dave Murphy
ea97e7a529 stop polluting 3ds headers with extra system headers 2014-11-28 13:13:34 +00:00
Lioncash
15cd3bd2c3 soc_ioctl: Add a missing va_end call 2014-11-24 08:31:41 -05:00
fincs
b0c29ba658 Fix typo in soc_ioctl.c 2014-11-21 23:51:06 +01:00