mmap_js.go 452 B

1234567891011121314151617181920212223242526272829
  1. //go:build js
  2. /*
  3. * SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. package z
  7. import (
  8. "os"
  9. "syscall"
  10. )
  11. func mmap(fd *os.File, writeable bool, size int64) ([]byte, error) {
  12. return nil, syscall.ENOSYS
  13. }
  14. func munmap(b []byte) error {
  15. return syscall.ENOSYS
  16. }
  17. func madvise(b []byte, readahead bool) error {
  18. return syscall.ENOSYS
  19. }
  20. func msync(b []byte) error {
  21. return syscall.ENOSYS
  22. }