head 1.8; access; symbols pkgsrc-2013Q2:1.8.0.28 pkgsrc-2013Q2-base:1.8 pkgsrc-2012Q4:1.8.0.26 pkgsrc-2012Q4-base:1.8 pkgsrc-2011Q4:1.8.0.24 pkgsrc-2011Q4-base:1.8 pkgsrc-2011Q2:1.8.0.22 pkgsrc-2011Q2-base:1.8 pkgsrc-2009Q4:1.8.0.20 pkgsrc-2009Q4-base:1.8 pkgsrc-2008Q4:1.8.0.18 pkgsrc-2008Q4-base:1.8 pkgsrc-2008Q3:1.8.0.16 pkgsrc-2008Q3-base:1.8 cube-native-xorg:1.8.0.14 cube-native-xorg-base:1.8 pkgsrc-2008Q2:1.8.0.12 pkgsrc-2008Q2-base:1.8 pkgsrc-2008Q1:1.8.0.10 pkgsrc-2008Q1-base:1.8 pkgsrc-2007Q4:1.8.0.8 pkgsrc-2007Q4-base:1.8 pkgsrc-2007Q3:1.8.0.6 pkgsrc-2007Q3-base:1.8 pkgsrc-2007Q2:1.8.0.4 pkgsrc-2007Q2-base:1.8 pkgsrc-2007Q1:1.8.0.2 pkgsrc-2007Q1-base:1.8 pkgsrc-2006Q4:1.7.0.6 pkgsrc-2006Q4-base:1.7 pkgsrc-2006Q3:1.7.0.4 pkgsrc-2006Q3-base:1.7 pkgsrc-2006Q2:1.7.0.2 pkgsrc-2006Q2-base:1.7 pkgsrc-2006Q1:1.6.0.14 pkgsrc-2006Q1-base:1.6 pkgsrc-2005Q4:1.6.0.12 pkgsrc-2005Q4-base:1.6 pkgsrc-2005Q3:1.6.0.10 pkgsrc-2005Q3-base:1.6 pkgsrc-2005Q2:1.6.0.8 pkgsrc-2005Q2-base:1.6 pkgsrc-2005Q1:1.6.0.6 pkgsrc-2005Q1-base:1.6 pkgsrc-2004Q4:1.6.0.4 pkgsrc-2004Q4-base:1.6 pkgsrc-2004Q3:1.6.0.2 pkgsrc-2004Q3-base:1.6 pkgsrc-2004Q2:1.4.0.4 pkgsrc-2004Q2-base:1.4 pkgsrc-2004Q1:1.4.0.2 pkgsrc-2004Q1-base:1.4 pkgsrc-2003Q4:1.3.0.2 pkgsrc-2003Q4-base:1.3; locks; strict; comment @# @; 1.8 date 2007.02.16.15.19.29; author reinoud; state dead; branches; next 1.7; 1.7 date 2006.06.06.21.11.29; author joerg; state Exp; branches; next 1.6; 1.6 date 2004.08.21.13.08.08; author reinoud; state dead; branches; next 1.5; 1.5 date 2004.07.15.13.27.48; author mrg; state Exp; branches; next 1.4; 1.4 date 2004.02.26.04.33.15; author xtraeme; state dead; branches; next 1.3; 1.3 date 2003.10.27.03.59.07; author reinoud; state Exp; branches; next 1.2; 1.2 date 2003.10.27.03.22.52; author reinoud; state dead; branches; next 1.1; 1.1 date 2003.10.26.23.23.47; author kristerw; state Exp; branches; next ; desc @@ 1.8 log @Update to version 0.5.5 : Support for reading UDF 2.50/2.60 media! This also adds support for all HDDVD and BluRay media! Also small but important fixes have been made on cd_disect for ATAPI drives; these could give up in the process. @ text @$NetBSD: patch-aa,v 1.7 2006/06/06 21:11:29 joerg Exp $ --- udf.c.orig 2006-06-06 21:05:41.000000000 +0000 +++ udf.c @@@@ -5323,7 +5323,9 @@@@ static int read_fid_stream(struct udf_no /* create resulting dirent structure */ fid_name = (char *) fid->data + udf_rw16(fid->l_iu); dirent->d_fileno = udf_rw32(fid->icb.impl.im_used.unique_id); /* only 32 bits salvageable */ +#if !defined(__DragonFly__) dirent->d_reclen = sizeof(struct dirent); +#endif dirent->d_type = DT_UNKNOWN; udf_to_unix_name(dirent->d_name, fid_name, fid->l_fi, &dir_node->udf_log_vol->log_vol->desc_charset); if (fid->file_char & UDF_FILE_CHAR_DIR) dirent->d_type = DT_DIR; @ 1.7 log @No need to set the non-existent d_reclen on DragonFly... @ text @d1 1 a1 1 $NetBSD$ @ 1.6 log @Remove old patch that is no longer nessiary @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.5 2004/07/15 13:27:48 mrg Exp $ d3 12 a14 34 - fix print when file sizes >= 2GB - add "exit" and "^D" support --- udfclient.c.orig 2004-02-23 11:10:49.000000000 +1100 +++ udfclient.c 2004-07-05 19:33:11.000000000 +1000 @@@@ -520,7 +520,7 @@@@ void udfclient_getsubtree(struct udf_mou } else { printf("\r...%-47s ", name+strlen(name)-47); }; - printf("%10d / %10d bytes ", (uint32_t) data_pos, (uint32_t) file_data_total_len); + printf("%10llu / %10llu bytes ", (unsigned long long) data_pos, (unsigned long long) file_data_total_len); if (file_data_total_len) printf("(%3d%%) ", (int) (100.0*(float) data_pos / file_data_total_len)); printf("successfully"); fflush(stdout); @@@@ -575,6 +575,9 @@@@ void udfclient_interact(void) { *line = 0; fgets(line, 4096, stdin); + if (*line == 0 && feof(stdin)) + return; + *cmd = *arg1 = *arg2 = *arg3 = 0; args = sscanf(line, "%s %s %s %s", cmd, arg1, arg2, arg3); if (args) { @@@@ -611,7 +614,8 @@@@ void udfclient_interact(void) { ); continue; }; - if (strcmp(cmd, "quit")==0) { + if (strcmp(cmd, "quit")==0 || + strcmp(cmd, "exit")==0) { return; }; printf("\nUnknown command %s\n", cmd); @ 1.5 log @- fix printing file sizes >= 2GB - add "exit" support @ text @d1 1 a1 1 $NetBSD$ @ 1.4 log @Remove not needed patches and regen. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.3 2003/10/27 03:59:07 reinoud Exp $ d3 34 a36 10 --- makefile.orig 2003-10-27 04:51:27.000000000 +0100 +++ makefile @@@@ -13,6 +13,7 @@@@ LD= gcc LDFLAGS= CFLAGS+= -O3 -Wall \ -Wuninitialized -DNDEBUG \ + -fno-strict-aliasing \ -Werror ${COPTS} #POSTOBJ= -lm -lz XFLAGS= -I. -I/usr/X11R6/include -L/usr/X11R6/lib @ 1.3 log @(AHUM) ... this time i hope it will work fine; my excuses... its late :( @ text @d1 1 a1 1 $NetBSD$ @ 1.2 log @Patch udfclient so it will compile again under NetBSD-current wich has changed scsipi headers and incorporating the submitted patches. It also gives Linux SCSI access to the SCSI sense code! Esp. Linux users and NetBSD-current users will benefit. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.1 2003/10/26 23:23:47 kristerw Exp $ d3 10 a12 12 --- udfclient.c.orig Mon Oct 27 00:09:21 2003 +++ udfclient.c Mon Oct 27 00:09:45 2003 @@@@ -609,7 +609,8 @@@@ int main(int argc, char *argv[]) { struct udf_discinfo *disc, *next_disc; - char *progname, *range, flag; + int flag; + char *progname, *range; progname = argv[0]; if (argc == 1) { @ 1.1 log @Make the pkg compile for arches where char is unsigned. @ text @d1 1 a1 1 $NetBSD$ @