[Opendnssec-develop] Re: [Opendnssec-commits] [svn.opendnssec.org/svn/dnssec] r6688 - trunk/OpenDNSSEC/libhsm/src/lib

Jerry Lundström jerry at opendnssec.org
Wed Sep 19 11:14:53 UTC 2012


On Sep 19, 2012, at 12:46 , rickard at opendnssec.org wrote:
> 
> +    /* From man page for semctl */
> +    union semun {
> +        int              val;    /* Value for SETVAL */
> +        struct semid_ds *buf;    /* Buffer for IPC_STAT, IPC_SET */
> +        unsigned short  *array;  /* Array for GETALL, SETALL */
> +        struct seminfo  *__buf;  /* Buffer for IPC_INFO
> +                                    (Linux-specific) */
> +    };
> +    union semun arg;

I don't thinks this is good practice to define this type by ourselves.

semun exists on some platforms and some even have semun_t, we should check for it in configure and if its not defined we can define it ourselves without the Linux specific items.

--
Jerry Lundström - OpenDNSSEC Developer
http://www.opendnssec.org/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 495 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.opendnssec.org/pipermail/opendnssec-develop/attachments/20120919/2daa0da4/attachment.bin>


More information about the Opendnssec-develop mailing list