184 Commits

Author SHA1 Message Date
openharmony_ci 8e8696f671 !3 merge master into master
linux-raw-sys新增bundle.json部件化

Created-by: dragonswordy
Commit-by: ljy9810
Merged-by: openharmony_ci
Description: ### 一、内容说明(相关的Issue)

https://gitcode.com/openharmony/third_party_rust_autocfg/issues/3

### 二、建议测试周期和提测地址  
  建议测试完成时间:xxxx.xx.xx  
  投产上线时间:xxxx.xx.xx  
  提测地址:CI环境/压测环境  
  测试账号:  

### 三、变更内容
  * 3.1 关联PR列表

  * 3.2 数据库和部署说明  
    1. 常规更新 
    2. 重启unicorn
    3. 重启sidekiq
    4. 迁移任务:是否有迁移任务,没有写 "无"
    5. rake脚本:`bundle exec xxx RAILS_ENV = production`;没有写 "无"

  * 3.4 其他技术优化内容(做了什么,变更了什么)
    - 重构了 xxxx 代码
    - xxxx 算法优化


  * 3.5 废弃通知(什么字段、方法弃用?)



  * 3.6  后向不兼容变更(是否有无法向后兼容的变更?)


  
### 四、研发自测点(自测哪些?冒烟用例全部自测?)
  自测测试结论:


### 五、测试关注点(需要提醒QA重点关注的、可能会忽略的地方)
  检查点:

| 需求名称 | 是否影响xx公共模块 | 是否需要xx功能 | 需求升级是否依赖其他子产品 |
|------|------------|----------|---------------|
| xxx  | 否          | 需要       | 不需要           |
|      |            |          |               |

  接口测试:

  性能测试:

  并发测试:

  其他:



