mirror of
https://github.com/golang/go.git
synced 2025-11-02 09:40:56 +00:00
Empty time value time.Time{} leaves the corresponding time of the file
unchanged.
Fixes #32558
Change-Id: I1aff42f30668ff505ecec2e9509d8f2b8e4b1b6a
Reviewed-on: https://go-review.googlesource.com/c/go/+/219638
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
19 lines
441 B
Go
19 lines
441 B
Go
// Copyright 2018 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package unix
|
|
|
|
import "syscall"
|
|
|
|
const unlinkatTrap uintptr = syscall.SYS_UNLINKAT
|
|
const openatTrap uintptr = syscall.SYS_OPENAT
|
|
|
|
const (
|
|
AT_EACCESS = 0x200
|
|
AT_FDCWD = -0x64
|
|
AT_REMOVEDIR = 0x200
|
|
AT_SYMLINK_NOFOLLOW = 0x100
|
|
|
|
UTIME_OMIT = 0x3ffffffe
|
|
)
|