package sysconf

Import Path
	github.com/tklauser/go-sysconf (on go.dev)

Dependency Relation
	imports 9 packages, and imported by 2 packages

Involved Source Files Package sysconf implements the sysconf(3) function and provides the associated SC_* constants to query system configuration values. sysconf_generic.go sysconf_linux.go sysconf_posix.go zsysconf_defs_linux.go zsysconf_values_linux_amd64.go
Code Examples { clktck, err := sysconf.Sysconf(sysconf.SC_CLK_TCK) if err != nil { fmt.Fprintf(os.Stderr, "Sysconf: %v\n", err) } fmt.Printf("sysconf(SC_CLK_TCK) = %v\n", clktck) } { _, err := sysconf.Sysconf(-1) fmt.Print(err) }
Package-Level Functions (only one)
Sysconf returns the value of a sysconf(3) runtime system parameter. The name parameter should be a SC_* constant define in this package. The implementation is GOOS-specific and certain SC_* constants might not be defined for all GOOSes.
Package-Level Constants (total 131)
const SC_2_C_BIND = 47
const SC_2_C_DEV = 48
const SC_2_C_VERSION = 96
const SC_2_CHAR_TERM = 95
const SC_2_FORT_DEV = 49
const SC_2_FORT_RUN = 50
const SC_2_LOCALEDEF = 52
const SC_2_PBS = 168
const SC_2_PBS_ACCOUNTING = 169
const SC_2_PBS_CHECKPOINT = 175
const SC_2_PBS_LOCATE = 170
const SC_2_PBS_MESSAGE = 171
const SC_2_PBS_TRACK = 172
const SC_2_SW_DEV = 51
const SC_2_UPE = 97
const SC_2_VERSION = 46
const SC_ADVISORY_INFO = 132
const SC_AIO_LISTIO_MAX = 23
const SC_AIO_MAX = 24
const SC_ARG_MAX = 0
const SC_ASYNCHRONOUS_IO = 12
const SC_ATEXIT_MAX = 87
const SC_AVPHYS_PAGES = 86
const SC_BARRIERS = 133
const SC_BC_BASE_MAX = 36
const SC_BC_DIM_MAX = 37
const SC_BC_SCALE_MAX = 38
const SC_BC_STRING_MAX = 39
const SC_CHILD_MAX = 1
const SC_CLK_TCK = 2
const SC_CLOCK_SELECTION = 137
const SC_CPUTIME = 138
const SC_DELAYTIMER_MAX = 26
const SC_EXPR_NEST_MAX = 42
const SC_FSYNC = 15
const SC_HOST_NAME_MAX = 180
const SC_IOV_MAX = 60
const SC_IPV6 = 235
const SC_JOB_CONTROL = 7
const SC_LINE_MAX = 43
const SC_LOGIN_NAME_MAX = 71
const SC_MAPPED_FILES = 16
const SC_MEMLOCK = 17
const SC_MEMLOCK_RANGE = 18
const SC_MESSAGE_PASSING = 20
const SC_MONOTONIC_CLOCK = 149
const SC_MQ_OPEN_MAX = 27
const SC_MQ_PRIO_MAX = 28
const SC_NGROUPS_MAX = 3
const SC_OPEN_MAX = 4
const SC_PAGE_SIZE = 30
const SC_PAGESIZE = 30
const SC_PHYS_PAGES = 85
const SC_PRIORITIZED_IO = 13
const SC_RAW_SOCKETS = 236
const SC_RE_DUP_MAX = 44
const SC_REGEXP = 155
const SC_RTSIG_MAX = 31
const SC_SAVED_IDS = 8
const SC_SEM_NSEMS_MAX = 32
const SC_SEM_VALUE_MAX = 33
const SC_SEMAPHORES = 21
const SC_SHELL = 157
const SC_SIGQUEUE_MAX = 34
const SC_SPAWN = 159
const SC_SPIN_LOCKS = 154
const SC_SPORADIC_SERVER = 160
const SC_SS_REPL_MAX = 241
const SC_STREAM_MAX = 5
const SC_SYMLOOP_MAX = 173
const SC_SYNCHRONIZED_IO = 14
const SC_THREAD_CPUTIME = 139
const SC_THREAD_KEYS_MAX = 74
const SC_THREADS = 67
const SC_TIMEOUTS = 164
const SC_TIMER_MAX = 35
const SC_TIMERS = 11
const SC_TRACE = 181
const SC_TRACE_INHERIT = 183
const SC_TRACE_LOG = 184
const SC_TRACE_NAME_MAX = 243
const SC_TRACE_SYS_MAX = 244
const SC_TTY_NAME_MAX = 72
const SC_TZNAME_MAX = 6
const SC_UIO_MAXIOV = 60
const SC_V6_ILP32_OFF32 = 176
const SC_V6_ILP32_OFFBIG = 177
const SC_V6_LP64_OFF64 = 178
const SC_V6_LPBIG_OFFBIG = 179
const SC_V7_ILP32_OFF32 = 237
const SC_V7_ILP32_OFFBIG = 238
const SC_V7_LP64_OFF64 = 239
const SC_V7_LPBIG_OFFBIG = 240
const SC_VERSION = 29
const SC_XOPEN_CRYPT = 92
const SC_XOPEN_ENH_I18N = 93
const SC_XOPEN_REALTIME = 130
const SC_XOPEN_SHM = 94
const SC_XOPEN_STREAMS = 246
const SC_XOPEN_UNIX = 91
const SC_XOPEN_VERSION = 89