Skip to content

Instantly share code, notes, and snippets.

View igorzi's full-sized avatar

Igor Zinkovsky igorzi

View GitHub Profile
typedef struct uv_stream_s uv_stream_t;
typedef struct uv_pipe_s uv_pipe_t;
/* Creates a unique pipe name, which can be used with uv_pipe_create */
char* uv_pipe_unique_name();
int uv_pipe_init(uv_pipe_t* handle);
/* Called from pipe server to create a named pipe; this is equivalent to uv_bind for tcp
* TODO: add options
@igorzi
igorzi / pipes
Created July 9, 2011 07:26
pipes
From 4b9eaed4760c1f25d41bf8431b53bbf7f085b787 Mon Sep 17 00:00:00 2001
From: Igor Zinkovsky <igorzi@microsoft.com>
Date: Fri, 1 Jul 2011 17:54:17 -0700
Subject: [PATCH] Named pipes implementation for Windows
---
include/uv-unix.h | 5 +
include/uv-win.h | 64 ++++-
include/uv.h | 26 ++-
src/uv-unix.c | 19 ++
@igorzi
igorzi / gist:1100591
Created July 22, 2011 22:35
uv_listen
We couldn’t find that file to show.
From b2895425cd70218f21862715e89928b407bf1926 Mon Sep 17 00:00:00 2001
From: Igor Zinkovsky <igorzi@microsoft.com>
Date: Fri, 22 Jul 2011 15:32:27 -0700
Subject: [PATCH] merge uv_tcp_listen and uv_pipe_listen into uv_listen
---
include/uv.h | 10 +++----
src/uv-unix.c | 29 ++++++++++++++++-----
src/win/internal.h | 2 +
src/win/pipe.c | 4 +-
From 252da78830c1b6618161227b206e6079a2f4ddd8 Mon Sep 17 00:00:00 2001
From: Igor Zinkovsky <igorzi@microsoft.com>
Date: Sat, 23 Jul 2011 10:47:14 -0700
Subject: [PATCH] uv_std_handle + uv_listen on stdin
---
include/uv.h | 8 +++++
msvs/libuv.vcxproj | 1 +
src/uv-unix.c | 5 +++
src/win/internal.h | 3 ++
From 60a962a9a145fb88e1a1c013646ddbffe949e8f5 Mon Sep 17 00:00:00 2001
From: Igor Zinkovsky <igorzi@microsoft.com>
Date: Fri, 29 Jul 2011 23:43:11 -0700
Subject: [PATCH] fix spawn tests
---
test/run-tests.c | 2 +-
test/test-spawn.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
From 3e6611a693e29a09c0211d905a5836027b68868c Mon Sep 17 00:00:00 2001
From: Igor Zinkovsky <igorzi@microsoft.com>
Date: Fri, 29 Jul 2011 23:54:52 -0700
Subject: [PATCH] more output
---
test/test-spawn.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/test/test-spawn.c b/test/test-spawn.c
From 1db6a414ce5a6799d5a9458a2e03fb91e9082aa7 Mon Sep 17 00:00:00 2001
From: Peter Bright <drpizza@quiscalusmexicanus.org>
Date: Fri, 5 Aug 2011 00:14:17 +0100
Subject: [PATCH] Support for unescaped arguments, suitable for use with cmd /c.
Robust argument escaping that hopefully matches Windows' algorithm for unescaping.
---
include/uv.h | 1 +
msvs/libuv-test.vcxproj | 1 +
src/win/process.c | 130 ++++++++++++++++++++++++++--------------
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 128483
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 8192
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
typedef struct uv_tp_req_s uv_tp_req_t;
typedef int (*uv_tp_cb)(uv_tp_req_t* req, int status);
typedef void (*uv_tp_custom_cb)(uv_tp_req_t *req);
#ifdef _WIN32
typedef uv_native_file_type HANDLE;
#else
typedef uv_native_file_type int;
#endif