#
75c8850c |
| 28-Apr-2020 |
Ben Noordhuis |
darwin: fix build with non-apple compilers The header files for ApplicationServices and CoreFoundation contain C language extensions that Apple's compiler understands but gcc does no
darwin: fix build with non-apple compilers The header files for ApplicationServices and CoreFoundation contain C language extensions that Apple's compiler understands but gcc does not, notably blocks: https://en.wikipedia.org/wiki/Blocks_(C_language_extension) Work around that by defining the types inline and stop including the headers. It's inelegant but the alternatives are worse. Fixes: https://github.com/libuv/libuv/issues/2805 PR-URL: https://github.com/libuv/libuv/pull/2811 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
show more ...
|
Revision tags: v1.34.2 |
|
#
6e3e422c |
| 21-Jan-2020 |
Ben Noordhuis |
darwin: stop calling SetApplicationIsDaemon() It's been reported that calling this function causes the Core Graphics framework to start reporting bogus values. Commit 565cdd16 (
darwin: stop calling SetApplicationIsDaemon() It's been reported that calling this function causes the Core Graphics framework to start reporting bogus values. Commit 565cdd16 ('Revert "darwin: speed up uv_set_process_title()"') attempted to fix this but apparently merely postponed the moment when `CGDisplayPixelsWide()` and friends start reporting bogus values. The Chromium code base mentions that calling `SetApplicationIsDaemon()` prevents the HIServices framework from terminating the process when it can't connect to launchservicesd. Libuv itself doesn't use HIServices but it's possible that the libuv user does. If said user doesn't call `SetApplicationIsDaemon()`, it's possible this commit introduces an observable change in behavior. The `SetApplicationIsDaemon()` call was introduced in commit 08e0e63f ("darwin: avoid calling GetCurrentProcess") from October 2013 to work around a bug in macos 10.9 where the Activity Monitor showed the program as "Not responding." Fixes: https://github.com/libuv/libuv/issues/2566 (for real, hopefully) Fixes: https://github.com/nodejs/node/issues/31328 PR-URL: https://github.com/libuv/libuv/pull/2593 Refs: https://cs.chromium.org/chromium/src/sandbox/mac/system_services.cc?l=26&rcl=a06d2fe5a279ddecd358d919d461080e2c53c92e Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
show more ...
|
Revision tags: v1.34.1 |
|
#
d077d066 |
| 16-Dec-2019 |
Ben Noordhuis |
darwin: assume pthread_setname_np() is available Stop dlsym-ing the symbol name at run-time, that was only necessary to support macOS and iOS versions that were already near-obsolete whe
darwin: assume pthread_setname_np() is available Stop dlsym-ing the symbol name at run-time, that was only necessary to support macOS and iOS versions that were already near-obsolete when this feature was introduced in August 2013. This reapplies commit bee1bf5dd7 from October. PR-URL: https://github.com/libuv/libuv/pull/2568 Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
show more ...
|
#
565cdd16 |
| 16-Dec-2019 |
Ben Noordhuis |
Revert "darwin: speed up uv_set_process_title()" This reverts commit 038eacfbf466f0b51e80b6f5fa9026c7ed767dfb. It was reported that this change causes a regression when trying t
Revert "darwin: speed up uv_set_process_title()" This reverts commit 038eacfbf466f0b51e80b6f5fa9026c7ed767dfb. It was reported that this change causes a regression when trying to obtain the screen resolution with `CGDisplayPixelsWide()` or `CGDisplayPixelsHigh()` after changing the process title. This is the second time this change had to be reverted due to regressions and, although third time is allegedly the charm, leaving well enough alone is the proverb I plan to adhere to... Fixes: https://github.com/libuv/libuv/issues/2566 PR-URL: https://github.com/libuv/libuv/pull/2568 Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
show more ...
|
#
56f83668 |
| 16-Dec-2019 |
Ben Noordhuis |
Revert "darwin: assume pthread_setname_np() is available" This reverts commit bee1bf5dd7de8da316821c32411425f7cf7ab49c. This is necessary in order to be able to revert commit 038eac
Revert "darwin: assume pthread_setname_np() is available" This reverts commit bee1bf5dd7de8da316821c32411425f7cf7ab49c. This is necessary in order to be able to revert commit 038eacfbf4 ("darwin: speed up uv_set_process_title()") from October. PR-URL: https://github.com/libuv/libuv/pull/2568 Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
show more ...
|
Revision tags: v1.34.0, v1.33.1, v1.33.0 |
|
#
bee1bf5d |
| 08-Oct-2019 |
Ben Noordhuis |
darwin: assume pthread_setname_np() is available Stop dlsym-ing the symbol name at run-time, that was only necessary to support macOS and iOS versions that were already near-obsolete whe
darwin: assume pthread_setname_np() is available Stop dlsym-ing the symbol name at run-time, that was only necessary to support macOS and iOS versions that were already near-obsolete when this feature was introduced in August 2013. PR-URL: https://github.com/libuv/libuv/pull/2480 Reviewed-By: Saúl Ibarra Corretgé <s@saghul.net>
show more ...
|
#
038eacfb |
| 08-Oct-2019 |
Ben Noordhuis |
darwin: speed up uv_set_process_title() Libuv loaded and unloaded the Core Services and Application Services for every call to uv_set_process_title(). Change that to load them o
darwin: speed up uv_set_process_title() Libuv loaded and unloaded the Core Services and Application Services for every call to uv_set_process_title(). Change that to load them on the first call to uv_set_process_title() and delay unloading until libuv is unloaded. Speeds up process_title_threadsafe by about 10x on my system. It should fail less often (hopefully not at all) on the CI now. PR-URL: https://github.com/libuv/libuv/pull/2480 Reviewed-By: Saúl Ibarra Corretgé <s@saghul.net>
show more ...
|
Revision tags: v1.32.0, v1.31.0 |
|
#
97e86dde |
| 03-Aug-2019 |
Ben Noordhuis |
Revert "darwin: speed up uv_set_process_title()" This reverts commit 00c6b1649d13fdd94bedbfe7ad26c9269c80b32c. It's been reported (and I can confirm) that this change breaks `pr
Revert "darwin: speed up uv_set_process_title()" This reverts commit 00c6b1649d13fdd94bedbfe7ad26c9269c80b32c. It's been reported (and I can confirm) that this change breaks `process.title = 'foo'` in Node.js. Since libuv just calls out to Core Services and Application Services, and since those frameworks are really just black boxes that you can't look inside, it's impossible to debug what exactly goes wrong. Revert it is then. Fixes: https://github.com/nodejs/node/issues/28945 PR-URL: https://github.com/libuv/libuv/pull/2405 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
show more ...
|
Revision tags: v1.30.1, v1.30.0, v1.29.1, v1.29.0, v1.28.0, v1.27.0, v1.26.0, v1.25.0, v1.24.1 |
|
#
8972e65b |
| 03-Dec-2018 |
Ben Noordhuis |
unix: harden string copying, introduce strscpy() Replace calls to strcpy() and strncpy() with the newly introduced uv__strscpy() function that is meticulous about zero-terminating th
unix: harden string copying, introduce strscpy() Replace calls to strcpy() and strncpy() with the newly introduced uv__strscpy() function that is meticulous about zero-terminating the destination buffer. PR-URL: https://github.com/libuv/libuv/pull/2065 Refs: https://www.kernel.org/doc/htmldocs/kernel-api/API-strscpy.html Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
show more ...
|
Revision tags: v1.24.0 |
|
#
00c6b164 |
| 02-Nov-2018 |
Ben Noordhuis |
darwin: speed up uv_set_process_title() Libuv loaded and unloaded the Core Services and Application Services for every call to uv_set_process_title(). Change that to load them o
darwin: speed up uv_set_process_title() Libuv loaded and unloaded the Core Services and Application Services for every call to uv_set_process_title(). Change that to load them on the first call to uv_set_process_title() and delay unloading until libuv is unloaded. Speeds up process_title_threadsafe by about 10x on my system. PR-URL: https://github.com/libuv/libuv/pull/2064 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
show more ...
|
Revision tags: v1.23.2, v1.23.1, v1.23.0, v1.22.0, v1.21.0, v1.20.3, v1.20.2, v1.20.1, v1.20.0, v1.19.2, v1.19.1 |
|
#
89cbbc89 |
| 19-Jan-2018 |
Mason X |
include,src: introduce UV__ERR() macro Using -errno, -E**, and -pthread_function() can be error prone, and breaks compatibility with some operating systems that already negate errno'
include,src: introduce UV__ERR() macro Using -errno, -E**, and -pthread_function() can be error prone, and breaks compatibility with some operating systems that already negate errno's (e.g. Haiku). This commit adds a UV__ERR() macro that ensures libuv errors are negative. Fixes: https://github.com/libuv/help/issues/39 PR-URL: https://github.com/libuv/libuv/pull/1687 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
show more ...
|
Revision tags: v1.19.0, v1.18.0, v1.17.0, v1.16.1, v1.16.0, v1.15.0, v1.14.1, v1.14.0, v1.13.1, v1.13.0, v1.12.0, v1.11.0, v1.10.2, v1.10.1, v1.10.0, v0.10.37, v1.9.1, v1.9.0, v1.8.0, v1.7.5, v1.7.4, v1.7.3, v1.7.2, v1.7.1, v1.7.0, v1.6.1, v1.6.0, v1.5.0, v0.10.36, v1.4.2, v0.10.35, v1.4.1, v0.10.34, v1.4.0, v1.3.0, v0.10.33 |
|
#
0b9ee2cf |
| 16-Jan-2015 |
Ben Noordhuis |
unix: fix long line introduced in commit 94e628fa PR-URL: https://github.com/libuv/libuv/pull/150 Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com> |
#
955b1806 |
| 16-Jan-2015 |
Ben Noordhuis |
unix: fix implicit declaration compiler warning Include <string.h> explicitly to get the definition of strncpy(). Refs https://github.com/libuv/libuv/issues/138. PR-URL: ht
unix: fix implicit declaration compiler warning Include <string.h> explicitly to get the definition of strncpy(). Refs https://github.com/libuv/libuv/issues/138. PR-URL: https://github.com/libuv/libuv/pull/150 Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
show more ...
|
Revision tags: v1.2.1, v1.2.0, v0.10.32, v1.1.0, v0.10.31, v1.0.2, v0.10.30, v1.0.1, v1.0.0, v0.10.29, v1.0.0-rc2, v1.0.0-rc1 |
|
#
94e628fa |
| 11-Sep-2014 |
Recep ASLANTAS |
unix: fix warnings when loading functions with dlsym |
Revision tags: v0.11.29, v0.11.28, v0.11.27, v0.10.28, v0.11.26, v0.10.27, v0.11.25, v0.11.24, v0.11.23, v0.10.26, v0.11.22, v0.11.21, v0.11.20, v0.10.25, v0.11.19, v0.10.24, v0.11.18, v0.10.23, v0.10.22, v0.11.17, v0.10.21, v0.11.16, v0.10.20, v0.11.15, v0.10.19, v0.11.14 |
|
#
ab022527 |
| 28-Oct-2013 |
Fedor Indutny |
Merge branch 'v0.10' Conflicts: src/unix/darwin-proctitle.c src/version.c
|
#
08e0e63f |
| 28-Oct-2013 |
Fedor Indutny |
darwin: avoid calling GetCurrentProcess Use some black-magic from Apple to change process name without getting a "Not responding" tag from Activity Manager. fix #966 |
Revision tags: v0.10.18, v0.10.17, v0.10.16, v0.11.13, v0.11.12, v0.11.11, v0.11.10, v0.10.15, v0.11.9, v0.10.14 |
|
#
d48168af |
| 21-Aug-2013 |
Ben Noordhuis |
darwin: remove CoreFoundation dependency Load the required symbols at run-time rather than linking against the CoreFoundation (and CoreServices and ApplicationServices) frameworks at
darwin: remove CoreFoundation dependency Load the required symbols at run-time rather than linking against the CoreFoundation (and CoreServices and ApplicationServices) frameworks at build time. Should make integration easier for people that bundle libuv with their own projects because they no longer have to replicate magic -framework incantations in their top-level build system.
show more ...
|
Revision tags: v0.11.8 |
|
#
b03192ed |
| 19-Aug-2013 |
Ben Noordhuis |
darwin: fix ios build error Include <errno.h> and <stdlib.h>. They're being pulled in implicitly on OS X but apparently that's not the case with iOS builds. Build breakage intr
darwin: fix ios build error Include <errno.h> and <stdlib.h>. They're being pulled in implicitly on OS X but apparently that's not the case with iOS builds. Build breakage introduced in 5ff6f85 by yours truly. Mea culpa. Fixes #885 and #891.
show more ...
|
#
5ff6f85f |
| 15-Aug-2013 |
Ben Noordhuis |
darwin: call pthread_setname_np() if available When setting the process title, also call pthread_setname_np() when supported (OS X >= 10.6 and iOS >= 3.2.) |
Revision tags: v0.11.7, v0.10.13, v0.11.6, v0.10.12, v0.11.5, v0.10.11 |
|
#
3ee4d3f1 |
| 06-Jun-2013 |
Ben Noordhuis |
unix, windows: return error codes directly This commit changes the libuv API to return error codes directly rather than storing them in a loop-global field. A code snippet like
unix, windows: return error codes directly This commit changes the libuv API to return error codes directly rather than storing them in a loop-global field. A code snippet like this one: if (uv_foo(loop) < 0) { uv_err_t err = uv_last_error(loop); fprintf(stderr, "%s\n", uv_strerror(err)); } Should be rewritten like this: int err = uv_foo(loop); if (err < 0) fprintf(stderr, "%s\n", uv_strerror(err)); The rationale for this change is that it should make creating bindings for other languages a lot easier: dealing with struct return values is painful with most FFIs and often downright buggy.
show more ...
|
Revision tags: v0.10.10, v0.11.4, v0.10.9, v0.10.8, v0.11.3, v0.10.7, v0.10.6 |
|
#
f22163c2 |
| 13-May-2013 |
Ben Noordhuis |
darwin: fix ios build, don't require ApplicationServices |
Revision tags: v0.11.2 |
|
#
9b801d55 |
| 02-May-2013 |
Ben Noordhuis |
darwin: rename darwin-getproctitle.m Rename it to darwin-getproctitle.c, it doesn't need an Objective-C compiler. Fix up -Wpedantic warnings about void to function pointer casts and
darwin: rename darwin-getproctitle.m Rename it to darwin-getproctitle.c, it doesn't need an Objective-C compiler. Fix up -Wpedantic warnings about void to function pointer casts and include <ApplicationServices/ApplicationServices.h> to get the GetCurrentProcess() function prototype.
show more ...
|