Mercurial > repos > blastem
comparison util.h @ 2703:829205a9647a
Pump events and allow debug window interaction while paused in CPU debugger on Windows
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Fri, 04 Jul 2025 21:24:15 -0700 |
parents | 143cb5762ec9 |
children |
comparison
equal
deleted
inserted
replaced
2702:0a6d644c47aa | 2703:829205a9647a |
---|---|
106 void socket_close(int sock); | 106 void socket_close(int sock); |
107 //Return the last error on a socket operation | 107 //Return the last error on a socket operation |
108 int socket_last_error(void); | 108 int socket_last_error(void); |
109 //Returns if the last socket error was EAGAIN/EWOULDBLOCK | 109 //Returns if the last socket error was EAGAIN/EWOULDBLOCK |
110 int socket_error_is_wouldblock(void); | 110 int socket_error_is_wouldblock(void); |
111 //works like fgets, but calls timeout_cb every timeout_usec microseconds while waiting for input | |
112 char *fgets_timeout(char *dst, size_t size, FILE *f, uint64_t timeout_usec, void (*timeout_cb)(void)); | |
111 #if defined(__ANDROID__) && !defined(IS_LIB) | 113 #if defined(__ANDROID__) && !defined(IS_LIB) |
112 FILE* fopen_wrapper(const char *path, const char *mode); | 114 FILE* fopen_wrapper(const char *path, const char *mode); |
113 #ifndef DISABLE_ZLIB | 115 #ifndef DISABLE_ZLIB |
114 #include "zlib/zlib.h" | 116 #include "zlib/zlib.h" |
115 gzFile gzopen_wrapper(const char *path, const char *mode); | 117 gzFile gzopen_wrapper(const char *path, const char *mode); |