Searched refs:path (Results 101 - 125 of 1876) sorted by relevance

1234567891011>>

/openbsd-current/gnu/llvm/llvm/utils/gn/
H A Dget.py17 zipfile.ZipFile(io.BytesIO(data)).extract(gn, path=output_dir)
20 def set_executable_bit(path):
21 mode = os.stat(path).st_mode
23 os.chmod(path, mode) # No-op on Windows.
48 dirname = os.path.join(os.path.dirname(__file__), 'bin', platform)
49 if not os.path.exists(dirname):
55 try: os.remove(os.path.join(dirname, gn))
58 set_executable_bit(os.path.join(dirname, gn))
H A Dgn.py14 THIS_DIR = os.path.dirname(__file__)
15 ROOT_DIR = os.path.join(THIS_DIR, '..', '..', '..')
44 # Not on path. See if get.py downloaded a prebuilt binary and run that
49 gn = os.path.join(os.path.dirname(__file__), 'bin', platform, 'gn')
50 if not os.path.exists(gn + ('.exe' if sys.platform == 'win32' else '')):
58 dotfile = os.path.relpath(os.path.join(THIS_DIR, '.gn'), cwd)
59 root = os.path.relpath(ROOT_DIR, cwd)
/openbsd-current/gnu/usr.bin/perl/dist/PathTools/lib/File/Spec/
H A DOS2.pm25 sub path { subroutine
26 my $path = $ENV{PATH};
27 $path =~ s:\\:/:g;
28 my @path = split(';',$path);
29 foreach (@path) { $_ = '.' if $_ eq '' }
30 return @path;
54 my ($self,$path) = @_;
55 return unless defined $path;
57 $path
[all...]
H A DEpoc.pm40 path. On UNIX eliminated successive slashes and successive "/.".
47 my ($self,$path) = @_;
48 return unless defined $path;
50 $path =~ s|/+|/|g; # xx////xx -> xx/xx
51 $path =~ s|(/\.)+/|/|g; # xx/././xx -> xx/xx
52 $path =~ s|^(\./)+||s unless $path eq "./"; # ./xx -> xx
53 $path =~ s|^/(\.\./)+|/|s; # /../../xx -> xx
54 $path =~ s|/\Z(?!\n)|| unless $path e
[all...]
/openbsd-current/usr.bin/mg/
H A Ddir.c99 char *path; local
103 if ((path = eread("Make directory: ", bufc, NFILEN,
106 else if (path[0] == '\0')
109 return (do_makedir(path));
113 do_makedir(char *path) argument
120 if ((path = adjustname(path, TRUE)) == NULL)
124 slash = strrchr(path, '\0');
125 while (--slash > path && *slash == '/')
128 slash = path;
[all...]
/openbsd-current/regress/lib/libc/sys/
H A Dt_unlink.c44 static char path[] = "unlink"; variable
60 fd = open(path, O_RDWR | O_CREAT, 0666);
64 ATF_REQUIRE(unlink(path) == 0);
67 ATF_REQUIRE_ERRNO(ENOENT, open(path, O_RDONLY) == -1);
73 (void)unlink(path);
100 (void)unlink(path);
112 ATF_REQUIRE(mkfifo(path, 0666) == 0);
113 ATF_REQUIRE(unlink(path) == 0);
116 ATF_REQUIRE_ERRNO(ENOENT, open(path, O_RDONLY) == -1);
121 (void)unlink(path);
[all...]
H A Dt_link.c46 static char path[] = "link"; variable
59 (void)strlcat(buf, path, sizeof(buf));
80 fd = open(path, O_RDWR | O_CREAT, 0600);
85 ATF_REQUIRE(stat(path, &sa) == 0);
86 ATF_REQUIRE(link(path, pathl) == 0);
87 ATF_REQUIRE(stat(path, &sb) == 0);
93 ATF_REQUIRE(unlink(path) == 0);
99 (void)unlink(path);
117 fd = open(path, O_RDWR | O_CREAT, 0600);
123 ATF_REQUIRE(link(path, path
[all...]
/openbsd-current/gnu/llvm/lldb/third_party/Python/module/unittest2/unittest2/
H A Dloader.py16 from os.path import relpath
189 top_level_dir = os.path.abspath(top_level_dir)
191 if top_level_dir not in sys.path:
194 # in sys.path to minimise likelihood of conflicts between installed
196 sys.path.insert(0, top_level_dir)
200 if os.path.isdir(os.path.abspath(start_dir)):
201 start_dir = os.path.abspath(start_dir)
203 is_not_importable = not os.path.isfile(
204 os.path
[all...]
H A Dcollector.py9 setupDir = os.path.abspath(os.path.dirname(__main__.__file__))
/openbsd-current/gnu/llvm/clang/bindings/python/tests/cindex/
H A Dtest_translation_unit.py28 kInputsDir = os.path.join(os.path.dirname(__file__), 'INPUTS')
55 path = os.path.join(kInputsDir, 'hello.cpp')
56 tu = TranslationUnit.from_source(path)
57 self.assertEqual(tu.spelling, path)
60 path = os.path.join(kInputsDir, 'hello.cpp')
61 tu = get_tu(path)
67 path
[all...]
/openbsd-current/gnu/usr.bin/perl/ext/XS-Typemap/
H A Dstdio.c14 FILE * xsfopen ( const char * path ) {
16 stream = fopen( path, "w");
/openbsd-current/regress/usr.sbin/httpd/tests/
H A Dargs-get-1073741824.pl8 path => "$len",
H A Dargs-get-512.pl8 path => "$len",
H A Dargs-get-range-multipart.pl7 path => $len,
H A Dargs-tls-get-1073741824.pl8 path => "$len",
H A Dargs-tls-get-range-multipart.pl7 path => $len,
/openbsd-current/regress/usr.sbin/relayd/
H A Dargs-http-mark.pl7 path => "foobar?path",
11 'match request path "/foobar" value "*" tag RING0',
H A Dargs-http-return.pl8 path => "query?foo=bar&ok=yes",
/openbsd-current/gnu/llvm/clang/docs/analyzer/checkers/
H A Dunix_api_example.c3 void test(const char *path) { argument
4 int fd = open(path, O_CREAT);
/openbsd-current/gnu/llvm/lldb/tools/debugserver/source/MacOSX/
H A DCFBundle.h21 CFBundle(const char *path = NULL);
25 bool SetPath(const char *path);
/openbsd-current/usr.bin/rsync/
H A Dsymlinks.c32 symlink_read(const char *path) argument
47 if ((nsz = readlink(path, buf, sz)) == -1) {
48 ERR("%s: readlink", path);
52 ERRX("%s: empty link", path);
71 symlinkat_read(int fd, const char *path) argument
86 if ((nsz = readlinkat(fd, path, buf, sz)) == -1) {
87 ERR("%s: readlinkat", path);
91 ERRX("%s: empty link", path);
/openbsd-current/gnu/llvm/lld/Common/
H A DReproduce.cpp19 // Makes a given pathname an absolute path first, and then remove
22 // Returned string is a forward slash separated path even on Windows to avoid
23 // a mess with backslash-as-escape and backslash-as-path-separator.
24 std::string lld::relativeToRoot(StringRef path) { argument
25 SmallString<128> abs = path;
27 return std::string(path);
28 path::remove_dots(abs, /*remove_dot_dot=*/true);
34 StringRef root = path::root_name(abs);
40 path::append(res, path
[all...]
/openbsd-current/gnu/llvm/llvm/utils/lit/lit/
H A Ddiscovery.py14 p = os.path.join(dir, name)
15 if os.path.exists(p):
19 def dirContainsTestSuite(path, lit_config):
20 cfgpath = chooseConfigFileFromDir(path, lit_config.site_config_names)
22 cfgpath = chooseConfigFileFromDir(path, lit_config.config_names)
32 relative path inside that suite.
34 def search1(path):
36 cfgpath = dirContainsTestSuite(path, litConfig)
40 parent,base = os.path.split(path)
[all...]
/openbsd-current/lib/libc/gen/
H A Dftok.c33 ftok(const char *path, int id) argument
38 if (stat(path, &st) == -1)
/openbsd-current/lib/libc/stdlib/
H A Drealpath.c32 realpath(const char *path, char *resolved) argument
36 if (__realpath(path, rbuf) == -1)

Completed in 422 milliseconds

1234567891011>>