[#444] io_write()/fwrite() and EINTR on Solaris — Jos Backus <jos@...>

I am encountering a problem similar to the one mentioned here,

19 messages 2002/09/06
[#453] Re: io_write()/fwrite() and EINTR on Solaris — nobu.nokada@... 2002/09/08

Hi,

[#454] Re: io_write()/fwrite() and EINTR on Solaris — matz@... (Yukihiro Matsumoto) 2002/09/09

Hi

[#469] Re: io_write()/fwrite() and EINTR on Solaris — Jos Backus <jos@...> 2002/09/09

On Mon, Sep 09, 2002 at 03:55:13PM +0900, Yukihiro Matsumoto wrote:

[#479] Re: io_write()/fwrite() and EINTR on Solaris — Jos Backus <jos@...> 2002/09/10

On Tue, Sep 10, 2002 at 01:04:10AM +0900, Jos Backus wrote:

[#492] Re: io_write()/fwrite() and EINTR on Solaris — Jos Backus <jos@...> 2002/09/21

On Wed, Sep 11, 2002 at 02:23:33AM +0900, Jos Backus wrote:

[RFC] mkmf.rb: dependencies

From: Michal Rokos <m.rokos@...>
Date: 2002-09-05 16:27:21 UTC
List: ruby-core #439
Hello,

	I'd like to add to mkmf rule for generating dependencies.

	I don't know who is the right person, so I'm posting it here.

	I'm thinking about:


Index: lib/mkmf.rb
===================================================================
RCS file: /src/ruby/lib/mkmf.rb,v
retrieving revision 1.92
diff -u -r1.92 mkmf.rb
--- lib/mkmf.rb	2002/09/05 02:24:40	1.92
+++ lib/mkmf.rb	2002/09/05 16:18:43
@@ -517,17 +517,19 @@
   drive = File::PATH_SEPARATOR == ';' ? /\A\w:/ : /\A/
 
   unless $objs then
+    $srcs = []
     $objs = []
     for f in Dir[File.join(srcdir, "*.{#{SRC_EXT.join(%q{,})}}")]
       f = File.basename(f)
-      f.sub!(/(#{SRC_EXT.join(%q{|})})$/, $OBJEXT)
-      $objs.push f
+      $srcs.push f
+      $objs.push f.sub(/(#{SRC_EXT.join(%q{|})})$/, $OBJEXT)
     end
   else
     for i in $objs
       i.sub!(/\.o\z/, ".#{$OBJEXT}")
     end
   end
+  $srcs = $srcs.join(" ")
   $objs = $objs.join(" ")
 
   mfile = open("Makefile", "w")
@@ -582,6 +584,7 @@
 
 LOCAL_LIBS = #{$LOCAL_LIBS} #{$local_flags}
 LIBS = #{$libs}
+SRCS = #{$srcs}
 OBJS = #{$objs}
 
 TARGET = #{target}
@@ -609,7 +612,7 @@
 }
                 
 distclean:	clean
-		@$(RM) Makefile extconf.h conftest.* mkmf.log
+		@$(RM) Makefile extconf.h conftest.* mkmf.log depend
 		@$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES)
 
 realclean:	distclean
@@ -723,7 +726,7 @@
 
   depend = File.join(srcdir, "depend")
   if File.exist?(depend)
-    dfile = open(depend, "r")
+    dfile = File.open(depend, "r")
     mfile.printf "###\n"
     while line = dfile.gets()
       line.gsub!(/\.o\b/, ".#{$OBJEXT}")
@@ -731,6 +734,13 @@
       mfile.printf "%s", line
     end
     dfile.close
+  else
+    mfile.print "
+depend:
+	$(CC) $(CFLAGS) $(CPPFLAGS) -c $(SRCS) -MM > depend
+
+include depend
+"
   end
   mfile.close
   $libs = save_libs

	But I don't know how much it is platform dependent.

	Could you recommend something (like apply to /dev/null) or 
	somebody to discuss with? :-)

	Thanks

		Michal

-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Michal Rokos                         Czech Technical University, Prague
E-mail:m.rokos@sh.cvut.cz      ICQ:36118339      Jabber:majkl@jabber.cz
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

In This Thread

Prev Next