Searched defs:path (Results 1 - 25 of 25) sorted by relevance

/bionic/libc/bionic/
H A Dbasename.c37 basename(const char* path) argument
47 ret = basename_r(path, bname, MAXPATHLEN);
H A Ddirname.c37 dirname(const char* path) argument
48 ret = dirname_r(path, bname, MAXPATHLEN);
H A Ddirname_r.c34 dirname_r(const char* path, char* buffer, size_t bufflen) argument
40 if (path == NULL || *path == '\0') {
41 path = ".";
47 endp = path + strlen(path) - 1;
48 while (endp > path && *endp == '/')
52 while (endp > path && *endp != '/')
56 if (endp == path) {
57 path
[all...]
H A Dbasename_r.c34 basename_r(const char* path, char* buffer, size_t bufflen) argument
41 if (path == NULL || *path == '\0') {
48 endp = path + strlen(path) - 1;
49 while (endp > path && *endp == '/')
53 if (endp == path && *endp == '/') {
61 while (startp > path && *(startp - 1) != '/')
H A Dssp.c70 char path[PATH_MAX]; local
80 if ((count = readlink("/proc/self/exe", path, sizeof(path) - 1)) == -1) {
81 strlcpy(path, "<unknown>", sizeof(path));
83 path[count] = '\0';
87 __libc_android_log_print(ANDROID_LOG_FATAL, path, message);
H A Drealpath.c44 * Find the real name of path, by removing all ".", ".." and symlink
46 * in which case the path which caused trouble is left in (resolved).
49 realpath(const char * __restrict path, char * __restrict resolved) argument
58 if (path == NULL) {
62 if (path[0] == '\0') {
75 if (path[0] == '/') {
78 if (path[1] == '\0')
81 left_len = strlcpy(left, path + 1, sizeof(left));
93 left_len = strlcpy(left, path, sizeof(left));
103 * Iterate over path component
[all...]
H A Dlogd_write.c77 const char *path; member in struct:__anon12
127 fd = TEMP_FAILURE_RETRY(open(log_channels[log_id].path, O_WRONLY));
H A Dfts.c96 * Start out with 1K of path space, and enough, in any case,
189 * known that the path will fit.
225 /* Free up child linked list, sort array, path buffer, stream ptr.*/
246 * Special case of "/" at the end of the path so that slashes aren't
507 * If using chdir on a relative path and called BEFORE fts_read does
596 * chdir into the directory, it will have to return different path
622 * current path -- the inner loop allocates more path as necessary.
624 * could do them in fts_read before returning the path, but it's a
628 * each new name into the path
1015 fts_safe_changedir(FTS *sp, FTSENT *p, int fd, char *path) argument
[all...]
/bionic/libc/unistd/
H A Dftok.c32 key_t ftok(const char* path, int id) argument
36 if ( lstat(path, &st) < 0 )
H A Dstatfs.c32 int statfs(const char* path, struct statfs* stat) argument
34 return __statfs64(path, sizeof(struct statfs), stat);
H A Dexec.c140 char *bp, *cur, *path, buf[MAXPATHLEN]; local
150 /* If it's an absolute or relative path name, it's easy. */
153 cur = path = NULL;
158 /* Get the path we're searching. */
159 if (!(path = getenv("PATH")))
160 path = _PATH_DEFPATH;
161 len = strlen(path) + 1;
167 strlcpy(cur, path, len);
168 path = cur;
171 * It's a SHELL path
[all...]
H A Dpathconf.c136 pathconf(const char *path, int name) argument
139 int ret = statfs( path, &buf );
/bionic/libc/upstream-netbsd/libc/compat-43/
H A Dcreat.c46 creat(const char *path, mode_t mode) argument
49 _DIAGASSERT(path != NULL);
51 return(open(path, O_WRONLY|O_CREAT|O_TRUNC, mode));
/bionic/libc/upstream-netbsd/libc/gen/
H A Dftw.c38 ftw(const char *path, int (*fn)(const char *, const struct stat *, int), argument
42 char * const paths[2] = { __UNCONST(path), NULL };
H A Dnftw.c39 nftw(const char *path, int (*fn)(const char *, const struct stat *, int, argument
43 char * const paths[2] = { __UNCONST(path), NULL };
/bionic/libc/stdio/
H A Dmktemp.c45 mkstemps(char *path, int slen) argument
49 return (_gettemp(path, &fd, 0, slen) ? fd : -1);
53 mkstemp(char *path) argument
57 return (_gettemp(path, &fd, 0, 0) ? fd : -1);
61 mkdtemp(char *path) argument
63 return(_gettemp(path, (int *)NULL, 1, 0) ? path : (char *)NULL);
69 _mktemp(char *path) argument
71 return(_gettemp(path, (int *)NULL, 0, 0) ? path
78 mktemp(char *path) argument
85 _gettemp(char *path, int *doopen, int domkdir, int slen) argument
[all...]
/bionic/libc/tools/
H A Dgenerate-NOTICE.py17 def IsUninteresting(path):
18 path = path.lower()
19 if path.endswith(".mk") or path.endswith(".py") or path.endswith(".pyc") or path.endswith(".txt") or path.endswith(".3"):
21 if path.endswith("/notice") or path
113 path = os.path.join(directory, filename) variable
[all...]
H A Dgensyscalls.py8 import sys, os.path, glob, re, commands, filecmp, shutil namespace
37 def make_dir( path ):
38 path = os.path.abspath(path)
39 if not os.path.exists(path):
40 parent = os.path.dirname(path)
43 os.mkdir(path)
[all...]
/bionic/libc/kernel/tools/
H A Dkernel.py7 import sys, cpp, re, os.path, string, time namespace
29 # for path in <your list of files>:
30 # scanner.parseFile(path)
39 # corresponding to a non-bracketed path name, e.g.:
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):
108 if not os.path.exists(path)
[all...]
/bionic/libthread_db/
H A Dlibthread_db.c220 char path[32]; local
225 snprintf(path, sizeof(path), "/proc/%d/task/", agent->pid);
226 dir = opendir(path);
/bionic/libc/kernel/common/linux/
H A Dmsm_audio.h195 uint32_t path; member in struct:msm_mute_info
200 uint32_t path; member in struct:msm_vol_info
295 uint16_t path; member in struct:msm_dtmf_config
H A Dcoda.h524 int path; member in struct:coda_open_by_path_out
611 const char __user *path; member in struct:PioctlData
/bionic/linker/
H A Dlinker.cpp56 /* Assume average path length of 64 and max 8 paths */
611 const char * const*path; local
622 for (path = ldpaths; *path; path++) {
623 n = format_buffer(buf, sizeof(buf), "%s/%s", *path, name);
625 WARN("Ignoring very long library path: %s/%s\n", *path, name);
631 for (path = sopaths; *path; pat
1712 parse_path(const char* path, const char* delimiters, const char** array, char* buf, size_t buf_size, size_t max_count) argument
1738 parse_LD_LIBRARY_PATH(const char* path) argument
1743 parse_LD_PRELOAD(const char* path) argument
[all...]
/bionic/libc/kernel/common/media/
H A Dmsm_isp.h365 int path; member in struct:msm_vpe_flush_frame_buffer
370 int path; member in struct:msm_mctl_pp_frame_buffer
374 int path; member in struct:msm_mctl_pp_divert_pp
405 int path; member in struct:msm_mctl_pp_frame_cmd
426 uint32_t path; member in struct:msm_frame_info
H A Dmsm_camera.h220 int path; member in struct:msm_pp_frame
584 int path; member in struct:msm_frame

Completed in 237 milliseconds