At least Interix lacks supplemental group support. */
| 65 | #if ! HAVE_SETGROUPS |
| 66 | /* At least Interix lacks supplemental group support. */ |
| 67 | static int |
| 68 | setgroups (size_t size, MAYBE_UNUSED gid_t const *list) |
| 69 | { |
| 70 | if (size == 0) |
| 71 | { |
| 72 | /* Return success when clearing supplemental groups |
| 73 | as ! HAVE_SETGROUPS should only be the case on |
| 74 | platforms that don't support supplemental groups. */ |
| 75 | return 0; |
| 76 | } |
| 77 | else |
| 78 | { |
| 79 | errno = ENOTSUP; |
| 80 | return -1; |
| 81 | } |
| 82 | } |
| 83 | #endif |
| 84 | |
| 85 | /* Determine the group IDs for the specified supplementary GROUPS, |