mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-05 11:37:46 +00:00
77ec9b6369
Do it all at once in preparation for Go 1.18 support. To make this commit, I've simply modified the `fmt-check` Makefile target to rewrite files instead of listing the differences. So this is a fully mechanical change, it should not have introduced any errors.
21 lines
425 B
Go
21 lines
425 B
Go
//go:build linux
|
|
// +build linux
|
|
|
|
package runtime
|
|
|
|
const GOOS = "linux"
|
|
|
|
const (
|
|
// See https://github.com/torvalds/linux/blob/master/include/uapi/asm-generic/mman-common.h
|
|
flag_PROT_READ = 0x1
|
|
flag_PROT_WRITE = 0x2
|
|
flag_MAP_PRIVATE = 0x2
|
|
flag_MAP_ANONYMOUS = 0x20
|
|
)
|
|
|
|
// Source: https://github.com/torvalds/linux/blob/master/include/uapi/linux/time.h
|
|
const (
|
|
clock_REALTIME = 0
|
|
clock_MONOTONIC_RAW = 4
|
|
)
|