Unix types in IDL code?

Andrew Bartlett abartlet at samba.org
Mon Sep 10 11:24:58 GMT 2007


On Mon, 2007-09-10 at 13:20 +0200, Volker Lendecke wrote:
> Hi!
> 
> Right now I'm looking at converting the Samba3
> parse_share_modes stuff to becoming IDL-generated. In the
> current struct share_mode we have things like uid_t, gid_t,
> struct timeval etc.
> 
> What would be the recommended way to deal with these? I
> could certainly add corresponding support into ndr_misc.c,
> or I could use uint64's and a IDL typedef for struct
> timeval. The latter approach however makes manual
> conversions necessary as the resulting structs don't have
> the right types inside.
> 
> What should I do here?

64 bit types seems the easy option to me.  If you are going as far as
IDL, having it depending on the size of uid_t seems silly. 

Andrew Bartlett

-- 
Andrew Bartlett
http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org
Samba Developer, Red Hat Inc.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba-technical/attachments/20070910/7bd1dc2c/attachment.bin


More information about the samba-technical mailing list