library os: openFileNolog

This commit is contained in:
xushiwei
2024-07-19 23:19:59 +08:00
parent ea6b397526
commit 6f82b36962
15 changed files with 283 additions and 18 deletions

View File

@@ -208,7 +208,6 @@ func (f *File) WriteString(s string) (n int, err error) {
panic("todo: os.(*File).WriteString")
}
/*
// setStickyBit adds ModeSticky to the permission bits of path, non atomic.
func setStickyBit(name string) error {
fi, err := Stat(name)
@@ -217,7 +216,6 @@ func setStickyBit(name string) error {
}
return Chmod(name, fi.Mode()|ModeSticky)
}
*/
// Open opens the named file for reading. If successful, methods on
// the returned file can be used for reading; the associated file