iamjayanth
13th November 2008, 10:27
Hi masters,
I'm trying to call an ioctl from within a QWidget framework.I am able to use open fuction , and ioctl function. But when i use close function to close the device file QWidget close function getting executed instead of close function declared in unistd.h.
close() in unistd.h, and does not lie under a namespace or anything else I may use to uniquely identify it.
I have seen some one posting a thread for this problem before. The solution you people gave him was to use global namespaces , like
:: close();
I tried this solution , but only yielding segmentation fault. Can anyone give me another solution.
I'm trying to call an ioctl from within a QWidget framework.I am able to use open fuction , and ioctl function. But when i use close function to close the device file QWidget close function getting executed instead of close function declared in unistd.h.
close() in unistd.h, and does not lie under a namespace or anything else I may use to uniquely identify it.
I have seen some one posting a thread for this problem before. The solution you people gave him was to use global namespaces , like
:: close();
I tried this solution , but only yielding segmentation fault. Can anyone give me another solution.