Changeset 1433ecda in mainline for uspace/lib/posix/src/stdlib.c
- Timestamp:
- 2018-04-04T15:42:37Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2c4e1cc
- Parents:
- 47b2d7e3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/src/stdlib.c
r47b2d7e3 r1433ecda 204 204 * or not (zero). 205 205 */ 206 int system(const char *string) { 206 int system(const char *string) 207 { 207 208 // TODO: does nothing at the moment 208 209 not_implemented(); … … 222 223 char *realpath(const char *restrict name, char *restrict resolved) 223 224 { 224 225 226 225 #ifndef PATH_MAX 226 assert(resolved == NULL); 227 #endif 227 228 228 229 if (name == NULL) { … … 238 239 * to be updated when that support is implemented. 239 240 */ 240 char *absolute = vfs_absolutize(name, NULL);241 char *absolute = vfs_absolutize(name, NULL); 241 242 242 243 if (absolute == NULL) { … … 252 253 return absolute; 253 254 } else { 254 255 256 255 #ifdef PATH_MAX 256 str_cpy(resolved, PATH_MAX, absolute); 257 #endif 257 258 free(absolute); 258 259 return resolved;
Note:
See TracChangeset
for help on using the changeset viewer.