mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
gh-84461: Omit resource mod and getresuid funcs on Emscripten (GH-96303)
This commit is contained in:
parent
1fc8bd3710
commit
a36235d5c7
4 changed files with 10 additions and 4 deletions
|
@ -0,0 +1,3 @@
|
||||||
|
``wasm32-emscripten`` platform no longer builds :mod:`resource` module,
|
||||||
|
:func:`~os.getresuid`, :func:`~os.getresgid`, and their setters. The APIs
|
||||||
|
are stubs and not functional.
|
|
@ -49,6 +49,10 @@ ac_cv_func_geteuid=no
|
||||||
ac_cv_func_getegid=no
|
ac_cv_func_getegid=no
|
||||||
ac_cv_func_seteuid=no
|
ac_cv_func_seteuid=no
|
||||||
ac_cv_func_setegid=no
|
ac_cv_func_setegid=no
|
||||||
|
ac_cv_func_getresuid=no
|
||||||
|
ac_cv_func_getresgid=no
|
||||||
|
ac_cv_func_setresuid=no
|
||||||
|
ac_cv_func_setresgid=no
|
||||||
|
|
||||||
# Syscalls not implemented in emscripten
|
# Syscalls not implemented in emscripten
|
||||||
# [Errno 52] Function not implemented
|
# [Errno 52] Function not implemented
|
||||||
|
|
3
configure
generated
vendored
3
configure
generated
vendored
|
@ -25654,6 +25654,7 @@ case $ac_sys_system in #(
|
||||||
py_cv_module_nis=n/a
|
py_cv_module_nis=n/a
|
||||||
py_cv_module_ossaudiodev=n/a
|
py_cv_module_ossaudiodev=n/a
|
||||||
py_cv_module_pwd=n/a
|
py_cv_module_pwd=n/a
|
||||||
|
py_cv_module_resource=n/a
|
||||||
py_cv_module_spwd=n/a
|
py_cv_module_spwd=n/a
|
||||||
py_cv_module_syslog=n/a
|
py_cv_module_syslog=n/a
|
||||||
py_cv_module_=n/a
|
py_cv_module_=n/a
|
||||||
|
@ -25664,7 +25665,6 @@ case $ac_sys_system in #(
|
||||||
|
|
||||||
|
|
||||||
py_cv_module_fcntl=n/a
|
py_cv_module_fcntl=n/a
|
||||||
py_cv_module_resource=n/a
|
|
||||||
py_cv_module_readline=n/a
|
py_cv_module_readline=n/a
|
||||||
py_cv_module_termios=n/a
|
py_cv_module_termios=n/a
|
||||||
py_cv_module_=n/a
|
py_cv_module_=n/a
|
||||||
|
@ -25679,7 +25679,6 @@ case $ac_sys_system in #(
|
||||||
py_cv_module__ctypes_test=n/a
|
py_cv_module__ctypes_test=n/a
|
||||||
py_cv_module_fcntl=n/a
|
py_cv_module_fcntl=n/a
|
||||||
py_cv_module_mmap=n/a
|
py_cv_module_mmap=n/a
|
||||||
py_cv_module_resource=n/a
|
|
||||||
py_cv_module_termios=n/a
|
py_cv_module_termios=n/a
|
||||||
py_cv_module_=n/a
|
py_cv_module_=n/a
|
||||||
|
|
||||||
|
|
|
@ -7095,6 +7095,7 @@ AS_CASE([$ac_sys_system],
|
||||||
dnl curses and tkinter user interface are not available.
|
dnl curses and tkinter user interface are not available.
|
||||||
dnl dbm and gdbm aren't available, too.
|
dnl dbm and gdbm aren't available, too.
|
||||||
dnl Emscripten and WASI provide only stubs for pwd, grp APIs.
|
dnl Emscripten and WASI provide only stubs for pwd, grp APIs.
|
||||||
|
dnl resource functions (get/setrusage) are stubs, too.
|
||||||
PY_STDLIB_MOD_SET_NA(
|
PY_STDLIB_MOD_SET_NA(
|
||||||
[_curses],
|
[_curses],
|
||||||
[_curses_panel],
|
[_curses_panel],
|
||||||
|
@ -7110,6 +7111,7 @@ AS_CASE([$ac_sys_system],
|
||||||
[nis],
|
[nis],
|
||||||
[ossaudiodev],
|
[ossaudiodev],
|
||||||
[pwd],
|
[pwd],
|
||||||
|
[resource],
|
||||||
[spwd],
|
[spwd],
|
||||||
[syslog],
|
[syslog],
|
||||||
)
|
)
|
||||||
|
@ -7118,7 +7120,6 @@ AS_CASE([$ac_sys_system],
|
||||||
dnl These modules are not particularly useful in browsers.
|
dnl These modules are not particularly useful in browsers.
|
||||||
PY_STDLIB_MOD_SET_NA(
|
PY_STDLIB_MOD_SET_NA(
|
||||||
[fcntl],
|
[fcntl],
|
||||||
[resource],
|
|
||||||
[readline],
|
[readline],
|
||||||
[termios],
|
[termios],
|
||||||
)
|
)
|
||||||
|
@ -7130,7 +7131,6 @@ AS_CASE([$ac_sys_system],
|
||||||
[_ctypes_test],
|
[_ctypes_test],
|
||||||
[fcntl],
|
[fcntl],
|
||||||
[mmap],
|
[mmap],
|
||||||
[resource],
|
|
||||||
[termios],
|
[termios],
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue