github.com/stolowski/snapd@v0.0.0-20210407085831-115137ce5a22/osutil/sys/sysnum_16_linux.go (about)

     1  // -*- Mode: Go; indent-tabs-mode: t -*-
     2  // +build arm 386
     3  
     4  /*
     5   * Copyright (C) 2017 Canonical Ltd
     6   *
     7   * This program is free software: you can redistribute it and/or modify
     8   * it under the terms of the GNU General Public License version 3 as
     9   * published by the Free Software Foundation.
    10   *
    11   * This program is distributed in the hope that it will be useful,
    12   * but WITHOUT ANY WARRANTY; without even the implied warranty of
    13   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    14   * GNU General Public License for more details.
    15   *
    16   * You should have received a copy of the GNU General Public License
    17   * along with this program.  If not, see <http://www.gnu.org/licenses/>.
    18   *
    19   */
    20  
    21  package sys
    22  
    23  import "syscall"
    24  
    25  // these are the constants for where getuid et al are 16-bit versions
    26  // (and so the 32 bit version is called getuid32 etc)
    27  
    28  const (
    29  	_SYS_GETUID  = syscall.SYS_GETUID32
    30  	_SYS_GETGID  = syscall.SYS_GETGID32
    31  	_SYS_GETEUID = syscall.SYS_GETEUID32
    32  	_SYS_GETEGID = syscall.SYS_GETEGID32
    33  )