#
5cbc82e3 |
| 26-Aug-2024 |
Zuohui Yang <274048862@qq.com> |
win: use NtQueryInformationProcess in uv_os_getppid (#4514) Get parent process ID using NtQueryInformationProcess, it's faster than using CreateToolhelp32Snapshot.
|
#
4e310d0f |
| 30-Jul-2024 |
Hüseyin Açacak <110401522+huseyinacacak-janea@users.noreply.github.com> |
win,fs: use the new Windows fast stat API (#4327) Windows added a new API for file information, which doesn't have to open the file thus greatly improving performance: https://learn.
win,fs: use the new Windows fast stat API (#4327) Windows added a new API for file information, which doesn't have to open the file thus greatly improving performance: https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-getfileinformationbyname The stat functions are already covered by tests, so no test was added here. I considered comparing the result of old and new code, but that would require exposing internal fs functions, and we would be testing Windows functionality, not libuv.
show more ...
|
#
18266a69 |
| 29-Jul-2024 |
Ian Butterworth |
win,fs: use posix delete semantics, if supported (#4318) Implements posix delete for files and dirs, with fallback to the old method if not supported (e.g. Fat32 or Win8). Fixes
win,fs: use posix delete semantics, if supported (#4318) Implements posix delete for files and dirs, with fallback to the old method if not supported (e.g. Fat32 or Win8). Fixes: #3839
show more ...
|
#
26b2e5db |
| 01-Nov-2021 |
Nicolas Noble |
win: fix build for mingw32 (#3340) Commit e9c524aa from pull request https://github.com/libuv/libuv/pull/3149 introduced a hard dependency on `GetHostnameW`, which isn't declared yet
win: fix build for mingw32 (#3340) Commit e9c524aa from pull request https://github.com/libuv/libuv/pull/3149 introduced a hard dependency on `GetHostnameW`, which isn't declared yet in mingw distributions (see https://github.com/msys2/MINGW-packages/issues/9667). This prevents the current version of libuv from building on many mingw distributions, until such time the next version of mingw is released with the correct definition for `GetHostnameW`, preventing a lot of projects depending on libuv from building on mingw properly, as not all distributions will update to head immediately anyway. Instead of waiting, let's find the definition ourselves using `GetProcAddress` and use the pointer instead. PR-URL: https://github.com/libuv/libuv/pull/3340
show more ...
|
Revision tags: v1.41.0, v1.40.0, v1.39.0 |
|
#
99e88edf |
| 13-Aug-2020 |
Bartosz Sosnowski |
tcp: fail instantly if local port is unbound On Windows when connecting to an unavailable port, the connect() will retry for 2s, even on loopback devices. This uses a call to WSAIoctl to
tcp: fail instantly if local port is unbound On Windows when connecting to an unavailable port, the connect() will retry for 2s, even on loopback devices. This uses a call to WSAIoctl to make the connect() call fail instantly on local connections. PR-URL: https://github.com/libuv/libuv/pull/2896 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Jameson Nash <vtjnash@gmail.com>
show more ...
|
Revision tags: v1.38.1, v1.38.0 |
|
#
e7ebae26 |
| 29-Apr-2020 |
Bartosz Sosnowski |
win, fs: add IO_REPARSE_TAG_APPEXECLINK support Adds support for IO_REPARSE_TAG_APPEXECLINK reparse points, used by Windows Store. Ref: https://github.com/nodejs/node/issues/330
win, fs: add IO_REPARSE_TAG_APPEXECLINK support Adds support for IO_REPARSE_TAG_APPEXECLINK reparse points, used by Windows Store. Ref: https://github.com/nodejs/node/issues/33024 PR-URL: https://github.com/libuv/libuv/pull/2812 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
show more ...
|
Revision tags: v1.37.0, v1.36.0 |
|
#
335e8a6d |
| 06-Apr-2020 |
Ben Noordhuis |
win: use RtlGenRandom from advapi32.dll directly At least two people have reported that `LoadLibrary("advapi32.dll")` fails in some configurations. Libuv already links against a
win: use RtlGenRandom from advapi32.dll directly At least two people have reported that `LoadLibrary("advapi32.dll")` fails in some configurations. Libuv already links against advapi32.dll so let's sidestep the issue by linking to `RtlGenRandom()` directly instead of looking it up at runtime. Fixes: https://github.com/libuv/libuv/issues/2759 PR-URL: https://github.com/libuv/libuv/pull/2762 Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Jameson Nash <vtjnash@gmail.com>
show more ...
|
Revision tags: v1.35.0, v1.34.2, v1.34.1, v1.34.0, v1.33.1, v1.33.0, v1.32.0, v1.31.0, v1.30.1, v1.30.0 |
|
#
4ed2a78f |
| 22-Jun-2019 |
Ben Noordhuis |
unix,win: add uv_random() Add an API for obtaining cryptographically strong random data from the system PRNG. Co-authored-by: Saúl Ibarra Corretgé <s@saghul.net> Refs: https
unix,win: add uv_random() Add an API for obtaining cryptographically strong random data from the system PRNG. Co-authored-by: Saúl Ibarra Corretgé <s@saghul.net> Refs: https://github.com/libuv/libuv/pull/1055 PR-URL: https://github.com/libuv/libuv/pull/2347 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
show more ...
|
#
fa41f134 |
| 19-Aug-2019 |
Konstantin Podsvirov |
win: fix typo in preprocessor expression PR-URL: https://github.com/libuv/libuv/pull/2434 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Saúl Ibarra Corretgé <saghul@gm
win: fix typo in preprocessor expression PR-URL: https://github.com/libuv/libuv/pull/2434 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
show more ...
|
#
dabc737d |
| 22-May-2019 |
Javier Blazquez |
win: prevent tty event explosion machine hang The tty subsystem on Windows was listening for console events from all processes to detect when our console window was being resized. This
win: prevent tty event explosion machine hang The tty subsystem on Windows was listening for console events from all processes to detect when our console window was being resized. This could cause an explosion in the number of events queued by the system when running many console applications in parallel that all wrote to their console quickly. The end result was a complete machine hang. Now we determine, whenever possible, what our corresponding conhost.exe process is and listen for console events from that process only. This detection does not work in 32-bit applications running on 64-bit Windows so those default to the old behavior of listening to all processes. PR-URL: https://github.com/libuv/libuv/pull/2308 Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com> Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com>
show more ...
|
Revision tags: v1.29.1, v1.29.0, v1.28.0, v1.27.0, v1.26.0, v1.25.0 |
|
#
d4288bbe |
| 04-Jan-2019 |
cjihrig |
unix,win: add uv_os_uname() Fixes: https://github.com/libuv/libuv/issues/2126 PR-URL: https://github.com/libuv/libuv/pull/2128 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Rev
unix,win: add uv_os_uname() Fixes: https://github.com/libuv/libuv/issues/2126 PR-URL: https://github.com/libuv/libuv/pull/2128 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
show more ...
|
Revision tags: v1.24.1, v1.24.0 |
|
#
c5593b51 |
| 05-Nov-2018 |
Jameson Nash |
warnings: fix code that emits compiler warnings PR-URL: https://github.com/libuv/libuv/pull/2066 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Refael Ackermann <refack
warnings: fix code that emits compiler warnings PR-URL: https://github.com/libuv/libuv/pull/2066 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Refael Ackermann <refack@gmail.com>
show more ...
|
Revision tags: v1.23.2, v1.23.1 |
|
#
153ea114 |
| 28-Aug-2018 |
Jameson Nash |
Partially revert "win,code: remove GetQueuedCompletionStatus-based poller" This reverts commit fd8d212a802a1f2b2aa29bfca93b72f0875f3c2d, and thereby restores partial support for using li
Partially revert "win,code: remove GetQueuedCompletionStatus-based poller" This reverts commit fd8d212a802a1f2b2aa29bfca93b72f0875f3c2d, and thereby restores partial support for using libuv under Wine (which does not implement GetQueuedCompletionStatusEx). PR-URL: https://github.com/libuv/libuv/pull/1963 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Bert Belder <bertbelder@gmail.com>
show more ...
|
Revision tags: v1.23.0, v1.22.0, v1.21.0 |
|
#
a7493d8a |
| 30-May-2018 |
Bert Belder |
win: remove the remaining dynamic kernel32 imports They were only there to aid Windows XP support, which libuv no longer does. PR-URL: https://github.com/libuv/libuv/pull/1858
win: remove the remaining dynamic kernel32 imports They were only there to aid Windows XP support, which libuv no longer does. PR-URL: https://github.com/libuv/libuv/pull/1858 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com>
show more ...
|
#
fd8d212a |
| 30-May-2018 |
Bert Belder |
win,code: remove GetQueuedCompletionStatus-based poller All Windows versions that libuv supports have GetQueuedCompletionStatusEx, so this fallback option is no longer needed. P
win,code: remove GetQueuedCompletionStatus-based poller All Windows versions that libuv supports have GetQueuedCompletionStatusEx, so this fallback option is no longer needed. PR-URL: https://github.com/libuv/libuv/pull/1858 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com>
show more ...
|
#
13e8b15e |
| 28-May-2018 |
Bert Belder |
win,thread: remove fallback uv_cond implementation The fallback implementation existed to support Windows XP and Server 2003, but these old versions of windows are no longer supporter by
win,thread: remove fallback uv_cond implementation The fallback implementation existed to support Windows XP and Server 2003, but these old versions of windows are no longer supporter by libuv. PR-URL: https://github.com/libuv/libuv/pull/1852 Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
show more ...
|
#
e318e001 |
| 29-May-2018 |
Bert Belder |
Revert "win: add Windows XP support to uv_if_indextoname()" Libuv is not supported on Windows XP, as stated in the SUPPORTED_PLATFORMS document. It also can't possibly work because `
Revert "win: add Windows XP support to uv_if_indextoname()" Libuv is not supported on Windows XP, as stated in the SUPPORTED_PLATFORMS document. It also can't possibly work because `ReOpenFile()` in src/win/fs.c is not weakly linked, so any executable that links libuv would simply fail to load on XP. This reverts commit 17eaa956bde35daad99b36b820daf8e8227add74. Refs: https://github.com/libuv/libuv/pull/1810 PR-URL: https://github.com/libuv/libuv/pull/1854 Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
show more ...
|
#
4f60e0c1 |
| 23-May-2018 |
Bert Belder |
win,pipe: refactor pipe read cancellation logic * Don't silently ignore ERROR_OPERATION_ABORTED. Code to silently ignore this error was added in c42a4ca, under the false pre
win,pipe: refactor pipe read cancellation logic * Don't silently ignore ERROR_OPERATION_ABORTED. Code to silently ignore this error was added in c42a4ca, under the false premise that this error is somehow equivalent to EINTR on posix platforms. This isn't true; ERROR_OPERATION_ABORTED doesn't happen unless the application explicitly aborts an I/O operation. Silently ignoring this error elsewhere could potentially hide bugs, hence libuv shouldn't do it. Instead, explicitly deal with it where it is expected. * Don't mark aborted reads as successful. The worker thread used to call ReadFile() on synchronous pipes would incorrectly mark cancelled read requests as successful, leading to issues later on. * Rely on main thread to restart aborted reads. After a blocking ReadFile() call was cancelled, the worker thread would previously attempt to restart it immediately, making synchronization logic needlessly complex. Instead, we simply cancel the operation, and leave it to the main loop to restart it if so desired. Since we now realy on the main thread to restart interrupted ReadFile() calls, we can now have a single function interrupts a synchronous read until the event loop restarts it again. * Clean up uv__pipe_read_stop(). A single function to interrupt blocking reads also allows us to remove weird logic in uv__pipe_read_stop() that quickly pauses and unpauses a read operation in the hope of cancelling it. * Assume CancelIo() and CancelSynchronousIo() are always available. Since libuv doesn't support windows XP and Server 2003 any more, we can assume that these APIs are always available, and do away with branching around them. PR-URL: https://github.com/libuv/libuv/pull/1843 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
show more ...
|
#
9584df25 |
| 29-May-2018 |
Bert Belder |
src,test: fix idiosyncratic comment style Back in the day I wrote comments in a really unusual way. Nowadays it makes my eyes bleed, and clang-format doesn't know how to deal with it.
src,test: fix idiosyncratic comment style Back in the day I wrote comments in a really unusual way. Nowadays it makes my eyes bleed, and clang-format doesn't know how to deal with it. PR-URL: https://github.com/libuv/libuv/pull/1853 Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
show more ...
|
Revision tags: v1.20.3, v1.20.2 |
|
#
17eaa956 |
| 20-Apr-2018 |
ssrlive <30760636+ssrlive@users.noreply.github.com> |
win: add Windows XP support to uv_if_indextoname() This commit attempts to dynamically load ConvertInterfaceIndexToLuid() and ConvertInterfaceLuidToNameW() from iphlpapi.dll before u
win: add Windows XP support to uv_if_indextoname() This commit attempts to dynamically load ConvertInterfaceIndexToLuid() and ConvertInterfaceLuidToNameW() from iphlpapi.dll before using them. If they are not available, UV_ENOSYS is returned. PR-URL: https://github.com/libuv/libuv/pull/1810 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
show more ...
|
Revision tags: v1.20.1, v1.20.0, v1.19.2, v1.19.1, v1.19.0, v1.18.0, v1.17.0, v1.16.1, v1.16.0 |
|
#
e7f4e9ec |
| 03-Nov-2017 |
Bartosz Sosnowski |
tty, win: get SetWinEventHook pointer at startup SetWinEventHook is not available on some Windows versions. Fixes: https://github.com/nodejs/node/issues/16603 Reviewed-By: Ben N
tty, win: get SetWinEventHook pointer at startup SetWinEventHook is not available on some Windows versions. Fixes: https://github.com/nodejs/node/issues/16603 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
show more ...
|
Revision tags: v1.15.0, v1.14.1 |
|
#
89d31932 |
| 18-Aug-2017 |
Bartosz Sosnowski |
fs, win: add support for user symlinks Add SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE to CreateSymbolicLink which allows unelevated users to create symbolic links on supported plat
fs, win: add support for user symlinks Add SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE to CreateSymbolicLink which allows unelevated users to create symbolic links on supported platforms. Fixes: https://github.com/libuv/libuv/issues/1157 PR-URL: https://github.com/libuv/libuv/pull/1466 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
show more ...
|
Revision tags: v1.14.0, v1.13.1, v1.13.0, v1.12.0, v1.11.0 |
|
#
12bfad9c |
| 16-Jan-2017 |
Richard Lau |
win: define ERROR_ELEVATION_REQUIRED for MinGW Refs: https://github.com/libuv/libuv/issues/1194 PR-URL: https://github.com/libuv/libuv/pull/1195 Reviewed-By: Colin Ihrig <cjihrig@gma
win: define ERROR_ELEVATION_REQUIRED for MinGW Refs: https://github.com/libuv/libuv/issues/1194 PR-URL: https://github.com/libuv/libuv/pull/1195 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
show more ...
|
Revision tags: v1.10.2, v1.10.1, v1.10.0 |
|
#
060877d4 |
| 29-Sep-2016 |
Brad King |
win: fix anonymous union syntax Remove use of the DUMMYUNIONNAME macro from our definitions of internal winapi anonymous unions. This macro was added to winternl.h in Windows SDK v7.
win: fix anonymous union syntax Remove use of the DUMMYUNIONNAME macro from our definitions of internal winapi anonymous unions. This macro was added to winternl.h in Windows SDK v7.0a in combination with a conditional definition of DUMMYUNIONNAME to either empty or `u` depending on compiler support. libuv doesn't support any compilers that lack anonymous unions, but does support compilers such as VS 2008 that complain about the presence of the DUMMYUNIONNAME identifier on an anonymous union because their winapi headers do not define the macro publicly. PR-URL: https://github.com/libuv/libuv/pull/1090 Reviewed-By: João Reis <reis@janeasystems.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
show more ...
|
#
6fa3524e |
| 26-Jul-2016 |
Bartosz Sosnowski |
win: evaluate timers when system wakes up When Windows resumes after sleep GetQueuedCompletionStatus timeout is not updated. This commit adds a method for signaling all loops to wake
win: evaluate timers when system wakes up When Windows resumes after sleep GetQueuedCompletionStatus timeout is not updated. This commit adds a method for signaling all loops to wake up and update their timers. Fixes: https://github.com/nodejs/node/issues/6763 PR-URL: https://github.com/libuv/libuv/pull/962 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
show more ...
|