Debian Codegraph @

helper/chroot/chroot_posix.go

raw symbols SCIP
1 //go:build !plan9 && !windows && !wasm
2
3 package chrootscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6/helper/chroot`/
4
5 type FileDescriptorscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6/helper/chroot`/FileDescriptor# interface {
6 Fdscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6/helper/chroot`/FileDescriptor#Fd.() (uintptr, bool)
7 }
8
9 // Fd exposes the underlying [os.File.Fd] func, which returns the
10 // system file descriptor or handle referencing the open file.
11 // If the underlying Filesystem does not expose this func,
12 // the return will always be (0, false).
13 func (f *filescip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6/helper/chroot`/file#) Fdscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6/helper/chroot`/file#Fd().() (uintptr, bool) {
14 fd, ok := f.Filescip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6/helper/chroot`/file#File..(FileDescriptorscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6/helper/chroot`/FileDescriptor#)
15 if ok {
16 return fd.Fdscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6/helper/chroot`/FileDescriptor#Fd.()
17 }
18 return 0, false
19 }