Changeset a8e9ab8d in mainline for uspace/app/tester/vfs/vfs1.c


Ignore:
Timestamp:
2008-03-09T17:18:30Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4072980
Parents:
2664838b
Message:

Support for rename().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/tester/vfs/vfs1.c

    r2664838b ra8e9ab8d  
    9696        closedir(dirp);
    9797
    98         if (unlink("/mydir/myfile"))
     98        if (rename("/mydir/myfile", "/mydir/yourfile"))
     99                return "rename() failed.\n";
     100
     101        if (!quiet)
     102                printf("renamed /mydir/myfile to /mydir/yourfile\n");
     103
     104        if (unlink("/mydir/yourfile"))
    99105                return "unlink() failed.\n";
    100106       
    101107        if (!quiet)
    102                 printf("unlinked file /mydir/myfile\n");
     108                printf("unlinked file /mydir/yourfile\n");
    103109
    104110        if (rmdir("/mydir"))
Note: See TracChangeset for help on using the changeset viewer.