LibCore: Consistently treat file descriptors as handles on Windows

Also:
 * implement dup and is_socket
 * implement and call init_crt_and_wsa
This commit is contained in:
stasoid 2025-01-07 14:04:16 +05:00 committed by Andrew Kaster
commit b77016cc34
Notes: github-actions[bot] 2025-02-06 02:28:45 +00:00
6 changed files with 120 additions and 49 deletions

View file

@ -180,5 +180,6 @@ ErrorOr<void> set_resource_limits(int resource, rlim_t limit);
#endif
int getpid();
bool is_socket(int fd);
}