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

/bionic/libc/bionic/
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 Dlibgen.cpp42 char* basename(const char* path) { argument
44 int rc = basename_r(path, basename_tls_buffer, basename_tls_buffer_size);
48 char* dirname(const char* path) { argument
50 int rc = dirname_r(path, dirname_tls_buffer, dirname_tls_buffer_size);
54 int basename_r(const char* path, char* buffer, size_t buffer_size) { argument
61 if (path == NULL || *path == '\0') {
68 endp = path + strlen(path) - 1;
69 while (endp > path
106 dirname_r(const char* path, char* buffer, size_t buffer_size) argument
[all...]
H A Dstatvfs.cpp44 int statvfs(const char* path, struct statvfs* result) { argument
46 int rc = __statfs64(path, sizeof(tmp), &tmp);
H A Dpathconf.c136 pathconf(const char *path, int name) argument
139 int ret = statfs( path, &buf );
H A Ddirent.cpp78 DIR* opendir(const char* path) { argument
79 int fd = open(path, O_RDONLY | O_DIRECTORY);
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/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 Dutime.c50 utime(const char *path, const struct utimbuf *times) argument
54 _DIAGASSERT(path != NULL);
64 return (utimes(path, tvp));
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/private/
H A DScopedReaddir.h24 ScopedReaddir(const char* path) { argument
25 dir_ = opendir(path);
/bionic/libc/upstream-freebsd/lib/libc/stdlib/
H A Drealpath.c46 * Find the real name of path, by removing all ".", ".." and symlink
48 * in which case the path which caused trouble is left in (resolved).
51 realpath(const char * __restrict path, char * __restrict resolved) argument
60 if (path == NULL) {
64 if (path[0] == '\0') {
76 if (path[0] == '/') {
79 if (path[1] == '\0')
82 left_len = strlcpy(left, path + 1, sizeof(left));
94 left_len = strlcpy(left, path, sizeof(left));
104 * Iterate over path component
[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
21 def make_dir( path ):
22 path = os.path.abspath(path)
23 if not os.path.exists(path):
24 parent = os.path.dirname(path)
27 os.mkdir(path)
[all...]
/bionic/libc/unistd/
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...]
/bionic/libc/upstream-freebsd/lib/libc/stdio/
H A Dmktemp.c56 mkstemps(char *path, int slen) argument
60 return (_gettemp(path, &fd, 0, slen) ? fd : -1);
64 mkstemp(char *path) argument
68 return (_gettemp(path, &fd, 0, 0) ? fd : -1);
72 mkdtemp(char *path) argument
74 return (_gettemp(path, (int *)NULL, 1, 0) ? path : (char *)NULL);
78 _mktemp(char *path) argument
80 return (_gettemp(path, (int *)NULL, 0, 0) ? path
87 mktemp(char *path) argument
93 _gettemp(char *path, int *doopen, int domkdir, int slen) argument
[all...]
/bionic/tests/
H A Ddlfcn_test.cpp141 // Note that we don't know whether or not we have the full path, so we want an "ends_with" test.
155 char path[PATH_MAX]; local
156 snprintf(path, sizeof(path), "/proc/%d/maps", getpid());
158 FILE* fp = fopen(path, "r");
163 char* path = strchr(line, '/'); local
164 if (path != NULL && strcmp(executable_path, path) == 0) {
/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/tzcode/
H A Dlocaltime.c2117 static int __bionic_open_tzdata_path(const char* path, const char* olson_id, int* data_size) { argument
2118 int fd = TEMP_FAILURE_RETRY(open(path, OPEN_MODE));
2120 XLOG(("%s: could not open \"%s\": %s\n", __FUNCTION__, path, strerror(errno)));
2138 __FUNCTION__, path, (bytes_read == -1) ? strerror(errno) : "short read");
2145 __FUNCTION__, path, header.tzdata_version);
2159 __FUNCTION__, path, strerror(errno));
2194 __FUNCTION__, specific_zone_offset, path, strerror(errno));
/bionic/linker/
H A Dlinker.cpp52 /* Assume average path length of 64 and max 8 paths */
355 static void parse_path(const char* path, const char* delimiters, argument
357 if (path == NULL) {
361 size_t len = strlcpy(buf, path, buf_size);
371 // Forget the last path if we had to truncate; this occurs if the 2nd to
380 static void parse_LD_LIBRARY_PATH(const char* path) { argument
381 parse_path(path, ":", gLdPaths,
385 static void parse_LD_PRELOAD(const char* path) { argument
387 parse_path(path, " :", gLdPreloadNames,
671 PRINT("Warning: ignoring very long library path
[all...]
/bionic/libc/kernel/common/linux/
H A Dcoda.h524 int path; member in struct:coda_open_by_path_out
611 const char __user *path; member in struct:PioctlData

Completed in 2407 milliseconds