int mq_notify(mqd_t __mqdes,sigevent *__notification)
{
int *piVar1;
int in_a3;
int iVar2;
if ((__notification == (sigevent *)0x0) || (__notification->sigev_notify != 2)) {
syscall(0) //possible issue identified - semgrep
iVar2 = 0x10b3;
if (in_a3 != 0) {
piVar1 = __errno_location();
*piVar1 = 0x10b3;
iVar2 = -1;
}
}
else {
iVar2 = -1;
piVar1 = __errno_location();
*piVar1 = 0x59;
}
return iVar2;
}