def _ancillaryDescriptor(fd):
 packed = struct.pack('i', fd)
 return [(socket.SOL_SOCKET, sendmsg.SCM_RIGHTS, packed)]

def _ancillaryDescriptor ( fd ) : packed = struct . pack ( 'i' , fd ) return [ ( socket . SOL_SOCKET , sendmsg . SCM_RIGHTS , packed ) ]
pack an integer into an ancillary data structure suitable for use with l{sendmsg .