See merge request: openharmony/third_party_rust_linux-raw-sys!3
OpenHarmony-v6.1-Release OpenHarmony-v7.0-Beta1
2025-12-31 22:04:14 +08:00
ljy9810 967b528424 linux-raw-sys新增bundle.json部件化
Signed-off-by: ljy9810 <longjianyin@h-partners.com>
2025-12-24 09:41:25 +08:00
openharmony_ci 85a8426aa3 !2 Add OAT.xml and README.OpenSource
Merge pull request !2 from fangting/master
OpenHarmony-v6.0.0.1-Release OpenHarmony-v6.0-Release OpenHarmony-v6.0-Beta1 OpenHarmony-v4.1.4-Release OpenHarmony-v5.1.0-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-Beta1 OpenHarmony-v4.0-Beta2 OpenHarmony-v4.0-Release OpenHarmony-v4.0.1-Release OpenHarmony-v4.1-Beta1 OpenHarmony-v4.1-Release OpenHarmony-v4.1.1-Release master-v weekly_20240115-v OpenHarmony-v6.0.0.2-Release
2023-04-14 08:09:58 +00:00
fangting ea0d5cadb1 Add OAT.xml and README.OpenSource
Signed-off-by: fangting <fangting12@huawei.com>
2023-04-14 14:15:03 +08:00
openharmony_ci 6f37f0d81e !1 [linux-raw-sys]Add GN Build Files and Custom Modifications to Rust Third-party Libraries
Merge pull request !1 from lubinglun/master
2023-04-13 11:33:42 +00:00
lubinglun c14586073d 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:25 +08:00
Dan Gohman a9c4b85514 chore: Release linux-raw-sys version 0.1.4 github.com/sunfishcode/linux-raw-sys/v0.1.4 2022-12-13 10:16:12 -08:00
Dan Gohman b8c6d883e0 Add a rust-version declaration. 2022-12-13 10:13:29 -08:00
John Nunley 099679848c Add CMSG macros (#37)
* Add CMSG macros
2022-12-13 10:12:28 -08:00
Dan Gohman 12b0b3ba68 chore: Release linux-raw-sys version 0.1.3 2022-11-22 13:54:51 -08:00
Dan Gohman 5d99fbd896 Add x32 support. (#36)
Add x32 support, by adding special cases for it in the generator.
2022-11-22 13:52:42 -08:00
Dan Gohman cb01ccc8f6 Update to actions/checkout@v3. 2022-11-22 13:35:30 -08:00
Dan Gohman 36f685404c Update the install-rust action to node16. 2022-11-07 12:33:17 -08:00
Dan Gohman 28775065ab (cargo-release) version 0.1.2 2022-10-03 11:00:12 -07:00
nivkner 927ddccf10 add flags for the splice syscalls (#35)
* add splice flags

* autogenerate bindings

Co-authored-by: nivkner <nivkner@users.noreply.github.com>
2022-10-03 10:59:33 -07:00
Dan Gohman 4f8f1f12a4 (cargo-release) version 0.1.1 2022-07-12 11:27:09 -07:00
carbotaniuman 28df18a399 Add sysinfo bindings 2022-07-11 14:59:20 -07:00
Dan Gohman f2f19dcd93 (cargo-release) version 0.1.0 2022-07-11 08:04:45 -07:00
carbotaniuman af1c0c1dd4 Add inotify bindings 2022-07-11 08:01:52 -07:00
Dan Gohman 2e65f0c7bd (cargo-release) version 0.0.46 2022-04-19 14:48:45 -07:00
Dan Gohman 8e21bcef57 Update to Linux 5.17. 2022-04-19 14:47:30 -07:00
Dan Gohman bf92f935e5 (cargo-release) version 0.0.45 2022-04-19 12:16:22 -07:00
Dan Gohman 010ec215a0 Add the io-uring APIs. 2022-04-19 11:59:06 -07:00
Dan Gohman c1e9bd67d5 (cargo-release) version 0.0.44 2022-04-09 16:26:26 -07:00
Dan Gohman 5079477099 Implement Eq and PartialEq for __kernel_timespec. 2022-04-09 16:25:51 -07:00
Dan Gohman fee12d2a1d (cargo-release) version 0.0.43 2022-04-08 15:08:19 -07:00
Dan Gohman ee19b8a9bb Define TCSANOW et al for MIPS.
Define `TCSANOW`, `TCSADRAIN`, and `TCSAFLUSH` for MIPS, since MIPS
defines these differently from all other architectures, and in a way
that bindgen doesn't support.
2022-04-08 15:07:30 -07:00
Dan Gohman 1b7dfcdda0 Add tests to ensure that the C type definitions match libc. (#27)
* Add tests to ensure that the C type definitions match libc.

In no-std mode, we don't depend on libc. But, we still want to be sure
that our types match those of libc. This adds a libc dev-dependency and
checks that the types are the same in cargo-test.

* Use `cargo check --tests` instead of `cargo test`.

We only have static-assertion tests, and `cargo check --tests` is enough
for those, and doesn't require installing cross-compilers.
2022-02-16 10:24:12 -08:00
Dan Gohman 3ac2585aa5 (cargo-release) version 0.0.42 2022-02-11 12:32:35 -08:00
Dan Gohman 5a175efc5b Fix the definition of POLLWRNORM on mips. 2022-02-11 12:32:06 -08:00
Dan Gohman 7728eb0b28 (cargo-release) version 0.0.41 2022-02-10 16:09:58 -08:00
Dan Gohman b295dce82c rustfmt the gen directory. 2022-02-10 16:09:14 -08:00
Dan Gohman ad0803ceb6 Add mips and mips64 ioctl support. 2022-02-10 16:03:44 -08:00
Dan Gohman b6f6e13e7e Fix the docs.rs build.
Avoid enabling the rustc-dep-of-std feature in the docs.rs build, as it
replaces core, which breaks rustdoc.
2022-02-01 16:50:41 -08:00
Dan Gohman d702ee107a (cargo-release) start next development iteration 0.0.41-alpha.0 2022-01-27 14:27:12 -08:00
Dan Gohman 580fa18388 (cargo-release) version 0.0.40 2022-01-27 14:27:03 -08:00
Dan Gohman c48bcf646b Use the correct preprocessor macro for detecting riscv64.
Use a preprocessor macro which is defined by the compiler for detecting
riscv64.
2022-01-27 14:23:55 -08:00
Dan Gohman 7340cd81e3 (cargo-release) start next development iteration 0.0.40-alpha.0 2022-01-27 11:50:52 -08:00
Dan Gohman d5b8ee6df9 (cargo-release) version 0.0.39 2022-01-27 11:50:44 -08:00
Dan Gohman 0b8f6b69a1 Exclude ioctls from the general module.
Ioctl codes are provided in the `ioctl` module, so blocklist them from the
`general` module to avoid duplication.
2022-01-27 11:50:05 -08:00
Dan Gohman feafe08040 Exclude the .github directory in the published package.
The .github, .rustfmt.toml, and .gitignore files aren't needed by
downstream users of the crate, so exclude them from the published
package.
2022-01-27 07:44:47 -08:00
Dan Gohman 3673970e70 Simplify the bindings by using only a single kernel version. (#20)
Originally, the idea of having multiple versions was to attempt to
support writing code that was strictly compatible with old versions.
However, my experience with linux-raw-sys so far as been that that's
not as useful as it seemed like it would be, and versioning all the
imports means having multiple versions of all the types, which gets
awkward.

So instead, switch to having just a single Linux version, 5.11 for
now, which is mostly a superset of the other versions.

This also helps reduce compile times, as there aren't multiple
versions of everything to parse.
2022-01-27 07:43:31 -08:00
Dan Gohman 7b371ee0d8 Define several macros used in the userfaultfd API.
Define the `UFFDIO_REGISTER_MODE_*`, `UFFDIO_COPY_MODE_*`, `UFFDIO_ZEROPAGE_MODE_*`,
and `UFFD_API` macros.
2022-01-26 18:23:42 -08:00
Dan Gohman 9ea366f5d4 Add a new ioctl module, and populate it with lots of ioctl codes. (#18)
We've been collecting manual definitions of ioctl codes for a while, and
it looks like we're going to be collecting more over time, so start trying
a different strategy: use a script and a C program to extract ioctl values
from the headers semi-automatically.

The script itself isn't very easy to run, and I'm open to ideas for how
to do it better. However, this should cover most of Linux's existing ioctls,
so hopefully we won't need to run it very often.
2022-01-26 11:35:51 -08:00
Dan Gohman 06bb7fac5c (cargo-release) start next development iteration 0.0.39-alpha.0 2022-01-25 12:03:23 -08:00
Dan Gohman 7600f5c701 (cargo-release) version 0.0.38 2022-01-25 12:03:14 -08:00
Dan Gohman 39534e6677 Update to bindgen 0.59.2. 2022-01-25 12:00:58 -08:00
Dan Gohman 7ed63a24c8 Define TIOCGWINSZ, FIONBIO, FIONREAD, and TCGETS on powerpc64le.
Linux's macro definitions for these are too complex for bindgen, so
define these manually.
2022-01-25 11:52:57 -08:00
Dan Gohman 657f24330d Add bindings for linux/userfaultfd.h. 2022-01-25 11:50:14 -08:00
Dan Gohman a0474c1832 (cargo-release) start next development iteration 0.0.38-alpha.0 2022-01-10 12:23:43 -08:00