int _gpio_ioc_set(ulong param_1,undefined4 param_2)
{
int __fd;
int iVar1;
__fd = open("/dev/gpio",0) //possible issue identified - semgrep
if (__fd < 0) {
perror("/dev/gpio");
iVar1 = -1;
}
else {
iVar1 = ioctl(__fd,param_1,param_2);
if (iVar1 < 0) {
perror("ioctl");
}
close(__fd);
}
return iVar1;
}