Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread Display Modes
Old Feb 23, 2005, 01:19 AM   #1
macrumors member
Join Date: Oct 2004
how i can open hard disk???

Hi all
* * * 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
naveen is offline   0 Reply With Quote

MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
G5 2005 hard disk, hard drive caddy confusion. Waynec PowerPC Macs 5 Feb 9, 2014 10:08 PM
Can't get back my hard disk space back after using disk utility chcheng0925 OS X 2 Dec 15, 2013 03:44 AM
So the ipod classic is hard to open, but what about 5.5? Zellio iPod 1 Oct 15, 2013 03: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 01:42 AM
Hard disk missing after disk utility crash getwerc OS X 10.8 Mountain Lion 0 Mar 5, 2013 05:17 PM

Forum Jump

All times are GMT -5. The time now is 09:05 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2015, MacRumors.com, LLC