Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(272)

Side by Side Diff: src/pkg/os/file_unix.go

Issue 36020043: code review 36020043: os, os/exec, os/user: add support for GOOS=solaris
Patch Set: diff -r 884801fb67af https://code.google.com/p/go Created 10 years, 2 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/pkg/os/file_posix.go ('k') | src/pkg/os/os_unix_test.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2009 The Go Authors. All rights reserved. 1 // Copyright 2009 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 // +build darwin dragonfly freebsd linux netbsd openbsd 5 // +build darwin dragonfly freebsd linux netbsd openbsd solaris
6 6
7 package os 7 package os
8 8
9 import ( 9 import (
10 "runtime" 10 "runtime"
11 "sync/atomic" 11 "sync/atomic"
12 "syscall" 12 "syscall"
13 ) 13 )
14 14
15 // File represents an open file descriptor. 15 // File represents an open file descriptor.
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 } 283 }
284 284
285 // TempDir returns the default directory to use for temporary files. 285 // TempDir returns the default directory to use for temporary files.
286 func TempDir() string { 286 func TempDir() string {
287 dir := Getenv("TMPDIR") 287 dir := Getenv("TMPDIR")
288 if dir == "" { 288 if dir == "" {
289 dir = "/tmp" 289 dir = "/tmp"
290 } 290 }
291 return dir 291 return dir
292 } 292 }
OLDNEW
« no previous file with comments | « src/pkg/os/file_posix.go ('k') | src/pkg/os/os_unix_test.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b