Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Feb 23, 2005, 01:19 AM   #1
naveen
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

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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
External 3.5" hard disk won't sleep only when mini is asleep ICEBreaker Mac OS X 10.7 Lion 0 Aug 24, 2011 12:28 PM
Using a G4 iMac hard disk in a Power Mac G4 (Digital Audio) Jethryn Freyman PowerPC Macs 5 Aug 6, 2011 02:58 AM
2TB WD Caviar Green hard disk for Power Mac G5 Jethryn Freyman PowerPC Macs 3 Jul 16, 2011 08:04 AM
Clicking down to failure, how long until MB hard disk dies? swingerofbirch MacBook 1 Oct 19, 2008 11:02 AM
how to access main hard disk from parallels xinelo Windows, Linux & Others on the Mac 3 Jan 31, 2007 02:22 AM


All times are GMT -5. The time now is 07:23 PM.

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

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