Files
cppdraft_translate/cppdraft/support/runtime/general.md
2025-10-25 03:02:53 +03:00

1.9 KiB
Raw Blame History

[support.runtime.general]

17 Language support library [support]

17.14 Other runtime support [support.runtime]

17.14.1 General [support.runtime.general]

1

#

Headers (nonlocal jumps), (signal handling), (variable arguments), and (runtime environment getenv, system), provide further compatibility with C code.

2

#

Calls to the functiongetenv ([cstdlib.syn]) shall not introduce a data race ([res.on.data.races]) provided that nothing modifies the environment.

[Note 1:

Calls to the POSIX functionssetenv andputenv modify the environment.

— end note]

3

#

A call to the setlocale function may introduce a data race with other calls to the setlocale function or with calls to functions that are affected by the current C locale.

The implementation shall behave as if no library function other than locale::global calls the setlocale function.