[MacPorts] #57732: legacy-support: fix atcalls properly for Tiger
MacPorts
noreply at macports.org
Thu Dec 6 00:04:10 UTC 2018
#57732: legacy-support: fix atcalls properly for Tiger
-----------------------------+----------------------
Reporter: kencu | Owner: kencu
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords: tiger
Port: legacy-support |
-----------------------------+----------------------
Description changed by kencu:
Old description:
> the atcalls.c source file in macports-legacy-support is written to use
> `__pthread_fchdir`. Tiger does not support this call, so `fchdir` is used
> [https://github.com/macports/macports-legacy-
> support/blob/270e8dfee0e670803ad623da44aee679805dd300/src/atcalls.c#L114
> instead]. `__pthread_fchdir` is available in Leopard and newer.
>
> Using `fchdir` is not a `thread-safe` approach, however.
>
> The approach could be re-imagined for Tiger, perhaps using the full
> pathname style used for some calls [https://github.com/macports/macports-
> legacy-
> support/blob/270e8dfee0e670803ad623da44aee679805dd300/src/atcalls.c#L340
> some calls] later in the file.
New description:
the atcalls.c source file in macports-legacy-support is written to use
`__pthread_fchdir`. Tiger does not support this call, so `fchdir` is used
[https://github.com/macports/macports-legacy-
support/blob/270e8dfee0e670803ad623da44aee679805dd300/src/atcalls.c#L114
instead]. `__pthread_fchdir` is available in Leopard and newer.
Using `fchdir` is not a `thread-safe` approach, however.
The approach could be re-imagined for Tiger, perhaps using the full
pathname style used for [https://github.com/macports/macports-legacy-
support/blob/270e8dfee0e670803ad623da44aee679805dd300/src/atcalls.c#L340
some calls] later in the file.
--
--
Ticket URL: <https://trac.macports.org/ticket/57732#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list