Lichen

Annotated lib/posix/filesys.py

882:f84970ad4040
2019-01-28 Paul Boddie Test performance with the allocation of opaque blocks containing many instances. This improves performance considerably, but the float instances are never reclaimed. Finding a way to expose the instances as they are issued would make this approach sustainable. float-preallocation
paul@6 1
#!/usr/bin/env python
paul@6 2
paul@6 3
def access(path, mode): pass
paul@6 4
def chdir(path): pass
paul@6 5
def chmod(path, mode): pass
paul@6 6
def chown(path, uid, gid): pass
paul@6 7
def lchown(path, uid, gid): pass
paul@6 8
def link(src, dst): pass
paul@6 9
def listdir(path): pass
paul@6 10
def lstat(path): pass
paul@6 11
def major(device): pass
paul@6 12
def makedev(major, minor): pass
paul@6 13
def minor(device): pass
paul@6 14
def mkdir(path, mode=0777): pass
paul@6 15
def mkfifo(filename, mode=0666): pass
paul@6 16
def mknod(filename, mode=0600, device=None): pass
paul@6 17
def readlink(path): pass
paul@6 18
def remove(path): pass
paul@6 19
def rename(old, new): pass
paul@6 20
def rmdir(path): pass
paul@6 21
def symlink(src, dst): pass
paul@6 22
def unlink(path): pass
paul@6 23
def utime(path, (atime, mtime)): pass
paul@6 24
paul@6 25
F_OK = 0
paul@6 26
R_OK = 4
paul@6 27
W_OK = 2
paul@6 28
X_OK = 1
paul@6 29
paul@6 30
# vim: tabstop=4 expandtab shiftwidth=4