chore: import official kitty sources from upstream

Bring the kovidgoyal/kitty codebase in as the base of FWS-Kitty,
vendored at upstream commit 91fb38a without its git history.
This commit is contained in:
BlackAngelTV committed 2026-11-04 11:20:47 +01:00
commit 7e7d249099
1134 files changed
+433629

No files matched your search

+30
View File
@@ -0,0 +1,30 @@
//go:build !darwin && !freebsd && !dragonfly
package utils
import (
"fmt"
"os"
"golang.org/x/sys/unix"
)
var _ = fmt.Print
func mknodAt(parent *os.File, name string, mode uint32, dev uint64) (err error) {
for {
if err = unix.Mknodat(int(parent.Fd()), name, mode, int(dev)); err != unix.EINTR {
break
}
}
return
}
func readLinkAt(parent *os.File, name string, buf []byte) (n int, err error) {
for {
if n, err = unix.Readlinkat(int(parent.Fd()), name, buf[:]); err != unix.EINTR {
break
}
}
return
}