Jose R. Valverde wrote:
u.u_dirp.l = (caddr_t) (*((long *)(uap->linkname &0x7F00FFFF)))
"sys2.c":305: operands of "&" have incompatible types
Error in file sys2.c: Error. No assembly.
I've changed it to:
u.u_dirp.l = (caddr_t) (*((long *)((long)uap->linkname &0x7F00FFFF)));
and this produces:
not exactly the wanted code :(