Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stdlib] Add Libc and tests #3766

Open
wants to merge 92 commits into
base: nightly
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
92 commits
Select commit Hold shift + click to select a range
f66e81a
Add Libc and tests
martinvuyk Nov 11, 2024
3e83143
add licence
martinvuyk Nov 11, 2024
41b4989
fix imports
martinvuyk Nov 11, 2024
42dbf79
fix imports
martinvuyk Nov 12, 2024
59ece47
fix details
martinvuyk Nov 12, 2024
8b041f7
add macos errno location macro
martinvuyk Nov 12, 2024
9018019
try add macos errno location macro
martinvuyk Nov 12, 2024
8bafd17
fix fnctl test and macos linking issue
martinvuyk Nov 12, 2024
1b7e218
comment stuff unsupported by macos 14
martinvuyk Nov 12, 2024
ae15b08
fix macos bugs
martinvuyk Nov 12, 2024
541ef5c
fix macos bugs
martinvuyk Nov 12, 2024
7c69523
test macos bugs
martinvuyk Nov 12, 2024
cbc91c6
test macos bugs
martinvuyk Nov 12, 2024
4c2fe71
test macos bugs
martinvuyk Nov 12, 2024
7910f7a
test macos bugs
martinvuyk Nov 12, 2024
4e01635
Merge remote-tracking branch 'upstream/nightly' into add-libc-and-tests
martinvuyk Nov 12, 2024
605ccef
test macos bugs
martinvuyk Nov 12, 2024
006f628
test macos bugs
martinvuyk Nov 12, 2024
172dcb7
test macos bugs
martinvuyk Nov 12, 2024
7d3f3ab
test macos bugs
martinvuyk Nov 12, 2024
70a5ce3
test macos bugs
martinvuyk Nov 12, 2024
fdf249c
test macos bugs
martinvuyk Nov 12, 2024
d265ce6
test macos bugs
martinvuyk Nov 12, 2024
2f5c41d
test macos bugs
martinvuyk Nov 12, 2024
9dd22d3
test macos bugs
martinvuyk Nov 12, 2024
11889e1
test macos bugs
martinvuyk Nov 12, 2024
893bfa7
test macos bugs
martinvuyk Nov 12, 2024
d5a5f8c
test macos bugs
martinvuyk Nov 12, 2024
beb72c5
test macos bugs
martinvuyk Nov 12, 2024
721aa22
test macos bugs
martinvuyk Nov 12, 2024
7865637
test macos bugs
martinvuyk Nov 12, 2024
8181b04
test macos bugs
martinvuyk Nov 12, 2024
533a98d
test macos bugs
martinvuyk Nov 12, 2024
dbbea90
test macos bugs
martinvuyk Nov 12, 2024
5bcec9f
test macos bugs
martinvuyk Nov 13, 2024
8e28e73
test macos bugs
martinvuyk Nov 13, 2024
c8266f2
test macos bugs
martinvuyk Nov 13, 2024
1a9ff64
test macos bugs
martinvuyk Nov 13, 2024
26ac5ef
test macos bugs
martinvuyk Nov 13, 2024
c482c2e
test macos bugs
martinvuyk Nov 13, 2024
9de834b
test macos bugs
martinvuyk Nov 13, 2024
5555001
test macos bugs
martinvuyk Nov 13, 2024
a2a9e06
test macos bugs
martinvuyk Nov 13, 2024
b98612a
test macos bugs
martinvuyk Nov 13, 2024
4aa03e4
test macos bugs
martinvuyk Nov 13, 2024
165bd23
test macos bugs
martinvuyk Nov 14, 2024
63ea34f
test macos bugs
martinvuyk Nov 14, 2024
41ac561
test macos bugs
martinvuyk Nov 14, 2024
8c64d43
test macos bugs
martinvuyk Nov 14, 2024
e830954
test macos bugs
martinvuyk Nov 14, 2024
2390a1c
test macos bugs
martinvuyk Nov 14, 2024
860bba1
test macos bugs
martinvuyk Nov 14, 2024
45179d9
test macos bugs
martinvuyk Nov 14, 2024
8317876
test macos bugs
martinvuyk Nov 14, 2024
91fcfac
test macos bugs
martinvuyk Nov 14, 2024
4660728
test macos bugs
martinvuyk Nov 14, 2024
bcd256d
test macos bugs
martinvuyk Nov 14, 2024
49c8eed
test macos bugs
martinvuyk Nov 14, 2024
a4e9fd1
test macos bugs
martinvuyk Nov 14, 2024
cd8b36c
test macos bugs
martinvuyk Nov 14, 2024
9ea8710
test macos bugs
martinvuyk Nov 14, 2024
9dca46c
test macos bugs
martinvuyk Nov 14, 2024
f30188b
test macos bugs
martinvuyk Nov 14, 2024
a05079b
test macos bugs
martinvuyk Nov 14, 2024
dd494d4
test macos bugs
martinvuyk Nov 14, 2024
9273a08
test macos bugs
martinvuyk Nov 14, 2024
8276cad
test macos bugs
martinvuyk Nov 14, 2024
44ff0a9
test macos bugs
martinvuyk Nov 14, 2024
d4512de
test macos bugs
martinvuyk Nov 14, 2024
783419d
test macos bugs
martinvuyk Nov 14, 2024
8bb1b9c
test macos bugs
martinvuyk Nov 14, 2024
d0ad6d5
test macos bugs
martinvuyk Nov 14, 2024
8a4cee6
test macos bugs
martinvuyk Nov 14, 2024
70a36a2
test macos bugs
martinvuyk Nov 14, 2024
c406e47
test macos bugs
martinvuyk Nov 14, 2024
9e728ed
test macos bugs
martinvuyk Nov 14, 2024
54f1825
test macos bugs
martinvuyk Nov 14, 2024
2db2e6b
test macos bugs
martinvuyk Nov 14, 2024
60471f7
test macos bugs
martinvuyk Nov 14, 2024
1c8dec1
test macos bugs
martinvuyk Nov 14, 2024
b7b67d1
test macos bugs
martinvuyk Nov 14, 2024
55bf50e
test macos bugs
martinvuyk Nov 14, 2024
9e800ed
test macos bugs
martinvuyk Nov 14, 2024
f22b169
test macos bugs
martinvuyk Nov 14, 2024
dc5481f
test macos bugs
martinvuyk Nov 14, 2024
820c0f9
test macos bugs
martinvuyk Nov 14, 2024
dfb9ea9
test macos bugs
martinvuyk Nov 14, 2024
e0f86b3
test macos bugs
martinvuyk Nov 14, 2024
20f5a9e
test macos bugs
martinvuyk Nov 14, 2024
734361e
test macos bugs
martinvuyk Nov 14, 2024
f53f111
cleanup
martinvuyk Nov 14, 2024
882f86e
Merge remote-tracking branch 'upstream/nightly' into add-libc-and-tests
martinvuyk Nov 14, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
142 changes: 72 additions & 70 deletions magic.lock
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ environments:
- conda: https://conda.anaconda.org/conda-forge/noarch/charset-normalizer-3.4.0-pyhd8ed1ab_0.conda
- conda: https://conda.anaconda.org/conda-forge/noarch/click-8.1.7-unix_pyh707e725_0.conda
- conda: https://conda.anaconda.org/conda-forge/noarch/colorama-0.4.6-pyhd8ed1ab_0.tar.bz2
- conda: https://conda.anaconda.org/conda-forge/noarch/datasets-2.14.4-pyhd8ed1ab_0.conda
- conda: https://conda.anaconda.org/conda-forge/noarch/datasets-3.0.2-pyhd8ed1ab_0.conda
- conda: https://conda.anaconda.org/conda-forge/noarch/deprecated-1.2.14-pyh1a96a4e_0.conda
- conda: https://conda.anaconda.org/conda-forge/noarch/dill-0.3.7-pyhd8ed1ab_0.conda
- conda: https://conda.anaconda.org/conda-forge/noarch/dill-0.3.8-pyhd8ed1ab_0.conda
- conda: https://conda.anaconda.org/conda-forge/noarch/dnspython-2.7.0-pyhff2d567_0.conda
- conda: https://conda.anaconda.org/conda-forge/noarch/email-validator-2.2.0-pyhd8ed1ab_0.conda
- conda: https://conda.anaconda.org/conda-forge/noarch/email_validator-2.2.0-hd8ed1ab_0.conda
Expand All @@ -54,7 +54,7 @@ environments:
- conda: https://conda.anaconda.org/conda-forge/noarch/fastapi-cli-0.0.5-pyhd8ed1ab_1.conda
- conda: https://conda.anaconda.org/conda-forge/noarch/filelock-3.16.1-pyhd8ed1ab_0.conda
- conda: https://conda.anaconda.org/conda-forge/linux-64/frozenlist-1.5.0-py312h66e93f0_0.conda
- conda: https://conda.anaconda.org/conda-forge/noarch/fsspec-2024.10.0-pyhff2d567_0.conda
- conda: https://conda.anaconda.org/conda-forge/noarch/fsspec-2024.9.0-pyhff2d567_0.conda
- conda: https://conda.anaconda.org/conda-forge/linux-64/gflags-2.2.2-h5888daf_1005.conda
- conda: https://conda.anaconda.org/conda-forge/linux-64/glog-0.7.1-hbabe93e_0.conda
- conda: https://conda.anaconda.org/conda-forge/noarch/googleapis-common-protos-1.66.0-pyhff2d567_0.conda
Expand Down Expand Up @@ -130,7 +130,7 @@ environments:
- conda: https://conda.anaconda.org/conda-forge/noarch/mdurl-0.1.2-pyhd8ed1ab_0.conda
- conda: https://conda.modular.com/max-nightly/noarch/mojo-jupyter-24.6.0.dev2024111405-release.conda
- conda: https://conda.anaconda.org/conda-forge/linux-64/multidict-6.1.0-py312h178313f_1.conda
- conda: https://conda.anaconda.org/conda-forge/linux-64/multiprocess-0.70.15-py312h98912ed_1.conda
- conda: https://conda.anaconda.org/conda-forge/linux-64/multiprocess-0.70.16-py312h66e93f0_1.conda
- conda: https://conda.anaconda.org/conda-forge/noarch/mypy_extensions-1.0.0-pyha770c72_0.conda
- conda: https://conda.anaconda.org/conda-forge/linux-64/ncurses-6.5-he02047a_1.conda
- conda: https://conda.anaconda.org/conda-forge/linux-64/numpy-1.26.4-py312heda63a1_0.conda
Expand Down Expand Up @@ -252,9 +252,9 @@ environments:
- conda: https://conda.anaconda.org/conda-forge/noarch/charset-normalizer-3.4.0-pyhd8ed1ab_0.conda
- conda: https://conda.anaconda.org/conda-forge/noarch/click-8.1.7-unix_pyh707e725_0.conda
- conda: https://conda.anaconda.org/conda-forge/noarch/colorama-0.4.6-pyhd8ed1ab_0.tar.bz2
- conda: https://conda.anaconda.org/conda-forge/noarch/datasets-2.14.4-pyhd8ed1ab_0.conda
- conda: https://conda.anaconda.org/conda-forge/noarch/datasets-3.0.2-pyhd8ed1ab_0.conda
- conda: https://conda.anaconda.org/conda-forge/noarch/deprecated-1.2.14-pyh1a96a4e_0.conda
- conda: https://conda.anaconda.org/conda-forge/noarch/dill-0.3.7-pyhd8ed1ab_0.conda
- conda: https://conda.anaconda.org/conda-forge/noarch/dill-0.3.8-pyhd8ed1ab_0.conda
- conda: https://conda.anaconda.org/conda-forge/noarch/dnspython-2.7.0-pyhff2d567_0.conda
- conda: https://conda.anaconda.org/conda-forge/noarch/email-validator-2.2.0-pyhd8ed1ab_0.conda
- conda: https://conda.anaconda.org/conda-forge/noarch/email_validator-2.2.0-hd8ed1ab_0.conda
Expand All @@ -263,7 +263,7 @@ environments:
- conda: https://conda.anaconda.org/conda-forge/noarch/fastapi-cli-0.0.5-pyhd8ed1ab_1.conda
- conda: https://conda.anaconda.org/conda-forge/noarch/filelock-3.16.1-pyhd8ed1ab_0.conda
- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/frozenlist-1.5.0-py312hb2c0f52_0.conda
- conda: https://conda.anaconda.org/conda-forge/noarch/fsspec-2024.10.0-pyhff2d567_0.conda
- conda: https://conda.anaconda.org/conda-forge/noarch/fsspec-2024.9.0-pyhff2d567_0.conda
- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/gflags-2.2.2-h5ad3122_1005.conda
- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/glog-0.7.1-h468a4a4_0.conda
- conda: https://conda.anaconda.org/conda-forge/noarch/googleapis-common-protos-1.66.0-pyhff2d567_0.conda
Expand Down Expand Up @@ -340,7 +340,7 @@ environments:
- conda: https://conda.anaconda.org/conda-forge/noarch/mdurl-0.1.2-pyhd8ed1ab_0.conda
- conda: https://conda.modular.com/max-nightly/noarch/mojo-jupyter-24.6.0.dev2024111405-release.conda
- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/multidict-6.1.0-py312hcc812fe_1.conda
- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/multiprocess-0.70.15-py312hdd3e373_1.conda
- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/multiprocess-0.70.16-py312hb2c0f52_1.conda
- conda: https://conda.anaconda.org/conda-forge/noarch/mypy_extensions-1.0.0-pyha770c72_0.conda
- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/ncurses-6.5-hcccb83c_1.conda
- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/numpy-1.26.4-py312h470d778_0.conda
Expand Down Expand Up @@ -461,9 +461,9 @@ environments:
- conda: https://conda.anaconda.org/conda-forge/noarch/charset-normalizer-3.4.0-pyhd8ed1ab_0.conda
- conda: https://conda.anaconda.org/conda-forge/noarch/click-8.1.7-unix_pyh707e725_0.conda
- conda: https://conda.anaconda.org/conda-forge/noarch/colorama-0.4.6-pyhd8ed1ab_0.tar.bz2
- conda: https://conda.anaconda.org/conda-forge/noarch/datasets-2.14.4-pyhd8ed1ab_0.conda
- conda: https://conda.anaconda.org/conda-forge/noarch/datasets-3.0.2-pyhd8ed1ab_0.conda
- conda: https://conda.anaconda.org/conda-forge/noarch/deprecated-1.2.14-pyh1a96a4e_0.conda
- conda: https://conda.anaconda.org/conda-forge/noarch/dill-0.3.7-pyhd8ed1ab_0.conda
- conda: https://conda.anaconda.org/conda-forge/noarch/dill-0.3.8-pyhd8ed1ab_0.conda
- conda: https://conda.anaconda.org/conda-forge/noarch/dnspython-2.7.0-pyhff2d567_0.conda
- conda: https://conda.anaconda.org/conda-forge/noarch/email-validator-2.2.0-pyhd8ed1ab_0.conda
- conda: https://conda.anaconda.org/conda-forge/noarch/email_validator-2.2.0-hd8ed1ab_0.conda
Expand All @@ -472,7 +472,7 @@ environments:
- conda: https://conda.anaconda.org/conda-forge/noarch/fastapi-cli-0.0.5-pyhd8ed1ab_1.conda
- conda: https://conda.anaconda.org/conda-forge/noarch/filelock-3.16.1-pyhd8ed1ab_0.conda
- conda: https://conda.anaconda.org/conda-forge/osx-arm64/frozenlist-1.5.0-py312h0bf5046_0.conda
- conda: https://conda.anaconda.org/conda-forge/noarch/fsspec-2024.10.0-pyhff2d567_0.conda
- conda: https://conda.anaconda.org/conda-forge/noarch/fsspec-2024.9.0-pyhff2d567_0.conda
- conda: https://conda.anaconda.org/conda-forge/osx-arm64/gflags-2.2.2-hf9b8971_1005.conda
- conda: https://conda.anaconda.org/conda-forge/osx-arm64/glog-0.7.1-heb240a5_0.conda
- conda: https://conda.anaconda.org/conda-forge/noarch/googleapis-common-protos-1.66.0-pyhff2d567_0.conda
Expand Down Expand Up @@ -540,7 +540,7 @@ environments:
- conda: https://conda.anaconda.org/conda-forge/noarch/mdurl-0.1.2-pyhd8ed1ab_0.conda
- conda: https://conda.modular.com/max-nightly/noarch/mojo-jupyter-24.6.0.dev2024111405-release.conda
- conda: https://conda.anaconda.org/conda-forge/osx-arm64/multidict-6.1.0-py312hdb8e49c_1.conda
- conda: https://conda.anaconda.org/conda-forge/osx-arm64/multiprocess-0.70.15-py312h02f2b3b_1.conda
- conda: https://conda.anaconda.org/conda-forge/osx-arm64/multiprocess-0.70.16-py312h024a12e_1.conda
- conda: https://conda.anaconda.org/conda-forge/noarch/mypy_extensions-1.0.0-pyha770c72_0.conda
- conda: https://conda.anaconda.org/conda-forge/osx-arm64/ncurses-6.5-h7bae524_1.conda
- conda: https://conda.anaconda.org/conda-forge/osx-arm64/numpy-1.26.4-py312h8442bc7_0.conda
Expand Down Expand Up @@ -2171,33 +2171,33 @@ packages:
timestamp: 1666700778190
- kind: conda
name: datasets
version: 2.14.4
version: 3.0.2
build: pyhd8ed1ab_0
subdir: noarch
noarch: python
url: https://conda.anaconda.org/conda-forge/noarch/datasets-2.14.4-pyhd8ed1ab_0.conda
sha256: 7e09bd083a609138b780fcc4535924cb96814d2c908a36d4c64a2ba9ee3efe7f
md5: 3e087f072ce03c43a9b60522f5d0ca2f
url: https://conda.anaconda.org/conda-forge/noarch/datasets-3.0.2-pyhd8ed1ab_0.conda
sha256: c2758f660288867ef79b0041dc9d564185e2daedcf06298dedd01b62f52478e3
md5: d66a03e9ab3fa13c1268718f5fe85786
depends:
- aiohttp
- dill >=0.3.0,<0.3.8
- fsspec >=2021.11.1
- huggingface_hub >=0.14.0,<1.0.0
- importlib-metadata
- multiprocess
- dill >=0.3.0,<0.3.9
- filelock
- fsspec >=2023.1.0,<=2024.9.0
- huggingface_hub >=0.23.0
- multiprocess <0.70.17
- numpy >=1.17
- packaging
- pandas
- pyarrow >=8.0.0
- python >=3.8.0
- pyarrow >=15.0.0
- python >=3.8
- python-xxhash
- pyyaml >=5.1
- requests >=2.19.0
- tqdm >=4.62.1
- requests >=2.32.2
- tqdm >=4.66.3
license: Apache-2.0
license_family: Apache
size: 347303
timestamp: 1691593908658
size: 330303
timestamp: 1729719013543
- kind: conda
name: deprecated
version: 1.2.14
Expand All @@ -2216,19 +2216,19 @@ packages:
timestamp: 1685233463632
- kind: conda
name: dill
version: 0.3.7
version: 0.3.8
build: pyhd8ed1ab_0
subdir: noarch
noarch: python
url: https://conda.anaconda.org/conda-forge/noarch/dill-0.3.7-pyhd8ed1ab_0.conda
sha256: 4ff20c6be028be2825235631c45d9e4a75bca1de65f8840c02dfb28ea0137c45
md5: 5e4f3466526c52bc9af2d2353a1460bd
url: https://conda.anaconda.org/conda-forge/noarch/dill-0.3.8-pyhd8ed1ab_0.conda
sha256: 482b5b566ca559119b504c53df12b08f3962a5ef8e48061d62fd58a47f8f2ec4
md5: 78745f157d56877a2c6e7b386f66f3e2
depends:
- python >=3.7
license: BSD-3-Clause
license_family: BSD
size: 87553
timestamp: 1690101185422
size: 88169
timestamp: 1706434833883
- kind: conda
name: dnspython
version: 2.7.0
Expand Down Expand Up @@ -2407,19 +2407,19 @@ packages:
timestamp: 1729699642726
- kind: conda
name: fsspec
version: 2024.10.0
version: 2024.9.0
build: pyhff2d567_0
subdir: noarch
noarch: python
url: https://conda.anaconda.org/conda-forge/noarch/fsspec-2024.10.0-pyhff2d567_0.conda
sha256: 40bb76981dd49d5869b48925a8975bb7bbe4e33e1e40af4ec06f6bf4a62effd7
md5: 816dbc4679a64e4417cd1385d661bb31
url: https://conda.anaconda.org/conda-forge/noarch/fsspec-2024.9.0-pyhff2d567_0.conda
sha256: 8f4e9805b4ec223dea0d99f9e7e57c391d9026455eb9f0d6e0784c5d1a1200dc
md5: ace4329fbff4c69ab0309db6da182987
depends:
- python >=3.8
license: BSD-3-Clause
license_family: BSD
size: 134745
timestamp: 1729608972363
size: 134378
timestamp: 1725543368393
- kind: conda
name: gflags
version: 2.2.2
Expand Down Expand Up @@ -5636,59 +5636,61 @@ packages:
timestamp: 1729065664275
- kind: conda
name: multiprocess
version: 0.70.15
build: py312h02f2b3b_1
version: 0.70.16
build: py312h024a12e_1
build_number: 1
subdir: osx-arm64
url: https://conda.anaconda.org/conda-forge/osx-arm64/multiprocess-0.70.15-py312h02f2b3b_1.conda
sha256: 8041371e3ec3fbc2ca13c71b0180672896e6382e62892d9f6b11a4c5dd675951
md5: 910ef2223c71902175418d9163152788
url: https://conda.anaconda.org/conda-forge/osx-arm64/multiprocess-0.70.16-py312h024a12e_1.conda
sha256: d19a1c8b3fd44414657066becba960143e7115a385fb71b941f7e9c74f066a32
md5: fd83a478d686df79aa394b9db1ad20b5
depends:
- dill >=0.3.6
- python >=3.12.0rc3,<3.13.0a0
- python >=3.12.0rc3,<3.13.0a0 *_cpython
- __osx >=11.0
- dill >=0.3.8
- python >=3.12,<3.13.0a0
- python >=3.12,<3.13.0a0 *_cpython
- python_abi 3.12.* *_cp312
license: BSD-3-Clause
license_family: BSD
size: 335147
timestamp: 1695459275360
size: 342831
timestamp: 1724954807776
- kind: conda
name: multiprocess
version: 0.70.15
build: py312h98912ed_1
version: 0.70.16
build: py312h66e93f0_1
build_number: 1
subdir: linux-64
url: https://conda.anaconda.org/conda-forge/linux-64/multiprocess-0.70.15-py312h98912ed_1.conda
sha256: bb612a921fafda6375a2204ffebd8811db8dd3b8f25ac9886cc9bcbff7e3664e
md5: 5a64b9f44790d9a187a85366dd0ffa8d
url: https://conda.anaconda.org/conda-forge/linux-64/multiprocess-0.70.16-py312h66e93f0_1.conda
sha256: 459092c4e9305e00a0207b764a266c9caa14d82196322b2a74c96028c563a809
md5: efe4a3f62320156f68579362314009f3
depends:
- dill >=0.3.6
- libgcc-ng >=12
- python >=3.12.0rc3,<3.13.0a0
- __glibc >=2.17,<3.0.a0
- dill >=0.3.8
- libgcc >=13
- python >=3.12,<3.13.0a0
- python_abi 3.12.* *_cp312
license: BSD-3-Clause
license_family: BSD
size: 335666
timestamp: 1695459025249
size: 340540
timestamp: 1724954755987
- kind: conda
name: multiprocess
version: 0.70.15
build: py312hdd3e373_1
version: 0.70.16
build: py312hb2c0f52_1
build_number: 1
subdir: linux-aarch64
url: https://conda.anaconda.org/conda-forge/linux-aarch64/multiprocess-0.70.15-py312hdd3e373_1.conda
sha256: c53362cdf346f314e111faddc53061e3fd2ece0ba68ca303f5dd109976df158f
md5: 173a1692d2b3ddc265dc6afd21a869b3
url: https://conda.anaconda.org/conda-forge/linux-aarch64/multiprocess-0.70.16-py312hb2c0f52_1.conda
sha256: f93627c78d1f86f593350196699b462c334542477aa55fe0212edf45392c9ab4
md5: 642c63b684ce5614f157572b04816983
depends:
- dill >=0.3.6
- libgcc-ng >=12
- python >=3.12.0rc3,<3.13.0a0
- python >=3.12.0rc3,<3.13.0a0 *_cpython
- dill >=0.3.8
- libgcc >=13
- python >=3.12,<3.13.0a0
- python >=3.12,<3.13.0a0 *_cpython
- python_abi 3.12.* *_cp312
license: BSD-3-Clause
license_family: BSD
size: 336110
timestamp: 1695459137796
size: 341428
timestamp: 1724954862644
- kind: conda
name: mypy_extensions
version: 1.0.0
Expand Down
2 changes: 1 addition & 1 deletion stdlib/src/builtin/_startup.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

