- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,076 for Fallocate (0.23 sec)
-
src/cmd/link/internal/ld/fallocate_test.go
} defer out.Close() // Try fallocate first. for { err = out.fallocate(1 << 10) if errors.Is(err, errors.ErrUnsupported) || err == errNoFallocate { // The underlying file system may not support fallocate t.Skip("fallocate is not supported") } if err == syscall.EINTR { continue // try again } if err != nil { t.Fatalf("fallocate failed: %v", err) } break }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 05 14:17:36 UTC 2023 - 1.7K bytes - Viewed (0) -
src/cmd/link/internal/ld/outbuf_linux.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 11 14:21:36 UTC 2020 - 304 bytes - Viewed (0) -
src/cmd/link/internal/ld/outbuf_mmap.go
func (out *OutBuf) Mmap(filesize uint64) (err error) { oldlen := len(out.buf) if oldlen != 0 { out.munmap() } for { if err = out.fallocate(filesize); err != syscall.EINTR { break } } if err != nil { // Some file systems do not support fallocate. We ignore that error as linking // can still take place, but you might SIGBUS when you write to the mmapped // area.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 19 11:20:31 UTC 2024 - 1.4K bytes - Viewed (0) -
src/cmd/link/internal/ld/outbuf_nofallocate.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build !darwin && !(freebsd && go1.21) && !linux package ld func (out *OutBuf) fallocate(size uint64) error { return errNoFallocate
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 27 19:14:57 UTC 2023 - 301 bytes - Viewed (0) -
src/cmd/link/internal/ld/outbuf_freebsd.go
// license that can be found in the LICENSE file. //go:build freebsd && go1.21 package ld import ( "internal/syscall/unix" "syscall" ) func (out *OutBuf) fallocate(size uint64) error { err := unix.PosixFallocate(int(out.f.Fd()), 0, int64(size)) // ZFS on FreeBSD does not support posix_fallocate and returns EINVAL in that case. if err == syscall.EINVAL { return errNoFallocate }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 05 14:17:36 UTC 2023 - 515 bytes - Viewed (0) -
src/cmd/link/internal/ld/outbuf_darwin.go
func (out *OutBuf) fallocate(size uint64) error { stat, err := out.f.Stat() if err != nil { return err } // F_PEOFPOSMODE allocates from the end of the file, so we want the size difference. // Apparently, it uses the end of the allocation, instead of the logical end of the // file. cursize := uint64(stat.Sys().(*syscall.Stat_t).Blocks * 512) // allocated size if size <= cursize { return nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 13 15:50:02 UTC 2022 - 1.3K bytes - Viewed (0) -
src/cmd/link/internal/ld/outbuf.go
// license that can be found in the LICENSE file. package ld import ( "cmd/internal/sys" "cmd/link/internal/loader" "encoding/binary" "errors" "log" "os" ) // If fallocate is not supported on this platform, return this error. The error // is ignored where needed, and OutBuf writes to heap memory. var errNoFallocate = errors.New("operation not supported") const outbufMode = 0775
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 17 19:51:29 UTC 2022 - 8.1K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_linux_386.go
if e1 != 0 { err = errnoErr(e1) } return } // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(off>>32), uintptr(len), uintptr(len>>32)) if e1 != 0 { err = errnoErr(e1) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 12.1K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go
if e1 != 0 { err = errnoErr(e1) } return } // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0) if e1 != 0 { err = errnoErr(e1) } return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 12.1K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_linux_riscv64.go
if e1 != 0 { err = errnoErr(e1) } return } // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0) if e1 != 0 { err = errnoErr(e1) } return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 14.2K bytes - Viewed (0)