25bde48
--- perl/ext/POSIX/POSIX.xs#152~33896~	2008-05-21 02:18:00.000000000 -0700
25bde48
+++ perl/ext/POSIX/POSIX.xs	2008-05-21 03:31:32.000000000 -0700
25bde48
@@ -649,26 +649,37 @@
25bde48
 int
25bde48
 WEXITSTATUS(status)
25bde48
 	int status
25bde48
-
25bde48
-int
25bde48
-WIFEXITED(status)
25bde48
-	int status
25bde48
-
25bde48
-int
25bde48
-WIFSIGNALED(status)
25bde48
-	int status
25bde48
-
25bde48
-int
25bde48
-WIFSTOPPED(status)
25bde48
-	int status
25bde48
-
25bde48
-int
25bde48
-WSTOPSIG(status)
25bde48
-	int status
25bde48
-
25bde48
-int
25bde48
-WTERMSIG(status)
25bde48
-	int status
25bde48
+    ALIAS:
25bde48
+	POSIX::WIFEXITED = 1
25bde48
+	POSIX::WIFSIGNALED = 2
25bde48
+	POSIX::WIFSTOPPED = 3
25bde48
+	POSIX::WSTOPSIG = 4
25bde48
+	POSIX::WTERMSIG = 5
25bde48
+    CODE:
25bde48
+	switch(ix) {
25bde48
+	case 0:
25bde48
+	    RETVAL = WEXITSTATUS(status);
25bde48
+	    break;
25bde48
+	case 1:
25bde48
+	    RETVAL = WIFEXITED(status);
25bde48
+	    break;
25bde48
+	case 2:
25bde48
+	    RETVAL = WIFSIGNALED(status);
25bde48
+	    break;
25bde48
+	case 3:
25bde48
+	    RETVAL = WIFSTOPPED(status);
25bde48
+	    break;
25bde48
+	case 4:
25bde48
+	    RETVAL = WSTOPSIG(status);
25bde48
+	    break;
25bde48
+	case 5:
25bde48
+	    RETVAL = WTERMSIG(status);
25bde48
+	    break;
25bde48
+	default:
25bde48
+	    Perl_croak(aTHX_ "Illegal alias %d for POSIX::W*", ix);
25bde48
+	}
25bde48
+    OUTPUT:
25bde48
+	RETVAL
25bde48
 
25bde48
 int
25bde48
 isalnum(charstring)
25bde48