libgfortran: Use remove(3) instead of unlink(2) when deleting files.
commit43ff5c7a2dd5912a3bf90bd0f9cc599ac3a3acce
authorJanne Blomqvist <jb@gcc.gnu.org>
Thu, 3 Sep 2015 21:18:56 +0000 (4 00:18 +0300)
committerJanne Blomqvist <jb@gcc.gnu.org>
Thu, 3 Sep 2015 21:18:56 +0000 (4 00:18 +0300)
tree593d7f86e1d9512136f291a704411e7af2722593
parentc8c030589bd61290418753e766f26d8f99e8b074
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.

From-SVN: r227472
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