github.com/meulengracht/snapd@v0.0.0-20210719210640-8bde69bcc84e/osutil/chattr_64.go (about)

     1  // -*- Mode: Go; indent-tabs-mode: t -*-
     2  // +build amd64 arm64 ppc64le riscv64 s390x
     3  
     4  /*
     5   * Copyright (C) 2016 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 osutil
    22  
    23  const (
    24  	// There is a logic to these but I don't care to implement it all.
    25  	// If you do, chase them from linux/fs.h
    26  	_FS_IOC_GETFLAGS = uintptr(0x80086601)
    27  	_FS_IOC_SETFLAGS = uintptr(0x40086602)
    28  )