6109 Commits

Author SHA1 Message Date
openharmony_ci 90b8832365 !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 e8c139580d README.OpenSource修改
Signed-off-by: ljy9810 <longjianyin@h-partners.com>
2026-04-09 17:53:48 +08:00
openharmony_ci c63c91fcea !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 0e57942c36 libc升级到0.2.180版本
Signed-off-by: ljy9810 <longjianyin@h-partners.com>
2026-03-04 12:00:43 +08:00
openharmony_ci fc423d68a3 !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 6d865026d9 蓝黄差异同步
Signed-off-by: ljy9810 <longjianyin@h-partners.com>
2025-07-22 11:31:49 +08:00
openharmony_ci 73ddd97c3d !9 third_party_rust_libc部件化改造
Merge pull request !9 from 龙剑吟/master
OpenHarmony-v6.0-Beta1
2025-05-21 06:58:05 +00:00
ljy9810 4fd330159b third_party_rust_libc部件化改造
Signed-off-by: ljy9810 <longjianyin@h-partners.com>
2025-05-21 10:41:24 +08:00
openharmony_ci dd2db5bb96 !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 4463c194de 升级libc版本至0.2.153
Signed-off-by: archane <zhaipeizhe@huawei.com>
Change-Id: I8f3f1652df13d929cf99ff89e38c112ff0c8b419
2025-02-26 10:34:42 +08:00
openharmony_ci 7f6f306fa6 !6 Add Loongarch support
Merge pull request !6 from Wu Xiaotian/ohos-main
2024-09-03 10:35:13 +00:00
Xiaotian Wu 6e38f3680f 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 defdbd91fa linux/musl: Add support for LoongArch64
Signed-off-by: Xiaotian Wu <wuxiaotian@loongson.cn>
2024-08-20 10:57:26 +08:00
openharmony_ci 77fc72514f !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 2736abf574 add oh user guide
Signed-off-by: fangting <fangting12@huawei.com>
2023-05-04 11:58:52 +08:00
openharmony_ci 7aafab84a8 !4 Add README_zh.md
Merge pull request !4 from fangting/master
2023-04-25 03:45:19 +00:00
haotuo 3161ec4718 Add oh usage guide
Issue:#I6YAO1

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

Signed-off-by: haotuo <haotuo@huawei.com>
2023-04-17 15:18:37 +08:00
openharmony_ci 2fa5f7ebce !2 Add OAT.xml and README.OpenSource
Merge pull request !2 from fangting/master
2023-04-14 08:11:02 +00:00
fangting c11a9a1886 Add OAT.xml and README.OpenSource
Signed-off-by: fangting <fangting12@huawei.com>
2023-04-14 14:14:58 +08:00
openharmony_ci 8057d14583 !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 9f194ea398 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 dc5b101bc2 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 0b8379f244 Prepare 0.2.139 release 2022-12-22 09:01:17 +01:00
bors f026a6ed2b 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 01af5fd730 adding KERNEL_VERSION macro for linux. 2022-12-21 12:46:21 +00:00
bors c9dec3d0dd 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 f87bf23e6f 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 03d7b43ce1 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 dc7e57be37 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 a778985104 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 f5a92ac64c Add ISO C functions atof, atol, atoll, strtoll, strtoull 2022-12-14 10:09:03 -05:00
bors d08276cb6c 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 23d62768dd 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 04993f298f 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 c1b40f0b85 Try readding all inotify flags 2022-12-07 08:31:03 -06:00
Alan Somers 381ee6bd6e Update FreeBSD 12 CI environment to 12.4 2022-12-05 16:53:31 -07:00
Phantomical e069c23d7d Add AT_SYSINFO_EHDR constant for linux 2022-12-04 17:29:27 -08:00
bors 5fb82c90d8 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 afba8bcd7b 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 2670873b19 Auto merge of #3021 - devnexen:getopt_long, r=JohnTitor
adding getopt_long for unixes.
2022-12-03 00:18:45 +00:00
Jeremy Soller b4fa2a0002 redox: make off_t and time_t long long 2022-12-02 07:35:14 -07:00
Jeremy Soller a9d77e8347 redox: long is 32-bits on 32-bit systems 2022-12-01 18:31:59 -07:00
David Carlier 8b16715d40 adding getopt_long for unixes. 2022-12-01 12:34:38 +00:00
bors f0e6c80e39 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 e0cd169455 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 3d514980c6 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 7e14ba55f0 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