文件操作 - sys_x86.go
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/go-1.23/src/runtime/sys_x86.go
编辑文件内容
// Copyright 2013 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. //go:build amd64 || 386 package runtime import ( "internal/goarch" "unsafe" ) // adjust Gobuf as if it executed a call to fn with context ctxt // and then stopped before the first instruction in fn. func gostartcall(buf *gobuf, fn, ctxt unsafe.Pointer) { sp := buf.sp sp -= goarch.PtrSize *(*uintptr)(unsafe.Pointer(sp)) = buf.pc buf.sp = sp buf.pc = uintptr(fn) buf.ctxt = ctxt }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件