gitee.com/ks-custle/core-gm@v0.0.0-20230922171213-b83bdd97b62c/internal/syscall/unix/sysnum_linux_generic.go (about)

     1  // Copyright 2014 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  //go:build linux && (arm64 || riscv64)
     6  // +build linux
     7  // +build arm64 riscv64
     8  
     9  package unix
    10  
    11  // This file is named "generic" because at a certain point Linux started
    12  // standardizing on system call numbers across architectures. So far this
    13  // means only arm64 and riscv64 use the standard numbers.
    14  
    15  const (
    16  	getrandomTrap     uintptr = 278
    17  	copyFileRangeTrap uintptr = 285
    18  )