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

Add semaphores syscalls #156

Merged
merged 8 commits into from
Aug 18, 2020
Merged

Add semaphores syscalls #156

merged 8 commits into from
Aug 18, 2020

Conversation

yunwei37
Copy link
Contributor

@yunwei37 yunwei37 commented Aug 17, 2020

Add semaphores syscalls

  • add semaphore in linux-object::sync
  • add semary in linux-object::ipc
  • add semget syscall
  • add semop syscall
  • add semctl syscall
  • tests
    • libc-test may fail because of Segmentation fault cause by fork
    • modify from libc-test but use vfork instead
  • documents

other

  • move time related structs to linux-object::time

@coveralls
Copy link

coveralls commented Aug 17, 2020

Pull Request Test Coverage Report for Build 213275357

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 180 of 283 (63.6%) changed or added relevant lines in 10 files are covered.
  • 19 unchanged lines in 4 files lost coverage.
  • Overall coverage increased (+0.6%) to 46.961%

Changes Missing Coverage Covered Lines Changed/Added Lines %
linux-object/src/error.rs 0 1 0.0%
linux-object/src/process.rs 10 13 76.92%
linux-object/src/ipc/semary.rs 37 48 77.08%
linux-object/src/ipc/mod.rs 19 37 51.35%
linux-syscall/src/ipc.rs 49 69 71.01%
linux-object/src/sync/semaphore.rs 43 64 67.19%
linux-object/src/time.rs 16 45 35.56%
Files with Coverage Reduction New Missed Lines %
../../../../../usr/share/rust/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/bitflags-1.2.1/src/lib.rs 1 41.82%
linux-syscall/src/lib.rs 3 46.36%
linux-object/src/signal/action.rs 4 28.13%
linux-object/src/signal/mod.rs 11 7.5%
Totals Coverage Status
Change from base Build 210967384: 0.6%
Covered Lines: 6752
Relevant Lines: 14378

💛 - Coveralls

@yunwei37 yunwei37 marked this pull request as ready for review August 18, 2020 08:39
@wangrunji0408 wangrunji0408 merged commit bdd4c31 into rcore-os:master Aug 18, 2020
@wangrunji0408 wangrunji0408 added documentation Improvements or additions to documentation enhancement New feature or request labels Aug 18, 2020
zhangsn-19 pushed a commit to zhangsn-19/zCore that referenced this pull request Apr 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants