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 Edward.Pilatowicz
Recipients Edward.Pilatowicz, loewis
Date 2010-06-05.00:52:59
SpamBayes Score 5.617248e-05
Marked as misclassified No
Message-id <1275699181.28.0.114740635491.issue8882@psf.upfronthosting.co.za>
In-reply-to
Content
some additional data.

AIX 6.1:
    defined sun_path = 1023
    max sun_path = 1023

i'll also point out the existence of the SUN_LEN() macro, which is
defined on all the previously mentioned operating systems, and which
calculates the size of a sockaddr_un structure using strlen() of
sun_path, not sizeof().

that said, as a counter argument, UNIX Network Programming by Richard
Stevens explicitly mentions that the use of sizeof() is ok.

still, personally, i think it's pretty risky for an OS to change this
definition.  (it seems that AIX is the only OS i've seen that has done
so.)  i say this because use of the sockaddr_un structure is so
prevalent.  it's commonly embedded into other structures and passed
around via APIs that (unlike bind(), connect(), etc) don't take a size
parameter which specifies the size of the structure.
History
Date User Action Args
2010-06-05 00:53:01Edward.Pilatowiczsetrecipients: + Edward.Pilatowicz, loewis
2010-06-05 00:53:01Edward.Pilatowiczsetmessageid: <1275699181.28.0.114740635491.issue8882@psf.upfronthosting.co.za>
2010-06-05 00:53:00Edward.Pilatowiczlinkissue8882 messages
2010-06-05 00:52:59Edward.Pilatowiczcreate