Bug 1879 - SINO_T needs another option for OpenVMS.
Summary: SINO_T needs another option for OpenVMS.
Status: RESOLVED WONTFIX
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: Config Files (show other bugs)
Version: 3.0.7
Hardware: Other OpenVMS
: P3 enhancement
Target Milestone: none
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-06 17:58 UTC by John Malmberg
Modified: 2010-04-26 03:44 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Malmberg 2004-10-06 17:58:06 UTC
Can a test to see if the SINO_T macro is already defined be wrapped around the
two definitions of the macro in include/includes.h?

OpenVMS has two different ino_t types, a 48 bit version for OpenVMS VAX and a 64
bit version for OpenVMS 8.2 and later on Alpha and Itanium.

By checking to see if the macro is already defined, the 48 bit version of the
SINO_T for OpenVMS can be defined in the config.h file.

Example:

#ifndef SINO_T
#ifdef LARGE_SMB_INO_T
#define SINO_T(p, ofs, v) (SIVAL(p,ofs,(v)&0xFFFFFFFF), SIVAL(p,(ofs)+4,(v)>>32
#else
#define SINO_T(p, ofs, v) (SIVAL(p,ofs,v),SIVAL(p,(ofs)+4,0))
#endif
#endif
Comment 1 Stefan Metzmacher 2010-04-26 03:44:07 UTC
If it's still broken in 3.5, please reopen.
3.0 isn't supported anymore.