|Feb 23, 2005, 02:19 AM||#1|
how i can open hard disk???
* * * I want to get hard disk size through using system functions in the following three files:- sys/fcntl.h,sys/ioctl.h,sys/disklabel.h
first of all i am using the fuction of fcntl.h to open the hard disk that is
int ****open __P((const char *, int, ...));
int j=open __P("/dev/disk0",O_RDONLY); * (in coding i am using this to call the above function)
But above function is not working. But i don't know where is my error.
But i have problem in using the int ****open __P((const char *, int, ...));
i have the following errors
*macro "__P" passed 2 arguments, but takes just 1
In file included from .ui/form3.cpp:21:
form3.ui.h: In member function `virtual void Form3::diskSize()':
form3.ui.h:55: error: `open' undeclared (first use this function)
form3.ui.h:55: error: (Each undeclared identifier is reported only once for
* *each function it appears in.)
How i can solve this problem?
Thanks and Regards
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|G5 2005 hard disk, hard drive caddy confusion.||Waynec||PowerPC Macs||5||Feb 9, 2014 11:08 PM|
|Can't get back my hard disk space back after using disk utility||chcheng0925||OS X||2||Dec 15, 2013 04:44 AM|
|So the ipod classic is hard to open, but what about 5.5?||Zellio||iPod||1||Oct 15, 2013 04:16 PM|
|Can I run apple hardware disk from a clone of the Install disk 2 on an external hard||Ngarritj||MacBook Pro||2||Aug 11, 2013 02:42 AM|
|Hard disk missing after disk utility crash||getwerc||OS X 10.8 Mountain Lion||0||Mar 5, 2013 06:17 PM|
All times are GMT -5. The time now is 06:16 PM.