15 LPTSTR path_ = rz_sys_conv_utf8_to_win(
path);
17 hPipe = CreateFile(path_, GENERIC_READ | GENERIC_WRITE, 0,
NULL, OPEN_EXISTING, FILE_FLAG_OVERLAPPED,
NULL);
23 return CloseHandle(
p);
28 OVERLAPPED ov = { 0 };
34 GetLastError() != ERROR_IO_PENDING) {
38 if (WaitForSingleObject(ov.hEvent,
timeout) == WAIT_TIMEOUT) {
41 GetOverlappedResult(
p, &ov, &
c,
TRUE);
42 CloseHandle(ov.hEvent);
48 OVERLAPPED ov = { 0 };
50 GetLastError() != ERROR_IO_PENDING) {
54 GetOverlappedResult(
p, &ov, &cbWrited,
TRUE);
59 #include <sys/socket.h>
60 #include <sys/select.h>
83 return (
void *)(
size_t)sock;
87 return close((
int)(
size_t)
p) == 0;
103 if (errno ==
EINTR) {
112 return recv((
int)(
size_t)
p,
buf,
count, 0);
122 if (errno ==
EPIPE) {
static static fork const void static count static fd const char const char static newpath const char static path const char path
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval tv
static static fork const void static count close
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval struct timezone static tz const struct iovec static count static mode const void const struct sockaddr static tolen const char static pathname void count
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd socket
RZ_API void Ht_() free(HtName_(Ht) *ht)
static int iob_pipe_read(void *p, uint8_t *buf, const uint64_t count, const int timeout)
static int iob_pipe_write(void *p, const uint8_t *buf, const uint64_t count, const int timeout)
static bool iob_pipe_close(void *p)
static void * iob_pipe_open(const char *path)
#define INVALID_HANDLE_VALUE
return memset(p, 0, total)
static static fork const void static count static fd const char const char static newpath char char char static envp time_t static t const char static mode static whence const char static dir time_t static t unsigned static seconds const char struct utimbuf static buf static inc static sig const char static mode static oldfd struct tms static buf static getgid static geteuid const char static filename static arg static mask struct ustat static ubuf static getppid static setsid static egid sigset_t static set struct timeval struct timezone static tz select
static struct sockaddr static addrlen static backlog send
static const z80_opcode fd[]