mirror of
https://github.com/golang/go.git
synced 2025-05-14 03:44:40 +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>
16 lines
456 B
Go
16 lines
456 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
|
|
|
|
//go:cgo_import_dynamic libc_fstatat fstatat "libc.a/shr_64.o"
|
|
//go:cgo_import_dynamic libc_openat openat "libc.a/shr_64.o"
|
|
//go:cgo_import_dynamic libc_unlinkat unlinkat "libc.a/shr_64.o"
|
|
|
|
const (
|
|
AT_REMOVEDIR = 0x1
|
|
AT_SYMLINK_NOFOLLOW = 0x1
|
|
UTIME_OMIT = -0x3
|
|
)
|