prog.c:6:1: error: unknown type name ‘square_out’; did you mean ‘quad_t’?
square_out *squareproc_1_svc(square_in *inp,struct svc_req *rqstp)
^~~~~~~~~~
quad_t
prog.c:6:30: error: unknown type name ‘square_in’
square_out *squareproc_1_svc(square_in *inp,struct svc_req *rqstp)
^~~~~~~~~
prog.c: In function ‘main’:
prog.c:23:2: error: unknown type name ‘square_in’
square_in in;
^~~~~~~~~
prog.c:24:2: error: unknown type name ‘square_out’; did you mean ‘quad_t’?
square_out *outp;
^~~~~~~~~~
quad_t
prog.c:25:2: warning: implicit declaration of function ‘f’ [-Wimplicit-function-declaration]
f(argc!=3)
^
prog.c:25:12: error: expected ‘;’ before ‘{’ token
f(argc!=3)
^
;
{
~
prog.c:32:4: error: request for member ‘arg1’ in something not a structure or union
in.arg1=atol(argv[2]);
^
prog.c:36:32: warning: implicit declaration of function ‘strerror’; did you mean ‘perror’? [-Wimplicit-function-declaration]
printf("\nerror:%s",strerror(errno));
^~~~~~~~
perror
prog.c:36:29: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘int’ [-Wformat=]
printf("\nerror:%s",strerror(errno));
~^ ~~~~~~~~~~~~~~~
%d
prog.c:40:15: warning: implicit declaration of function ‘squareproc_1’ [-Wimplicit-function-declaration]
if((outp=squareproc_1(&in,cl))==NULL)
^~~~~~~~~~~~
prog.c:40:14: warning: assignment to ‘int *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
if((outp=squareproc_1(&in,cl))==NULL)
^
prog.c:46:40: error: request for member ‘res1’ in something not a structure or union
printf("\n\n result is : %ld",outp->res1);
^~
prog.c: At top level:
prog.c:64:1: error: unknown type name ‘program’
program SQUARE_PROG
^~~~~~~
prog.c:65:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
{
^
prog.c:70:2: error: expected identifier or ‘(’ before ‘=’ token
}=0x31230000;/*prog no*/
^