struct iso9660 problem

struct iso9660 problem

Post by Thierry BUCC » Wed, 12 May 1999 04:00:00



Hi,

I have a little problem,

i want to retrieve info about iso9660 cdrom.

here is my code :

struct iso_primary_descriptor iso9660;
FILE *fd;

fd=fopen("/dev/cdrom","r");
fread(&iso9660, sizeof(struct iso_primary_descriptor),1,fd);
fclose(fd);

printf("\n-> Publisher ID : %s",iso9660.publisher_id);

but doesn't works why ?

Thanks a lot for your help.

 Thierry BUCCO
  - FRANCE -

 
 
 

1. struct iso9660 problem

Hi,

I have a little problem,

i want to retrieve info about iso9660 cdrom.

here is my code :

struct iso_primary_descriptor iso9660;
FILE *fd;

fd=fopen("/dev/cdrom","r");
fread(&iso9660, sizeof(struct iso_primary_descriptor),1,fd);
fclose(fd);

printf("\n-> Publisher ID : %s",iso9660.publisher_id);

but doesn't works why ?

Thanks a lot for your help.

 Thierry BUCCO
  - FRANCE -

2. Shared libraries - fixed address

3. [PATCH] struct kernel_stat -> struct cpu_stat[NR_CPUS]

4. Hi,

5. converting 'struct stat' to 'struct __old_kernel_stat'?

6. Linking to libppm

7. structs declared inside structs in /usr/include

8. apache 1.3b2 on AIX 4

9. timer_create refers to struct sigevent; struct sigevent not availabe unders same conditions as timer_create

10. getting "struct pci_dev" from "struct netdevice"

11. different iso9660 problem mounting cd

12. Problems with iso9660 as initrd

13. problem with iso9660 fs, kernel 1.2.0