type os.Root
55 uses
os (current package)
root.go#L68: type Root struct {
root.go#L82: func OpenRoot(name string) (*Root, error) {
root.go#L90: func (r *Root) Name() string {
root.go#L96: func (r *Root) Close() error {
root.go#L102: func (r *Root) Open(name string) (*File, error) {
root.go#L108: func (r *Root) Create(name string) (*File, error) {
root.go#L117: func (r *Root) OpenFile(name string, flag int, perm FileMode) (*File, error) {
root.go#L132: func (r *Root) OpenRoot(name string) (*Root, error) {
root.go#L139: func (r *Root) Chmod(name string, mode FileMode) error {
root.go#L149: func (r *Root) Mkdir(name string, perm FileMode) error {
root.go#L161: func (r *Root) MkdirAll(name string, perm FileMode) error {
root.go#L170: func (r *Root) Chown(name string, uid, gid int) error {
root.go#L176: func (r *Root) Lchown(name string, uid, gid int) error {
root.go#L182: func (r *Root) Chtimes(name string, atime time.Time, mtime time.Time) error {
root.go#L188: func (r *Root) Remove(name string) error {
root.go#L194: func (r *Root) RemoveAll(name string) error {
root.go#L200: func (r *Root) Stat(name string) (FileInfo, error) {
root.go#L209: func (r *Root) Lstat(name string) (FileInfo, error) {
root.go#L216: func (r *Root) Readlink(name string) (string, error) {
root.go#L223: func (r *Root) Rename(oldname, newname string) error {
root.go#L235: func (r *Root) Link(oldname, newname string) error {
root.go#L247: func (r *Root) Symlink(oldname, newname string) error {
root.go#L253: func (r *Root) ReadFile(name string) ([]byte, error) {
root.go#L264: func (r *Root) WriteFile(name string, data []byte, perm FileMode) error {
root.go#L276: func (r *Root) logOpen(name string) {
root.go#L284: func (r *Root) logStat(name string) {
root.go#L357: func (r *Root) FS() fs.FS {
root.go#L361: type rootFS Root
root.go#L364: r := (*Root)(rfs)
root.go#L376: r := (*Root)(rfs)
root.go#L400: r := (*Root)(rfs)
root.go#L413: r := (*Root)(rfs)
root.go#L421: r := (*Root)(rfs)
root.go#L429: r := (*Root)(rfs)
root_openat.go#L68: func rootChmod(r *Root, name string, mode FileMode) error {
root_openat.go#L78: func rootChown(r *Root, name string, uid, gid int) error {
root_openat.go#L88: func rootLchown(r *Root, name string, uid, gid int) error {
root_openat.go#L98: func rootChtimes(r *Root, name string, atime time.Time, mtime time.Time) error {
root_openat.go#L108: func rootMkdir(r *Root, name string, perm FileMode) error {
root_openat.go#L118: func rootMkdirAll(r *Root, fullname string, perm FileMode) error {
root_openat.go#L179: func rootReadlink(r *Root, name string) (string, error) {
root_openat.go#L189: func rootRemove(r *Root, name string) error {
root_openat.go#L199: func rootRemoveAll(r *Root, name string) error {
root_openat.go#L221: func rootRename(r *Root, oldname, newname string) error {
root_openat.go#L234: func rootLink(r *Root, oldname, newname string) error {
root_openat.go#L265: func doInRoot[T any](r *Root, name string, openDirFunc func(parent sysfdType, name string) (sysfdType, error), f func(parent sysfdType, name string) (T, error)) (ret T, err error) {
root_unix.go#L23: func openRootNolog(name string) (*Root, error) {
root_unix.go#L38: func newRoot(fd int, name string) (*Root, error) {
root_unix.go#L55: r := &Root{&root{
root_unix.go#L64: func openRootInRoot(r *Root, name string) (*Root, error) {
root_unix.go#L82: func rootOpenFileNolog(root *Root, name string, flag int, perm FileMode) (*File, error) {
root_unix.go#L130: func rootStat(r *Root, name string, lstat bool) (FileInfo, error) {
root_unix.go#L148: func rootSymlink(r *Root, oldname, newname string) error {