This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Disabling top level fixincludes


 > Even better, leave the dup2 in the code alone, and - only if someone
 > complains - put
 > 
 > #if !defined HAVE_DUP2 && defined HAVE_FCNTL_DUPFD
 > #define dup2(ofd, nfd) fcntl(ofd, F_DUPFD, nfd)
 > #endif
 > 
 > in an appropriate header, plus appropriate configure goo.

Even better, put all the "goo" in a libiberty dup2 replacement.

There's also a dup2 replacement in collect2.c that uses a different
backup mechanism than fcntl, this could also be merged and zapped.

		--Kaveh
--
Kaveh R. Ghazi			ghazi@caip.rutgers.edu


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]