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 more time syscalls and fix touch command in busybox #135

Merged
merged 11 commits into from
Aug 11, 2020

Conversation

yunwei37
Copy link
Contributor

@yunwei37 yunwei37 commented Aug 8, 2020

Add more time syscalls

  • Add more time related syscalls:
    • time( )
    • gettimeofday( )
    • gettusage( )
    • times( )
  • update document for these syscalls
  • unit test

note: these syscalls is not very complete, but support basic function of getting time ( the same in rCore ).

related: fix touch command

  • use touch command in busybox, need to fix utimensat syscall
    • touch can create file successfully!
  • update document
  • test with busybox

sides

  • add fcntl consts in linux-object
  • add more test with current commands in busybox;

@yunwei37 yunwei37 marked this pull request as draft August 8, 2020 15:24
@coveralls
Copy link

coveralls commented Aug 8, 2020

Pull Request Test Coverage Report for Build 202045542

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

  • 25 of 95 (26.32%) changed or added relevant lines in 3 files are covered.
  • 45 unchanged lines in 3 files lost coverage.
  • Overall coverage decreased (-0.2%) to 33.833%

Changes Missing Coverage Covered Lines Changed/Added Lines %
linux-syscall/src/lib.rs 0 5 0.0%
linux-syscall/src/time.rs 11 76 14.47%
Files with Coverage Reduction New Missed Lines %
linux-syscall/src/time.rs 4 15.66%
linux-object/src/fs/mod.rs 11 75.9%
linux-syscall/src/file/file.rs 30 43.86%
Totals Coverage Status
Change from base Build 201900295: -0.2%
Covered Lines: 4289
Relevant Lines: 12677

💛 - Coveralls

@yunwei37 yunwei37 changed the title Add more time syscalls Add more time syscalls and fix touch command in busybox Aug 10, 2020
@yunwei37 yunwei37 marked this pull request as ready for review August 10, 2020 15:33
@wangrunji0408 wangrunji0408 added the enhancement New feature or request label Aug 10, 2020
@wangrunji0408 wangrunji0408 self-requested a review August 10, 2020 16:00
linux-object/src/fs/fcntl.rs Show resolved Hide resolved
linux-syscall/src/time.rs Outdated Show resolved Hide resolved
linux-syscall/src/time.rs Outdated Show resolved Hide resolved
linux-syscall/src/time.rs Outdated Show resolved Hide resolved
linux-syscall/src/time.rs Outdated Show resolved Hide resolved
linux-loader/src/main.rs Outdated Show resolved Hide resolved
@wangrunji0408 wangrunji0408 merged commit 01c671d into rcore-os:master Aug 11, 2020
zhangsn-19 pushed a commit to zhangsn-19/zCore that referenced this pull request Apr 23, 2022
Add more time syscalls and fix `touch` command in busybox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants