Samba 2.2.0 beta1 portability issues in Solaris 8

Norm Shulman -- Customer Engineering norm at scot.canada.sun.com
Tue Jan 16 20:28:55 GMT 2001


> Date: Tue, 16 Jan 2001 15:09:02 -0500
> From: David Collier-Brown <davecb at canada.sun.com>
> 
> Summary of Private symbol use in /usr/lib/libc.so.1
>   (18 binaries used libc.so.1, 17 of these used private symbols)
> 
>   _get_exit_frame_monitor 16  _acl 1                      
>   _facl 1                     _llseek 1                   
>   _pread 1                    _pwrite 1   
> 
> --------------
> 
> _get_exit_frame_monitor  -- I'm looking for it as we speak, but
> 	it may be a mere artifact of the testing....

Don't know about this one.

> _acl is used via #define real_acl(fn,cmd,n,buf) (_acl(fn,cmd,n,buf))
> 	in the creation of smbwrapper.so. Unfortunately, _acl is a 
> 	private interface in Solaris, using the leading underscore
> 	convention of ANSI C to indicate that it's not to be called
> 	from applications. It lives in /usr/lib/libc.so.1

Why don't you

	#define real_acl(fn,cmd,n,buf) (acl(fn,cmd,n,buf))

> _facl ditto
> _llseek ditto
> _pread ditto
> _pwrite ditto

Why don't you use facl(), llseek(), pread() and pwrite()?

> We arguably need to avoid defining name to _name, lest we
> get mysteriously different behavior on Solaris... It's
> not entirely kosher, anyway.

Norm

Norm Shulman			voice:  1 905 415 2877
ACE-ABI				fax:	1 905 477 0217
Solaris Software		Sun Microsystems





More information about the samba-technical mailing list