Hi i need some help
if((fd = open("/dev/sda",O_RDONLY)) < 0)
if((fd = open("/dev/sda",O_RDONLY)) < 0)
To copy to clipboard, switch view to plain text mode
if((err = ioctl(fd,HDIO_GET_IDENTITY,&hd)) < 0)
if((err = ioctl(fd,HDIO_GET_IDENTITY,&hd)) < 0)
To copy to clipboard, switch view to plain text mode
headers
#include <linux/types.h>
#include <linux/hdreg.h>
#include <linux/fcntl.h>
#include <linux/types.h>
#include <linux/hdreg.h>
#include <linux/fcntl.h>
To copy to clipboard, switch view to plain text mode
error: 'open' was not declared in this scope
error: 'open' was not declared in this scope
To copy to clipboard, switch view to plain text mode
error: 'ioctl' was not declared in this scope
error: 'ioctl' was not declared in this scope
To copy to clipboard, switch view to plain text mode
What's the problem ?
Added after 1 33 minutes:
up up up up up up
Bookmarks