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

[FreeBSD] Fix FreeBSD build/support #1075

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

michael-yuji
Copy link

  • Use "/usr/share/zoneinfo" like other platforms
  • Use platform specific types and values
  • Implement extattr ops for FreeBSD
  • Use copy_file_range(2) for file cloning
    • all supported FreeBSD (13+) supports it for regular file, and allows for file system level offloading (e.g. ZFS block-cloning, NFS server side copying)

- Use "/usr/share/zoneinfo"
- Use platform specific types and values
- Implement extattr ops for FreeBSD
- Use copy_file_range(2) for file cloning
@michael-yuji michael-yuji changed the title FreeBSD platform specific fixes [FreeBSD] Fix FreeBSD build/support Dec 9, 2024
@@ -142,7 +142,11 @@ final class _ProcessInfo: Sendable {
let time: UInt64 = ullTime
#else
var ts: timespec = timespec()
#if os(Linux)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This changes behaviour on Android I believe.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed to only use CLOCK_MONOTONTIC for FreeBSD and OpenBSD.

@michael-yuji
Copy link
Author

@swift-ci please test

@michael-yuji
Copy link
Author

@swift-ci please test

@michael-yuji
Copy link
Author

@swift-ci please test

@michael-yuji
Copy link
Author

@swift-ci please test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants