This is the mail archive of the cygwin-patches mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fix sem_getvalue


Hello
In 1.7.24 and 1.7.25 sem_getvalue() returns the current value instead of setting the out-parameter and returning 0/-1 for success/error.
I attached a simple fix.
I don't know if this should be further improved by setting errno to EINVAL if STATUS_INVALID_HANDLE == status. Unfortunately I wasn't able to run and extend the unit tests. Running "make check" fails with "No rule to make target `dataascii.o', needed by `libltp.a'". The VPATH seems to be extended correctly.
Kind regards,
Paul
--
Kunysch, Paul
Software Development
emsys Embedded Systems GmbH
Werner von Siemens Str. 20
98693 Ilmenau
Germany
Tel.: +49 3677 68977-16 Fax: +49 3677 68977-19
E-Mail: paul.kunysch@emsys.de
Internet: www.emsys.de
CEO: Dr.-Ing. Karsten Pahnke
office: Ilmenau
Register of commerce in county court Jena: HRB 304988

Attachment: patch.txt
Description: Text document

Attachment: smime.p7s
Description: S/MIME Kryptografische Unterschrift


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

AltStyle によって変換されたページ (->オリジナル) /