Home
last modified time | relevance | path

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

12

/picolibc-latest/newlib/libc/stdio/
Dmktemp.c142 char *path, in _gettemp() argument
158 for (trv = path; *trv; ++trv) /* extra X's get set to 0's */ in _gettemp()
160 if (trv - path < (ptrdiff_t) suffixlen) in _gettemp()
167 while (path < trv && *--trv == 'X') in _gettemp()
185 if (trv <= path) in _gettemp()
191 if (stat64 (path, &sbuf)) in _gettemp()
193 if (stat (path, &sbuf)) in _gettemp()
212 if (mkdir ( path, 0700) == 0) in _gettemp()
225 if ((*doopen = open (path, O_CREAT | O_EXCL | O_RDWR | flags, in _gettemp()
232 else if (stat64 (path, &sbuf)) in _gettemp()
[all …]
/picolibc-latest/newlib/libc/posix/
Ddirname.c20 dirname (char *path) in dirname() argument
23 if( path == NULL || *path == '\0' ) in dirname()
25 p = path + strlen(path) - 1; in dirname()
27 if( p == path ) in dirname()
28 return path; in dirname()
31 while( p >= path && *p != '/' ) in dirname()
33 while( p > path && p[-1] == '/' ) in dirname()
36 p < path ? "." : in dirname()
37 p == path ? "/" : in dirname()
38 (*p = '\0', path); in dirname()
Dbasename.c11 basename (char *path) in basename() argument
14 if( path == NULL || *path == '\0' ) in basename()
16 p = path + strlen(path) - 1; in basename()
18 if( p == path ) in basename()
19 return path; in basename()
22 while( p >= path && *p != '/' ) in basename()
Dnftw.c49 static int do_nftw(char *path, int (*fn)(const char *, const struct stat *, int, struct FTW *), int… in do_nftw() argument
51 size_t l = strlen(path), j = l && path[l-1]=='/' ? l-1 : l; in do_nftw()
58 if ((flags & FTW_PHYS) ? lstat(path, &st) : stat(path, &st) < 0) { in do_nftw()
59 if (!(flags & FTW_PHYS) && errno==ENOENT && !lstat(path, &st)) in do_nftw()
64 if (access(path, R_OK) < 0) type = FTW_DNR; in do_nftw()
88 for (k=j; k && path[k]=='/'; k--); in do_nftw()
89 for (; k && path[k-1]!='/'; k--); in do_nftw()
93 if (!(flags & FTW_DEPTH) && (r=fn(path, &st, type, &lev))) in do_nftw()
101 DIR *d = opendir(path); in do_nftw()
114 path[j]='/'; in do_nftw()
[all …]
Dftw.c28 int ftw(const char *path, int (*fn)(const char *, const struct stat *, int), int fd_limit) in ftw() argument
33 return nftw(path, (int (*)())fn, fd_limit, FTW_PHYS); in ftw()
/picolibc-latest/newlib/libc/tinystdio/
Dmktemp.c102 _gettemp (char *path, in _gettemp() argument
111 end = path + strlen(path) - suffixlen; in _gettemp()
115 while (path < trv && *--trv == 'X') in _gettemp()
152 int fd = open(path, O_RDONLY); in _gettemp()
159 fd = open (path, flags | O_CREAT | O_EXCL | O_RDWR, in _gettemp()
Dstdio.h335 FILE *fopen(const char *path, const char *mode) __malloc_like_with_free(fclose, 1);
336 FILE *freopen(const char *path, const char *mode, FILE *stream);
/picolibc-latest/newlib/libc/string/
Dgnu_basename.c20 __gnu_basename (const char *path) in __gnu_basename() argument
23 if ((p = strrchr (path, '/'))) in __gnu_basename()
25 return (char *) path; in __gnu_basename()
Duniset163 for my $path (@search_path) {
164 return $file if open($file, $mode, "$path/$fn");
/picolibc-latest/newlib/libc/sys/xtensa/
Dcreat.c6 creat (const char *path, mode_t mode) in creat() argument
8 return open (path, O_WRONLY | O_CREAT | O_TRUNC, mode); in creat()
/picolibc-latest/newlib/libc/machine/spu/
Dcreat.c13 creat (const char *path, in creat() argument
16 return open (path, O_WRONLY | O_CREAT | O_TRUNC, mode); in creat()
/picolibc-latest/newlib/libc/iconv/lib/
Diconvnls.c64 char *path; in _iconv_nls_construct_filename() local
68 if ((path = getenv (NLS_ENVVAR_NAME)) == NULL || *path == '\0') in _iconv_nls_construct_filename()
69 path = ICONV_DEFAULT_NLSPATH; in _iconv_nls_construct_filename()
71 len1 = strlen (path); in _iconv_nls_construct_filename()
78 memcpy (p, path, len1); in _iconv_nls_construct_filename()
/picolibc-latest/newlib/libc/search/
Dndbm.c65 char path[MAXPATHLEN]; in dbm_open() local
74 if( strlen(file) >= sizeof(path) - strlen(DBM_SUFFIX)) { in dbm_open()
78 (void)strcpy(path, file); in dbm_open()
79 (void)strcat(path, DBM_SUFFIX); in dbm_open()
80 return ((DBM *)__hash_open(path, flags, mode, 0, &info)); in dbm_open()
/picolibc-latest/.github/workflows/
Dhead34 path: picolibc
40 path: ${{ env.IMAGE_FILE }}
Dhead-zephyr35 path: picolibc
41 path: ${{ env.IMAGE_FILE }}
Dsteps-head5 path: picolibc
10 path: ${{ env.IMAGE_FILE }}
/picolibc-latest/cmake/
DTC-clang-thumbv6m.cmake24 --ld-path=/usr/bin/arm-none-eabi-ld
DTC-clang-thumbv7m.cmake24 --ld-path=/usr/bin/arm-none-eabi-ld
/picolibc-latest/doc/
Dembedsource.md52 … which we want. And i have found no good poartable way of re-adding the libgcc include header path.
Dusing.md35 path and the linker library path to point at Picolibc. For example, to
Dbuild.md43 … | true | Also wrap crt0.o into a library -lcrt0, which is easier to find via the library path |
288 If those programs aren't in your path, you can edit the file to point
386 $ ../scripts/do-riscv-configure -Dprefix=/path/to/install/dir/
/picolibc-latest/zephyr/
Dzephyr.cmake105 # We need to construct the absolute path to picolibc in same fashion as CMake
/picolibc-latest/newlib/doc/
Dmakedocbook.py808 with open(os.path.join(os.path.dirname(__file__), 'parsetab.lock'), 'w+') as lockfile:
/picolibc-latest/newlib/libc/include/
Dstdlib.h249 char * realpath (const char *__restrict path, char *__restrict resolved_path);
/picolibc-latest/
Dmeson.build546 …# Since toolchain may be moved and to another directory, let's get actual path using "gcc -print-s…
547 …# Note that the "install path" obtained with this command points to the "$GCC_EXEC_PREFIX/$ARCH/$G…
548 # That's why obtained path appended with '../../'
555 # Try to calculate relative path from sysroot to prefix
568 # Use default 'specs_prefix_format' if can not have relative sysroot path
658 # Construct path values for specs file
670 # entire final path elements must be specified inside the parens;
772 # multilib path or the non-multilib path

12