from memory import UnsafePointer
from sys import external_call
from sys.ffi import _get_global, OpaquePointer
from sys.ffi.utils import _get_global, OpaquePointer


fn _init_global_runtime(ignored: OpaquePointer) -> OpaquePointer:
Expand Down
5 changes: 3 additions & 2 deletions stdlib/src/builtin/file_descriptor.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ f.close()
from utils import Span
from builtin.io import _printf
from sys.ffi import external_call, OpaquePointer
from sys.ffi.c import C, Libc
from sys.info import is_nvidia_gpu
from memory import UnsafePointer

Expand Down Expand Up @@ -68,8 +69,8 @@ struct FileDescriptor(Writer):
if is_nvidia_gpu():
_printf["%*s"](len_bytes, bytes.unsafe_ptr())
else:
written = external_call["write", Int32](
self.value, bytes.unsafe_ptr(), len(bytes)
written = Libc[static=True]().write(
self.value, bytes.unsafe_ptr().bitcast[C.void](), len(bytes)
)
debug_assert(
written == len(bytes),
Expand Down
2 changes: 1 addition & 1 deletion stdlib/src/hashlib/hash.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ There are a few main tools in this module:
"""

import random
from sys.ffi import _get_global, OpaquePointer
from sys.ffi.utils import _get_global, OpaquePointer
from sys import simdwidthof, bitwidthof
from collections import InlineArray

Expand Down
2 changes: 1 addition & 1 deletion stdlib/src/math/math.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ from math import floor

from collections import List
from sys._assembly import inlined_assembly
from sys.ffi import _external_call_const
from sys.ffi.utils import _external_call_const
from sys import (
llvm_intrinsic,
bitwidthof,
Expand Down
2 changes: 1 addition & 1 deletion stdlib/src/python/python.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ from python import Python
from collections import Dict
from os import abort, getenv
from sys import external_call, sizeof
from sys.ffi import _get_global, OpaquePointer
from sys.ffi.utils import _get_global, OpaquePointer

from memory import UnsafePointer

Expand Down
16 changes: 16 additions & 0 deletions stdlib/src/sys/ffi/__init__.mojo
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# ===----------------------------------------------------------------------=== #
# Copyright (c) 2024, Modular Inc. All rights reserved.
#
# Licensed under the Apache License v2.0 with LLVM Exceptions:
# https://llvm.org/LICENSE.txt
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ===----------------------------------------------------------------------=== #
"""Implements a foreign functions interface (FFI)."""


from .utils import * # TODO: cleanup
18 changes: 18 additions & 0 deletions stdlib/src/sys/ffi/c/__init__.mojo
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# ===----------------------------------------------------------------------=== #
# Copyright (c) 2024, Modular Inc. All rights reserved.
#
# Licensed under the Apache License v2.0 with LLVM Exceptions:
# https://llvm.org/LICENSE.txt
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ===----------------------------------------------------------------------=== #
"""FFI utils for the C programming language."""


from .constants import *
from .types import *
from .libc import Libc, TryLibc
Loading