Hi everyone,
Is there any way by which one can use the 'open' system call in a program to
access the device file descriptor in user mode? For example
......
.....
int fd = open('/dev/scsi', _RONLY);
if (fd != -1)
{
printf("Error");
}
else
{
int handle;
ioctl(fd,SCSI_IOCTL_GET_BUS_NO, &handle);
..........
..........
}
........
......
the above piece of code works well when executed with root user.
Is there any way by which you can execute the program in user mode.
Regards,
Sunil
_______________________________________________
ilugd mailing list
[EMAIL PROTECTED]
http://frodo.hserus.net/mailman/listinfo/ilugd