Move some functions to go-xmpp, update deps, more lining

This commit is contained in:
eleksir
2023-08-20 09:33:56 -07:00
parent 9235329b37
commit 939ceaebfb
51 changed files with 551 additions and 234 deletions

View File

@@ -716,20 +716,6 @@ func writelen(fd int, buf *byte, nbuf int) (n int, err error) {
return
}
var mapper = &mmapper{
active: make(map[*byte][]byte),
mmap: mmap,
munmap: munmap,
}
func Mmap(fd int, offset int64, length int, prot int, flags int) (data []byte, err error) {
return mapper.Mmap(fd, offset, length, prot, flags)
}
func Munmap(b []byte) (err error) {
return mapper.Munmap(b)
}
// Event Ports
type fileObjCookie struct {