forked from HACKERCHANNEL/PSL1GHT
-
Notifications
You must be signed in to change notification settings - Fork 68
Added utime and sysFsUtime #84
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
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
ea83398
add utime
d7d9baf
Addedd sysLv2FsUtime and utime
5cf4d29
Restored without unnecessary sysFsUtime
e8624e9
update utime with errno
dc15923
Update utime
crystalct 0f2282c
Update utime
crystalct ba0fe2f
Added utime and sysFsUtime
crystalct 1fbcbca
Added utime and sysFsUtime
crystalct 7a901c6
Added utime and sysFsUtime
crystalct 6741f1b
Added utime and sysFsUtime
crystalct cd7f6e0
gcomp fixed for CGYWIN
crystalct 42dd076
cgcomp fixed for CGYWIN
crystalct 76970e6
cgcomp fixed for CYGWIN
crystalct 01a12cd
Update Makefile
crystalct a4c0402
Update main.cpp
crystalct 0071293
Update utime
crystalct 247f74d
Update utime
crystalct File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| #include <stdio.h> | ||
| #include <fcntl.h> | ||
| #include <_ansi.h> | ||
| #include <_syslist.h> | ||
| #include <sys/reent.h> | ||
| #include <sys/errno.h> | ||
| #include <sys/types.h> | ||
| #include <sys/lv2errno.h> | ||
|
|
||
| #include <sys/file.h> | ||
| #include <utime.h> | ||
|
|
||
| int | ||
| _DEFUN(__librt_utime_r,(r,path,times), | ||
| struct _reent *r _AND | ||
| const char *path _AND | ||
| const struct utimbuf *times) | ||
| { | ||
| sysFSUtimbuf t; | ||
| if (times) | ||
| { | ||
| t.actime = times->actime; | ||
| t.modtime = times->modtime; | ||
| } | ||
| else | ||
| { | ||
| time_t now = time(NULL); | ||
| t.actime = now; | ||
| t.modtime = now; | ||
| } | ||
|
|
||
| return lv2errno_r(r,sysLv2FsUtime(path,&t)); | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.