This is the mail archive of the
cygwin-cvs@cygwin.com
mailing list for the Cygwin project.
src/winsup/cygwin ChangeLog.64bit posix_ipc.cc
- From: corinna at cygwin dot com
- To: cygwin-cvs at cygwin dot com
- Date: 10 Dec 2012 19:00:13 -0000
- Subject: src/winsup/cygwin ChangeLog.64bit posix_ipc.cc
CVSROOT: /cvs/src
Module name: src
Branch: cygwin-64bit-branch
Changes by: corinna@sourceware.org 2012-12-10 19:00:13
Modified files:
winsup/cygwin : ChangeLog.64bit posix_ipc.cc
Log message:
* posix_ipc.cc: Enforce 4 byte alignment on all structs used in the
message queue file.
(struct mq_fattr): Fixed size mq_attr structure as stored in file.
(struct mq_hdr): Change to have same size on 32 and 64 bit. Add
mqh_magic to allow check for old message queue file.
(struct msg_hdr): Change to have same size on 32 and 64 bit. Change
type of mqh_attr to struct mq_fattr.
(struct mq_info): Change to have same size on 32 and 64 bit.
(mq_open): Add check for maximum mq_maxmsg and mq_msgsize values which
still fit into 32 bit values. Set mqh_magic in file to MQI_MAGIC.
Check mqh_magic value on existing file to detect old message queue file.
(mq_getattr): Change type of local attr variable to struct mq_fattr.
(mq_setattr): Ditto.
(_mq_send): Ditto.
(_mq_receive): Ditto.
(mq_close): Ditto.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/ChangeLog.64bit.diff?cvsroot=src&only_with_tag=cygwin-64bit-branch&r1=1.1.2.57&r2=1.1.2.58
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/posix_ipc.cc.diff?cvsroot=src&only_with_tag=cygwin-64bit-branch&r1=1.30.2.3&r2=1.30.2.4