mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-25 22:07:15 +00:00
2009-09-30 Ralf Corsépius <ralf.corsepius@rtems.org>
* libcsupport/src/_rename_r.c: Rework autoconf defines. Remove unused includes.
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
2009-09-30 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* libcsupport/src/_rename_r.c: Rework autoconf defines.
|
||||
Remove unused includes.
|
||||
* libcsupport/src/__gettod.c: Rework autoconf defines.
|
||||
Eliminate RTEMS_UNIX.
|
||||
* libcsupport/src/_calloc_r.c, libcsupport/src/_realloc_r.c:
|
||||
|
||||
@@ -15,17 +15,12 @@
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <reent.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/libio.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include <rtems/libio_.h>
|
||||
#include <rtems/seterr.h>
|
||||
|
||||
#if defined(RTEMS_NEWLIB) && !defined(HAVE__RENAME_R)
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <reent.h>
|
||||
|
||||
int _rename_r(
|
||||
struct _reent *ptr __attribute__((unused)),
|
||||
@@ -44,3 +39,4 @@ int _rename_r(
|
||||
return s;
|
||||
return S_ISDIR(sb.st_mode) ? rmdir( old ) : unlink( old );
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user