gnu-arch-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnu-arch-users] Re: tla on aix


From: tow21
Subject: Re: [Gnu-arch-users] Re: tla on aix
Date: Tue, 10 Feb 2004 23:45:08 +0000
User-agent: Mutt/1.5.5.1+cvs20040105i

Tom Lord: [Tue, Feb 10, 2004 at 02:53:58PM -0800]:
> 
> Yes, AIX is being pathologically, idiotically odd.  While hanging the
> process is, I suppose, conformant with a requirement that the behavior
> is "unspecified" --- well, I guess I have nothing nice to say about
> AIX in this area.
> 
> To check that your diagnosis is correct, could you please modify the
> function: ./src/hackerlab/vu/vu-sys.c(vu_sys_write) to check if the
> parameter `count' is 0 and, if so, return 0 rather than calling
> `write()'?   If that fixes the problem, I'll be happy to add that
> change to libhackerlab.

Done. The following change:
--- vu-sys.c.old        2004-02-10 23:33:20.000000000 +0000
+++ vu-sys.c    2004-02-10 23:34:01.000000000 +0000
@@ -632,6 +632,11 @@
              void * closure)
 {
   ssize_t rv;
+
+/* In order to get around irritating AIX behaviour: */
+  if (count == 0)
+    return 0;
+
   rv = write (fd, buf, count);
   if (rv == -1)
     *errn = errno;

fixes the problem and allows all tests to PASS.

Just to check; is the following the expected output from
test-mv-explicit.sh? I'm slightly concerned by the error messages, but a
PASS is reported anyway.

======= TESTING: mv =======
Test 1: move file to new file
Test 1: PASS
 ... <snip> ...
Test 14: move file into a directory tree
These symlinks point to nonexistent files:

link_to_hello-world.c


Test 14: PASS
 ... <snip> ...
Test 17: move file into a directory tree and rename
These symlinks point to nonexistent files:

link_to_hello-world.c


Test 17: PASS
Test 18: move file out of a directory tree and rename
Test 18: PASS
Test 19: move file around a directory tree and rename
Test 19: PASS

Toby

-- 
Dr. Toby White, Dept. of Earth Sciences, Downing Street, Cambridge CB2 3EQ. UK
Email: <address@hidden>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]