On Wed, Nov 9, 2016 at 4:38 AM,  <amenzhin...@gmail.com> wrote:
> Hey guys, I'm curious, why different syscall functions are available on
> different *NIX platforms.
> For example the Getsid function is not implemented for linux but it is
> implemented for the darwin platform (link).
>
> I haven't examined all of them but it's obvious that all platforms have
> their own set.

It's inevitable that different systems provide different syscall
functions, as they do in fact provide different syscalls.

The fact that Getsid is only available on *BSD systems is likely an accident.

The syscall package is frozen (https://golang.org/s/go1.4-syscall) so
if you want to fix this, the fixes should be made to the
golang.org/x/sys/unix package (which does seem to have to the same bug
regarding Getsid).

Ian

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to