Skip to content

Conversation

@bigsaltyfishes
Copy link

Add initial support for FreeBSD.

Both FreeBSD and Linux supports the `copy_file_range(2)` function, which behaves similarly to the `sendfile(2)` function, but has better compatibility.
@outfoxxed
Copy link
Member

This is still marked as draft, is it ready for review?

@bigsaltyfishes
Copy link
Author

Sorry for my late reply, i finished the test just now, should work on freebsd now.
image

@bigsaltyfishes bigsaltyfishes marked this pull request as ready for review December 22, 2025 11:00
gitup
run: |
cmake -GNinja -B build -DCRASH_REPORTER=OFF -DUSE_JEMALLOC=OFF -DCMAKE_C_FLAGS="-I/usr/local/include -L/usr/local/lib" -DCMAKE_CXX_FLAGS="-I/usr/local/include -L/usr/local/lib"
Copy link
Member

Choose a reason for hiding this comment

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

Does Jemalloc not work correctly on freebsd?

Comment on lines +90 to +94
#ifdef __FreeBSD__
auto result = pam_start(config, user, &conv, &handle);
#else
auto result = pam_start_confdir(config, user, &conv, configDir, &handle);
#endif
Copy link
Member

Choose a reason for hiding this comment

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

If pam can't be configured on bsd a note of that should be made on the configdir property

Q_PROPERTY(QString configDirectory READ configDirectory WRITE setConfigDirectory NOTIFY configDirectoryChanged);

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