Commit Graph

6109 Commits

Author SHA1 Message Date
openharmony_ci ec27c2d47a !16 merge master into master
README.OpenSource修改

Created-by: dragonswordy
Commit-by: ljy9810
Merged-by: openharmony_ci
Description: <!-- Thank you for submitting a PR!

We have the contribution guide, please read it if you are new here!
<https://github.com/rust-lang/libc/blob/main/CONTRIBUTING.md>

Please fill out the below template.
-->

# Description

<!-- Add a short description about what this change does -->
https://gitcode.com/openharmony/third_party_rust_unicode-ident/issues/3
# Sources

<!-- All API changes must have permalinks to headers. Common sources:

* Linux uapi https://github.com/torvalds/linux/tree/master/include/uapi
* Glibc https://github.com/bminor/glibc
* Musl https://github.com/bminor/musl
* Apple XNU https://github.com/apple-oss-distributions/xnu
* Android https://cs.android.com/android/platform/superproject/main

After navigating to the relevant file, click the triple dots and select "copy
permalink" if on GitHub, or l-r (links->commit) for the Android source to get a
link to the current version of the header.

If sources are closed, link to documentation or paste relevant C definitions.
-->

# Checklist

<!-- Please make sure the following has been done before submitting a PR,
or mark it as a draft if you are not sure. -->

