Home
last modified time | relevance | path

Searched refs:path (Results 1 – 25 of 41) sorted by relevance

12

/bionic/libc/tools/
Dbionic_utils.py40 def find_dir_of(path): argument
43 if len(path) > 1 and path[-1] == '/':
44 path = path[:-1]
47 d = os.path.dirname(path)
59 path = from_path
60 if path == None:
61 path = find_dir_of(sys.argv[0])
62 D("this script seems to be located in: %s" % path)
65 if path == "":
66 path = "."
[all …]
Dgensyscalls.py8 import sys, os.path, glob, re, commands, filecmp, shutil
36 def make_dir( path ): argument
37 if not os.path.exists(path):
38 parent = os.path.dirname(path)
41 os.mkdir(path)
44 dir = os.path.dirname( bionic_temp + relpath )
451 path = "include/sys/linux-syscalls.h"
452 D( "generating "+path )
453 fp = create_file( path )
510 self.other_files.append( path )
[all …]
/bionic/libc/bionic/
Ddirname_r.c34 dirname_r(const char* path, char* buffer, size_t bufflen) in dirname_r() argument
40 if (path == NULL || *path == '\0') { in dirname_r()
41 path = "."; in dirname_r()
47 endp = path + strlen(path) - 1; in dirname_r()
48 while (endp > path && *endp == '/') in dirname_r()
52 while (endp > path && *endp != '/') in dirname_r()
56 if (endp == path) { in dirname_r()
57 path = (*endp == '/') ? "/" : "."; in dirname_r()
64 } while (endp > path && *endp == '/'); in dirname_r()
66 len = endp - path +1; in dirname_r()
[all …]
Dbasename_r.c34 basename_r(const char* path, char* buffer, size_t bufflen) in basename_r() argument
41 if (path == NULL || *path == '\0') { in basename_r()
48 endp = path + strlen(path) - 1; in basename_r()
49 while (endp > path && *endp == '/') in basename_r()
53 if (endp == path && *endp == '/') { in basename_r()
61 while (startp > path && *(startp - 1) != '/') in basename_r()
Dssp.c70 char path[PATH_MAX]; in __stack_chk_fail() local
80 if ((count = readlink("/proc/self/exe", path, sizeof(path) - 1)) == -1) { in __stack_chk_fail()
81 strlcpy(path, "<unknown>", sizeof(path)); in __stack_chk_fail()
83 path[count] = '\0'; in __stack_chk_fail()
87 __libc_android_log_print(ANDROID_LOG_FATAL, path, message); in __stack_chk_fail()
Dutime.c41 utime(path, times) in utime() argument
42 const char *path; in utime()
54 return (utimes(path, tvp));
Dbasename.c37 basename(const char* path) in basename() argument
47 ret = basename_r(path, bname, MAXPATHLEN); in basename()
Ddirname.c37 dirname(const char* path) in dirname() argument
48 ret = dirname_r(path, bname, MAXPATHLEN); in dirname()
Drealpath.c46 realpath(const char *path, char resolved[PATH_MAX]) in realpath() argument
57 if (path[0] == '/') { in realpath()
60 if (path[1] == '\0') in realpath()
63 left_len = strlcpy(left, path + 1, sizeof(left)); in realpath()
70 left_len = strlcpy(left, path, sizeof(left)); in realpath()
/bionic/libc/stdio/
Dmktemp.c45 mkstemps(char *path, int slen) in mkstemps() argument
49 return (_gettemp(path, &fd, 0, slen) ? fd : -1); in mkstemps()
53 mkstemp(char *path) in mkstemp() argument
57 return (_gettemp(path, &fd, 0, 0) ? fd : -1); in mkstemp()
61 mkdtemp(char *path) in mkdtemp() argument
63 return(_gettemp(path, (int *)NULL, 1, 0) ? path : (char *)NULL); in mkdtemp()
69 _mktemp(char *path) in _mktemp() argument
71 return(_gettemp(path, (int *)NULL, 0, 0) ? path : (char *)NULL); in _mktemp()
78 mktemp(char *path) in mktemp() argument
80 return(_mktemp(path)); in mktemp()
[all …]
/bionic/libc/kernel/tools/
Dutils.py45 return os.path.basename(sys.argv[0])
48 return os.path.dirname(sys.argv[0])
53 path = from_path
54 if path == None:
55 path = os.path.realpath(sys.argv[0])
56 path = os.path.dirname(path)
57 D("this script seems to be located in: %s" % path)
60 D("probing "+path)
61 if path == "":
64 file = path + "/" + target_file
[all …]
Dclean_header.py10 def cleanupFile( path, original_path): argument
15 src_path = path
17 if not os.path.exists(src_path):
19 panic( "file does not exist: '%s'\n" % path )
20 sys.stderr.write( "warning: file does not exit: %s\n" % path )
23 if not os.path.isfile(src_path):
25 panic( "path is not a file: '%s'\n" % path )
26 sys.stderr.write( "warning: not a file: %s\n" % path )
29 if os.path.commonprefix( [ src_path, original_path ] ) != original_path:
31 panic( "file is not in 'original' directory: %s\n" % path );
[all …]
Dkernel.py7 import sys, cpp, re, os.path, string, time
89 hdr_dir = os.path.realpath(os.path.dirname(from_file))
90 hdr_dir = hdr_dir.replace("%s/" % os.path.realpath(kernel_root),
106 def parseFile(self, path, arch=None, kernel_root=None): argument
108 if not os.path.exists(path):
115 f = open(path, "rt")
117 print "!!! can't read '%s'" % path
128 if verboseSearch: print "::: " + path
131 if verboseSearch: print "*** " + path
133 list = cpp.BlockParser().parseFile(path)
[all …]
Dupdate_all.py24 """ % { "progname" : os.path.basename(sys.argv[0]) }
41 if not os.path.isdir(original_dir):
45 if not os.path.isdir(original_dir):
53 base, ext = os.path.splitext(file)
60 b.readDir( os.path.normpath( progdir + "/../arch-%s" % arch ) )
62 b.readDir( os.path.normpath( progdir + "/../common" ) )
67 for path in sources:
68 dst_path, newdata = clean_header.cleanupFile(path, original_dir)
81 …str = "cleaning: %-*s -> %-*s (%s)" % ( 35, "<original>" + path[len(original_dir):], 35, dst_path,…
Dfind_headers.py61 if not os.path.exists(kernel_root):
65 if not os.path.isdir(kernel_root):
69 if not os.path.isdir(kernel_root+"/include/linux"):
74 if not os.path.exists(wanted_config):
78 if not os.path.isfile(wanted_config):
85 if os.path.exists("%s/arch/%s/include/asm" % (kernel_root, archdir)):
96 if os.path.isdir(kernel_root+"/asm"):
120 def parse_file(path, parser): argument
122 parser.parseFile(path)
Ddefaults.py19 kernel_original_path = os.path.normpath( find_program_dir() + '/../../../../external/kernel-headers…
23 kernel_cleaned_path = os.path.normpath( find_program_dir() + '/..' )
Dfind_users.py48 def parse_file(path, parser): argument
49 parser.parseFile(path)
/bionic/libc/include/
Dlibgen.h37 extern char* dirname (const char* path);
38 extern char* basename(const char* path);
52 extern int dirname_r(const char* path, char* buffer, size_t bufflen);
53 extern int basename_r(const char* path, char* buffer, size_t bufflen);
Dfcntl.h46 extern int open(const char* path, int mode, ...);
47 extern int openat(int fd, const char* path, int mode, ...);
50 extern int creat(const char* path, mode_t mode);
Dpathconf.h59 extern long pathconf(const char *path, int name);
/bionic/libc/unistd/
Dstatfs.c32 int statfs(const char* path, struct statfs* stat) in statfs() argument
34 return __statfs64(path, sizeof(struct statfs), stat); in statfs()
Dftok.c32 key_t ftok(const char* path, int id) in ftok() argument
36 if ( lstat(path, &st) < 0 ) in ftok()
Dexec.c140 char *bp, *cur, *path, buf[MAXPATHLEN]; in execvp() local
153 cur = path = NULL; in execvp()
159 if (!(path = getenv("PATH"))) in execvp()
160 path = _PATH_DEFPATH; in execvp()
161 len = strlen(path) + 1; in execvp()
167 strlcpy(cur, path, len); in execvp()
168 path = cur; in execvp()
/bionic/libc/include/sys/
Dstat.h100 extern int fstatat(int dirfd, const char *path, struct stat *buf, int flags);
102 extern int fchownat(int dirfd, const char *path, uid_t owner, gid_t group, int flags);
103 extern int fchmodat(int dirfd, const char *path, mode_t mode, int flags);
108 extern int utimensat (int fd, const char *path, const struct timespec times[2], int flags);
Dipc.h37 extern key_t ftok(const char* path, int id);

12