Source File
file_posix.go
Belonging Package
os
package os
import (
)
func () // implemented in package runtime
func ( FileMode) ( uint32) {
|= uint32(.Perm())
if &ModeSetuid != 0 {
|= syscall.S_ISUID
}
if &ModeSetgid != 0 {
|= syscall.S_ISGID
}
if &ModeSticky != 0 {
|= syscall.S_ISVTX
return
}
func ( string, FileMode) error {
:= fixLongPath()
:= ignoringEINTR(func() error {
return syscall.Chmod(, syscallMode())
})
if != nil {
return &PathError{Op: "chmod", Path: , Err: }
}
return nil
}
func ( *File) ( time.Time) error {
if := .checkValid("SetDeadline"); != nil {
return
}
return .pfd.SetDeadline()
}
func ( *File) ( time.Time) error {
if := .checkValid("SetReadDeadline"); != nil {
return
}
return .pfd.SetReadDeadline()
}
func ( *File) ( time.Time) error {
if := .checkValid("SetWriteDeadline"); != nil {
return
}
return .pfd.SetWriteDeadline()
}
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |