Commit 52a6edcc by Kaveh R. Ghazi Committed by Kaveh Ghazi

collect2.c (dup2): Delete.

	* collect2.c (dup2): Delete.
	* configure.ac: Don't check for dup2.

	* config.in, configure: Regenerate.

From-SVN: r103263
parent 4958c162
2005-08-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* collect2.c (dup2): Delete.
* configure.ac: Don't check for dup2.
* config.in, configure: Regenerate.
2005-08-18 J"orn Rennecke <joern.rennecke@st.com> 2005-08-18 J"orn Rennecke <joern.rennecke@st.com>
* sh.c (sh_gimplify_va_arg_expr): Loop to substitute a RECORD_TYPE * sh.c (sh_gimplify_va_arg_expr): Loop to substitute a RECORD_TYPE
......
...@@ -271,26 +271,6 @@ static char *resolve_lib_name (const char *); ...@@ -271,26 +271,6 @@ static char *resolve_lib_name (const char *);
#endif #endif
static char *extract_string (const char **); static char *extract_string (const char **);
#ifndef HAVE_DUP2
static int
dup2 (int oldfd, int newfd)
{
int fdtmp[256];
int fdx = 0;
int fd;
if (oldfd == newfd)
return oldfd;
close (newfd);
while ((fd = dup (oldfd)) != newfd && fd >= 0) /* good enough for low fd's */
fdtmp[fdx++] = fd;
while (fdx > 0)
close (fdtmp[--fdx]);
return fd;
}
#endif /* ! HAVE_DUP2 */
/* Delete tempfiles and exit function. */ /* Delete tempfiles and exit function. */
void void
......
...@@ -611,12 +611,6 @@ ...@@ -611,12 +611,6 @@
#endif #endif
/* Define to 1 if you have the `dup2' function. */
#ifndef USED_FOR_TARGET
#undef HAVE_DUP2
#endif
/* Define to 1 if you have the <fcntl.h> header file. */ /* Define to 1 if you have the <fcntl.h> header file. */
#ifndef USED_FOR_TARGET #ifndef USED_FOR_TARGET
#undef HAVE_FCNTL_H #undef HAVE_FCNTL_H
......
...@@ -9116,8 +9116,7 @@ fi ...@@ -9116,8 +9116,7 @@ fi
for ac_func in times clock kill getrlimit setrlimit atoll atoq \
for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
sysconf strsignal getrusage nl_langinfo scandir alphasort \ sysconf strsignal getrusage nl_langinfo scandir alphasort \
gettimeofday mbstowcs wcswidth mmap mincore setlocale \ gettimeofday mbstowcs wcswidth mmap mincore setlocale \
clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
......
...@@ -999,7 +999,7 @@ define(gcc_UNLOCKED_FUNCS, clearerr_unlocked feof_unlocked dnl ...@@ -999,7 +999,7 @@ define(gcc_UNLOCKED_FUNCS, clearerr_unlocked feof_unlocked dnl
fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked dnl fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked dnl
fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked dnl fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked dnl
putchar_unlocked putc_unlocked) putchar_unlocked putc_unlocked)
AC_CHECK_FUNCS(times clock dup2 kill getrlimit setrlimit atoll atoq \ AC_CHECK_FUNCS(times clock kill getrlimit setrlimit atoll atoq \
sysconf strsignal getrusage nl_langinfo scandir alphasort \ sysconf strsignal getrusage nl_langinfo scandir alphasort \
gettimeofday mbstowcs wcswidth mmap mincore setlocale \ gettimeofday mbstowcs wcswidth mmap mincore setlocale \
gcc_UNLOCKED_FUNCS) gcc_UNLOCKED_FUNCS)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment