Re: [Qemu-devel] [PATCH] linux-user: fix mq_getsetattr implementation

2018-03-31 Thread Laurent Vivier
Le 31/03/2018 à 18:57, Laurent Vivier a écrit : > Le 31/03/2018 à 18:23, Max Filippov a écrit : >> mq_getsetattr implementation does not set errno correctly in case of >> error. Also in the presence of both 2nd and 3rd arguments it calls both >> mq_getattr and mq_setattr, whereas only the latter ca

Re: [Qemu-devel] [PATCH] linux-user: fix mq_getsetattr implementation

2018-03-31 Thread Laurent Vivier
Le 31/03/2018 à 18:23, Max Filippov a écrit : > mq_getsetattr implementation does not set errno correctly in case of > error. Also in the presence of both 2nd and 3rd arguments it calls both > mq_getattr and mq_setattr, whereas only the latter call would suffice. > > Don't call mq_getattr in the p

[Qemu-devel] [PATCH] linux-user: fix mq_getsetattr implementation

2018-03-31 Thread Max Filippov
mq_getsetattr implementation does not set errno correctly in case of error. Also in the presence of both 2nd and 3rd arguments it calls both mq_getattr and mq_setattr, whereas only the latter call would suffice. Don't call mq_getattr in the presence of the 3rd argument. Use get_errno to set errno