libgfortran: Use remove(3) instead of unlink(2) when deleting files.
commiteb3e44d24587ef5ac02b8a76c28549468536b699
authorjb <jb@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 3 Sep 2015 21:18:56 +0000 (3 21:18 +0000)
committerjb <jb@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 3 Sep 2015 21:18:56 +0000 (3 21:18 +0000)
tree593d7f86e1d9512136f291a704411e7af2722593
parent09618b06dd971ede9b7bd892c3b6c7193fd52872
libgfortran: Use remove(3) instead of unlink(2) when deleting files.

testsuite:

2015-09-04  Janne Blomqvist  <jb@gcc.gnu.org>

* gfortran.dg/read_dir.f90: Delete empty directory when closing
rather than calling rmdir, cleanup if open fails.

libgfortran:

2015-09-04  Janne Blomqvist  <jb@gcc.gnu.org>

* io/unix.h (delete_file): Remove prototype.
* io/unix.c (delete_file): Remove function.
* io/close.c (st_close): Replace delete_file and unlink with
remove.
* io/open.c (already_open): Replace unlink with remove.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@227472 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/read_dir.f90
libgfortran/ChangeLog
libgfortran/io/close.c
libgfortran/io/open.c
libgfortran/io/unix.c
libgfortran/io/unix.h