DragonFly users List (threaded) for 2007-02
DragonFly BSD
DragonFly users List (threaded) for 2007-02
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

lsdvd won't work on DF 1.8


From: Kimura Fuyuki <fuyuki@xxxxxxxxxx>
Date: Sun, 18 Feb 2007 12:23:03 +0900

OK, I give up...

Could someone tell me why the following simple program fails to print a dvd 
title? It seems to read from offset 32768.  (block boundary?)

#include <stdio.h>
int main(void)
{
	FILE *fp;
	char buf[33];
	buf[32] = '\0';
	fp = fopen("/dev/acd0c", "r");
	fseek(fp, 32808, SEEK_SET);
	fread(buf, 1, 32, fp);
	puts(buf);
	return 0;
}



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]