z/OS 1.12.  The source:

/* Doc: Print the resolved pathname of each argument
*/
#include <stdlib.h>
/* appears to contain:
        char        *realpath(const char * __restrict__,
                                    char * __restrict__);
*/

int main( int argc, char ** argv ) {

char *resolved_name;

/* This is OK.  */
                realpath( "xyzzy", NULL );

/* This is OK.  */
resolved_name = "wombat";

/* this gets:
   ERROR CCN3068 realpath3.c:22
       Operation between types "char*" and "int" is not allowed. */
resolved_name = realpath( "xyzzy", NULL );

}

My compile command is:

user@MVS:167$ gmake realpath3                                               
LC_CTYPE= c89 -I.. -D_XOPEN_SOURCE -D_OE_SOCKETS -Wa,"ASA,RENT" 
-DPLATFORM=OS390  -o realpath3 ../source/realpath3.c  /usr/lib/Xaw.x 
/usr/lib/SM.x /usr/lib/ICE.x /usr/lib/X11.x  -lcurses -lm
in $ENV: /bin/sh -h $
ERROR CCN3068 ./../source/realpath3.c:22    Operation between types "char*" and 
"int" is not allowed.
CCN0793(I) Compilation failed for file ./../source/realpath3.c.  Object file 
not created.
FSUM3065 The COMPILE step ended with return code 12.
FSUM3017 Could not compile ../source/realpath3.c. Correct the errors and try 
again.

Help!

Thanks,
gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: INFO IBM-MAIN

Reply via email to