[openib-general] [PATCH 1/6] libibverbs include files changes.

Steve Wise swise at opengridcomputing.com
Fri Jul 28 13:29:26 PDT 2006


you're right...its friday...  ;-)



On Fri, 2006-07-28 at 13:21 -0700, Roland Dreier wrote:
>     Steve> Uh, won't that break binary compatibility?  Or is that not
>     Steve> a requirement?  IE: If you make the ibv_* names #defines,
>     Steve> then all apps will have to recompile to use the new lib.
>     Steve> If you leave them as the real names, then apps can still
>     Steve> link to the new lib and run ok...i think...
> 
> I don't think the names of structures matters for ABI compatibility --
> if I have a header with
> 
>  	struct foo {
>  	       int a;
>  	       int b;
>  	};
>  	
>  	void blah(struct foo *z);
> 
> then a binary compiled against that will still work even if I later
> change the name of struct foo so I have:
> 
> 	stuct bar {
> 	       int c;
> 	       int d;
> 	};
> 	
> 	void blah(struct bar *z);
> 
> after all the layout of struct foo and struct bar are the same.
> 
>  - R.





More information about the general mailing list