Changeset e0e922d in mainline
- Timestamp:
- 2011-08-11T00:06:00Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1cc4a09, db6e419
- Parents:
- c67aff2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/stdio.c
rc67aff2 re0e922d 257 257 assert(stream != NULL); 258 258 259 /* Ret ieve the node. */259 /* Retrieve the node. */ 260 260 struct stat st; 261 261 int rc; … … 265 265 } else { 266 266 rc = stat(filename, &st); 267 if (-rc == ENOENT) { 268 /* file does not exist, create new file */ 269 FILE* tmp = fopen(filename, mode); 270 if (tmp != NULL) { 271 fclose(tmp); 272 /* try again */ 273 rc = stat(filename, &st); 274 } 275 } 267 276 } 268 277
Note:
See TracChangeset
for help on using the changeset viewer.