Deleted Added
full compact
cd9660.c (151447) cd9660.c (221358)
1/* $NetBSD: cd9660.c,v 1.5 1997/06/26 19:11:33 drochner Exp $ */
2
3/*
4 * Copyright (C) 1996 Wolfgang Solfrank.
5 * Copyright (C) 1996 TooLs GmbH.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 18 unchanged lines hidden (view full) ---

27 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
28 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
29 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
30 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
31 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 */
33
34#include <sys/cdefs.h>
1/* $NetBSD: cd9660.c,v 1.5 1997/06/26 19:11:33 drochner Exp $ */
2
3/*
4 * Copyright (C) 1996 Wolfgang Solfrank.
5 * Copyright (C) 1996 TooLs GmbH.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 18 unchanged lines hidden (view full) ---

27 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
28 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
29 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
30 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
31 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 */
33
34#include <sys/cdefs.h>
35__FBSDID("$FreeBSD: head/lib/libstand/cd9660.c 151447 2005-10-18 13:35:08Z des $");
35__FBSDID("$FreeBSD: head/lib/libstand/cd9660.c 221358 2011-05-03 04:44:50Z rodrigc $");
36
37/*
38 * Stand-alone ISO9660 file reading package.
39 *
40 * Note: This doesn't support Rock Ridge extensions, extended attributes,
41 * blocksizes other than 2048 bytes, multi-extent files, etc.
42 */
43#include <sys/param.h>

--- 496 unchanged lines hidden (view full) ---

540 bcopy(name, d->d_name, d->d_namlen);
541 d->d_name[d->d_namlen] = 0;
542
543 fp->f_off += isonum_711(ep->length);
544 return (0);
545}
546
547static int
36
37/*
38 * Stand-alone ISO9660 file reading package.
39 *
40 * Note: This doesn't support Rock Ridge extensions, extended attributes,
41 * blocksizes other than 2048 bytes, multi-extent files, etc.
42 */
43#include <sys/param.h>

--- 496 unchanged lines hidden (view full) ---

540 bcopy(name, d->d_name, d->d_namlen);
541 d->d_name[d->d_namlen] = 0;
542
543 fp->f_off += isonum_711(ep->length);
544 return (0);
545}
546
547static int
548cd9660_write(struct open_file *f, void *start, size_t size, size_t *resid)
548cd9660_write(struct open_file *f __unused, void *start __unused, size_t size __unused, size_t *resid __unused)
549{
550 return EROFS;
551}
552
553static off_t
554cd9660_seek(struct open_file *f, off_t offset, int where)
555{
556 struct file *fp = (struct file *)f->f_fsdata;

--- 32 unchanged lines hidden ---
549{
550 return EROFS;
551}
552
553static off_t
554cd9660_seek(struct open_file *f, off_t offset, int where)
555{
556 struct file *fp = (struct file *)f->f_fsdata;

--- 32 unchanged lines hidden ---