chmod_linux.go 278 B

123456789101112
  1. package sysx
  2. import "syscall"
  3. const (
  4. // AtSymlinkNoFollow defined from AT_SYMLINK_NOFOLLOW in /usr/include/linux/fcntl.h
  5. AtSymlinkNofollow = 0x100
  6. )
  7. func Fchmodat(dirfd int, path string, mode uint32, flags int) error {
  8. return syscall.Fchmodat(dirfd, path, mode, flags)
  9. }