Changeset ae7bfbbd in mainline


Ignore:
Timestamp:
2017-03-30T20:00:54Z (8 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
79ea5af
Parents:
23a0368
Message:

Remove remove()

Location:
uspace/lib
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/vfs/vfs.c

    r23a0368 rae7bfbbd  
    959959}
    960960
    961 /** Remove directory entry.
    962  *
    963  * @param path Path
    964  * @return 0 on success. On error returns -1 and sets errno.
    965  */
    966 int remove(const char *path)
    967 {
    968         return unlink(path);
    969 }
    970 
    971961/** Change working directory.
    972962 *
  • uspace/lib/c/include/stdio.h

    r23a0368 rae7bfbbd  
    143143/* Misc file functions */
    144144extern int rename(const char *, const char *);
    145 extern int remove(const char *);
    146145
    147146#endif
  • uspace/lib/pcut/src/os/generic.c

    r23a0368 rae7bfbbd  
    137137        fread(extra_output_buffer, 1, OUTPUT_BUFFER_SIZE, tempfile);
    138138        fclose(tempfile);
    139         remove(tempfile_name);
     139        unlink(tempfile_name);
    140140
    141141        pcut_report_test_done_unparsed(test, rc, extra_output_buffer, OUTPUT_BUFFER_SIZE);
  • uspace/lib/posix/source/stdio.c

    r23a0368 rae7bfbbd  
    576576int posix_remove(const char *path)
    577577{
    578         return negerrno(remove, path);
     578        return negerrno(unlink, path);
    579579}
    580580
Note: See TracChangeset for help on using the changeset viewer.