go outbuf_linux 源码

2022-07-15 浏览 (852)

golang outbuf_linux 代码

文件路径:/src/cmd/link/internal/ld/outbuf_linux.go

// Copyright 2020 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 ld

import "syscall"

func (out *OutBuf) fallocate(size uint64) error {
	return syscall.Fallocate(int(out.f.Fd()), 0, 0, int64(size))
}

相关信息

go 源码目录

相关文章

go ar 源码

go asmb 源码

go config 源码

go data 源码

go data_test 源码

go deadcode 源码

go deadcode_test 源码

go decodesym 源码

go dwarf 源码

go dwarf_test 源码

  • 所属分类: 后端技术
  • 本文标签: golang
  • 版权声明: 本文链接 https://seaxiang.com/blog/4d70b0775e684518ab1da4e8b0bbe2c0