Tags: tklauser/go-sysconf
Tags
Make SC_CLK_TCK return constant 100 on Linux CLK_TCK is always 100 on Linux. For example, musl hard-codes this https://git.musl-libc.org/cgit/musl/tree/src/conf/sysconf.c#n30 and glibc looks it up from the ELF auxv, but the kernel sets it to 100 on all architectures (except alpha and ia64, both of which are obsolete and not supported by Go). Also see containerd/cgroups#12
Add support for solaris For now, duplicate the unix.Sysconf libc wrapper to implement Sysconf. Once https://golang.org/286593 is merged, this can be replaced by unix.Sysconf.
Define variable values per GOARCH on linux Some values might differ between platforms (e.g. PTHREADS_STACK_MIN). Thus, generate all values per GOARCH to account for any platform specific values. This effectively also reverts commit 4ca82d1 and generates the POSIX_V{6,7}_* variable values again. The zsysconf_values_linux_$GOARCH.go files were generated using linux/Dockerfile from golang.org/x/sys/unix with local modification to generate the values from sysconf_values_linux.go
Define POSIX_V{6,7}_* pointer/off_t variables depending on word size Depending on word size (32-bit vs. 64-bit) these are defined differently: POSIX_V7_ILP32_OFF32 POSIX_V7_ILP32_OFFBIG POSIX_V7_LP64_OFF64 POSIX_V7_LPBIG_OFFBIG POSIX_V6_ILP32_OFF32 POSIX_V6_ILP32_OFFBIG POSIX_V6_LP64_OFF64 POSIX_V6_LPBIG_OFFBIG Also see <bits/environments.h>
PreviousNext