elleszgo.at/elles/os2 Index | Files

package os2

import "zgo.at/elles/os2"

Index

Functions

func Atime

func Atime(fi fs.FileInfo) time.Time

func Blocks

func Blocks(fi fs.FileInfo) int64

func Blocksize

func Blocksize(path string) int

Get the block size for the filesystem on which path resides.

func Btime

func Btime(absdir string, fi fs.FileInfo) time.Time

func Hidden

func Hidden(absdir string, fi fs.DirEntry) bool

func IsDoor

func IsDoor(fi fs.FileInfo) bool

func IsELOOP

func IsELOOP(err error) bool

func Mkfifo

func Mkfifo(path string, mode uint32) error

func Mknod

func Mknod(path string, mode uint32, dev int) error
func Numlinks(absdir string, fi fs.FileInfo) uint64

TODO: unused at the moment; ls -l prints this, but I don't think I've ever used it in 25 years. Should maybe add option though.

func OwnerID

func OwnerID(absdir string, fi fs.FileInfo) (string, string)

func ReadDir

func ReadDir(name string) ([]os.DirEntry, error)

Like os.ReadDir, but without the sort.

func Serial

func Serial(absdir string, fi fs.FileInfo) uint64

func Utimes

func Utimes(path string, atime, mtime time.Time) error

Source Files

door_other.go fifo_unix.go hidden_other.go os2.go statfs_unix.go time_bsd.go utime_unix.go vfs_unix.go

Version
v0.2.0
Published
Jul 9, 2024
Platform
darwin/amd64
Imports
12 packages
Last checked
2 hours ago

Tools for package owners.