Egregoros

Signal feed

Timeline

Post

Remote status

Context

2

@navi also gethostname() but no sethostname(). For some reason POSIX decided not to standardize a couple of setters.

For setgroups() I think it's because OSes disagreed on whether it should also setgid to the primary group. For getgroups() they just said it was ID whether the primary group appears in the list; it makes sense that they were okay with that but were not okay saying that it's ID whether setgid() is run 😅

Also, why getpeername() but no setpeername()? 🤪

@ska @navi Well I can quite get not having sethostname() in POSIX as it's the kind of thing that's a bit outside of it's scope. Like otherwise probably would end up into a more or less dedicated option group, to not force a particular way of dealing with the system hostname, which just seems messy. While getting the hostname is always going to work, regardless of the OS, like worst case it just always returns "localhost".

That said it's a bit why sometimes I feel like it might be worth it to have a standard that's a superset of POSIX for some of the interfaces that are very common but wouldn't make sense to regroup by default into a whole set.

Replies

0

Fetching replies…