- [ ] Relevant tests in `libc-test/semver` have been updated
- [ ] No placeholder or unstable values like `*LAST` or `*MAX` are
  included (see [#3131](https://github.com/rust-lang/libc/issues/3131))
- [ ] Tested locally (`cd libc-test && cargo test --target mytarget`);
  especially relevant for platforms that may not be checked in CI

<!-- labels: is this PR a breaking change? If not, we can probably get it in a
0.2 release. Just uncomment the following:

@rustbot label +stable-nominated
-->


See merge request: openharmony/third_party_rust_libc!16
OpenHarmony-v7.0-Beta1
2026-04-09 20:56:07 +08:00
ljy9810 e648ed93ff README.OpenSource修改
Signed-off-by: ljy9810 <longjianyin@h-partners.com>
2026-04-09 17:53:48 +08:00
openharmony_ci fb41c01b67 !15 merge master into master
libc升级到0.2.180版本

Created-by: dragonswordy
Commit-by: ljy9810
Merged-by: openharmony_ci
Description: Thanks for considering submitting a PR!
https://gitcode.com/openharmony/third_party_rust_libc/issues/9

Here's a checklist for things that will be checked during review or continuous integration.

- \[ ] Edit corresponding file(s) under `libc-test/semver` when you add/remove item(s)
- \[ ] `rustc ci/style.rs && ./style src`
- \[ ] `cd libc-test && cargo test` (This might fail on your env due to environment difference between your env and CI. Ignore failures if you are not sure.)
- \[ ] Your PR that bumps up the crate version doesn't contain any other changes

Delete this line and everything above before opening your PR.


See merge request: openharmony/third_party_rust_libc!15
2026-03-18 19:03:32 +08:00
ljy9810 b38a8a0a6a libc升级到0.2.180版本
Signed-off-by: ljy9810 <longjianyin@h-partners.com>
2026-03-04 12:00:43 +08:00
openharmony_ci 7f58fce8c9 !12 差异同步
Merge pull request !12 from 龙剑吟/master
OpenHarmony-v6.0.0.1-Release OpenHarmony-v6.0-Release OpenHarmony-v6.1-Release OpenHarmony-v6.0.0.2-Release
2025-07-22 06:29:42 +00:00
ljy9810 7eccadcb47 蓝黄差异同步
Signed-off-by: ljy9810 <longjianyin@h-partners.com>
2025-07-22 11:31:49 +08:00
openharmony_ci c2a05fd83c !9 third_party_rust_libc部件化改造
Merge pull request !9 from 龙剑吟/master
OpenHarmony-v6.0-Beta1
2025-05-21 06:58:05 +00:00
ljy9810 18098c99b1 third_party_rust_libc部件化改造
Signed-off-by: ljy9810 <longjianyin@h-partners.com>
2025-05-21 10:41:24 +08:00
openharmony_ci 398236a395 !8 升级libc版本至0.2.153
Merge pull request !8 from archane/upgrade
OpenHarmony-v5.1.0-Release
2025-02-26 10:18:22 +00:00
archane 009c8ca9b7 升级libc版本至0.2.153
Signed-off-by: archane <zhaipeizhe@huawei.com>
Change-Id: I8f3f1652df13d929cf99ff89e38c112ff0c8b419
2025-02-26 10:34:42 +08:00
openharmony_ci 2add0d91ff !6 Add Loongarch support
Merge pull request !6 from Wu Xiaotian/ohos-main
2024-09-03 10:35:13 +00:00
Xiaotian Wu 27682274ce linux/musl: Add more const like F_OFD_SETLKW
Signed-off-by: Xiaotian Wu <wuxiaotian@loongson.cn>
2024-08-20 10:57:32 +08:00
Xiaotian Wu 8430fe7557 linux/musl: Add support for LoongArch64
Signed-off-by: Xiaotian Wu <wuxiaotian@loongson.cn>
2024-08-20 10:57:26 +08:00
openharmony_ci cf7c643fe4 !5 Add oh user guide
Merge pull request !5 from fangting/master
OpenHarmony-v4.1.4-Release OpenHarmony-v5.0.3-Release OpenHarmony-v4.1.3-Release OpenHarmony-v5.0.2-Release OpenHarmony-v4.1.2-Release OpenHarmony-v5.0.1-Release OpenHarmony-v4.0.4-Release OpenHarmony-v5.0.0-Release OpenHarmony-v4.0.3-Release OpenHarmony-v4.0.2-Release OpenHarmony-v5.0-Beta1 OpenHarmony-v4.0-Release OpenHarmony-v4.0-Beta2 OpenHarmony-v4.0-Beta1 OpenHarmony-v4.0.1-Release OpenHarmony-v4.1-Beta1 OpenHarmony-v4.1-Release OpenHarmony-v4.1.1-Release master-v weekly_20240115-v
2023-05-04 06:16:59 +00:00
fangting 8574132b05 add oh user guide
Signed-off-by: fangting <fangting12@huawei.com>
2023-05-04 11:58:52 +08:00
openharmony_ci f96112a6d4 !4 Add README_zh.md
Merge pull request !4 from fangting/master
2023-04-25 03:45:19 +00:00
haotuo ebaa65cbbc Add oh usage guide
Issue:#I6YAO1

Signed-off-by: haotuo <haotuo@huawei.com>
2023-04-24 17:10:21 +08:00
fangting 298baa13e3 Add README_zh.md
Signed-off-by: fangting <fangting12@huawei.com>
2023-04-24 10:39:37 +08:00
openharmony_ci 88fc6f4462 !3 libc支持OHOS target
Merge pull request !3 from haotuo/master
2023-04-18 02:01:59 +00:00
haotuo f1afde7cc5 Add support for oh
Issue:I6W3E2

Signed-off-by: haotuo <haotuo@huawei.com>
2023-04-17 15:18:37 +08:00
openharmony_ci 9b13a01220 !2 Add OAT.xml and README.OpenSource
Merge pull request !2 from fangting/master
2023-04-14 08:11:02 +00:00
fangting 17a416f872 Add OAT.xml and README.OpenSource
Signed-off-by: fangting <fangting12@huawei.com>
2023-04-14 14:14:58 +08:00
openharmony_ci 6c8eba47df !1 [libc]Add GN Build Files and Custom Modifications to Rust Third-party Libraries
Merge pull request !1 from lubinglun/master
2023-04-13 11:34:06 +00:00
lubinglun 41c82465b9 Add GN Build Files and Custom Modifications
Issue:https://gitee.com/openharmony/build/issues/I6UFTP
Signed-off-by: lubinglun <lubinglun@huawei.com>
2023-04-12 17:26:19 +08:00
bors f4bc85111b Auto merge of #3042 - flba-eb:release_0.2.139, r=JohnTitor
Prepare 0.2.139 release

It would be great to have a new release of libc pushed to crates.io 😄
github.com/rust-lang/libc.git/0.2.139 github.com/rust-lang/libc/0.2.139
2022-12-22 08:06:46 +00:00
Florian Bartels dc3d43cae0 Prepare 0.2.139 release 2022-12-22 09:01:17 +01:00
bors c59ca73530 Auto merge of #3041 - devnexen:linux_kernel_version, r=JohnTitor
adding KERNEL_VERSION macro for linux.
2022-12-21 12:54:30 +00:00
David Carlier 88d6a1fd9b adding KERNEL_VERSION macro for linux. 2022-12-21 12:46:21 +00:00
bors 45b431a79e Auto merge of #2758 - fkm3:master, r=JohnTitor
Add misc constants and functions for android

These are the main diffs present in the downstream android opensource
project repo.
2022-12-21 11:05:54 +00:00
Frederick Mayle 572e11b963 Add misc constants and functions for android
These are the main diffs present in the android opensource project.
2022-12-20 15:49:38 -08:00
bors 318dccc93a Auto merge of #3038 - gh-tr:rebased/20221216, r=JohnTitor
Add support for QNX/Neutrino 7.1

Test cases (ctest2, all succeed):
QNX/Neutrino 7.1 x86_64:  9884
QNX/Neutrino 7.1 aarch64: 9766

Co-authored-by: Tristan Roach <troach@qnx.com>
Co-authored-by: Florian Bartels <Florian.Bartels@elektrobit.com>
2022-12-20 11:57:29 +00:00
bors 07636f636d Auto merge of #3036 - LegionMammal978:iso-c-funcs, r=JohnTitor
Add missing string-to-number functions from ISO C

These should be the observable API changes:

- ISO C90 function `atol()` is added to all `fuchsia`, `unix`, `vxworks`, `wasi`, and `windows` targets.
- ISO C90 function `atof()` is added to `android`, `redox`, and `vxworks`.
- ISO C99 functions `atoll()`, `strtoll()`, and `strtoull()` are added to all `fuchsia`, `unix`, `vxworks`, `wasi`, and `windows` targets.

Also, I wasn't exactly sure where to insert the new functions, so I just tried to place them near related functions.
2022-12-20 10:07:51 +00:00
Florian Bartels 720151f844 Add support for QNX/Neutrino 7.1
Test cases (ctest2, all succeed):
QNX/Neutrino 7.1 x86_64:  9884
QNX/Neutrino 7.1 aarch64: 9766

Co-authored-by: Tristan Roach <troach@qnx.com>
Co-authored-by: Florian Bartels <Florian.Bartels@elektrobit.com>
2022-12-16 09:13:16 -05:00
LegionMammal978 6a58758d5f Add ISO C functions atof, atol, atoll, strtoll, strtoull 2022-12-14 10:09:03 -05:00
bors 6a5c07f706 Auto merge of #3027 - Phantomical:auxval, r=JohnTitor
linux: Add AT_SYSINFO_EHDR constant

When passed to [`getauxval(3)`][2] this is used to retrieve the base address of the vdso mapped into the current process. It is defined the architecture specific `auxvec.h` headers but [it is defined to the same value in all of them][1] so I've put it in `src/unix/linux_like/linux/mod.rs` instead of in the arch submodule.

[1]: https://sourcegraph.com/search?q=context:global+repo:%5Egithub%5C.com/torvalds/linux%24+%23define+AT_SYSINFO_EHDR&patternType=standard&sm=1
[2]: https://man7.org/linux/man-pages/man3/getauxval.3.html
2022-12-11 02:31:05 +00:00
bors 8ccb82892f Auto merge of #3030 - carbotaniuman:inotify-flags, r=JohnTitor
Try readding all inotify flags

Adds back some inotify flags that were once too new, but it appears the inexorable process of time has made the tests pass now.
2022-12-11 01:22:50 +00:00
bors 2cc0b3b0c6 Auto merge of #3028 - asomers:fbsd12.4, r=JohnTitor
Update FreeBSD 12 CI environment to 12.4

12.3 will soon be EoL.
2022-12-08 07:28:24 +00:00
carbotaniuman ec6d846cec Try readding all inotify flags 2022-12-07 08:31:03 -06:00
Alan Somers 3012fb3bc2 Update FreeBSD 12 CI environment to 12.4 2022-12-05 16:53:31 -07:00
Phantomical ce9ab41088 Add AT_SYSINFO_EHDR constant for linux 2022-12-04 17:29:27 -08:00
bors ce5afa7b52 Auto merge of #2994 - SteveLauC:libc-02138, r=JohnTitor
bump to 0.2.138

Bump version to 0.2.138 🚀
2022-12-03 02:26:31 +00:00
bors 9c311b4f48 Auto merge of #3024 - redox-os:redox-0.2.137, r=JohnTitor
redox: long is 32-bits on 32-bit systems

This ensures that 32-bit systems use i32 for c_long and u32 for c_ulong.

I have also adjusted off_t and time_t to be `long long`, which is what they are in `relibc` now.
2022-12-03 01:22:57 +00:00
bors 2eea8737bf Auto merge of #3021 - devnexen:getopt_long, r=JohnTitor
adding getopt_long for unixes.
2022-12-03 00:18:45 +00:00
Jeremy Soller 73a70cb493 redox: make off_t and time_t long long 2022-12-02 07:35:14 -07:00
Jeremy Soller db3423be55 redox: long is 32-bits on 32-bit systems 2022-12-01 18:31:59 -07:00
David Carlier 27cc898f59 adding getopt_long for unixes. 2022-12-01 12:34:38 +00:00
bors 15d27952bf Auto merge of #3023 - asomers:copy_file_range, r=JohnTitor
Enable copy_file_range on FreeBSD

PR #2479 did this, but only in the freebsd13 and freebsd14 modules, which was incorrect.  Those modules should only be used for functions that change across FreeBSD versions, and therefore need different ELF symbol versions.  Functions that were newly added since FreeBSD 11 can still go in the base freebsd module.  It will cause no problems for them to be there, and users will see an error at link time if they try to use such a function in an environment that is too old to support it.
2022-11-30 22:57:15 +00:00
Alan Somers 5756980eb3 Enable copy_file_range on FreeBSD
PR #2479 did this, but only in the freebsd13 and freebsd14 modules,
which was incorrect.  Those modules should only be used for functions
that change across FreeBSD versions, and therefore need different ELF
symbol versions.  Functions that were newly added since FreeBSD 11 can
still go in the base freebsd module.  It will cause no problems for them
to be there, and users will see an error at link time if they try to
use such a function in an environment that is too old to support it.
2022-11-30 10:13:28 -07:00
bors d6fe782387 Auto merge of #3022 - asomers:capsicum, r=JohnTitor
Add more capsicum functions for FreeBSD

These have all been available since at least FreeBSD 9.2.
2022-11-30 12:44:39 +00:00
bors b8c8e13e4d Auto merge of #3003 - devnexen:musl_pidfd_nonblock, r=JohnTitor
linux musl adding `PIDFD_NONBLOCK` constant.

closes #3002
2022-11-30 11:24:00 +00:00