Thomas Klausner
Thomas Klausner
Can this be merged, please?
You'll have to provide more details about what you're doing. When libzip is built with `-DBUILD_SHARED_LIBS=FALSE` on Unix (NetBSD in my case), there is only one output library generated: `lib/libzip.a`,...
I understand what you're doing better, but you're basically asking me to reproduce your setup to find out if it's even a bug in libzip or in your usage of...
You need to link against all the dependent libraries, not only against `libzip.a`. This is not a bug.
Thank you for the patch! I tried it, and `cargo build` succeeds, but `cargo test` is unhappy: ``` running 5 tests test netbsd::tests::test_netbsd_get_affinity_mask ... ok test netbsd::tests::test_netbsd_set_for_current ... FAILED test...
Hi @mchelaru ! I checked, and no, this is set to `0`, which I think is the default. When I change it to `1`, more tests pass, but some still...
Hm, is this just the number of CPUs on the system? Because that would be 32 in my case.
The output is: ``` # psrset system processor set 0: processor(s) 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18...
I think the problem is that `cpuset_size()` is just a size that is needed for `pthread_set_affinity_np()` and *NOT* a CPU count. I think this patch (on top of yours) improves...
I think this is as good as it will get. On NetBSD, [pthread_setaffinity_np needs root privileges](https://man.netbsd.org/pthread_setaffinity_np.3) or the sysctl set. @Elzair can you please merge this and make a new...