Home
last modified time | relevance | path

Searched refs:os (Results 1 - 25 of 938) sorted by relevance

12345678910>>...38

/6.6.0/godeps/src/golang.org/x/tools/internal/fastwalk/
H A Dfastwalk_test.go12 "os"
24 func formatFileModes(m map[string]os.FileMode) string {
37 func testFastWalk(t *testing.T, files map[string]string, callback func(path string, typ os.FileMode) error, want map[string]os.FileMode) {
42 defer os.RemoveAll(tempdir)
45 if err := os.MkdirAll(filepath.Dir(file), 0755); err != nil {
50 err = os.Symlink(strings.TrimPrefix(contents, "LINK:"), file)
58 got := map[string]os.FileMode{}
60 if err := fastwalk.Walk(tempdir, func(path string, typ os.FileMode) error {
86 func(path string, typ os
[all...]
H A Dfastwalk_unix.go12 "os"
19 // unknownFileMode is a sentinel (and bogus) os.FileMode
21 const unknownFileMode os.FileMode = os.ModeNamedPipe | os.ModeSocket | os.ModeDevice
23 func readDir(dirName string, fn func(dirName, entName string, typ os.FileMode) error) error {
26 return &os.PathError{Op: "open", Path: dirName, Err: err}
40 return os.NewSyscallError("readdirent", err)
55 fi, err := os
[all...]
/6.6.0/goproj/src/github.com/couchbase/query/shell/cbq/
H A Dinteractive.go14 "os"
38 func handleOPModeFlag(outputFile **os.File, prevFile *string) {
45 *outputFile, err = os.OpenFile(command.FILE_OUTPUT, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0600)
83 os.Clearenv()
84 os.Exit(1)
88 os.Clearenv()
89 os
[all...]
/6.6.0/third_party/gsl-lite/test/
H A Dlest_cpp03.hpp212 lest::report( lest_env.os, lest::passing( lest_LOCATION, #expr, score.decomposition ), lest_env.testing ); \
227 lest::report( lest_env.os, lest::passing( lest_LOCATION, lest::not_expr( #expr ), lest::not_expr( score.decomposition ) ), lest_env.testing ); \
244 lest::report( lest_env.os, lest::got_none( lest_LOCATION, #expr ), lest_env.testing ); \
257 lest::report( lest_env.os, lest::got( lest_LOCATION, #expr ), lest_env.testing ); \
274 lest::report( lest_env.os, lest::got( lest_LOCATION, #expr, lest::of_type( #excpt ) ), lest_env.testing ); \
511 inline std::ostream & operator<<( std::ostream & os, approx const & appr ) in operator <<() argument
513 return os << appr.magnitude(); in operator <<()
519 std::ostringstream os; os << std::boolalpha << value; return os in to_string() local
537 std::ostringstream os; make() local
559 std::ostringstream os; os << to_string( lhs ) << " " << op << " " << to_string( rhs ); return os.str(); to_string() local
632 operator <<( std::ostream & os, colourise words ) operator <<() argument
642 operator <<( std::ostream & os, comment note ) operator <<() argument
647 operator <<( std::ostream & os, location where ) operator <<() argument
656 report( std::ostream & os, message const & e, text test ) report() argument
765 std::ostream & os; global() member
780 std::ostream & os; global() member
1154 std::ostringstream os; compiler() local
[all...]
H A Dgsl-lite.t.h36 inline std::ostream & operator<<( std::ostream & os, std::array<T,N> const & a ) in operator <<() argument
38 return os << std::hex << "[std::array[" << N << "]"; in operator <<()
42 inline std::ostream & operator<<( std::ostream & os, std::wstring const & text ) in operator <<() argument
45 return os << std::string( text.begin(), text.end() ); in operator <<()
47 std::copy( text.begin(), text.end(), std::ostream_iterator<char>(os) ); return os; in operator <<()
64 inline std::ostream & operator<<( std::ostream & os, byte b ) in operator <<() argument
66 return os << std::hex << "0x" << to_integer<int>(b); in operator <<()
70 inline std::ostream & operator<<( std::ostream & os, span<T> s ) in operator <<() argument
72 return os << "[", st in operator <<()
[all...]
/6.6.0/ns_server/deps/gocode/src/gozip/
H A Dmain.go24 "os"
48 fmt.Fprintln(os.Stderr, "Usage:")
49 fmt.Fprintf(os.Stderr, " %s [options] zipfile [file ...]\n", name)
50 fmt.Fprintln(os.Stderr, "Options:")
51 f.SetOutput(os.Stderr)
54 os.Exit(code)
66 fmt.Fprintf(os.Stderr, format+"\n", args...)
67 os.Exit(exitFailure)
80 type walkFn func(string, *os.File, os
[all...]
/6.6.0/couchbase-cli/
H A Dpump_json.py4 import os
32 (os.path.isfile(spec.replace(JSON_SCHEME, "")) or \
33 os.path.isdir(spec.replace(JSON_SCHEME, "")) or \
39 'buckets': [{'name': os.path.normpath(os.path.basename(spec)),
65 return os.path.splitext(os.path.basename(filename))[0]
69 for item in os.listdir(subdir):
70 path = os.path.join(subdir, item)
71 if os
[all...]
H A Dpump_bfd.py7 import os
42 bucket_path = os.path.join(os.path.normpath(spec), "bucket-" + bucket_name)
43 if os.path.isdir(bucket_path):
44 return os.path.join(bucket_path, file)
50 return os.path.join(path, "bucket-" + bucket_name, file)
51 return os.path.join(bucket_path, file)
55 return os.path.join(parent,
61 return glob.glob(os.path.join(parent_dir, "data-*.cbb"))
66 json_file = open(os
[all...]
/6.6.0/couchdb/test/etap/
H A Druntest.py6 import os
28 dname, fname = os.path.split(os.path.abspath(__file__))
30 nspath = os.path.join(cpath, 'ns_server')
33 cfig = os.path.join(nspath, 'build', 'cluster_run.configuration')
43 LIBS = os.path.join(PREFIX, 'lib')
44 MEMCACHED = os.path.join(LIBS, 'memcached')
45 LD_LIBRARY_PATH = LIBS + os.pathsep + MEMCACHED
46 env = os.environ.copy()
48 LD_LIBRARY_PATH += os
[all...]
/6.6.0/ns_server/deps/gocode/src/godu/
H A Dgodu.go22 "os"
30 func readdir(path string) (infos []os.FileInfo, err error) {
31 f, err := os.Open(".")
44 _, err := os.Stat(entry)
45 if os.IsNotExist(err) {
54 var infos []os.FileInfo
57 old, err := os.Getwd()
61 defer os.Chdir(old)
63 err = os.Chdir(entry)
79 if (mode & os
[all...]
/6.6.0/ns_server/
H A Dcluster_run17 import os
18 import os.path
102 os.makedirs(extra_ebin_path)
115 dirs = os.walk(path_name)
119 if os.path.basename(d) == "ebin":
148 if os.path.isfile(ini_file_name):
152 os.mkdir("couch")
153 except os.error:
160 f.write("database_dir={0}/data/n_{1}/data\n".format(os.getcwd(), i))
161 f.write("view_index_dir={0}/data/n_{1}/data\n".format(os
[all...]
/6.6.0/godeps/src/github.com/aws/aws-sdk-go/example/aws/request/handleServiceErrorCodes/
H A DhandleServiceErrorCodes.go7 "os"
17 fmt.Fprintf(os.Stderr, msg+"\n", args...)
18 os.Exit(1)
32 if len(os.Args) < 3 {
33 exitErrorf("Usage: %s <bucket> <key>", filepath.Base(os.Args[0]))
39 Bucket: aws.String(os.Args[1]),
40 Key: aws.String(os.Args[2]),
55 exitErrorf("bucket %s does not exist", os.Args[1])
57 exitErrorf("object with key %s does not exist in bucket %s", os.Args[2], os
[all...]
/6.6.0/goproj/src/github.com/couchbase/indexing/secondary/cmd/cbindex/
H A Dmain.go6 "os"
7 "os/exec"
19 fmt.Fprintln(os.Stderr, "Usage: cbindex [options]")
21 fmt.Fprintln(os.Stderr, `Examples:
54 cmdOptions, _, fset, err := querycmd.ParseArgs(os.Args[1:])
57 os.Exit(1)
60 os.Exit(0)
63 if os.Getenv("CBAUTH_REVRPC_URL") == "" && cmdOptions.Auth != "" {
66 os.Setenv("CBAUTH_REVRPC_URL", revrpc)
67 cmd := exec.Command(os
[all...]
/6.6.0/testrunner/pysystests/tools/
H A Dcompare_stats.py1 import os
168 dirs0 = os.path.dirname(files[0]).split(os.sep)
169 dirs1 = os.path.dirname(files[1]).split(os.sep)
170 fn, fe = os.path.splitext(files[0])
171 file_name = dirs0[-1] + "_" + dirs0[-2] + "_" + dirs1[-2] + "_" + fn.split(os.sep)[-1]
172 html_path = os.path.dirname(files[0]) + "/" + file_name + ".html"
173 json_path = os.path.dirname(files[0]) + "/" + file_name + ".json"
182 folders = os
[all...]
/6.6.0/godeps/src/golang.org/x/tools/godoc/vfs/
H A Demptyvfs.go9 "os"
32 return nil, os.ErrNotExist
35 // Stat returns os.FileInfo for an empty directory if the path is
36 // is root "/" or error. os.FileInfo is implemented by emptyVFS
37 func (e *emptyVFS) Stat(path string) (os.FileInfo, error) {
41 return nil, os.ErrNotExist
44 func (e *emptyVFS) Lstat(path string) (os.FileInfo, error) {
48 // ReadDir returns an empty os.FileInfo slice for "/", else error.
49 func (e *emptyVFS) ReadDir(path string) ([]os.FileInfo, error) {
51 return []os
[all...]
/6.6.0/goproj/src/github.com/couchbase/indexing/secondary/cmd/cbindexplan/
H A Dmain.go20 "os"
21 "os/exec"
33 fmt.Fprintln(os.Stderr, "")
34 fmt.Fprintln(os.Stderr, "Usage: cbindexplan [options]")
36 fmt.Fprintln(os.Stderr, "")
37 fmt.Fprintln(os.Stderr, `Examples:
53 fmt.Fprintln(os.Stderr, `Usage Note:
59 fmt.Fprintln(os.Stderr, `Placement Note:
74 fmt.Fprintln(os.Stderr, `Rebalancing Note:
83 fmt.Fprintln(os
[all...]
/6.6.0/goproj/src/github.com/couchbase/query/tutorial/
H A Dtutorial.go10 "os"
11 "os/signal"
24 func setup(cacheDir string, src string, srcF os.FileInfo, idx Index, err error) error {
33 dstF, dstE := os.Stat(dst)
36 if !os.IsNotExist(dstE) &&
42 if os.IsNotExist(dstE) {
49 if err := os.MkdirAll(dst, srcF.Mode()); err != nil {
90 srcD, srcE := os.Stat(*xsrc)
91 if os.IsNotExist(srcE) || !srcD.IsDir() {
96 dstD, dstE := os
[all...]
/6.6.0/kv_engine/tests/
H A Dbreakpad_test.py30 import os
63 '--core=' + os.path.abspath(core_file.name),
89 if os.name == 'nt':
97 env = os.environ,
118 "[path/to/gdb]").format(os.path.basename(sys.argv[0])),
140 "rbac_file" : os.path.abspath(rbac_file.name)}
150 os.environ['MEMCACHED_UNIT_TESTS'] = "true"
151 os.environ['MEMCACHED_CRASH_TEST'] = crash_mode
153 args = [memcached_exe, "-C", os.path.abspath(config_file.name)]
158 os
[all...]
H A Dheader_define_once_test.py22 import os
55 for root, dirs, files in os.walk(top_level_dir):
57 full_path = os.path.join(root, current_file)
74 default=[os.getcwd()])
89 if not os.path.isabs(dirToSearchForHeaders):
90 dirToSearchForHeaders = os.path.abspath(dirToSearchForHeaders)
91 dirToSearchForHeaders = os.path.normpath(dirToSearchForHeaders)
96 os.path.normpath(
97 os.path.abspath(os
[all...]
/6.6.0/testrunner/pytests/breakpad/
H A Dverifydumptests.py1 import os
33 assert dmp_path and os.access(dmp_path, os.R_OK)
50 assert dmp_path and os.access(dmp_path, os.R_OK)
57 assert dmp_path and os.access(dmp_path, os.R_OK)
134 assert dmp_path and os.access(dmp_path, os.R_OK)
196 assert os
[all...]
/6.6.0/godeps/src/golang.org/x/tools/cmd/getgo/
H A Dmain_test.go13 "os"
14 "os/exec"
36 if os.Getenv("GOGET_INTEGRATION") == "" {
37 fmt.Fprintln(os.Stderr, "main_test: Skipping integration tests with GOGET_INTEGRATION unset")
44 fmt.Fprintf(os.Stderr, "building %s failed: %v\n%s", testbin, err, out)
45 os.Exit(2)
49 os.Unsetenv("GOBIN")
50 os.Unsetenv("GOPATH")
51 os.Unsetenv("GIT_ALLOW_PROTOCOL")
52 os
[all...]
/6.6.0/godeps/src/github.com/aws/aws-sdk-go/aws/session/
H A Dcredentials_test.go9 "os"
105 os.Setenv("AWS_ACCESS_KEY", "access_key")
106 os.Setenv("AWS_SECRET_KEY", "secret_key")
118 os.Setenv("AWS_ACCESS_KEY", "access_key")
119 os.Setenv("AWS_SECRET_KEY", "secret_key")
140 os.Setenv("AWS_CONTAINER_CREDENTIALS_RELATIVE_URI", "/ECS")
188 os.Setenv("AWS_CONFIG_FILE", configFileForWindows)
190 os.Setenv("AWS_CONFIG_FILE", configFile)
193 os.Setenv("AWS_REGION", "us-east-1")
194 os
[all...]
/6.6.0/godeps/src/github.com/mattn/go-runewidth/
H A Drunewidth_posix_test.go8 "os"
32 lcctype := os.Getenv("LC_CTYPE")
33 defer os.Setenv("LC_CTYPE", lcctype)
46 os.Setenv("LC_CTYPE", tt.lcctype)
55 lcctype := os.Getenv("LC_CTYPE")
56 defer os.Setenv("LC_CTYPE", lcctype)
57 lang := os.Getenv("LANG")
58 defer os.Setenv("LANG", lang)
60 os.Setenv("LC_CTYPE", "")
74 os
[all...]
/6.6.0/kv_engine/engines/ep/src/
H A Dstored-value.cc509 std::ostream& operator<<(std::ostream& os, const StoredValue& sv) { in operator <<() argument
512 os << (sv.isOrdered() ? "OSV @" : " SV @") << &sv << " "; in operator <<()
515 os << (mcbp::datatype::is_xattr(sv.getDatatype()) ? 'X' : '.'); in operator <<()
516 os << (mcbp::datatype::is_snappy(sv.getDatatype()) ? 'C' : '.'); in operator <<()
517 os << (mcbp::datatype::is_json(sv.getDatatype()) ? 'J' : '.'); in operator <<()
518 os << ' '; in operator <<()
521 os << (sv.isDirty() ? 'W' : '.'); in operator <<()
522 os << (sv.isDeleted() ? 'D' : '.'); in operator <<()
523 os << (sv.isResident() ? 'R' : '.'); in operator <<()
524 os << (s in operator <<()
[all...]
/6.6.0/godeps/src/golang.org/x/tools/internal/gopathwalk/
H A Dwalk.go16 "os"
67 if _, err := os.Stat(root.Path); os.IsNotExist(err) {
97 ignoredDirs []os.FileInfo // The ignored directories, loaded from .goimportsignore files.
113 if fi, err := os.Stat(full); err == nil {
153 func (w *walker) shouldSkipDir(fi os.FileInfo) bool {
155 if os.SameFile(fi, ignoredDir) {
162 func (w *walker) walk(path string, typ os.FileMode) error {
177 if typ == os.ModeDir {
185 fi, err := os
[all...]

Completed in 59 milliseconds

12345678910>>...38