forked from pali/udftools
-
Notifications
You must be signed in to change notification settings - Fork 2
Darwin (macOS) port for the udffsck tool #1
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
Open
gmerlino
wants to merge
7
commits into
argorain:master
Choose a base branch
from
gmerlino:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
cd4a96f
Darwin (macOS) port for the udffsck tool
gmerlino 220348d
fixed (unneeded) CDDL files inclusion, added (initial) Travis directi…
gmerlino 0b52d34
fix for endianness checks on macOS, fix for Travis badge
gmerlino 9bf524e
fixed wrong assumptions on Travis environment (e.g., installed Homebrew
gmerlino 9e5e8da
fixed missing libtoolize error with a symlink
gmerlino 3295d18
skipping top-level make due to (incomplete) port, possibly this one s…
gmerlino 36dccbf
fixed (full) compilation of udftools (modifications outside fsck folder
gmerlino 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| [](https://travis-ci.org/argorain/udftools) | ||
| [](https://travis-ci.org/gmerlino/udftools) | ||
|
|
||
| Linux tools for UDF filesystems and DVD/CD-R(W) drives |
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 |
|---|---|---|
|
|
@@ -28,6 +28,9 @@ | |
| #include <inttypes.h> | ||
| #include <sys/types.h> | ||
|
|
||
| #if defined(HAVE_MACHINE_ENDIAN_H) | ||
| #include <machine/endian.h> | ||
| #endif | ||
| #ifdef HAVE_SYS_ISA_DEFS_H | ||
| #define __LITTLE_ENDIAN 1234 | ||
| #define __BIG_ENDIAN 4321 | ||
|
|
@@ -42,6 +45,18 @@ | |
| #endif | ||
| #endif | ||
|
|
||
| /* macOS */ | ||
| #ifdef __APPLE__ | ||
| #define __LITTLE_ENDIAN LITTLE_ENDIAN | ||
| #define __BIG_ENDIAN BIG_ENDIAN | ||
| #define __BYTE_ORDER BYTE_ORDER | ||
| #if __BYTE_ORDER == BIG_ENDIAN | ||
| #define __BIG_ENDIAN_BITFIELD | ||
| #elif __BYTE_ORDER == LITTLE_ENDIAN | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. With respect to pali#14, this needs to be sorted out in same way to prevent future conflict. |
||
| #define __LITTLE_ENDIAN_BITFIELD | ||
| #endif | ||
| #endif /* __APPLE__ */ | ||
|
|
||
| #define constant_swab16(x) \ | ||
| ((uint16_t)((((uint16_t)(x) & 0x00FFU) << 8) | \ | ||
| (((uint16_t)(x) & 0xFF00U) >> 8))) | ||
|
|
||
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is testing, x86/x86_64 and gcc disabled for osx? All those tests shall be run.
Keeping osx as allowed failure is good idea, since it is primarily linux package.