Home | History | Annotate | Download | only in os

Lines Matching defs:Open

9 // if a call that takes a file name fails, such as Open or Stat, the error
18 // file, err := os.Open("file.go") // For read access.
23 // If the open fails, the error string will be self-explanatory, like
25 // open file.go: no such file or directory
44 // Name returns the name of the file as presented to Open.
47 // Stdin, Stdout, and Stderr are open Files pointing to the standard input,
62 O_RDONLY int = syscall.O_RDONLY // open the file read-only.
63 O_WRONLY int = syscall.O_WRONLY // open the file write-only.
64 O_RDWR int = syscall.O_RDWR // open the file read-write.
68 O_SYNC int = syscall.O_SYNC // open for synchronous I/O.
242 // Open opens the named file for reading. If successful, methods on
246 func Open(name string) (*File, error) {