UnixOperatingSystem.st
changeset 8496 51f37676649e
parent 8490 605b944693e0
child 8564 48fd5e5b9d21
--- a/UnixOperatingSystem.st	Mon Aug 30 17:49:25 2004 +0200
+++ b/UnixOperatingSystem.st	Mon Aug 30 17:50:35 2004 +0200
@@ -3389,11 +3389,9 @@
         int nWritten;
 
         nWritten = sendfile(__intVal(outFd), __intVal(inFd), __intVal(startIdx), __intVal(count));
-# ifdef DEBUG
         if (nWritten < 0) {
-            fprintf(stderr, "sendfile(): errno=%d\n", errno);
+            @global(LastErrorNumber) = __MKSMALLINT(errno);
         }
-# endif
         RETURN (__MKSMALLINT(nWritten));
      }
 #endif
@@ -12351,7 +12349,7 @@
 !UnixOperatingSystem class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic/UnixOperatingSystem.st,v 1.213 2004-08-22 18:11:28 stefan Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/UnixOperatingSystem.st,v 1.214 2004-08-30 15:50:35 stefan Exp $'
 ! !
 
 UnixOperatingSystem initialize!