[gull] ecoute de cd audio
briner
briner at infomaniak.ch
Wed Jun 18 09:51:44 CEST 2003
> > $ cdplay start
> > cdplay: ioctl cdrommsf
>
> De /usr/include/linux/cdrom.h:
> #define CDROMPLAYMSF 0x5303 /* Play Audio MSF (struct cdrom_msf) */
> /* This struct is used by the CDROMPLAYMSF ioctl */
> struct cdrom_msf
> {
> __u8 cdmsf_min0; /* start minute */
> __u8 cdmsf_sec0; /* start second */
> __u8 cdmsf_frame0; /* start frame */
> __u8 cdmsf_min1; /* end minute */
> __u8 cdmsf_sec1; /* end second */
> __u8 cdmsf_frame1; /* end frame */
> };
>
> ça fait assez: erreur de commande `CDROMMSF' doit être la commande pour
> démarrer la lecture. Apparemment ton architecture ('powerpc') ne
> supporte pas cette fonction (enfin je suppose, peut-être essaie encore
> comme root, mais je pense qu'il aurait fait une erreur à l'open(2), pas
> avec ioctl(2)).
J'ai vraiment l'impression de ne pas tout comprendre o.0
comment tu as pu passer de mon message d'erreur
cdplay: ioctl cdrommsf
a te dire qu'un fichier dans /usr/include/linux nomme cdrom.h pourrait
avoir a faire qqch avec mon probleme..
et si je tape strace cdplay start
$strace cdplay start
execve("/usr/bin/cdplay", ["cdplay", "start"], [/* 25 vars */]) = 0
uname({sys="Linux", node="kingNi", ...}) = 0
brk(0) = 0x10015db0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x30014000
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(0x3, 0x7fffef78) = 0
mmap(NULL, 42199, PROT_READ, MAP_PRIVATE, 3, 0) = 0x30015000
close(3) = 0
open("/lib/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\24\0\0\0\1\0\2]\264"..., 1024) = 1024
fstat64(0x3, 0x7fffef80) = 0
mmap(0xfea5000, 1353572, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xfea5000
mprotect(0xffbb000, 214884, PROT_NONE) = 0
mmap(0xffc5000, 155648, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x110000) = 0xffc5000
mmap(0xffeb000, 18276, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xffeb000
close(3) = 0
munmap(0x30015000, 42199) = 0
brk(0) = 0x10015db0
brk(0x10015dd0) = 0x10015dd0
brk(0x10016000) = 0x10016000
open("/dev/cdrom", O_RDONLY|O_NONBLOCK) = 3
brk(0x10017000) = 0x10017000
readlink("/dev/cdrom", "hdc", 99) = 3
open("/etc/mtab", O_RDONLY) = 4
brk(0x10019000) = 0x10019000
fstat64(0x4, 0x7fffe018) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x30015000
read(4, "/dev/hda4 / ext3 rw,errors=remou"..., 4096) = 249
read(4, "", 4096) = 0
close(4) = 0
munmap(0x30015000, 4096) = 0
ioctl(3, 0x530b, 0x10016288) = 0
ioctl(3, 0x5305, 0x10015dd4) = 0
ioctl(3, 0x5306, 0x10015dd8) = 0
ioctl(3, 0x5306, 0x10015de4) = 0
ioctl(3, 0x5306, 0x10015df0) = 0
ioctl(3, 0x5306, 0x10015dfc) = 0
ioctl(3, 0x5306, 0x10015e08) = 0
ioctl(3, 0x5306, 0x10015e14) = 0
ioctl(3, 0x5306, 0x10015e20) = 0
ioctl(3, 0x5306, 0x10015e2c) = 0
ioctl(3, 0x5306, 0x10015e38) = 0
ioctl(3, 0x5306, 0x10015e44) = 0
ioctl(3, 0x5306, 0x10015e50) = 0
ioctl(3, 0x5306, 0x10015e5c) = 0
ioctl(3, 0x530b, 0x10016288) = 0
ioctl(3, 0x530b, 0x7ffff6c8) = 0
ioctl(3, 0x5305, 0x7ffff6e8) = 0
readlink("/dev/cdrom", "hdc", 99) = 3
open("/etc/mtab", O_RDONLY) = 4
fstat64(0x4, 0x7fffdfd8) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x30015000
read(4, "/dev/hda4 / ext3 rw,errors=remou"..., 4096) = 249
read(4, "", 4096) = 0
close(4) = 0
munmap(0x30015000, 4096) = 0
ioctl(3, 0x530b, 0x10016288) = 0
ioctl(3, 0x5305, 0x10015dd4) = 0
ioctl(3, 0x5306, 0x10015dd8) = 0
ioctl(3, 0x5306, 0x10015de4) = 0
ioctl(3, 0x5306, 0x10015df0) = 0
ioctl(3, 0x5306, 0x10015dfc) = 0
ioctl(3, 0x5306, 0x10015e08) = 0
ioctl(3, 0x5306, 0x10015e14) = 0
ioctl(3, 0x5306, 0x10015e20) = 0
ioctl(3, 0x5306, 0x10015e2c) = 0
ioctl(3, 0x5306, 0x10015e38) = 0
ioctl(3, 0x5306, 0x10015e44) = 0
ioctl(3, 0x5306, 0x10015e50) = 0
ioctl(3, 0x5306, 0x10015e5c) = 0
ioctl(3, 0x530b, 0x10016288) = 0
ioctl(3, 0x5308, 0x10016288) = 0
ioctl(3, 0x5303, 0x7ffff6d8) = -1 EIO (Input/output error)
write(2, "cdplay: ioctl cdrommsf\n", 23cdplay: ioctl cdrommsf) = 23
exit(1) = ?
alors la tout d'un coup je vois le code 0x503 sur ioctl (ce qui me
rappelle ton message " #define CDROMPLAYMSF 0x5303...") mais
bon je vois toujours pas comment tu marches!
est-ce que j'ai de la peine ou bien!
Briner
More information about the gull
mailing list