This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Michael.Felt
Recipients Michael.Felt
Date 2017-12-20.19:49:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1513799391.36.0.213398074469.issue32390@psf.upfronthosting.co.za>
In-reply-to
Content
FYI: from /usr/include/types.h

/* typedef for the File System Identifier (fsid).  This must correspond
 * to the "struct fsid" structure in _ALL_SOURCE below.
 */
typedef struct fsid_t {
#ifdef __64BIT_KERNEL
        unsigned long val[2];
#else  /* __64BIT_KERNEL */
#ifdef _ALL_SOURCE
        unsigned int val[2];
#else  /* _ALL_SOURCE */
        unsigned int __val[2];
#endif /* _ALL_SOURCE */
#endif /* __64BIT_KERNEL */
} fsid_t;

And, currently I am building in 32-bit mode, with a 64BIT kernel (AIX 6.1) - so I expect it to be 2 unsigned_longs.

However, I am not smart enough to find a solution: I tried:
    PyStructSequence_SET_ITEM(v, 10, PyLong_FromUnsignedLong((unsigned long) st.f_fsid));

and     PyStructSequence_SET_ITEM(v, 10, PyLong_FromUnsignedLong((unsigned long *) st.f_fsid));

Both return:

"./Modules/posixmodule.c", line 9328.80: 1506-117 (S) Operand must be a scalar type.
History
Date User Action Args
2017-12-20 19:49:51Michael.Feltsetrecipients: + Michael.Felt
2017-12-20 19:49:51Michael.Feltsetmessageid: <1513799391.36.0.213398074469.issue32390@psf.upfronthosting.co.za>
2017-12-20 19:49:51Michael.Feltlinkissue32390 messages
2017-12-20 19:49:51Michael.Feltcreate