You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto merge of #2216 - Thomasdezeeuw:macos-gethostuuid, r=Amanieu
Add gethostuuid and uuid_t on macOS
This adds the `gethostuuid` function and the `uuid_t` for macOS.
I'm not sure the function signature is correct. It's defined as the following in C:
```C
int gethostuuid(uuid_t id, const struct timespec *wait);
typedef unsigned char __darwin_uuid_t[16];
typedef __darwin_uuid_t uuid_t;
```
Because C doesn't really has arrays, the accept parameter can't be `uuid_t` in Rust, as Rust does have arrays and thus expect an array to be passed by value, where the C function expects a pointer.
0 commit comments